Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why wont this script, for group rank only teams work??

Asked by 10 years ago
adminTeam = game.Teams:findFirstChild("Engraved Voids") 

function onEntered(newPlayer) 
if newPlayer:IsInGroup(1086850) and newPlayer.GetRankID <= 3 then
newPlayer.TeamColor = adminTeam.TeamColor 
end 
end

I don't know what's wrong with this script, could somebody fix it please?

1 answer

Log in to vote
0
Answered by 10 years ago
game.Players.PlayerAdded:connect(function(player)
    if player:GetRankInGroup(1086850) >= # then -- put number where # is
        player.TeamColor = BrickColor.new("teamcolorhere") -- or you could do what you did in           your script, although I prefer this method
    end
end)

that might work, I'm not sure how GetRankID would work (or if it exists?)

0
Didn't work. Wrongmistake 0 — 10y
0
Did you replace # with the number of the rank (Make sure to not just do "2" for the second rank but actually find the ranks of your group. eg. Leader = 1, Guest = 255) crackabottle123 110 — 10y
1
Actually, Guest = 1 and Leader = 255. Articulating 1335 — 10y
0
Sorry crackabottle123 110 — 10y
Ad

Answer this question