When i click ''E'', it doesn't give the character anything, even the pants and even the shirt, anyone can help me?

Heres the code:

local part = script.Parent local ProximityPrompt = part.ProximityPrompt

local Pants = part.Pants local Shirt = part.Shirt

ProximityPrompt.Triggered:Connect(function(player) local character = player.Character or workspace:FindFirstChild(player.Name)

if character then

        for part in pairs(character:GetChildren())do
            if part("Pants") or part ("Shirt") then

                part:Destroy()
            end
        end


        local NewPants = Pants:Clone()
        local NewShirt = Shirt:Clone()

        NewPants.Parent = character
        NewShirt.Parent = character
end

end)