Optimising loading script for my game

UI1.MainFrame.Loading.ProgressBar.AssetLabel.Text = "Loading Assets..."..asset.Name.." ("..i.."/"..#Assets..")"

hmph,


this part of code gives error now when i’m trying get asset name, what happened lol. That’s why loading is infinite. Now i don’t get it, how instance could don’t have name duh.
image
Ughmmmmmmm. Oh i get it, that’s because some of services have zero assets

a hacky way to avoid this is by using pcall, as most things wont be readily loaded (iirc?)

Alright i figured problem, just MaterialService have zero assets in, thats why i got error. Yeah now game loads correctly

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.