I was making an infection game (and infection pack) and I try to use this script:
local part = script.Parent
local faceLink = "rbxasset://20418518"
local function onPartTouched(otherPart)
-- Get the other part's parent
local partParent = otherPart.Parent
-- Look for a humanoid in the parent
local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
if humanoid then
-- Do something to the humanoid, like set its health to 0
partParent.Head.Face[0]:Destroy()
partParent.Head.Face.Texture = faceLink
end
end
part.Touched:Connect(onPartTouched)
and it does not work! How do I make the face change?

2 comments
Hey! Thanks for the reply. I have noticed that if the part touches with other part, it will send an error that Head is not a valid member of Part. I have fixed the script for you. Also sorry for posting this comment here, the purpose is to let you get the notification.
Hmm, Still won't work, I recorded footage at (shortened link) https://rb.gy/rloplj