How to make this Frame's size increase from bottom to top?

  1. What do you want to achieve?
    I’m trying to make a vertical bar for my game that should be increasing size from Bottom to Top depending on the player’s rage (zero) divided by the maximum rage (100)

  2. What is the issue?
    I don’t know how to make the bar’s size increase from bottom to top instead of top to bottom
    This is it’s current state:

  3. What solutions have you tried so far?

ocal player = game.Players.LocalPlayer
local bar = script.Parent
local exp = player:WaitForChild("RageMeter")
local levels = player:WaitForChild("RageMeterMax")
local isonmobile = game:GetService("UserInputService").TouchEnabled

if isonmobile == true then
	script.Parent.Position = UDim2.new(0.369, 0,0.93, 0)
end

while wait() do
	script.Parent.Size = UDim2.new(script.Parent.Size.X.Scale, 0, exp.Value / levels.Value/16, 0)
end

2 Likes

Set the AnchorPoint of the bar to (0, 1) and the Position to (_, _, 1, 0)