Today I discovered something that almost broke my mind…
I did a kind of Death system that run a animation and etc… but when I was scripting the respawn system by some random reason I found that my script aren’t changing the humanoid Health.
So, after almost 2 hours scripting and failing… I discovered that if you character health fall to 0.
The code:
Humanoid.Health = Value
Didn’t will work.
So in your Damage System make the min value that your humanoid can be to 1.
Example:
local DamageNumber = 10
local Humanoid = Character:FindFirstChild("Humanoid)"
if Humanoid ~= nil then
if Humanoid.Health - DamageNumber < 1 then
Humanoid.Health = 1
else
Humanoid.Health = Humanoid.Health - DamageNumber
end
end