Why doesn't my loading screen finish?

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)

This is an example image

Why are you tweening the progress bar every 0.005 seconds for a tween that I think by default runs for 1 second?

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.

So the progress bar tweens smoothly.

This is not what will happen. The progress bar can stutter and cancel other tweens out. I suggest using one tween from 0 to 1.