Custom Inventory or Backpack

Hi,
I looked at the code… and maybe forgot… is there a way of only having the hotbar slots, and no inventory / backpack… I see I can limit the slots a number, like 2 , but it will still fill up the inventory. I would like to have it so you can only have X amount of tools via the slot variable, and no inventory (if that is the correct name for the upper area where you can normally put stuff)

@fernan1010 or @VoltenNa ?

Thanks

And not just commenting out the code for the ` keybind… since it will still overflow into the inventory area…

oh and also what about slot stacking? of the same tool in one slot…

Since you pinged me, I’ll reply.


Well, disabling the Inventory Keybind will disable the feature of accessing the Inventory, but like you said any excess Tools will be directed to the Inventory.


If you want to make it exclusively Hotbar, then you have to make significant modifications (meaning you have to understand how it works which requires scripting knowledge):

That means not only removing the GUI but also a lot of its functionality.

It also means rewriting how AddTool() works and adding an if statement and an event checker to check whether the Player has the said maximum amount of Tools in his/her’s Hotbar. If so, it doesn’t add to Player’s Hotbar.


It would be a monumental work. Unfortunately, since I have schoolwork I can’t help you out. You could ask for fernan1010’s help. :wink:

UI now fully works! but one issue is that it’s harder to equip on mobile, it works on certain pixels for some slot rather than instantly equipping it when tapping inside (the tap point offset goes off a bit from tapping so it’s dispositioned again)

You would have to debug that yourself, you changed a lot the GUI (for example the slot being rectangular and not square) so it makes sense theres issues.

1 Like

Ok thanks for the info… I might also see about incorporating an open source serve side back end invenory system and see if it can incorporate with this front end sustem.

I’ve been thinking of how to ping my reply on your post and I think I’ve come up with the best solution.
You could check post 72 and copy its link.

how did you get the cool colors, also im confused by what you mean to set hotbar position to 2. NVm figured out second questionw

1 Like

About the first question wdym exactly by “cool colors”? Do you mean the fact that the slot changes color every time Tool is disabled or what?

your script editor colors char

Oh, I see. Well, here’s how to get custom syntax highlighting (the color of my text in my code editor):


In Roblox Studio, click FILE at the top left corner of your screen, then click Studio Settings...
A new window will pop up. Click Script Editor in the left column, then scroll down to the Theme section, where you can customize the syntax highlighting.


If you want my settings, then you can imitate the following to get my script editor character colors:


1 Like

how can I let the tool go instantly in the inventory Gui?pls help