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.
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.
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.
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)
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.
Oh then you should do what @FirewolfYT_751Adult recommended.
(Do not use spawn though, there is a topic about that you can search about)
use coroutines but u do you lol