Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Would this be a localscript, or script?

I'm making it where characters all look the same when in a lobby.

Would this be in a Local, or regular script?

if char:FindFIrstChild("Shirt") then
    char.Shirt:Destroy()
end
if char:FindFIrstChild("Pants") then
    char.Pants:Destroy()
end

1 answer

✓ Accepted answer

In a script, use PlayerAdded and CharacterAdded.

If you need help on where to place those two things, just comment! :)

[Edit]

game.Players.PlayerAdded:connect(function(player)
	player.CharacterAdded:connect(function(char)
		if char:FindFirstChild("Shirt") then
    			char.Shirt:Destroy()
		end
		if char:FindFirstChild("Pants") then
    			char.Pants:Destroy()
		end
end)
end)

2 comments

0

Where to place ;3?

0

Please see my edit. :)

This discussion is preserved as it was. New answers, comments, and votes are closed.