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

How to create an only rank uniform? [closed]

Asked by 3 years ago

Hi, Can someone help? I tryied to script an only rank uniform Script, but it doesn't work.

Closed as Not Constructive by shadowstorm440 and imKirda

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 3 years ago

Would work something like this in a server script.

local RankId == 254 --rank id 0-255 check group configure or use https://api.roblox.com/groups/{groupIdhere}

game.Players.PlayerAdded:Connect(function(player)
    plr.CharacterAdded:Connect(function(char)
        if plr:GetRankInGroup({GROUP_ID}) == RankId then
            local Humanoid = character:WaitForChild("Humanoid")
            local HumDesc = Humanoid:GetAppliedDescription():Clone() 
            HumDesc.Shirt = {ShirtId} 
            HumDesc.Pants = {PantsId} 
            Humanoid:ApplyDescription(HumDesc)
        end
    end)
end)
Ad