Need help with a save tools script

I have scripted many save tools script off of youtube and none of them seemed to work. I am new to scripting and whenever the player dies/rejoins the tools do not save.

If you want a player to just automatically spawn with a tool, whenever they join or respawn, you can just stick the Tool inside the StarterPack.

To actually create a saving system though that is editable and remembers tool info between servers, you will need to use DataStoreService.

connect to a player’s humanoid died event, then parented the Tool to workspace for drop mechanism or Destroy the tool, this script should be inside the tool

To handle saving when the player dies, you can use the container StarterGear to easily handle the player respawning with all of the right tools.

For when the player leaves, I’d thoroughly recommend creating an item ID system - when the player leaves you can then save that ID to their DataStore, and access the items through their distinctive item ID when the player rejoins.