Hi! So I know this topic isn’t new and it’s something that has been posted a lot about. I’ve seen a broad variety regarding inventory systems and whatnot but I need a sort of guided direction because I’m not entirely sure where to start. I already scripted my shop and have one gear set up and the purchasing works fine. You can buy something and it goes straight into your inventory. I just had a question regarding inventory and also the shop purchasing feature. I want to make it where, when you buy an item, it goes into an inventory that isn’t the roblox standard one. One where you click on a backpack/inventory button and the item you purchased is in there. And then from there you can unequip and re-equip if needed. I also want to have it where you can’t buy the same item from the shop again. Like maybe in replace of the “buy” its just “owned” instead so you can’t buy again.
I’ll include some scripts I have of my shop so far.
game.ReplicatedStorage.ToolEvent.BearEvent.OnServerEvent:Connect(function(player)
if player.leaderstats.Points.Value>10 then
player.leaderstats.Points.Value = player.leaderstats.Points.Value - 10
game.ServerStorage.Tools["Teddy Bloxpin"]:Clone().Parent = player.Backpack
end
end)
This is located in the ServerScriptService.
script.Parent.MouseButton1Click:Connect(function()
game.ReplicatedStorage.ToolEvent.BearEvent:FireServer()
end)
script.Parent.MouseButton1Click:Connect(function()
game.Workspace.ching:Play()
end)
This is the script in my Shop Gui to fire the event to purchase.
I also have my tools stored in ServerStorage.
Any help is appreciated! Whether that is by links to posts on the devforum that would help guide me or tutorials or even scripting help. Like I said, I have searched on here and found some tutorials for an inventory system but they seemed more geared toward picking up items and storing and not just shop purchasing. Thanks in advance!