Hello, I am making a game with my friend. But I have run into a issue, I am trying to make a Inventory system kind of like MM2. But I don’t know how to do it.
What do you want to achieve? I would like to know the best way to do it + Saving
What is the issue? I am not sure the best way to do, what is the item, and a Picture of the item.
What solutions have you tried so far? I have tried Online tutorials but they are all outdated or they are way too complex for me. (It’s hard for me to wrap my head around it)
Does the value of the item or the value of the Picture ID belong in Replicated Storage or does it stay in the Inventory slot? and I know I should put the Items in a table to save. But I don’t know how to load all of that as well. Plus I have different categorys and I am not sure on how to sort them. Please don’t write me the whole script, I would just like to learn. (Sorry if this is wrong, I am new to posting on the Dev Forum.)
However the packed just makes sure it runs in the loop in the right order.
You can then to add a item loop trough slots if one is not being used you return it, if all are full you would put it in the backpack.
You can get the picture by the TextureId of the tool else you would just put a text. To move stuff you would check if the user is holding the mouse aslong as hes holding you update the frame with the position of the Mouse with some difference.
However you can at equip as example with numbers just get userinputservice and check which number was pressed and equip in order.If a tool gets moved/removed as example out of a slot you will set the slot value back to false, at the backpack you wouldn’t need to do that. Make sure when moving tools to/another slot to set the last one to false/switch items. And the new one to true.