So i have a full Gui bar of health, once i reset and respawn, my bar is at 100% length but after 3 seconds it changed the size to zero. Could it be that since I'm using a changed function, the size was 0 after i died, so when i respawned it changed back to zero. Anyway, here is the script, please help :(
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:wait()
local hum = char:WaitForChild("Humanoid")
local inner = script.Parent.InnerBar
wait(3)
hum.Changed:connect(function(update)
inner.Size = UDim2.new(hum.Health/460, 0, 0, 8) --UDim2.new(hum.Health/362, 0, 0, 8)
end)

9 comments
Remove the 'wait(3)'.That is the 3 second delay.
That just made the bar size change to 0 even faster @DigitalVeer :(
You are doing it incorrectly; For how I get the full health is, I divide the Humanoid's Health by it's MaxHealth, then Multiply the number afterwards by the GUI size number. [(Health/MaxHealth)*SizeOfGui]
So i would do hum.Health/hum.MaxHealth*280? that even makes the bar longer which i don't want :(
And that didn't really solve my problem, the Size still changes to ZERO (0) after i respawn :(
What is the Size of your GUI? Is it like {1,0,1,0}?
The size of the GUI is [0, 280, 0, 8]
Then you would Divide and Multiply the Health and MaxHealth multiplying that Number.
what number? there are two. 280 and 8 :/