Cant figure out how to pause animation on last frame

I followed a tutorial to animate some elevator doors closing with moonanimator, but Im unsure on how to keep them open after the animation has finished.

Ive found countless threads on how, but they all seem to be for humanoid animations not parts, apologies if im slow at understanding im very new to all of this.

Workspace thingie:
image

Script:

wait(15)

script.Parent.AnimationController:LoadAnimation(script.Parent.Animation):Play()
1 Like

Make another animation(looped) which only consists of the ending frame. Then you can play the new animation whenever the door opening/closing animation ends.
You can do this:

local closeAnim = script.Parent.AnimationController:LoadAnimation(script.Parent.Animation)
local closedAnim = script.Parent.AnimationController:LoadAnimation(PUT ANIM HERE)
closeAnim:Play()
closeAnim.Ended:Wait()
closedAnim:Play()

Don’t forget to stop the closedAnim before playing the opening animation.

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.