Hello, This is my first post. I am asking for help if its possible to make some body parts invisible. I am working on a game where only the legs and lowertorso are only invisible. But then I tried using StarterCharacter as a solution for now. How do I make it work with your own outfits?
Welcome to the DevForum. I suggest trying problems first before asking about them through the forum and supplying code regarding your attempt.
This can be accomplished pretty simply: a table of names of parts you don’t want hidden and the use of GetDescendants to get a list of all descendants of the character. You can then hide player parts that way.
local NO_HIDE = {
"LowerTorso",
"RightUpperLeg", "RightLowerLeg", "RightFoot",
"LeftUpperLeg", "LeftLowerLeg", "LeftFoot"
}
for _, part in ipairs(character:GetDescendants()) do
if part:IsA("BasePart") and not table.find(NO_HIDE, part.Name) then
part.Transparency = 1
end
end
5 Likes
Thank you so much! This will really help me for my game