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: Wait for Players

Previous Thread :: Next Thread 
jonman11 is not online. jonman11
Joined: 30 Jan 2010
Total Posts: 3386
31 Jan 2013 04:34 PM
I am in the process of creating a script that is for a games map. How would I make it so that the script only starts when there are a certain number of players, though? Any help appreciated!
Report Abuse
YellowBrick1 is not online. YellowBrick1
Joined: 06 May 2009
Total Posts: 865
31 Jan 2013 04:36 PM
while game.Players.NumPlayers < 4 do
wait()
end
Report Abuse
YellowBrick1 is not online. YellowBrick1
Joined: 06 May 2009
Total Posts: 865
31 Jan 2013 04:37 PM
Change 4 to the number of players that you need to start, and put the rest of the code below.
Report Abuse
jonman11 is not online. jonman11
Joined: 30 Jan 2010
Total Posts: 3386
31 Jan 2013 04:38 PM
Does the script go after the end, or after the first line?
Report Abuse
YellowBrick1 is not online. YellowBrick1
Joined: 06 May 2009
Total Posts: 865
31 Jan 2013 04:39 PM
It goes after the end.
Report Abuse
jonman11 is not online. jonman11
Joined: 30 Jan 2010
Total Posts: 3386
31 Jan 2013 04:39 PM
Thanks!
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