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

How do I make a characters body parts invisible but not all?

I am trying to make a body invisible except the lowertorso and the legs. I tried using StarterCharacter as a method but right now I need it custom for any character. Help?

2 comments

0

Have you tried setting the transparency to 1 while looping through the character

0

Except the part name is LowerTorso, RightLeg and Leftleg (R6)

1 answer

Loop through each Part, and check if they are named after the LowerTorso or legs

for i,v in pairs(character:GetChildren()) do
	if v:IsA("BasePart") then
		if v.Name ~= "LowerTorso" and not string.match(v.Name, "Leg") and not string.match(v.Name, "Foot") then
			v.Transparency = 1
		end
	end
end

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