I want to do to an inventory that contains slots and in every slot, there is an image of an item, the problem is that I dont know what is the best way to load the images:
should I put all of the images in the ReplicatedStorage and clone image every time i add
an item to the inventory or,
its better to put the images in ServerStorage then make the server clone an image from the ServerStorage to the ReplicatedStorage then clone it from the client to the inventory (every time I want to add an item to the inventory) ?
or there is a better way to do this?
And is there a problem to store a lot of images in the ReplicatedStorage or the game will crash (i am talking about a thousand image maby more!) ?
I don’t think Roblox studio would crash just by storing a lot of images, unless you load them all at the same time which I’m still unsure about, but I would recommend storing these images in a folder placed in ReplicatedStorage and not in a ServerStorage as it would not replicate to the Client.
“Any object has been placed in ReplicatedFirst , the default loading screen will remove after 5 seconds regardless if this function has been called or not.”
More info here.
It’s not that it “must be used”, I’m recommending you to do so because it allows said assets to be accessible from either.
And sorry, I just re-read your post.
This sounds more like image caching and is totally unnessasary for this use case. Just have the images you are using be accessible from the client, so when the server passes information about what the client should be loading, you retrieve the necessary inventory icons and set them to the corresponding ImageLabel or ImageButton.