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

How to remove packages from Players? [r15]

Asked by
soutpansa 120
6 years ago

Does anyone know how to remove packages from players using r15? I have a script that changes the player's size and they can sort of "fly" while using certain package parts, and it's very annoying. I've seen games like Dragon ball Final stand remove packages from players and I'd really love to know how.

Thanks for reading

1 answer

Log in to vote
0
Answered by 6 years ago

Loop through everything inside the character and check if it's a CharacterMesh, if so then remove it. Here's the script:

wait(0.2) --Waiting for everything to load...
for _,v in ipairs(script.Parent:GetChildren()) do
if v.ClassName == 'CharacterMesh' then
v:remove()
end
end

Place this in StarterCharacterScripts inside StarterPlayer for it to work.

0
Thanks for the help but, i need to know how to do it for r15. Character meshes dont exist for r15, so that method will not work soutpansa 120 — 6y
0
Yeouch.. brokenVectors 525 — 6y
Ad

Answer this question