How would i make an Equip and Unequip system with the data also being sent to the game level (any level ex: level 1 )

Im gonna give you the solution, but ill try and figure this out later