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

Error for my simple script?

h = Instance.new("Hint", game.Workspace)

while true do
	if game.Players.NumPlayers > 1 then
		h.Text = "Welcome to MrSmeny and MrSmenryBackup's Sword Fighting Tournament!"
	    wait(3)
	    h.Text = "The rules are simple, sword fight other people in duels and win!"
	    wait(3)
	    h.Text = "Please wait, loading map and deciding players."
        wait(3)
        h.Text = "This game is in beta, come back later."
	else
        h.Text = "There must be 2 or more players to start. Invite some friends."
    end
end

ERROR:

Game script timout; Line 4

Any help?

1 comment

0

I see no error on line 4.

1 answer

✓ Accepted answer

I suggest adding a wait at the beginning of the loop.

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