generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Unknown crashing?

Previous Thread :: Next Thread 
koolboy27 is not online. 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 is not online. magnalite
Joined: 18 Oct 2009
Total Posts: 2467
15 Jun 2013 06:16 PM
game.Players.NumPlayers

..Nope.
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
15 Jun 2013 06:16 PM
@Mag,

"Nope"?
Report Abuse
koolboy27 is not online. koolboy27
Joined: 23 Aug 2009
Total Posts: 934
15 Jun 2013 06:17 PM
Ummm...?
Report Abuse
magnalite is not online. magnalite
Joined: 18 Oct 2009
Total Posts: 2467
15 Jun 2013 06:17 PM
game.Players.NumPlayers

What is this?
Report Abuse
magnalite is not online. magnalite
Joined: 18 Oct 2009
Total Posts: 2467
15 Jun 2013 06:18 PM
Woah total derp sorry bout that.
Report Abuse
1WOOF1 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image