Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

why won't my script work?

while true do end

it isn't letting me play my game

2 comments

1

Hmm...Maybe because it is crashing your game?

0

no it used to work before.

1 answer

while true do end

Will always crash. I don't believe it could ever not crash. It is doing something an infinite amount of times without a "break" which will cause a crash. Just have "while true do end" has no reason to even exist in your game due to it not doing anything BUT crashing it.

while true do
wait()
end

is one of the quickest ways (Not including RenderedStepped ) for a wait is just doing wait() without anything inside of parenthesis.

1 comment

0

Also, none of your tags are necessary... you should be using "loop"

This discussion is preserved as it was. New answers, comments, and votes are closed.