IAmOof_D
(IAmOof_D)
#1
I am trying to make a system where a “rage” value goes up based on if your health is being lowered. Here’s the function for it.
chr.Humanoid.HealthChanged:connect(function(GRRRNG)
ragelevel = math.modf(human.Health / 100)
print("New RAGE Level: "..ragelevel)
end)
Anyone know how to make it work?
Mystxry12
(Mystxry)
#2
Shudnt math.modf return 2 values?. That is the integral and fractional num?
rage = Hum.MaxHealth - hum.Health
1 Like
IAmOof_D
(IAmOof_D)
#4
well idk
i have no idea
havent checked how it works
Mystxry12
(Mystxry)
#5
And also the param provided is the new health val.
Forummer
(Forummer)
#7
chr.Humanoid.HealthChanged:connect(function(GRRRNG)
ragelevel = math.round(100 / human.Health)
print("New RAGE Level: "..ragelevel)
end)