I'm making a game and there is supposed to be an NPC playing a animation, in studio it works perfectly! But ingame it doesnt. Here it is:
a = Instance.new("Animation")
a.AnimationId = "https://www.roblox.com/AssetID?=2103144653"
ta = nil
p = true
if p == true then
c = script.Parent.Humanoid
trackanimation = c:LoadAnimation(a)
trackanimation.KeyframeReached:Connect(function(kf)
end)
trackanimation.Looped = true
trackanimation:Play()
end

1 comment
I checked it, didn't work.