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

What's while false do?

Asked by 11 years ago

There is a loop called while true do.

I was wondering if while false do exists. if it does, what does it do?

1 answer

Log in to vote
5
Answered by
samfun123 235 Moderation Voter
11 years ago

while false do wouldn't do anything. It would simply skip over that code.

Example :

1print("Starting up!")
2while false do
3    print("I'm working!")
4    wait()
5end
6print("Done!")

Output :

Starting up! Done!

If you have any questions, concerns or just need some help with this PM me on ROBLOX!

0
Ok thank you. Roboy5857 20 — 11y
Ad

Answer this question