koolboy27
|
  |
| Joined: 23 Aug 2009 |
| Total Posts: 934 |
|
|
| 15 Jun 2013 06:14 PM |
When I try to test my game it always crashes. I'm assuming it's the loop that continually runs the game:
while game.Players.NumPlayers > 1 do startGame() wait(3) end
startGame() is the function that runs the game. I'm pretty sure this part is working correctly. If you know why this is happening or have any suggestions please post it here! Thanks! |
|
|
| Report Abuse |
|
|
magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
|
| 15 Jun 2013 06:16 PM |
game.Players.NumPlayers
..Nope. |
|
|
| Report Abuse |
|
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
koolboy27
|
  |
| Joined: 23 Aug 2009 |
| Total Posts: 934 |
|
| |
|
magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
|
| 15 Jun 2013 06:17 PM |
game.Players.NumPlayers
What is this? |
|
|
| Report Abuse |
|
|
magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
|
| 15 Jun 2013 06:18 PM |
| Woah total derp sorry bout that. |
|
|
| Report Abuse |
|
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
|
| 15 Jun 2013 06:18 PM |
@Mag,
http://wiki.roblox.com/index.php/NumPlayers http://wiki.roblox.com/index.php/Players |
|
|
| Report Abuse |
|
|
koolboy27
|
  |
| Joined: 23 Aug 2009 |
| Total Posts: 934 |
|
|
| 15 Jun 2013 06:19 PM |
| NumPlayers is the number of players in the server... when it is greater than 1 (or has 2 or more) then it runs. Did I use it incorrectly? |
|
|
| Report Abuse |
|
|
koolboy27
|
  |
| Joined: 23 Aug 2009 |
| Total Posts: 934 |
|
|
| 15 Jun 2013 06:19 PM |
| So any reason why it's crashing in the loop? |
|
|
| Report Abuse |
|
|
magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
|
| 15 Jun 2013 06:20 PM |
There is nothing wrong with what you posted.
(I confused myself and though NumPlayers wasn't a thing :/ ) |
|
|
| Report Abuse |
|
|
koolboy27
|
  |
| Joined: 23 Aug 2009 |
| Total Posts: 934 |
|
|
| 15 Jun 2013 06:20 PM |
| Hmm I wonder why it is crashing then. I will look at it some more and post if I find anything. |
|
|
| Report Abuse |
|
|