Hi, I'm trying to make it so that if there is a Value named "HeadTransparency" inside of a folder, then it will make the Head of a player the desired transparency. The script below works, but it does not apply it to the character that I want. Can someone help me so that it works just like the Hat Transparency part, where it checks in a folder to see if there is a named value, and then apply it? If not, it ignores it?
There is a folder in the ReplicatedStorage named "Suit_Data", which contains another folder called "Ultimate Aliens", with a folder called "Ultimate Albedo" that has a folder as well called Package, where the HeadTransparency NumberValue is located.
for _,v in pairs(suit.Hats:GetChildren()) do
local h = Instance.new'Hat'
h.AttachmentForward = v.AttachmentForward.Value
h.AttachmentPos = v.AttachmentPos.Value
h.AttachmentRight = v.AttachmentRight.Value
h.AttachmentUp = v.AttachmentUp.Value
local p = Instance.new('Part', h)
p.Name = 'Handle'
p.FormFactor = 'Custom'
p.Size = v.BrickSize.Value
p.BottomSurface = 0
p.TopSurface = 0
if v:FindFirstChild'Transparency' then --- not sure how to make it like this so that the Head Transparency works like this instead of looking for a specific thing. If the value is there, apply it. If not, it is ignored?
p.Transparency = v.Transparency.Value
end
--set characters head transparency
local head = char:WaitForChild("Head")
local transVal = game.ReplicatedStorage.Suit_Data["Deefus Veeblepister Suits"]["Bob the Blob"].HeadTransparency.Value
head.Transparency = transVal
head.face.Transparency = transVal
-----
local m = Instance.new('SpecialMesh', p)
m.MeshId = 'http://www.roblox.com/asset/?id='..v.MeshID.Value
m.TextureId = 'http://www.roblox.com/asset/?id='..v.TextureID.Value
m.Scale = v.MeshSize.Value
h.Parent = char
end

3 comments
Stop repeating your question
Stop repeating your answer? Parts of the script changed.
@LuckyAura ah, my bad, still you haven't fixed the mistakes I pointed out, you cant debug anything until you get those under wrap