Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

My animation goes back to its original position?

Asked by 4 years ago

Hello, I was working on a train door animation, When I played the animation, It goes back to its original position? Here is a video if you are confused: https://streamable.com/j6a0rs Code:

01local model = script.Parent
02local AnimationController = Instance.new("AnimationController", model)
03local Animator = Instance.new("Animator", AnimationController)
04local NewOpenAnim = Instance.new("Animation")
05NewOpenAnim.AnimationId = "http://www.roblox.com/asset/?id=6708597628"
06 
07local NewCloseAnim = Instance.new("Animation")
08NewCloseAnim.AnimationId = "http://www.roblox.com/asset/?id=6708599449"
09 
10local OpenAnim = Animator:LoadAnimation(NewOpenAnim)
11 
12local CloseAnim = Animator:LoadAnimation(NewCloseAnim)
13 
14OpenAnim:Play()
0
Make a looping animation so that after the opening animation plays a loop animation will make it stay open OhBrotherGaminYT 11 — 4y

Answer this question