|
| 09 Apr 2012 10:08 AM |
Lets just say my script was just one function. Function game() for example. How would you make it reset when everyone dies? Would you have to create a table or something? -If cheesecaik were real, id be fake- |
|
|
| Report Abuse |
|
|
Quovis
|
  |
| Joined: 24 Mar 2012 |
| Total Posts: 494 |
|
|
| 09 Apr 2012 10:09 AM |
| I'm kinda confused on what you're saying, do you mean like so the function can run again. |
|
|
| Report Abuse |
|
|
| |
|
|
| 09 Apr 2012 10:12 AM |
I meant to say: Yh but when everyone dies. |
|
|
| Report Abuse |
|
|
NeonBlox
|
  |
| Joined: 19 Oct 2008 |
| Total Posts: 1462 |
|
|
| 09 Apr 2012 10:18 AM |
game = function() plrs = game.Players:GetPlayers() --stuff repeat wait() until #plrs <= 0 end
while wait() do game() end
That will get you started. However, for mine to work you would need a died event that removes them from the plrs table on death. |
|
|
| Report Abuse |
|
|
| |
|