In response to BornASaiyan23
BornASaiyan23 wrote:
They both work. I thought we were debating on which was more efficient.

I wasn't ever really debating, it was more of you telling me I didn't know what I was doing and that it would cause exccessive cpu usage- which it doesn't
So should I be using goto, while, spawn, or sleep?
All but goto like really who uses goto.
In response to Critical172
Critical172 wrote:
So should I be using goto, while, spawn, or sleep?


Goto is used in very rare occasions.

If you are going to use a loop use a while loop. As a side note to performance I have a stat with nearly 10 procs placed inside of them, nearly all run each tick- with no slowdown or problems. Certain people would try to sway you from using that technique but the fact is, it's an option if you don't want to use a while loop.

Ultimately which method you use to solve your problem will depend on your problem.
Page: 1 2