UncleTaz
|
  |
| Joined: 19 Aug 2009 |
| Total Posts: 12795 |
|
|
| 19 Jul 2014 02:55 AM |
wait(7)
for i,v in pairs(game:GetService("Players"):GetChildren()) do if #v < 3 then script.Parent.Text = "Waiting for more people to enter the game" elseif #v >= 3 then --running game script.Parent.Text = "Starting game..." end end |
|
|
| Report Abuse |
|
|
UncleTaz
|
  |
| Joined: 19 Aug 2009 |
| Total Posts: 12795 |
|
|
| 19 Jul 2014 02:58 AM |
| Nvm "NumPlayer" is a property -_-' |
|
|
| Report Abuse |
|
|
UncleTaz
|
  |
| Joined: 19 Aug 2009 |
| Total Posts: 12795 |
|
|
| 19 Jul 2014 03:00 AM |
Got it;
if game.Players.NumPlayers < 3 then script.Parent.Text = "Waiting for more people to enter the game" elseif game.Players.NumPlayers >= 3 then --running game script.Parent.Text = "Starting game..." end |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2014 04:51 AM |
you know there is a shorter way
script.Parent.Text = "Waiting for more people to enter the game" repeat wait() until game.Players.NumPlayers >= 3 script.Parent.Text = "Starting game..."
-Was Here |
|
|
| Report Abuse |
|
|