This is how you play an animation:
local animation = Instance.new("Animation") animation.AnimationId = "http://www.roblox.com/Asset?ID=144884906" local animTrack = Humanoid:LoadAnimation(animation) animTrack:Play()
Would I put something like:
while animTrack:Play() do
Thanks.
I agree with Tkdriverx. You should use the KeyframeReached event for doing something. Something like this, maybe?
animTrack.KeyframeReached:connect(function(keyframeName) if keyframeNAme ~= "End" then --do stuff here end end)