So this script copies a player's clothes to storage. It only works if they have both shirt and pants on. If they have no shirt or pants, it would return a nil. I even added a return end on line 3 and 9.
...
local shirt = character:FindFirstChild("Shirt"):Clone()
if shirt == nil then
return
end
shirt.Parent = game.ReplicatedStorage.PlayerClothing
shirt.Name = player.Name .. "'s Shirt"
local pants = character:FindFirstChild("Pants"):Clone()
if pants == nil then
return
end
pants.Parent = game.ReplicatedStorage.PlayerClothing
pants.Name = player.Name .. "'s Pants"
Please help?

2 comments
You forgot an end on line 7. lol
My mistake, I'll edit it.