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

How would I script a loading gui that would open when data has finished loading?

Asked by 5 years ago

I don't need any of the gui script here. Just asking if anyone knows a method for waiting till data has loaded. especially because I will need to be doing multiple requests and don't want my requests to be throttled. does anyone know a way to wait until more requests are allowed before performing the next GetAsync and so on? I figure I could just put a bunch of waits in and when the pcalled data store requests are done it closes the gui and puts the player into the game but I feel that would just be inefficient. Any help would be appreciated. Thanks!

0
I believe this article might assist you, even if it isn't a gui http://wiki.roblox.com/index.php?title=Creating_a_Custom_Loading_Screen#Hiding_loading_screen yyyyyy09 246 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

Two answers:

Ok, so the first thing you can try is hiding the loading screen when the RequestQueSize is to 0.

RequestQueSize determines how many assets there are left to load. To access this, type the code: game.ContentProvider.RequestQueueSize

Second answer:

game.Loaded

This is an event, so you'd use this for a function. I personally don't use this because ROBLOX themself says this isn't very accurate. Also, not sure, but I think it only fires the FIRST EVER TIME YOU LOAD A GAME. Be careful of that

If this helped, accept the answer.

1
Thanks so much you helped a ton! Have a great day. User#21908 42 — 5y
Ad

Answer this question