So I made this mask script a while back and it transparency’s hair and when you take it off, it untransparencys it, but I have some hair that the handle isn’t supposed to untransparency the handle, only the child of it, which as an example of this bun. So how do I make it skip over bun and else. How would I do this?
local re = script.Parent.RemoveMask re.OnServerEvent:Connect(function(player) local character = player.Character wait(1) local d = character:GetChildren() for i=1, #d do if (d[i].className == "Accessory") and (d[i].Name == "Bun") then d[i].Handle.Transparency = 1 local f = d[i].Handle:GetChildren() for i=1, #f do if f[i].Name == "Prop" then f[i].Transparency = 0 else d[i].Handle.Transparency = 0 local f = d[i].Handle:GetChildren() for i=1, #f do if f[i].Name == "Prop" then f[i].Transparency = 0 end end end end end end character.MaskForHide:Destroy() local dog = character.BlackMask or player.Backpack.BlackMask character.Head.Hidden.Enabled = false character.Head.Title.Enabled = true dog.Handle.Transparency = 0 end)