while true do
wait(.5)
local player = game.Players.LocalPlayer.Character
if player then
local oldpants = player.Pants
local oldshirt = player.Shirt
if oldpants then
player.Pants:Destroy()
end
if oldshirt then
player.Shirt:Destroy()
end
end
end
I need this script to destroy a shirt and pants if a player is wearing them. However, if the player isn't wearing a shirt or pants already, the script breaks. How do I fix it to not break like that?
