Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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?)

4 comments

0

Didn't work.

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)

1

Actually, Guest = 1 and Leader = 255.

0

Sorry

This discussion is preserved as it was. New answers, comments, and votes are closed.