local Pants = script.Pants
local Shirt = script.Shirt
script.Parent.ClickDetector.MouseClick:connect(function(Player)
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)
I wan't to make it so you can wear a object instead of shirt's and pant's.

2 comments
Thanks, but anyway I can use this in my original script, because I have a click detector setup so when you click it, it give's you whatever. Thanks again
could you mark the answer as correct please