|
| 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 |
|
|
| |
|
| |
|
|
| 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 |
|
|
|
| 31 May 2014 09:24 AM |
| Also remember to replace RANKNUMBEROFMINIMUMRANK to the rank number. The owner's rank is 255 |
|
|
| Report Abuse |
|
|