Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 7 years ago

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?

0
This is not a request site :3 AswormeDorijan111 531 — 7y
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. JoeRaptor 72 — 7y
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 M39a9am3R 3210 — 7y

3 answers

Log in to vote
1
Answered by 5 years ago
Edited 5 years ago

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.

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 promanfnatfreddys 20 — 4y
Ad
Log in to vote
0
Answered by
Viking359 161
7 years ago

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!

1
If your gonna do this, just copy the table of game:GetDescendants if you wanna do this method which is really inconvenient. hiimgoodpack 2009 — 7y
0
You could just do derry133nd 0 — 5y
Log in to vote
0
Answered by 4 years ago

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.

Answer this question