Hey everyone, im trying to make a game like danceoff but the animations wont play when the buttons are clicked. Can somebody help me? This is how far i've come until now, but it doesnt work.
`local p = game.Players.LocalPlayer
--//Animations
local facepalm = Instance.new("Animation")
facepalm .AnimationId = "http://www.roblox.com/Asset?ID=3291600803"
local animTrack = p.Character.Humanoid:LoadAnimation(facepalm)
script.Parent.MouseButton1Click:Connect(function()
print("Facepalm played")
animTrack:Play()
end)`
Thanks for helping

1 comment
Do you own the animation? If not then studio won't let you play it.