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

How would I remove parts from a player without killing them?

Asked by 6 years ago

How can I remove every part of a player (except head) without killing them?

0
Do you want the player to be invisible, or lose their arms + legs? Removing the torso, head, or root part would kill them, however you may make them invisible iamnoamesa 674 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

You can't really delete a player's torso without killing them.

This one will fake "remove" the body part. For example,

local Player = game.Players.LocalPlayer
local Character = Player.Character
for i, v in pairs(Character:GetChildren()) do
    if v:IsA("BasePart") and v.Name ~= "Head" then
        v.CanCollide = false --Makes part unable to be touched/collided with (makes it "walk through")
        v.Transparency = 1 --Makes body part invisible.
        v.Changed:connect(function()
            v.CanCollide = false
            v.Transparency = 1
        end)
    end
end
Ad

Answer this question