Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make a loading screen that ACTUALLY waits for the game to load?

I have seen games that have loading screens that wait for the game to load then you can play. But I searched up tutorials on youtube and all their loading screens were just to make the game look nicer.. How do you make an actual loading screen that waits for the game to load?

4 comments

0

This is not a request site :3

0

If you were to make one, (To make a true loading screen and not a fake like alot of games on roblox do) it'd be a very quick loading screen I presume due to the fact Roblox loads extremely quickly, once connected to a server. You would need to make each part render at a time for that to make a loading screen lokk relaistic and work realistically.

0

Here's a Tutorial on Roblox's website that waits for image and sound assets to load. http://wiki.roblox.com/index.php?title=Custom_loading_screen Some of the image and sound assets are kind of weird loading up now due to a Roblox Update, check this post. https://devforum.roblox.com/t/contentprovider-preloadasync-and-preload-update/49069

3 answers

For those who are looking at this now, you can use game:IsLoaded() to check if the game is loaded. Use a loop to delay until finished loading.

1 comment

0

You could. It wouldn't be the best, as it wouldn't show the amount of assets loaded or show a progress bar, but it'd work

Use a wait for child like this

game:WaitForChild(putwhateveryouarewaitingtoladhere)
--remove the gui here

You can use multiple wfc if you want to be sure, or you can wait for the thing that takes the longest to load. If it's directly in the workspace do

Workspace:WaitForChild(putithere)

otherwise, make a variable and use that like this

local a = game.Workspace.Agrouporsomething
a:WaitForChild(somethinginsidethegrouporhwatever)

If you have any more questions, feel free to ask me!

2 comments

1

If your gonna do this, just copy the table of game:GetDescendants if you wanna do this method which is really inconvenient.

0

You could just do

Answer i guess: Don't. Roblox loads up servers extremely fast. The loading screen would only be up for a couple seconds, if that. If you really wanted to, though, you could have it display the assets loaded as a loading bar, and have the assets be the total amount of assets in the game. You could use :WaitForChild(part name here inside "") and wait for every asset of the game, and have the loaded assets increase for every asset :WaitForChild has waited for.

This discussion is preserved as it was. New answers, comments, and votes are closed.