when i execute this i get the error Unable to cast value to object
function click()
local animation = 2652684706
local player = game.Players.LocalPlayer
local humanoid = player.Character.Humanoid
local animationTrack = humanoid:LoadAnimation(animation)
animationTrack:Play()
end
script.Parent.MouseButton1Click:Connect(click)

2 comments
Animation should be an animation object not the ID
what he said