Health bar being weird

For some reason, my health bar is adjusting the length of both sides in stead of just one how do I fix this.

Code

local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local humanoid = Character:WaitForChild("Humanoid")

humanoid.HealthChanged:Connect(function(Damage)
	print(Damage / humanoid.MaxHealth)
	script.Parent.Size = UDim2.new(Damage / humanoid.MaxHealth, 0, 1, 0)
end)

What the GUI looks like:
image

1 Like

Make sure that the Anchor point of the green element is set to 0 on the horizontal, ie (0,0), or (0,0.5)
It looks like you have it set to (0.5,0) or some such combination