I saw a Roblox topic on this and I still can’t figure it out. Once this animation is finished, I want it to freeze. In my mind I think I have to play the animation, wait for it to stop. Then play it again but adjust the time position to be at the end of the animation and the set the speed to 0 for it to stop completely. This code isn’t working for me. Help?
local track = humanoid:LoadAnimation(anims:WaitForChild("Swinging"):FindFirstChild(anim))
track.Name = "Spider"
track.Priority = Enum.AnimationPriority.Action
if not track.IsPlaying then
track:Play()
end
track.Stopped:Wait()
track:AdjustSpeed(0)
if not track.IsPlaying then
track:Play()
end
track.TimePosition = track.Length