|
| 06 Jan 2014 08:22 PM |
--parent is the workspace --dont complain about the inefficiency *cough* cntkillme
ir = game.Teams:findFirstChild("Imperial Reign") raid = game.Teams:findFirstChld("Raiders") ally = game.Teams:findFirstChild("Ally") emperor = game.Teams:findFirstChild("Imperator")
local allies = {790290,430660,896368,965014}
function playerAdded(p) if p:IsInGroup(990194) then p.TeamColor = ir.TeamColor else p.TeamColor = raid.TeamColor end if p:GetRankInGroup(990194) == 255 then p.TeamColor = emperor.TeamColor end for i=1,#allies do if p:GetRankInGroup(990194) == 0 and p:IsInGroup(allies[i]) then p.TeamColor = ally.TeamColor end end end
game.Players.PlayerAdded:connect(playerAdded) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 06 Jan 2014 08:49 PM |
if p:GetRankInGroup(990194) == 0 and p:IsInGroup(allies[i]) then
I sense something wrong with using this number twice.
~If you do that, I'll take out my stick and poke you |
|
|
| Report Abuse |
|
|
| |
|