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.)
01 | script.Parent:RemoveDefaultLoadingScreen() |
02 | screen = Instance.new( "ScreenGui" , script.Players.LocalPlayer:WaitForChild( "PlayerGui" )) |
03 | load = Instance.new( "TextLabel" , screen) |
04 | load .Size = UDim 2. new( 1 , 0 , 1 , 0 ) |
06 | while game.ContentProvider.RequestQueueSize > 0 do |
08 | load .Text = "Loading Game: " ..game.ContentProvider.RequestQueueSize |