JustScary
|
  |
| Joined: 03 Sep 2015 |
| Total Posts: 1765 |
|
|
| 18 Jan 2016 06:21 PM |
So, in my game players are teleported to an arena to fight with swords.
But I'm lacking something pretty big.
When everyone dies, the game keeps playing for the rest of the time.
So how do you make it that if only 1 person is alive, or 0 people are alive, then the game breaks the script?
while true do break end
^ like that break only with the if, then statement to make it so that if one or 0 people are alive, it breaks?
Thanks for helping |
|
|
| Report Abuse |
|
|
xlaser23
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 20341 |
|
|
| 18 Jan 2016 06:23 PM |
loop if players <= 1 then
http://www.roblox.com/xla-item?id=290739801http://www.roblox.com/aser-item?id=290739819http://www.roblox.com/23-item?id=290739831 R$216 Tx387 (づ ゚ ³ ゚)づ |
|
|
| Report Abuse |
|
|
JustScary
|
  |
| Joined: 03 Sep 2015 |
| Total Posts: 1765 |
|
|
| 18 Jan 2016 06:26 PM |
| ^ eh... Idk if that'd work |
|
|
| Report Abuse |
|
|
|
| 18 Jan 2016 06:27 PM |
repeat wait() until #players == 1 or #players == 0
i make u math.sqrt() |
|
|
| Report Abuse |
|
|