I have an NPC Monster that has a Humanoid named "Human" and it is supposed to be destroyed after its health reaches 0 or lower. It is a Server Script and is located inside the head of the Monster.
This is the code:
if script.Parent.Parent:FindFirstChild("Human").Health <= 0 then
script.Parent.Parent:Destroy()
print "Monster has died"
end
It does not print "Monster has died" and the only reason I can think of it not working is because the "Monster" for now is just a wall named "Head" and chases the player with a chasing script.
I'm a new scripter so I might have done something very stupid but I really can't figure this out :/

2 comments
is your script disabled?
nope