This video tutorial will hopefully teach you the fundamentals of CORRECTLY PreloadAsync-ing in Roblox Studio, as most if not all other tutorials failed to do so.
Explanation as to why game:GetChildren()/:GetDescendants() is not a good method:
1. PreloadAsync cannot Preload Instances (or at least not anymore).
-* Despite of what the Docs say, PreloadAsync is not able to resolve AssetId’s from Instances with an Id property on its own and requires manual intervention.
-* Running PreloadAsync on an Instance and on an AssetId yields different results; the Instance-based call immediately fires it’s callbackFunction, meanwhile the Id-based call actually takes some time to download the asset from the Id and fires it’s callbackFunction far later.
2. You are blindly trying to Preload stuff
-* This is inefficient and results in a ton of (roughly over 1,000) wasted calls, because 99% of what game:GetChildren() returns (Services, Parts, Folders, Scripts, Attachments) cannot be preloaded to begin with.
-* This also results in a less controllable process and might result in preloading the same Instance multiple times.
Chapters:
00: 00 Intro
00: 29 Making the Gui
06: 24 Scripting
10: 55 Testing Functionality
12: 37 Coding the Progress Bar
15: 00 Testing Progress Bar
15: 43 Conclusion
#robloxstudio #preload #robloxdev #tutorial #educative #education #luau #lua #code #coding #roblox