if script.Parent.Humanoid.Health < 10 then
workspace.E:Destroy()
script.Parent:Destroy()
end
this is my code. it works when I run it with the humanoid already at zero health, but if i kill the humanoid in-game and it's health is 0 it wont do anything.
(for context, script is in a character, E is a part in workspace)

1 comment
it works!! thanks!