Hey. I am attempting to dynamically load image textures when my prize shop is opened, then have these textures and the memory associated with them removed from client memory when the shop is destroyed.
Currently, I :Clone()
the GUI from the ReplicatedStorage
, load the Image.Texture
using a NumberValue.Value
, then :Destroy()
the ScreenGui
when the player is finished.
The expected behavior is for the image textures to be removed from the client memory when the GUI is destroyed thus helping me keep memory as low as possible in my game. However, these textures are still present in the client memory.
Is there something Iām doing wrong? Is the expected behavior even possible? What do I need to do to remove these textures from the client memory?