Hello,
I’m trying to create an inventory system that has sections for emotes, skins, and characters and im not sure if the logic I’ve come up with would work.
--player buys item
insert item in INVENTORY table
--player leaves
save INVENTORY table to DATASTORE named playerInventory
-- player joins
get INVENTORY datastore
--Player clicks on inventory button
loop through playerInventory table
for i, item in playerInventory do
if item,itemtype = emote then
create new image button in emote section
-- use this code for other things like the skins and characthers
end
end