Hey! I’m trying to keep an animation in its last position when it ends, basically. Sort of a static loop, aka that it won’t repeat from the start infinitely, but that it will stay in its last position until animation:Stop() is called. How can I achieve that?
you can try to do this, it’s not exactly stopping the animation, but slowing it down in the last second, if it doesn’t work at first, try to change the wait to 0.95 or 0.9
task.wait(animation.Length * 0.99)
animation:AdjustSpeed(0.01)
oh, I forgot to mention
the “animation” variable is suposed to be the Animator:LoadAnimation(animationpath)
part, not literally the animation part
It works now (plays the animation), however, it’s still not really what I mean. Right now, it just goes really slow to the last position and then return back as it did before (it doesn’t stop there). Any idea how to fix/do that?
you can try to make the wait be *0.9 or 0.95
or you can also try to put the speed at 0
I never put the speed at 0 so I’m not sure if will really stop the animation, but you can try
Managed to do achieve it like this:
local animScript
tool.Equipped:Connect(function()
animScript = character:WaitForChild("Animate")
animScript:WaitForChild("toolnone"):WaitForChild("ToolNoneAnim").AnimationId = "http://www.roblox.com/asset/?id=17147747479"
end)
tool.Unequipped:Connect(function()
animScript:WaitForChild("toolnone"):WaitForChild("ToolNoneAnim").AnimationId = "http://www.roblox.com/asset/?id=17147747479"
end)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.