This is kinda a math problem idk
So when creating an inventory system you need the actual storage GUI(Where the player is storing its items). And the players Backpack(The Roblox backpack where tools are stored for players to use). My problem is that when the Backpack stuff is getting transferred over to the GUI storage how do I make it so that the game detects:
Oh there is a tool already using that spot, I guess i'll go to the next one.
As you can see in the example the Tools are going to the next slot because the previous one is already taken. And I also want to do this with mainly math not manual scripting everything bit by bit. It would take a very long time, so how can i do this?
I'm not requesting a script. Just some guidance to how I can do this

1 comment
Just detect it the same way that you're remembering what tool is in there. You know what tool is in a slot, ergo you know whether there's a tool in a slot.