How can i make an inventory system?

Hello again people! I want to make a inventory system which checks how many children a player has in its inventory and clone the slots the quantity of tools (13 tools = 13 slots) then show the tools the player has inside the slots.

It needs just needs one thing:

The player see the items

image

1 Like

Does the inventory of the players is managed by a Module? or just mere Tool instances inside a Player backpack?

1 Like

There is an local script inside the InventoryUI that manages the player’s backpack and the UI

1 Like

i can say how i did this:
when player joins, game datastore gets amount to stored items (because it must saved as player leaves), and after that, special module synchronizes backpack valus with loaded one’s. then ui just updates, and when player presses on chosen tool, client fires a server to clone this tool into player backpack. however, player can press on tool button until tool value amount greater than zero. if that value became zero, button just hides.

P.S. this method isnt good and secure since player backpack gui values can be hacked, and datastore may fall down (roblox issue)

1 Like

What is an special module? and how can it sync with the gui?

1 Like

well uh, just a module script with update function which calls in main backpack gui localscript

1 Like

Oh, ok.
I will see if i can do a module script based on your answer (it don’t looks hard).

2 Likes