Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Why does my animation that I made wont work?

Asked by 6 years ago

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)

0
Next time please post more information besides "it won't work". cabbler 1942 — 6y
0
Maybe have the playability = false once played? Just a suggestion ;p sparkevin 36 — 6y
0
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. OrcaTheFish 95 — 6y

Answer this question