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

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

Asked by 5 years ago
Edited 5 years ago

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

Log in to vote
0
Answered by 5 years ago

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

0
Do not use xJathur95x's answer, if your tool requires a handle, then it won't work without a handle. AIphanium 124 — 5y
0
i mean turning off the "require handle" in tool settings xJathur95x 129 — 5y
0
sorry, this isnt working. blocky010101 23 — 5y
Ad
Log in to vote
0
Answered by
AIphanium 124
5 years ago
Edited 5 years ago

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 )

0
OR you could turn off RequiresHandle in tool properties mynamajeff1302 2 — 5y
0
You see, some tools such as swords require HANDLES, so? AIphanium 124 — 5y
0
do I use a local script? blocky010101 23 — 5y
0
it doesn't with a local script/normal script. blocky010101 23 — 5y
View all comments (2 more)
0
Try normal Script, if it doesn't works, try the new script i added from another scripter, ( Credits to Spongocardo ) AIphanium 124 — 5y
0
Sorry, this still doesn't work. blocky010101 23 — 5y

Answer this question