I'm trying to make a game where once the player joins, they look like a noob but if the player isn't wearing any clothing, the script doesn't work. Any help?
This is the script
game.Players.PlayerAdded:Connect(function(player)
if player.Character.Shirt == nil then
print("There is no need to delete the shirt")
else
player.Character.Shirt:Destroy()
end
player.Character:WaitForChild("Pants")
if player.Character.Pants == nil then
print("There is no need to delete the pants")
else
player.Character.Pants:Destroy()
end
end)

1 comment
16:49:32.011 - Infinite yield possible on 'DaBrainlessOne:WaitForChild("Shirt")'