Bubu2319
|
  |
| Joined: 06 Aug 2011 |
| Total Posts: 1006 |
|
|
| 26 Sep 2014 11:38 AM |
while true do wait(0.2) if game.Players.NumPlayers == 1 then script.Parent.Text = "There is " ..game.Players.NumPlayers.. " player online 2 more needed to play" else if game.Players.NumPlayers == 2 then script.Parent.Text = "There are " ..game.Players.NumPlayers.. " players online 1 more needed to play" else (I NEED TO DELETE THE GUI IF THERE IS 3 PLAYERS AND BRING IT BACK IF A PLAYER LEAVES AND THERE ISNT MORE THAN 3) end end end |
|
|
| Report Abuse |
|
|
Bobobob12
|
  |
| Joined: 23 Jan 2008 |
| Total Posts: 5350 |
|
|
| 26 Sep 2014 11:44 AM |
game.Players.PlayerAdded:connect(function() if game.Players.NumPlayers > 2 then script.Parent.Visible = false; end; end);
game.Players.PlayerRemoving:connect(function() if game.Players.NumPlayers <= 2 then script.Parent.Visible = true; script.Parent.Text = "There are " .. game.Players.NumPlayers .. " players online. " .. 3 - game.Players.NumPlayers .. " more needed to play!"; end; end); |
|
|
| Report Abuse |
|
|
Bubu2319
|
  |
| Joined: 06 Aug 2011 |
| Total Posts: 1006 |
|
| |
|