#how do i make the tool be held in the right hand instead of the left hand

1 messages · Page 1 of 1 (latest)

harsh dagger
#

cuz i want it to be held in the right hand instead of the left

frosty stream
#

Do you know how to script?

raven crow
# harsh dagger cuz i want it to be held in the right hand instead of the left

All you need to do is change the RightGrip's Part0 to the left arm, like this:

local Tool = script.Parent
Tool.Equipped:Connect(function()
    local Character = Tool.Parent
    local RightGrip = Character["Right Arm"].RightGrip
    RightGrip.Part0 = Character["Left Arm"]
end)

The default tool holding animation is for the right arm, but you can easily make your own and use that instead.

raven crow
# harsh dagger ty

And if that doesn't work, just make a new weld instead.

local Tool = script.Parent
Tool.Equipped:Connect(function()
    local Character = Tool.Parent
    
    -- Delete default weld
    local RightGrip = Character["Right Arm"].RightGrip
    RightGrip:Destroy()
    
    -- Make a new one
    local Motor = Instance.new("Motor6D", Character["Left Arm"])
    Motor.Part0 = Character["Left Arm"]
    Motor.Part1 = Tool.Handle
    Motor.C0 = Character["Left Arm"].LeftGripAttachment.CFrame -- Move the tool to the LeftGrip's location
end)