How to create a inventory system which shows models

Hello! I am quite new to scripting and have a system where you can break objects and they will go into your inventory, however since they are models they wont show in my inventory. Does anyone know a way to fix this? All help is appreciated <3

2 Likes

This is more of an API question rather than a scripting question.

Anything that is not a Tool or HopperBin will be rejected from showing in the backpack. You can either turn your model into a tool or create your own inventory system to accomplish this.

2 Likes

yes that is what i am trying to do, i am aware anything that isnt a tool will not show in the backpack, i am wondering how to create a custom inventory

1 Like

i have one idea maybe you could make a new backpack and and when you break the parts they get sent to a folder and the folder sends the items to the new backpack

umm how exactly would i do that? i am not very good at scripting.

use instance.new for backpack and parent the parts from the folder into the backpack

1 Like

What would i set the for the parent of backpack?

game.Players.LocalPlayer and try to destroy your real backpack i also recommend do something like this: when you break a part it gets sent to a folder then your gui gets the parts/models in the folder and shows them on the gui

but it will show on the gui you still would need to make it a tool

game.players.localplayer doesnt work its a server script…

then use the second method when you break a part it gets sent to a folder then your gui gets the parts/models in the folder and shows them on the gui

alright i have it so it goes towards a folder, how would i make it so the objects show on the ui?

i cant tell you how to do everything first you got to know how to script at least a little you should be able to do this on your own

would i like do :GetChildren and then duplicate a frame from replicated storage and change the text to the models name?

i recommend you use chat gpt ai for some scripts

wait what do you mean chat gpt ai??

one question what is this inventory used for anyway and chat gpt is an ai that can script for you just tell it what to do

basically im making a sort of survival game and then later im going to make you able to build with the items in your inventory

image

1 Like

wait how would i get that???