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: How to make a team limit?

Previous Thread :: Next Thread 
skinny02 is not online. skinny02
Joined: 07 Apr 2013
Total Posts: 50
23 Apr 2013 05:56 PM
I have 3 teams, I want the limit to be 5 per team, how would I do this?
Report Abuse
yomamadude6 is not online. yomamadude6
Joined: 21 Nov 2009
Total Posts: 2151
23 Apr 2013 06:05 PM
set max players to 15?
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
23 Apr 2013 06:07 PM
But still, maybe 14 people go to the 1st team and 1 other goes to another.

You need to add a value in the team switcher, and if the value is true then the script works

you need to rapidly get children of players and check their team, add to a table of like

blue = {}
red = {}
yellow = {}

table.insert(blue, blueppl)
table.insert(red, redppl)
table.insert(yellow, ylwppl)

hopefully you see where i'm going with this
Report Abuse
skinny02 is not online. skinny02
Joined: 07 Apr 2013
Total Posts: 50
23 Apr 2013 07:11 PM
not really, lol. I'm trying to make a GUI so you can pick teams.
Report Abuse
ForceSky is not online. ForceSky
Joined: 30 Jul 2012
Total Posts: 2379
23 Apr 2013 07:14 PM
Seriously, just use a table of all people in the team. I think do something like this:

if #TEAM == 5 then
Report Abuse
skinny02 is not online. skinny02
Joined: 07 Apr 2013
Total Posts: 50
23 Apr 2013 07:48 PM
blue = {}
red = {}
yellow = {}

table.insert(blue, blueppl)
table.insert(red, redppl)
table.insert(yellow, ylwppl)

is there anything I need to add or do I just slap it into a script?
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
23 Apr 2013 07:49 PM
....
Learn to script please
Report Abuse
skinny02 is not online. skinny02
Joined: 07 Apr 2013
Total Posts: 50
23 Apr 2013 07:51 PM
it's too hard.
Report Abuse
skinny02 is not online. skinny02
Joined: 07 Apr 2013
Total Posts: 50
23 Apr 2013 07:51 PM
also everything i try i forget everything the next day.
Report Abuse
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
23 Apr 2013 08:01 PM
If that's happening, you're probably just skimming information and not trying to take your time and absorb the stuff. .-.

Please try. It's not even that hard. Just take your time and learn the basic things first.
Report Abuse
skinny02 is not online. skinny02
Joined: 07 Apr 2013
Total Posts: 50
23 Apr 2013 08:04 PM
It's embarrasing enough that I'm in 9th grade and I can't even cope with a programming language designed for kids to use easily. I read it thourougly and yet I forget how to do it within a few hours.
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