ContentProvider takes really long to load assets

I’m trying to makea loading screen but the contentprovider somehow takes extremly long to load, the first time it loops it takes about 5 seconds for it to print (2)

for i = 1, #assets do
	print(1)
	ContentProvider:PreloadAsync({assets[i]})
	print(2)
	local progress = i / #assets
	BarInside.Size = UDim2.new(progress, 0, 1, 0)
end

Where did you put this script?
It also depends on how big the game is.

ReplicatedFirst, but I had tested it in StarterGui, cus I had to edit the gui

Then It’s because of the game’s size.