[SOLVED] How to make a vertical moving bar (like a health bar)

I am trying to make a bar that move that is vertical. I have tried ever way of changing the size and it does not work.


--This is not the final code I am just using health to make it easier.

local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()

local healthbar = script.Parent:WaitForChild("HealthBar")


game:GetService("RunService").RenderStepped:Connect(function()
	local humanoid = char:FindFirstChild("Humanoid")
	healthbar.GreenFrame.Size = UDim2.new(1,0,humanoid.Health/humanoid.MaxHealth,0)
	healthbar.HealthStatus.Text = math.floor(humanoid.Health).."/"..humanoid.MaxHealth
end)

I have moved the numbers around and it will not work

Hey there! I have made a video on making a health bar if you’d like to check it out, I think it would help you!

P.S don’t mind the thumbnail I definitely gotta re make that lol

Also just change it to go vertically, so basically just move it to the y axis scale

1 Like

The problem I keep getting is that it changes size by moving both sizes and not just one
Like this picture
image

Ahh I see, set the anchor point to the bottom of the frame, then set the position to the bottom as well, also maybe Everytime the frame updates, move the positions of the bar to the bottom