Why isn't my animation tool local script not working? *NEED ANSWER QUICK!
So, I made some gymnastics animations, and I put it into a tool so that when you equip the tool and click anymore with the mouse, it plays the animation. It works perfectly on Roblox Studio. But, when I go to play it on my game, it doesn't work at all. Is it because of filtering enabled, or what? I'm confused. What am I doing wrong?
02 | local player = game.Players.LocalPlayer |
03 | repeat wait() until player.Character ~ = nil |
04 | local hum = player.Character:WaitForChild( "Humanoid" ) |
06 | local animation = Tool.Handstand |
07 | local AnimTrack = hum:LoadAnimation(animation) |
09 | Tool.Activated:connect( function (mouse) |
12 | AnimTrack.Priority = Enum.AnimationPriority.Action |
14 | Tool.Unequipped:connect( function () |