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.
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)