How do I make an animation stop for a few seconds then play again?
Hello.
For a while now I've been trying to get this really simple script to work, but it never does.
Basically, what it SHOULD do is;
-load animation
-play animation
-wait for animation to stop
-wait for a certain amount of time
-play animation again
-wait for it to stop again
-wait the seconds again
However, it doesn't stop, just continuously loops the animation over and over again, doesn't stop, and doesn't wait with no errors in output. The code is;
01 | local animation = script:WaitForChild( 'Animation' ) |
02 | local humanoid = script.Parent:WaitForChild( 'Humanoid' ) |
03 | local dance = humanoid:LoadAnimation(animation) |
Does anyone know why my script isn't working? It should simply play animation, wait for it to stop, wait for 5 seconds, then replay anim, wait for stop, wait 5 seconds, and repeats the process.
Thank you.