#progress bar help
1 messages · Page 1 of 1 (latest)
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
????
oh
got confused and thought u meant loading bar,
but is there any errors?
i dontl ike reading
Unrelated but dont use while true do
Use runservice
nah there isnt
uh what?