So I have this script for a health bar:
wait(1) local plr = game.Players.LocalPlayer local hum = game.Players.LocalPlayer.Character.Humanoid hum.HealthChanged:connect(function(health) script.parent.Size = UDim2.new(health/hum.MaxHealth,0,1,0) end)
And it works until your health changes. Then it goes off the screen horizontally and vertically. Any help?