#How would I make this for loop not wait for the function to finish before it loops again
1 messages · Page 1 of 1 (latest)
still need help?
Yes !
alr so
I tried using coroutine.wrap on the move function
I havent
its wayy simpler but bit less control
all u do is
task.spawn(function()
CODE
end)
and the code inside it
will run along other
so if u put the whole loop in this
it will run the loop in background basically
working as u want
not sure i understand
all code inside task.spawn will run in background
so it wont wait for the code to be done
before going to next line
MoveGoober
ok so
you can just task.spawn the movegoober
but
i think its just better if u task.spawn the whole function
cuz many task.spawns can also slighty affect peformance
but depending on your needs u might need to just task.spawn the movegoober yea
I see, i did try task.spawn on the move function but it gave the same issue using coroutine.wrap does
hold on ill record it
what the shit
now its not doing that ?
ohh wait
I get it
It does it when trying to spawn multiple things from the howmany thing
i dont rly understand
the first one is the broken one, it spawns 2 goobers
the second one is the normal one
No, use task.spawn({your function})