script.Parent.Touched:Connect(function(face)
local hum = face.Parent:FindFirstChild(“Humanoid”)
local head = face.Parent:FindFirstChild(“Head”)
local realface = head:FindFirstChild(“face”)
local decal = script.Parent:FindFirstChild("Decal")
script.Parent.Touched:Connect(function(face)
local hum = face.Parent:FindFirstChild("Humanoid")
local head = face.Parent:FindFirstChild("Head")
if hum then
local realface = head:FindFirstChild("face")
realface.Texture = decal.Texture
end
end)
Code 2:
local decal = script.Parent:FindFirstChild("Decal")
script.Parent.Touched:Connect(function(face)
local hum = face.Parent:FindFirstChild("Humanoid")
local head = face.Parent:FindFirstChild("Head")
local realface = head:FindFirstChild("face")
if hum then
realface.Texture = decal.Texture
end
end)
Could you try checking for the realface variable as well inside code 2?