Answered by
4 years ago Edited 4 years ago
01 | local player = game.Players.LocalPlayer |
03 | repeat wait( 1 ) until player.Character |
05 | local character = player.Character |
06 | local humanoid = character:WaitForChild( "Humanoid" ) |
08 | local animation = Instance.new( "Animation" ) |
09 | animation.Name = "Idle" |
10 | animation.Parent = script.Parent |
14 | local animtrack = humanoid:LoadAnimation(animation) |
16 | script.Parent.Equipped:connect( function () |
20 | script.Parent.Unequipped:connect( function () |
put it in a local script and put the local script in the tool, however, the second you move it does not play anymore, you might have to play around with it. make sure to put your animation id in where there is a bunch of numbers.