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 » Scripters
Home Search
 

Re: How Do I Make A Players Needed Script?

Previous Thread :: Next Thread 
Virtecc is online. Virtecc
Joined: 13 Mar 2016
Total Posts: 143
20 Nov 2017 07:20 PM
Right now Im making an fps game, and I want to make it so you need at least to players to start a round. Please help.
Report Abuse
Virtecc is online. Virtecc
Joined: 13 Mar 2016
Total Posts: 143
20 Nov 2017 07:24 PM
bump...
Report Abuse
Chrounum is not online. Chrounum
Joined: 04 Apr 2015
Total Posts: 2911
20 Nov 2017 07:47 PM
iterate over all the players, and then check if the #players is > number


#code print("don't forget to dry the towel after use")
Report Abuse
TaaRt is online. TaaRt
Joined: 26 Apr 2009
Total Posts: 5039
20 Nov 2017 07:48 PM
@Chrounum or uhm, use #game.Players:GetPlayers() to begin with
Report Abuse
Chrounum is not online. Chrounum
Joined: 04 Apr 2015
Total Posts: 2911
20 Nov 2017 07:49 PM
or that




#code print("don't forget to dry the towel after use")
Report Abuse
gryphunk2 is online. gryphunk2
Joined: 04 Mar 2013
Total Posts: 10872
20 Nov 2017 07:53 PM
local plrs = game:GetService("Players")
if plrs.NumPlayers >= 5 then
print("YEET")
end


heccled by the master heccler again
Report Abuse
Virtecc is online. Virtecc
Joined: 13 Mar 2016
Total Posts: 143
20 Nov 2017 07:56 PM
What I have scripted:


if game . Players . Num Players >= # then <-- Spaced out because of tags.
game. Workspace . Baseplate: Destroy() <-- Just to see if it works.
end
Report Abuse
Virtecc is online. Virtecc
Joined: 13 Mar 2016
Total Posts: 143
20 Nov 2017 08:01 PM
It does not work......................
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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