So i have been noticing that in the new games that are coming to ROBLOX, they have loading screens that actually waits until everything is loaded, and not some loading screen that waits a pre selected time. Is there any references is could use to make this?
Yep, game.ContentProvider.RequestQueueSize will give you the number of assets required to load before are able to play the game. Unfortunately, there is no way to get the initial number of assets so you just have to wing it. Here is an example (remember, this script MUST be in ReplicatedFirst and MUST be a local script.)
script.Parent:RemoveDefaultLoadingScreen() screen=Instance.new("ScreenGui", script.Players.LocalPlayer:WaitForChild("PlayerGui")) load=Instance.new("TextLabel", screen) load.Size=UDim2.new(1,0,1,0) load.TextScaled=true while game.ContentProvider.RequestQueueSize > 0 do wait(0.05) load.Text="Loading Game: "..game.ContentProvider.RequestQueueSize end screen:Destroy() script.Enabled=false
Put your script for me to see. Go to wikia to learn how if you can't script.