Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I loop this script?

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 comment

1

Put while true do end between the Intermission and Start_Game calls.

1 answer

✓ Accepted answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.