I'm quite new to scripting... and I'm still learning the ropes. However this is one thing for the life of me I can't do.. that seems SO SIMPLE.
I'm trying to add an add on for the players face when they touch a part, but all I have is a normal face changer. I don't want it to replace the face, only add on top of it.
local head = script.Parent
local sound = head:findFirstChild("Victory")
function onTouched(part)
local h = part.Parent:findFirstChild("Humanoid")
if h~=nil then
sound:play()
if part.Parent:findFirstChild("Head"):findFirstChild("face") then return end
part.Parent:findFirstChild("Head"):findFirstChild("face").Texture=script.Parent.Decal.Texture
end
end
script.Parent.Touched:connect(onTouched)
If you could help that'd be awesome. ^^

5 comments
Replace :findFirstChild to :FindFirstChild
I think it should help
No wait i know in head:findFirstChild("Victory") is wrong symbol
There i put it in code block
Use :Clone() option