Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Removing a Body Package via script?

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

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

1 comment

0

I'm pretty sure I cannot do that for R15 body packages.

This discussion is preserved as it was. New answers, comments, and votes are closed.