Are these two ways of making a loading screen good? or are there better ones

So i have salvaged YouTube and a little bit of the developer forum and so for a loading screen are these scripts ideal? as in having a UI animate while the game loads, all the other tutorials are just fake loading screens, and the game i’m working on is big so a loading screen is a NECESSITY

workspace.DescendantAdded:Connect(function(Part)
	if Part:IsA("BasePart") then
		PartsLoaded += 1
		LoadingGUI.Load.LoadingNumber.Text = "Assets loaded: "..tostring(PartsLoaded) 
	end
end)

and i think the script above will only load in all the parts, so how about textures and lighting and other stuff, would this be more ideal?

repeat 
--UI tweening
until game:IsLoaded()

or is there another method of animating Loading screens while the game loads that I don’t know of?

Not sure if this is exactly what you’re looking for but I saw a tutorial on this from AlvinBlox and he used:

repeat until(1) until game:isLoaded()

You can find his full tutorial here if interested: Roblox Loading Screen Tutorial (Read Description) - YouTube

1 Like

Ah ok, that seems pretty good, I’ll look into game:IsLoaded and what exactly it does, thanks for the help!

1 Like