So I made a "dab" animation (Yeah I did..;p) and it works. I made a dancing animation but it wont work. Can somebody help me? The dance animation is the same as the dab animation, (the scripts) just diff animation ID.
local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/Asset?ID=1630032947"
local trackanimation = nil
local playability = true
function playAnimation(AnimationSource)
if playability == true then
local plr = game.Players.LocalPlayer
trackanimation = plr.Character.Humanoid:LoadAnimation(animation)
trackanimation.KeyframeReached:connect(function(kf)
print('working')
end)
trackanimation:Play()
end
end
script.Parent.MouseButton1Click:connect(playAnimation)

3 comments
Next time please post more information besides "it won't work".
Maybe have the playability = false once played? Just a suggestion ;p
The website can't really help you if you don't explain the problem further than just 'It won't work'. I would mess around with it and give more info.