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 pants
local CharacterPants = Character:findFirstChild("Pants")
if CharacterPants then CharacterPants:Destroy() end
Pants:Clone().Parent = Character
-- Get new pants
local CharacterShirt = Character:findFirstChild("Shirt")
if CharacterShirt then CharacterShirt:Destroy() end
Shirt:Clone().Parent = Character
end)
How would i make this script work only if i own a certain game pass?

3 comments
Doesn't help...
Yes it does..
Anyways this might not help him, he will be need MarketPlaceServer instead. Since he already has the gamepass (I assume).)