i already made the UI for my backpack system, but now i need a code for it to work.
all i need is a part to be stored inside the player’s backpack, and when double clicking the button it spawns the part above the character. is it possible to do that?
Yes it’s definitely possible to do so, are you able to elaborate on if you mean like a custom inventory system as in like a replacement to the tools section or a fully custom UI where you store items.
Oh yeah then that’s definitely possible, you can do quite a lot on the client side and communicate with the server with remote events.
You would use a remote event to grab the data on what items they have, if we are saying they can have their own items then populate the UI accordingly then for the viewport just have it copy from somewhere like replicated storage inside a “Templates” folder or something else which you could utilise.
Most of this can be handled on the client such as the search, population [ With server-side communication ] and then for the actual equipping add a remote event with validation and then find the players CFrame within the workspace and clone the template but this time you’ll place it above the player as you wanted.
If you are new, i would rather not advice you to work on inventory, custom ones require a ton of stuff and securing both server and visuals can be tricky for you, the best thing you can do is to learn about gui methoods (events, what you can do with UIConstraints ect.) soo you can achieve grid like inventory or create moving slots