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 get an animation to load when the tool is equipped?

I've tried almost everything I know and I still can't get it to work, can somebody please help me?

2 answers

Have you tried using the Tool.Equipped() event, then put the code inside? This will make it so it plays whenever they equip the Tool.

local IdleAnim = Humanoid:LoadAnimation(script.Parent.AnimationsName)

script.Parent.Equipped:Connect(function()
	IdleAnim:Play()
end)
script.Parent.Unequipped:Connect(function()
	IdleAnim:Stop()
end)

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