What things to check for when creating a loading screen?

I included a loading screen in my game (not a “real” custom loading screen, I still have the standard Roblox laoding screen with the name of the game and so on. When booting up the game the game just shows a GIU in StarterGIU that vanishes when the Player loaded). And my question is whether there are some more things I could let the Script of the LoadingScreen check for before vanishing: I currently have:

repeat wait() until player.Character ~= nil

and

game:GetService("ContentProvider"):PreloadAsync({workspace, player.PlayerGui})
1 Like

You could load:
Animations (Play the animations then stop them so they’re loaded into the memory and have no delay)
Sounds (Same as animations)
Images (So they appear in the game when the id is changed to the image in question.)

1 Like

To do that, could i just swap out the workspace-Part (in the second line I provided) for the other things?

First of all, you should only place in contentprovider images and sounds. Animations should be played on the player’s character. The rest of the things, that’s on Roblox, not on your scripting capacity. At least to my knowledge.

So I could use ContentProvider for Images and Sounds, but how would I check for the Animations?

You can repeat this all the times you need

local Animation = Instance.new(“Animation”)
Animation.AnimationId = “rbxassetid://AnimationId
local Animation = game.Players.LocalPlayer.Character:WaitForChild(“Humanoid”):LoadAnimation(Animation)
Animation:Play()
Animation:Stop()