Loops can run forever in the console

Example:

while task.wait(0.1) do
  print("Hey")
end

Even after you playtested and while playtesting, it still prints “Hey”. And theres no way to stop it.

1 Like

Hey! This isn’t a bug, but being able to kill all processes from the command bar would be a welcome UX change! I’d recommend making a feature request for it.

For now, if you know you’re going to run a loop that you’ll want to stop at a later point, you can add a variable to the loop that you can set at a later time to stop it:
image
and similar can be done with connections that you later want to disconnect:
image

typing “break” will not stop the loop

3 Likes

this isnt a bug, rather simple coding design, add a break to the loop if you want to stop it.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.