hello I wanted to know how I can leave my auto morph by rank in team for example if the player is from a team and in the group he has a high rank he will have the morph of his rank on the team someone please could help me I already tried but in my code like it always detects only one typeo i did it all then when the player of another rank joins the team he gets the morph of the rank that has nothing to do with him
this my script :^
if Player:GetRankInGroup(7040318) == 255 then if Player.TeamColor == BrickColor.new("Earth green")then Body(1,1,1,Character) MorphUser(Player,"OGER","Rank","DoomComander","Morph") Finale(Character) Finale1(Character) elseif Player:GetRankInGroup(7040318) == 10 then if Player.TeamColor == BrickColor.new("Earth green") then Body(1,1,1,Character) MorphUser(Player,"OGER","Rank","Officer","Morph") Finale(Character) Finale1(Character) end end end
I am guessing you are trying to give people that have the Rank ID 10 or higher a specific morph.
for that we can use Relational operators
Simply change
elseif Player:GetRankInGroup(7040318) == 10 then
to
elseif Player:GetRankInGroup(7040318) >= 10 then -- ">=" means "Greater than or equal to" which means anyone with the Rank ID 10 or higher will recieve a specific morph.