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
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
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.
the one which shows up when you switch weapons
this will have to be done through scripting right?
Yea this is done through script.
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
Create a Folder and place it in replicated storage
make an bar with an grid layout
make the placement direction of the grid layout horizontional
add as much viewportframes as you want to have inventory space
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
use the scrollwheel delta to move the selection from left to right
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