For the past few weeks, I have experienced an issue with updating the health of a Humanoid.
When I attempt to change the health, this happens:[spoiler]
Humanoid.MaxHealth = 1000 – we want 1000 health, not 100
Humanoid.Health = 1000 – now we want to refill it’s health
Cool, right? Well, not quite. Here’s what happens:
print(Humanoid.Health) – 1000, as expected, awesome.
Humanoid:TakeDamage(10) – should be 990, right?
print(Humanoid.Health) – 90, WHAT?!
This happens with both the :TakeDamage method, and manually subtracting the Humanoid.Health.
I am not 100% sure that will reproduce it all the time, though, I do believe I found the cause of this issue, as stated in this reply to a thread over on the Scripters forum: http://www.roblox.com/Forum/ShowPost.aspx?PostID=137683398#137687280
Hopefully this will be fixed soon, as it has caused tons of hell for me in many ways, and I’m not the only one experiencing this.