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 10 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
10 years ago

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

Example :

print("Starting up!")
while false do
    print("I'm working!")
    wait()
end
print("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 — 10y
Ad

Answer this question