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

Why animation script wont work but I think I put every thing in the right place?

The script is supposed play an animation when the tool is equipped, and stop it when it's unequipped. Why does it not work?

	local anim = Instance.new("Animation", game.Players.LocalPlayer.Character)
	local animTrack = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(anim)

script.Parent.Equipped:connect(function()
	animTrack:Play()
end)

script.Parent.Unequipped:connect(function()
	animTrack:Stop()
end)

1 answer

✓ Accepted answer

You have not entered the animations id!

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