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

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

Asked by 2 years ago

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

Log in to vote
0
Answered by
ShaShxa 105
2 years ago

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.
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. NineTailedFox_BR 13 — 2y
Ad

Answer this question