Ad
Log in to vote
0

Can Humanoid.Health go to a negative value?

Asked by 4 months ago

I'm asking this question because I want to re-create DooM's gibbing engine. DooM's gibbing engine works when there is a negative health value of the monster's health. So, basically, if the health goes to -100, the player gibs. I just want to know if the Humanoid.Health value can go to negative values.

1 answer

Log in to vote
0
Answered by 4 months ago

Yes and no.

Technically, TakeDamage() could do this, but any value < 0 should automatically become value == 0. This is commonly associated with its insane ability to somehow break the MaxHealth threhold by giving it a negative number instead of a positive number.

Ad

Answer this question