#Custom health bar jittering on movement
1 messages · Page 1 of 1 (latest)
** You are now Level 5! **
guys we telepathically read his code
with our minds
cmon if we focus we can see it
Im not home rn, ill upload the code soon
local humanoid = script.Parent.Parent.Parent.Parent:WaitForChild("Humanoid")
local healthNum = script.Parent.Parent.HealthNum
humanoid.HealthChanged:Connect(function(damage)
script.Parent.Size = UDim2.new(damage / humanoid.MaxHealth, 0, 1, 0)
end)
local function Number()
healthNum.Text = humanoid.Health.."/"..humanoid.MaxHealth
end
Number()
humanoid.HealthChanged:Connect(Number)
@iron oyster @glad flare
probably something with the line that changed script.Parent.Size
double check if ur doing the math right
its either that or the text is messing with the box
or its also possible that its moving strangley because you might have it handled on the server, which may have update delays
try:
check the math
check the text is not goofing off
try handling it locally