Hey there!
I have an NPC that has a kill script inside it. It’s parented only to the model, no specific body part. the issue is that it keeps somehow killing itself. I don’t know how or why. It has infinite health on the humanoid, and I’ve tried several different scripts. It’s supposed to damage the other players when it touches them.
Script:
local function onTouch(Touch)
if Touch.Parent:FindFirstChild("Humanoid") ~= nil then
Touch.Parent.Humanoid.Health = 0
end
end
script.Parent.HumanoidRootPart.Touched:Connect(onTouch)