for test1 = 10, 0, -1 do test2 = Instance.new("Hint", Workspace) test2.Text = "Intermission (" ..test1.. ")" wait(1) game.Workspace.Message:remove() end if #game.Players:GetChildren() > 2 then h = Instance.new("Hint", Workspace) h.Text = "Hello, and welcome to MrSmenryBackups' Tournament!" end if #game.Players:GetChildren() > 0 then h = Instance.new("Hint", Workspace) h.Text = "There must be 2 or more players to start!" end
I don't get any errors, but when 2 people are there, it still says "There must be 2 or more players to start!"
Line 13 you put:
if #game.Players:GetChildren() > 0 then
That means whenever a player is in a game it will always display "There must be 2 or more players"
To solve this you must use "Else"
Try this:
for test1 = 10, 0, -1 do test2 = Instance.new("Hint", Workspace) test2.Text = "Intermission (" ..test1.. ")" wait(1) game.Workspace.Message:remove() end if #game.Players:GetChildren() > 2 then h = Instance.new("Hint", Workspace) h.Text = "Hello, and welcome to MrSmenryBackups' Tournament!" else h = Instance.new("Hint", Workspace) h.Text = "There must be 2 or more players to start!" end