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