|
| 14 Aug 2013 10:04 AM |
adminTeam = game.Teams:findFirstChild("High Class Citizen")
function onEntered(newPlayer) if newPlayer:IsInGroup(929973) then newPlayer.TeamColor = adminTeam.TeamColor end end
game.Players.ChildAdded:connect(onEntered)
so that it has a rank value, and will get a rank of a certain player in the group, but all I've gotten is a big red line;
adminTeam = game.Teams:findFirstChild("RANK")
function onEntered(newPlayer) if newPlayer:IsInGroup(126145) and newPlayer.GetRankID =< 25 then newPlayer.TeamColor = adminTeam.TeamColor end end
game.Players.ChildAdded:connect(onEntered) |
|
|
| Report Abuse |
|
|
Desperian
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 3371 |
|
| |
|
|
| 14 Aug 2013 10:11 AM |
| I've literally stared at this for 20 minutes... >:l |
|
|
| Report Abuse |
|
|
Desperian
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 3371 |
|
|
| 14 Aug 2013 10:19 AM |
| Also, the method you're looking for is also ":GetRankInGroup()' since 'GetRankID' isn't a valid property of a player. Sorry, I didn't notice that on the first skim, merely the issue with the '<=' |
|
|
| Report Abuse |
|
|