Help with inventory bar I'm new

Help, I’m new. I want to make a script in the form of an inventory work as such in different scenes. I need to grab an object so that it is put in the inventory but can be seen in all scenes.