How to use multiple while true do's arguments? (Script still working under the argument)

Hello!

I was wondering how to use multiple while true do arguments, as I can’t make a script for every while true do argument cause it’d be annoying to remake variables, etc, etc.

3 Likes

Are you trying to have multiple while loops run at the same time?

You could use either coroutine or spawn, depending on your needs. Here are some YouTube videos by @UseCode_Tap to help you.

5 Likes

Well you could do this:

while something and other and moreother and eee do

end

Or you could simply use coroutines. (I dont really recommend using spawn)

2 Likes

Oh yeah, while IsWalking == true and IsJumping == true do works too, but I’m trying different loops but all running at the same time.

Just know, try not to use spawn. I only listed it if that was needed, but otherwise don’t use it. If you need something that requires it, like destroying a rocket from a rocket launcher after a certain amount of time, sure, but otherwise no.

1 Like

Oh then you should do what @FirewolfYT_751Adult recommended.

(Do not use spawn though, there is a topic about that you can search about)

2 Likes

use coroutines but u do you lol