Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I stop my hand from raising when I equip a tool?

When you equip a tool in Roblox, your hand raises up. How can I make it so it doesn't do this? Or apply an animation holding position?

2 answers

Just don't use Handle, there a part in the tool called "Handle" rename it and that all.

3 comments

0

Do not use xJathur95x's answer, if your tool requires a handle, then it won't work without a handle.

0

i mean turning off the "require handle" in tool settings

0

sorry, this isnt working.

Here is a better idea, create an Animation, export it to roblox, use its ID, ( Note : Make sure to not ENABLE Looping, unless its an IDLE animation. ), then create an Animation inside the Tool, And then make a script like this..

tool = script.Parent
if tool.Activated = true then
script.Parent.Animation:Play() --change it to the name of the animation you created.

if tool.Unequipped = true then
script.Parent.Animation:Stop()

I'm not 100% sure if it works, tell me if it gives an error. Hope this helps :)!

Tool = script.Parent
local player = game.Players.LocalPlayer
repeat wait() until player.Character ~= nil
local hum = player.Character:WaitForChild("Humanoid")

local animation = Tool.DanceAnim --Change DanceAnim to the name of your animation.
local AnimTrack = hum:LoadAnimation(animation) --Loads the animation into the humanoid.

Tool.Selected:connect(function(mouse) --If you're using a tool, change Selected to Activated, and get rid of the code on the next line. Otherwise, keep this the same.
    mouse.Button1Down(connect(function() --As mentioned above, delete this line if you're using a tool.
        AnimTrack:Play()
    end)
end)

Tool.Deselected:connect(function() --If you're using a tool, change Deselected to Unequipped. Otherwise keep it the same.
    AnimTrack:Stop()
end)

If my script doesn't works then try this to run an animation inside your tool ( Credits to Spongocardo )

6 comments

0

OR you could turn off RequiresHandle in tool properties

0

You see, some tools such as swords require HANDLES, so?

0

do I use a local script?

0

it doesn't with a local script/normal script.

0

Try normal Script, if it doesn't works, try the new script i added from another scripter, ( Credits to Spongocardo )

0

Sorry, this still doesn't work.

This discussion is preserved as it was. New answers, comments, and votes are closed.