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

Animation stopping while on "wait()"...?

Asked by 4 years ago
Edited 4 years ago

Hello there!, This is another problem I found while doing a Script, Once the animation plays on the character and pressses any moving key the Animation stops.

-- The preset before the animation plays is hum.Walkspeed = 0 and same with jump power. 
Anim:Play()
wait(1.8) --If you press W, A, S or D in this interval the animation will automatically stop, even with Walkspeed and jumppower set to 0.
Anim:stop()
--below here the script continues

I tried to figure out why does this happens, I have no clue... Help? There is No errors/Warnings ...

1 answer

Log in to vote
0
Answered by
BashGuy10 384 Moderation Voter
4 years ago

You need to set the animation priority to "Action"!

You should be able to find it.

0
also accept this answer if it helped BashGuy10 384 — 4y
0
0
just click "Set Priority" and a menu should show up, click "Action" BashGuy10 384 — 4y
Ad

Answer this question