hello, im trying to make everything in a group invisble but their Right Arm, Left Arm and Torso, how would i do that?
You could loop through all the groups’ children and filter out those names. Something like:
for _, v in pairs (script.Parent:GetChildren()) do if v:IsA("BasePart") then--as anything else won't have Transparency property if (v.Name ~= "Right Arm" and v.Name ~= "Left Arm" and v.Name ~= "Torso") then v.Transparency = 1 end end end
If this script was parented to the R6 model you’re talking about.
i need a bit more help, hair and stuff on the face still show and ima need them to disappear
nvm i got it figured out, thanks for the help
local players = game:GetService("Players") local function onPlayerAdded(player) local function onCharacterLoaded(character) task.wait(players.RespawnTime) local humanoid = character:WaitForChild("Humanoid") humanoid:RemoveAccessories() for _, child in ipairs(character:GetChildren()) do if child:IsA("BasePart") then if not (child.Name:match("Arm$") or child.Name:match("Hand$") or child.Name:match("Torso$")) then print(child.Name) if child.Name == "Head" then local face = child:FindFirstChild("face") if face then face:Destroy() end end child.Transparency = 1 end end end end player.CharacterAppearanceLoaded:Connect(onCharacterLoaded) end players.PlayerAdded:Connect(onPlayerAdded)
This is compatible with both R6 and R15 avatar types, it’ll make the face, accessories and all of the player’s character’s joints but the arms & torso disappear.