What I’m trying to accomplish is that I am making an inventory system, and the tools that are inside the system, also save when the player dies, (and rejoins). But the problem is, I don’t want to have more than 1 tool in the player’s Backpack.
I want to be able to something like this EXAMPLE OF EQUIPING/UNEQUIPING:
if player.StarterGear:FindFirstChild("ExampleTool") then
StarterGear.ExampleTool:Clone().Parent = player.Backpack
end
Basically, is there a way to keep tools in StarterGear, but not in Backpack?
startergear is a section that clones all its children to backpack as soon as the game starts. You would want to store your tools in replicatedStorage, serverStorage, or (eugh) Lighting. You could save all of the tools which exist in your game in a folder and then save the names of the tools that the player has in their inventory to a table. Datastore2 saves tables just like other variables, so this method could work.
Well make a folder in rep storage for all the tools, and make a folder inside the player with some values detecting if they ow the sword or nah and you could do sum other stuff if you want