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

How do i edit this to delete everything within the player's char, but not his parts?

Asked by 6 years ago

i have a script that is supposed to clear the chars appearance (because :ClearCharactersAppearance() does actually work). The for loop looks like this:

local limbs = {"LeftFoot","LeftHand","LeftLowerArm", "LeftLowerLeg"
,"LeftUpperArm","LeftUpperLeg","LowerTorso","RightFoot","RightHand"
,"RightLowerArm","RightLowerLeg","RightUpperArm","RightUpperLeg"
,"UpperTorso","Humanoid","Head","HumanoidRootPart"}


for limbs,v in pairs(table)do
    if i == name and v ~= value then 
        object:Destroy() 
    end
end

my friend sent me this, but i have no idea how to modify it to delete everything but whats in the table. Please help

Answer this question