[MODULE] ToolStacker — Cleanly Stack Duplicate Tools in Backpack (Free & Plug-and-Play)

:package: ToolStacker is a free, open-source module that automatically stacks duplicate tools in a player’s Backpack (e.g., “Pickaxe [x3]”) — perfect for simulator and tycoon games where cluttered inventories are a problem.

:hammer_and_wrench: Features:

  • Combines duplicate tools by name into one slot
  • Shows the total count right in the tool name
  • Handles stacking, unstacking, and tool usage
  • Configurable MaxStackSize per tool (e.g., limit “Potion” to 5)
  • Utility functions like GetAllStacks and ClearStacks
  • Supports metadata or fallback memory-based tracking
  • Plug-and-play: just require and call ToolStacker:Initialize()

:books: Example:
A player picks up 5 Hammers → sees "Hammer [x5]" in their backpack instead of 5 separate ones.

:link: Model Link: https://create.roblox.com/store/asset/87896117389942/ToolStacker

:speech_balloon: Feel free to suggest improvements or contribute — I’m open to feedback and collabs!

:page_facing_up: More Modules Coming Soon! ( I really like creating these as they are fun and useful )

1 Like

Hey! I tried using your module as a temporary addition for my game, and I found some bugs with the module.

  1. When a tool gets added to the inventory, and that tool (stack) is currently equipped, it will be buggy and not join the stack. However, I found a quick workaround solution to check the character first in FindExistingToolStack. It seemed to fix itself, as if it checks the backpack first, it’ll return the just-added tool and not the existing stack.
  2. GetAllStacks does not account for multiple stacks of a tool. For example, for specific tools like guns, I made the maximum stack size 1. When I have 2 guns, it’ll just register as gun = 1 and then overwrite it with gun = 1 for the second gun. The workaround I found is to simply check if there’s already a value for that item, and add it

I will notify you if I encounter any bugs! Thank you for saving my time by creating this module :slight_smile:

fixed all the bugs and improved the module now ya’ll :smiley: