|
| 17 Nov 2012 09:26 PM |
I know how to check if a player is in a group, but I dunno how to check if they're a certain rank, so...
Tactical Rainboom Inbound |
|
|
| Report Abuse |
|
|
|
| 17 Nov 2012 09:27 PM |
| player:GetRankInGroup ( groop ) -- Returns an int that is 1 - 255, the player's rank |
|
|
| Report Abuse |
|
|
|
| 17 Nov 2012 09:32 PM |
Or :GetRoleInGroup(Int), which returns a string with the player's rank in the group.
¤¤ †KMXD† ¤¤ |
|
|
| Report Abuse |
|
|
| |
|
|
| 17 Nov 2012 09:37 PM |
What's wrong with this? It's hard for me to make it without a full example, so I'm pretty sure this is some HUGE fail:
game.Players.PlayerAdded:connect(function(player) a = player:GetRankInGroup(708612) if a == 255 or a == 254 then player.TeamColor = BrickColor.new("Bright red") end end)
Tactical Rainboom Inbound |
|
|
| Report Abuse |
|
|
|
| 17 Nov 2012 09:39 PM |
Nevermind, the script worked. When I went into the game, I didn't even check which team I was on... -_-
Tactical Rainboom Inbound |
|
|
| Report Abuse |
|
|
|
| 17 Nov 2012 09:42 PM |
game.Players.PlayerAdded:connect ( function ( player ) if player:GetRankInGroup ( 708612 ) >= 254 then player.TeamColor = BrickColor.new ( "Bright red" ) end end )
Chop code. AKA CC |
|
|
| Report Abuse |
|
|