Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Would this be a localscript, or script?

Asked by 11 years ago

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

Would this be in a Local, or regular script?

1if char:FindFIrstChild("Shirt") then
2    char.Shirt:Destroy()
3end
4if char:FindFIrstChild("Pants") then
5    char.Pants:Destroy()
6end

1 answer

Log in to vote
1
Answered by
Freemium 110
11 years ago

In a script, use PlayerAdded and CharacterAdded.

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

[Edit]

01game.Players.PlayerAdded:connect(function(player)
02    player.CharacterAdded:connect(function(char)
03        if char:FindFirstChild("Shirt") then
04                char.Shirt:Destroy()
05        end
06        if char:FindFirstChild("Pants") then
07                char.Pants:Destroy()
08        end
09end)
10end)
0
Where to place ;3? Cataclyzmic 93 — 11y
0
Please see my edit. :) Freemium 110 — 11y
Ad

Answer this question