How to make a hotbar system like arsenal?

So I am currently working on making a custom gun system and I was wondering how to make the hotbar system like the one in the game 'Arsenal". Also on how to make the player auto-equip the weapon

Any help appriciated

thanks

3 Likes

I’m confused about the hot bar thing, where is it in arsenal? What I do know is how to auto equip a weapon. If you’re using the built in inventory system there is a function for that. However if you’re using a custom inventory system simply parent the weapon inside of the player, change its CFrame to the players hand and weld it to the hand or attach it to a viewport if you have one.

2 Likes

the one which shows up when you switch weapons

this will have to be done through scripting right?

1 Like

Yea this is done through script.

1 Like

So if you want it already coded thats another thing but i can tell you how it works because i have already done an inentory systen by my self

  1. Create a Folder and place it in replicated storage

  2. make an bar with an grid layout

  3. make the placement direction of the grid layout horizontional

  4. add as much viewportframes as you want to have inventory space

  5. make an local script that everytime the folder gets a new child just use the “childadded” event clones al things from the folder to the ui frames

  6. use the scrollwheel delta to move the selection from left to right

  7. and every time your wepon slot changes triger something to equip your weapon

I hope i was able to help you if something is unclear just ask someone or tag me

If you need help with the gui desing just ask the guys from the art desing suport
because my guis look like crap

1 Like