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: