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

Get rid of Packages?

Asked by
Hero_ic 502 Moderation Voter
9 years ago

what I'm trying to do Is make it so the player's package is removed when entered is this possible? (not a request)

1 answer

Log in to vote
1
Answered by 9 years ago

You'd have to search if the player has CharacterMeshs, and I'll show how:

game.Players.PlayerAdded:connect(function(player)
    player.CharacterAdded:connect(function()
        player.Character.ChildAdded:connect(function(newChild)
            if newChild.ClassName == "CharacterMesh" then
                wait(1)
                newChild:Destroy()
            end 
        end)
    end)
end)

This will remove the meshes, when character spawns.

2
The CharacterAdded event has a character parameter which you could reference instead of player.Character. Also, you forgot the closing parenthesis for the last three ends, so the script will not work Spongocardo 1991 — 9y
Ad

Answer this question