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

Returning back to the start of a conditional statement?

Asked by 6 years ago
Edited 6 years ago
while true do
    if game.Workspace.Folder:FindFirstChild() then
        game.Workspace.Folder:FindFirstChild():Destroy()
        -- How can I go back to line 2 at this point?
    else
        game.Workspace.Folder:Destroy()
    end
end
0
You'd have to fire the code again, such as via a function. if condition then --code else func() end :/ TheeDeathCaster 2368 — 6y

Answer this question