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 10 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?

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

1 answer

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

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)
0
Where to place ;3? Cataclyzmic 93 — 10y
0
Please see my edit. :) Freemium 110 — 10y
Ad

Answer this question