For some reason the bar doesn’t fill up even though the x is at 1. Like it will stop tweening more than half way. Here is the code.
local Holder = Main.Holder
local Filler = Holder.Filler
local Percentage = Main.Percentage
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
for i = 1, 100 do
wait(0.005)
local formula = i/100
print(formula)
Percentage.Text = i.."%"
Filler:TweenSize(UDim2.new(formula, 0, 1, 0), Enum.EasingDirection.In, Enum.EasingStyle.Linear)
end
wait(2)
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, true)
Theres no need to tween it in such small time. Increase the wait time either remove the loop and tween bar to 1 slowly.
Also 0.005 will become something like 0.03.