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

Removing a Body Package via script?

Asked by
RoyMer 301 Moderation Voter
6 years ago

I was wondering if there is an easy way to remove the package to get the block body package?

Would I need to save the meshes and put them manually in the parts of the body or perhaps an id exists to 'unequip' the body package?

1 answer

Log in to vote
-1
Answered by
D3LTA_Y 72
6 years ago

You can just detect the Body package using the ClassName propertie, with a "if" condition and a "for" loop, with "in ipairs" to get the table from character's children in workspace.


local CharParts = game.Players.LocalPlayer.Character:GetChildren(); -- Table char; for i, v in ipairs(CharParts) do if v.ClassName == then -- the class of what you want to remove after "=="; v:Destroy() end end
0
I'm pretty sure I cannot do that for R15 body packages. RoyMer 301 — 6y
Ad

Answer this question