Whipitz
|
  |
| Joined: 10 Oct 2008 |
| Total Posts: 1364 |
|
|
| 10 Mar 2014 04:52 PM |
(loops) it waits until there is less than 2 people in the server, then it changes the remaining person's team to Lime Green. help please?
while true do if game.NumPlayers < 2 then xyz |
|
|
| Report Abuse |
|
|
|
| 10 Mar 2014 04:53 PM |
Players = game.Players:GetChildren()
repeat wait() until #Players >= 2 |
|
|
| Report Abuse |
|
|
Whipitz
|
  |
| Joined: 10 Oct 2008 |
| Total Posts: 1364 |
|
| |
|
Whipitz
|
  |
| Joined: 10 Oct 2008 |
| Total Posts: 1364 |
|
| |
|
|
| 10 Mar 2014 05:45 PM |
http://wiki.roblox.com/index.php?title=Repeat#The_.27repeat.27_Statement -- http://wiki.roblox.com/index.php?title=RBX.lua.Players_(Object) ---http://wiki.roblox.com/index.php?title=NumPlayers_(Property) http://wiki.roblox.com/index.php?title=Generic_for#Standard_Library_Iterators ------
Code:
repeat wait() until game.Players.NumPlayers < 2 players = game.Players:GetPlayers() for i=1, #players do players[i].TeamColor = BrickColor.new("Lime green") end |
|
|
| Report Abuse |
|
|