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)
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):
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.
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.
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.
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:
No, but if you want to save the slots when they rejoin, you’d have to create a datastore for the items and add them back to the player.
And if you want to save items for when player dies, you’d have to make a server script to get the player’s backpack into a table and then give back all their items through that table.