A little help with custom backpack

  1. What do you want to achieve?
    I would like advice on the best practices for making a backpack in my current situation.

  2. What is the issue?
    I am making a FPS/snowy survival game. in this game I did not like the unequipping functions and hotbar GUI of the default backpack. So I am working on disabling it (with SetCoreGuiEnabled()), and I ran into a debate for the best practices. So when the backpack is enabled, StarterGUI gives the player a Pistol. However when it’s disabled, what is the best way to give a player a gun? And what is the best way to store it? currently whenever a player joins the game, a folder is made named “(playersName)'s Server Guns”. I know how to move tools from there to the player, and back. But what about initially putting a gun in the players character. Is cloning it from replicated storage the best way? or some other.

  3. What solutions have you tried so far?
    I have seen multiple threads about inventory and back UI’s but most of them are based on the inventory UI, and how to make it. I do not need that right now just the actual backpack.
    If you are wondering this game is currently only meant for PC players so I will only be using that input type (even though I know bringing mobile to the table can be a booster).

1 Like

actually solved - apparently you can move something directly from StarterPack

I’ll show how I make my inventories. I always like to mantain some organization while making inventories. Therefore, my backpack folder structure usually is something like this:

I split backpack in two folders. Things currently equipped (represented by Hand folder) and things in inventory
backpack

Inside inventory, I place all tools, accessories, etc. IOW every object
inventory

Inside Hand folder, I keep only references to objects that will be equipped. The reason for this is that every equipped accessory or tool will be placed under character’s model and I need some secure way to retrieve those items (whenerver I need to unequip them for example) without getting the wrong one.
hand

To equip tools or accessories you should fire server through a RemoteEvent and equip them on server side with Humanoid:EquipTool() and Humanoid:AddAccessory()

1 Like

The problem in putting them directly in StarterPack, is that every time character dies, I will ressurect with everything that’s in StarterPack (it’s like a starter kit)

1 Like

Actually, I made custom health for this reason. I have too many things in my game with death complications so I just decided to avoid the problem by making my own health.

1 Like

Thank you for this long response, I had no idea how to do inventories lol.

1 Like