So I've been trying to make an inventory for my game for last 2 days and I've got the gui that's all fine, but the issue I'm having is that I don't think I can't use proximitypromt Because I'm not trying to loot physical items in the world, I'm trying to have items found in crates go into the inventory and I'm not sure how or where to make my inventory read what I've looted and store it, I've spent a while trying to research but everything just says proximity prompts Which isnt option here from my understanding
#Inventory
1 messages · Page 1 of 1 (latest)
okay from what I can infer, you want crates like cs2 and then what you get from that into an inventory
you need to be proficient at using tables
the inventory would be a regular table:
inventory = {}
then you would add your objects
example_obj = {
name = 'cool_glove',
colour = Color3.FromRGB(0, 255, 0),
instance = game.ReplicatedStorage.Assets.CoolGlove
}
table.insert(inventory, example_obj)
then you can save the inventory
and the load up everything
onto ui