local Pants = script.Pants
local Shirt = script.Shirt
local GroupID = 6763603 -- Group id here
script.Parent.ClickDetector.MouseClick:connect(function(Player)
if not Player:IsInGroup(GroupID) then return end
if Player:GetRoleInGroup(GroupID) < 50 then return end
local Character = Player.Character
if Character == nil then return end
-- Get new shirt
local CharacterShirt = Character:findFirstChild("Shirt")
if CharacterShirt then CharacterShirt:Destroy() end
Shirt:Clone().Parent = Character
-- Get new pants
local CharacterPants = Character:findFirstChild("Pants")
if CharacterPants then CharacterPants:Destroy() end
Pants:Clone().Parent = Character
end)
In the output it say's "Workspace.Part.Script:8: attempt to compare string and number"

2 comments
Thank's alot this solved my problem, but any clue how to add more than role id?
If you could help that would be nice :)