I have big models with over 300 parts/150k+ tris, around 80 of them that can be purchased ingame and added to their inventory. They start with 1 and the average is around 10 of them but I’d like to be able to handle as many as possible.
Currently I keep their inventory in the Player model, the only reason for this is because they need to quickly access these models at any time via inventory gui
Its a very long process but i feel the best way to this is by assing a module script to each player that will contain the information of every item an their properties as a dictionary. This is easier as all items will be stored in the server making it that the module would be used to access an item in the server so as to prevent exploiters from just tampering with the inventory directly
I’m not really worried about hackers much but I’m concerned about memory usage/preventing lag. That’s a good idea but the models are just too big and detailed to save in a script
Well, this would take some extra work per car but would save a lot of performance: You could take a square screenshot of the car and store it somewhere for when you need it