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: Team member limit

Previous Thread :: Next Thread 
wargod221 is not online. wargod221
Joined: 09 May 2010
Total Posts: 190
03 Feb 2014 09:06 PM
How would I apply a member cap/limit to a certain team.
Report Abuse
dodleman is not online. dodleman
Joined: 22 Dec 2007
Total Posts: 1118
03 Feb 2014 09:07 PM
amnt = 0
maxamnt = whateverIntegerYouWantBaby:)
team = game:GetService("Teams").TeamNameHere

for i,v in pairs(game.Players:GetPlayers()) do
if amnt ~= maxamnt then
v.TeamColor = team.TeamColor
amnt = amnt + 1
wait()
end
end

Adjust that.
Report Abuse
wargod221 is not online. wargod221
Joined: 09 May 2010
Total Posts: 190
03 Feb 2014 09:09 PM
Thanks for the help :)
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