Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how do i change what part holds the tool?

Asked by 3 years ago
Edited 3 years ago

i want to make one tool be attached to the torso instead of the arm. i dont know how to do that though, any else know how to do that?

1 answer

Log in to vote
0
Answered by 3 years ago

When a tool is equipped a weld is created in the player's right arm called RightGrip. You only have to delete this and weld the part to the player's torso.

Make use of the Tool.Equipped and Tool.Unequipped events like so:

local TorsoGrip
Tool.Equipped:Connect(function()
    -- destroy the right grip
    -- create a new weld and initialise it using the above local variable
    -- weld to torso
    -- weld to tool's handle
    -- set c0 and c1
    -- parent to torso
end)
Too.Unequipped:Connect(function()
    TorsoGrip:Destroy()
end)
Ad

Answer this question