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
 

Re: Make a script not run until x players are in server?

Previous Thread :: Next Thread 
Whipitz is not online. Whipitz
Joined: 10 Oct 2008
Total Posts: 1364
22 Feb 2014 10:55 AM
I need to make it so that my game script only runs when there are a certain amount of people in the game. (>1)
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
22 Feb 2014 10:57 AM
game.Players.NumPlayers

do something with that

#nerdsunited
Report Abuse
Mathfreak231 is not online. Mathfreak231
Joined: 21 Jun 2010
Total Posts: 5311
22 Feb 2014 10:57 AM
incorporate the boolean game.Players.NumPlayers > 1

~This sig is false~
Report Abuse
Whipitz is not online. Whipitz
Joined: 10 Oct 2008
Total Posts: 1364
22 Feb 2014 11:05 AM
so would it be like

while true do
if game.Players.NumPlayers > 1 then
--code
else return


???
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
22 Feb 2014 11:11 AM
with a bit of ironing out yes.

#nerdsunited
Report Abuse
Whipitz is not online. Whipitz
Joined: 10 Oct 2008
Total Posts: 1364
22 Feb 2014 11:14 AM
somebody want to help me test it?
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