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

How do I loop this script?

Asked by
Relatch 550 Moderation Voter
9 years ago
function Intermission()
    for test1 = 10, 0, -1 do
        test2 = Instance.new("Hint", Workspace)
        test2.Text = "Intermission (" ..test1.. ")"
        wait(1)
        game.Workspace.Message:remove()
    end
end

function Start_Game()
    if #game.Players:GetChildren() >= 2 then
        h = Instance.new("Hint", Workspace)
        h.Text = "Hello, and welcome to MrSmenryBackups' Tournament!"
        wait(5)
        game.Workspace.Message:remove()
    else
        h = Instance.new("Hint", Workspace)
        h.Text = "There must be 2 or more players to start!"
        wait(5)
        game.Workspace.Message:remove()
    end
end

Intermission()
Start_Game()

Whenever the message is removed, I want the script to loop starting at the intermission. I tried the while true do loop and that didn't work. How would I do this?

1
Put while true do end between the Intermission and Start_Game calls. M39a9am3R 3210 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

Well... You made a "game.Workspace.Message:Destroy()" even though you made a hint... So I think if you added while true after that it should work.

Ad

Answer this question