Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-6

why won't my script work? [closed]

Asked by 9 years ago

while true do end

it isn't letting me play my game

1
Hmm...Maybe because it is crashing your game? NotsoPenguin 705 — 9y
0
no it used to work before. TimeTicks -2 — 9y

Closed as Not Constructive by NotsoPenguin, Perci1, and woodengop

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
1
Answered by 9 years ago
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.

0
Also, none of your tags are necessary... you should be using "loop" alphawolvess 1784 — 9y
Ad