I have turned the health coregui off and am trying to make my own gui, but when I run it it displays a bunch of random numbers.
health lower script:
local healthValue = 100
while healthValue > 0 do
healthValue = healthValue - 5
game.Players.LocalPlayer.Character.Humanoid.Health = healthValue
wait(5)
end
health reading script:
local textValue = script.Parent
local healthValue = game.Players.LocalPlayer.Character.Humanoid
local value = 0
while true do
value = healthValue.Health
textValue.Text = (value)
wait (1)
end

1 comment
I would also make sure you round up/down the health value to make it an integer, so that when your health is regenerating, it doesn't show it as a long decimal number.