Hello, I have just edited a face giver script and converted it into a click giver, yet there is a problem for the fact that it dosen't do anything. What may be the cause? I have added a click detector.
local head = script.Parent
function onClicked(part)
local h = part.Parent:findFirstChild("Humanoid")
if h~=nil then
if part.Parent:findFirstChild("Head"):findFirstChild("face").Texture == nil then return end
part.Parent:findFirstChild("Head"):findFirstChild("face").Texture=script.Parent.Decal.Texture
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
