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
 

Auto Team Changer! NEED HELP

Previous Thread :: Next Thread 
LordTainted is not online. LordTainted
Joined: 22 Mar 2011
Total Posts: 1031
31 May 2014 09:15 AM
Alright I want this to work something like this
You join the group but to be on that TEAM you have to be a certain rank like It will be civilian's who can't join, so bottom rank but if higher you can join the team

function onPlayerEntered(plyr)
if plyr:IsInGroup(1110057) then
plyr.TeamColor = BrickColor.new("Bright red")
end
end

game.Players.PlayerAdded:connect(onPlayerEntered)
Report Abuse
LordTainted is not online. LordTainted
Joined: 22 Mar 2011
Total Posts: 1031
31 May 2014 09:17 AM
;C
Report Abuse
LordTainted is not online. LordTainted
Joined: 22 Mar 2011
Total Posts: 1031
31 May 2014 09:18 AM
help? XD
Report Abuse
figgycity50 is not online. figgycity50
Joined: 06 Nov 2013
Total Posts: 110
31 May 2014 09:21 AM
You'll need to use plyr:GetRankInGroup and you'll need to know the rank numbers for each rank. If you own the group you should know, but if not ask the group owner. I assume you own the group as that ID is your group.

Here's how you do it:

if plyr:GetRankInGroup(1110057) >= RANKNUMBEROFMINIMUM RANK then
--do stuff
plyr.TeamColor = BrickColor.new("Bright red")
end
Report Abuse
figgycity50 is not online. figgycity50
Joined: 06 Nov 2013
Total Posts: 110
31 May 2014 09:24 AM
Also remember to replace RANKNUMBEROFMINIMUMRANK to the rank number. The owner's rank is 255
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