–WORKING ON UPDATE AND TUTORIAL–
I have released a new module based system that can do what the Roblox system can, but with more ability to customize!
Why use this module?
-You can implement your own methods to improve the functionality and style the code in the way you want it;
-Includes two basic variables, UI enabled and Equip timeout;
-Straightforward and easy to use;
How would I access the physical folder of the backpack?
-The physical folder is under the Player, named ‘CBackpack’, which having a physical location allows you to implement .ChildAdded and .ChildRemoved events;
How do I use it?
To start off, grab the module here.
Next you can go ahead and place it in either server storage(recommended), or anywhere you’d like.
Create a script inside ServerScriptService, name it whatever you’d like. This will be our main handler. Your explorer should look like this:
Next go ahead into the script and add these basic few lines of code:
How do I add a tool into the backpack?
Simple. Use the data and run :AddObject(tool, keybind(1-8))
Now it will automatically bind your key, and run Equip and Unequip as necessary!
How do I remove the tool?
Simple. Use the data and run :RemoveObject(tool)
How do i know when a tool got equipped?
How do i change variables or add methods?
Variables are their own module under backpack:
You can change the code or add your own methods in the ‘Object’ module.
How do I edit the UI?
The backpack is the actual GUI, you can edit it by dropping it into starterGUI and editing it.
The template is the actual box for the tool, you can edit it the same way.
What if I wanted to change data through another script?
You can use service:GetBackpackData(player) and run methods from there.
If any bug occurs or you would like anything added, please let me know. Thank you for taking the time to read this!