Animation Script Not Working

Hello, Developers! :smiley:
I am trying to make an animation menu and when one of the buttons in the animation menu is clicked the animation plays on the player that clicked the button locally.
The problem is that the animation does not work when clicked, and yes the IDs and scripts should be correct and nothing is displayed on the output.
Here is my script:

--//Hand On Heads Animation

local animation = Instance.new("Animation")

animation.AnimationId = "rbxassetid://6717101238"

local Player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:Connect(function()

local wanimation = Player.Character.Humanoid:LoadAnimation(animation)

wanimation:Play()

end)

Thoughts? :slight_smile:

1 Like

To play animations on humanoid characters, you must load animations to Humanoid.Animator.

You can see more use cases here: Animator

1 Like

idk by you but it works normally for me. Just tried it

1 Like

It does not work. Send proof.:slight_smile:

https://gyazo.com/f710a97ed574c5f4e6f7050c72ef4979
I literally put the script you included and just changed the animation ID to my animation since you can’t use others animations

was the animation uploaded to your profile? if not then it wont work