Images loading and loading in general

So my game has alot of images (hundreds) and I just has to be that way because I can’t get the desired effect in Roblox studio alone.
Firstly, how do I stop the thing happening where every time I open a menu I haven’t opened before it glitches and takes a second to load before showing up. I just want it all fully loaded.
Secondly, the .Loaded properties of some images are just never turning true (I’m talking 5 minutes + of waiting)
Thirdly I tried ContentProvider:PreloadAsync() on for example an image in the loading screen but it still isn’t loading sometimes.

I also had an incident a few days ago when I joined my game from normal Roblox and not studio and 10-15 images just never visually loaded at all
I played the game for 15 minutes and some image buttons just never showed up.
This can’t happen when the game is released so how do I fix all this and how do images load?

1 Like

ContentProvider’s PreloadAsync should help you out.

so I just preload the entire game?

Preload the… images- not the entire game. That’d be slow and inefficient.

sorry that’s what I meant. I just preload every image?

Yes, and try and look at other ContentProvider functions to make sure they load correctly, as it can fail sometimes, but rarely.

for preloading an image is it
ContentProvider:PreloadAsync({ImageLabel})
or
ContentProvider:PreloadAsync({ImageLabel.Image})
do I use the instance or the id or the image to preload an asset

because I swear I’ve seen both when searching it up

You can use both, as stated in the docs, you can either use the string or instance containing loadable data.

I’ll try thanks________________________

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