Loading Screen Help

I am currently making a loading screen and how would I make it so the loading screen is able to tell how many seconds until all of the assets have loaded? Thanks.

1 Like

I believe there is no way to tell how much time until all the assets have loaded due to different clients on different PC’s. What you could do is measure the how much time it took to load a asset and then add all the time that were accounted for how much time it took to load the assets up.

For example:

local Counter = 0
game.Workspace.DescendantAdded:Connect(function()
   Counter = Counter + 1 -- For every asset loaded, add 1 second.
end)

However, this would count every asset loaded. But you could change that into the time it took.

2 Likes

So all the loading screens that say (for example) “Loading 823/1000 Assets” are fake?

OP said how many seconds until all the assets are loaded, not how much assets are loaded…

Well, could you point me towards a tutorial on a loading screen that shows the remaining assets?

1 Like

Sorry for the late reply but sure. Here is a example:

game.Workspace.DescendantAdded:Connect(function() -- So for every descendant added into the workspace we will add +1 to the assets loaded.

script.GUI.LoadingTextUI.Text = "AssetsLoaded: "..tostring(Counter) .. "/"-- how much objects are in your workspace.
  
end)

So the Text would be AssetsLoaded: 300/400 ( A example), depends on how much objects you have in your workspace.

If you would like you could just take away the AssetsLoaded by all the assets in your game to find out how much remaining assets there are.

1 Like