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

How do I put a wait inside the animation loops?

Asked by 5 years ago

cause if i don't the animation kind of fidgets for every time the humanoid running is fired and you already can tell cause when I put print it prints like 1x every milisecnd and it fidgets the animation which is bad does anyone know how i can prevent this I was thinking wait but better ideas are welcome

TestingDummie = script.Parent
Humanoid = TestingDummie.TestingDummy
Loading = Humanoid:LoadAnimation(script.Animation)
Loading.Looped = true
wait(1)


Humanoid.Running:Connect(function()
        print('The thing walk lmao')
        Loading:Play()



end)

1 answer

Log in to vote
0
Answered by 5 years ago

Hello! I'm BlackOrange and I will be helping you today.

Solution:

The solution is actually not in the script, in fact, it's actually in the animation itself. What you want to do is re open up your animation and extend the length of the animation make sure the frame is where you want to be. Notice that if you have no frames after the last frame and there is still time left, there will be a little pause.

Simply, just keep changing the animation until you get what you desire.

Hope this helped!!

Best Of Luck Developer!

Ad

Answer this question