local player = game.Players.LocalPlayer local char = player.CharacterAdded:Wait() script.Parent.Equipped:Connect(function() local animation = char.Humanoid:LoadAnimation(script.Parent.Animation) animation.Priority = Enum.AnimationPriority.Action animation:Play() print("yo") end)
I will edit this part later, need to do something
Just a few recommendations and reminders for you that may fix the code if you still need help. The first is line 2; consider replacing line 2 with this:
repeat wait() until player.Character local char = player.Character
That will completely pause the script until the char is found.
In addition make sure the animation joints match with the character joints. An r6 anim won't work on an r15 and vise-versa.
I hope this helps. Till next time
Instead of doing it through a script, try changing the animation priority through the animation editor. (3 dots > Set Animation Priority > Action).