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

can someone help me and tell me how to fix the auto morph?

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

1 answer

✓ Accepted answer

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.

1 comment

0

man I already did but what I want to do is that it detects the person's team and the person's rank in the group then the person gets another morph.

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