I fixed it myself. Here is the fixed script:
1 | game.Players.PlayerAdded:connect( function (plr) |
2 | if game.Players.NumPlayers > = 2 then |
3 | msg = Instance.new( "Hint" , game.Workspace) |
4 | msg.Text = "Game Start!" |
5 | else |
6 | msg = Instance.new( "Hint" , game.Workspace) |
7 | msg.Text = "2 players needed to start." |
8 | end |
9 | end ) |
>=
Means greater than or equal to. If the number of players is greater than or equal to one (which it is), then it will still return true. Replace 1 with 2 on line 2 and it should work.
1 | game.Players.PlayerAdded:connect( function (plr) |
2 | if game.Players.NumPlayers > = 2 then |
3 | msg = Instance.new( "Hint" , game.Workspace) |
4 | msg.Text = "Game Start!" |
5 | else |
6 | msg = Instance.new( "Hint" , game.Workspace) |
7 | msg.Text = "2 players needed to start." |
8 | end |
9 | end ) |
Please accept this answer if I helped! :D