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:

01game.Players.PlayerAdded:connect(function(player)
02    player.CharacterAdded:connect(function()
03        player.Character.ChildAdded:connect(function(newChild)
04            if newChild.ClassName == "CharacterMesh" then
05                wait(1)
06                newChild:Destroy()
07            end
08        end)
09    end)
10end)

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