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

How do I do several While True Do loops in one script? [closed]

Asked by 7 years ago

This question already has an answer here:

Make these two loops run at the same time?

I heard about it a while ago, but now I cannot find any articles about it.

0
google roblox threading. User#11440 120 — 7y

Marked as Duplicate by 1waffle1, Thetacah, and ScriptGuider

This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.

Why was this question closed?

1 answer

Log in to vote
-4
Answered by 7 years ago

You can combine them both into one.

while true do
    i = i + 1
    if i == 10 then
        break
    elseif  - == 20 then
        break
    end
end
0
Wasn't what was asked. User#11440 120 — 7y
Ad