I’ve seen people have a progress bar on their loading GUIs, I know how to represent a decimal/fraction in a progress bar but I’ve never seen how to find the “progress” of game loading. I need some kind of decimal/fraction.
Thanks.
I’ve seen people have a progress bar on their loading GUIs, I know how to represent a decimal/fraction in a progress bar but I’ve never seen how to find the “progress” of game loading. I need some kind of decimal/fraction.
Thanks.
You should do something like this:
local ContentProvider = game:GetService("ContentProvider")
local itemsToLoad = workspace:GetDescendants()
local total = #itemsToLoad
for i , v in ipairs(itemsToLoad) do
ContentProvider:PreloadAsync({v})
--make your loading bar increase its size
--set your progress text to i.."/"..total
end