#progress bar help

1 messages · Page 1 of 1 (latest)

thick vortex
#

yall i got progress bar but it dont working and what script i need i added some scripts and still not working idk why

#

i got this script

#

local bar = script.Parent.BG.bar
local text = script.Parent.BG.Text

local currentNum = script.Parent.CurrentValue
local maxNum = script.Parent.MaxValue

local barSmooth = 5

while true do
local bt = time()
task.wait()
local dT = time() - bt

local targetSize = UDim2.new(currentNum.Value / maxNum.Value, 0, 1, 0)
bar.Size = bar.Size:Lerp(targetSize, barSmooth * dT)

text.Text = math.floor(currentNum.Value) .. " / " .. math.floor(maxNum.Value)

end

sharp anchor
#

oh

#

got confused and thought u meant loading bar,

#

but is there any errors?

#

i dontl ike reading

lofty temple
thick vortex
thick vortex