How To Create A Tool Giver Part That Saves Even When Play Leaves Game

Hello, Roblox Community

Me and my development team are working on a Roblox game! I am wondering how to create a part which gives you a tool when you step on it, and when you leave the game, the tool saves in your inventory. For example, if a player completes a obby and steps on a part, they receive a tool and when they leave and re-join, the tool saves in their inventory!

I am asking you for your answer to include the script, where to put the script and how to script works. If you have any questions or comments for me, please contact us.

Thankyou,
Snowflake (@SnowflakeForest10)

In my case, I am trying to create a Halloween event Obby for my game and when a player steps on the final part, a tool appears in the players inventory. I want it so when they leave the game, the tool stays in their inventory so they don’t have to complete the obby again.

1 Like

This will be extremely useful, try learning this service here
DataStoreService (roblox.com)
It saves values to a table on roblox’s servers.

Also the part is quite simple, Tools have a Enabled Boolean value in them, set it to false, and put it in ServerStorage and have a script clone the tool to the player using Part.Touched, which also returns the player who touched it BasePart.Touched (roblox.com)

With the datastore, you can save a value to the player which is a table of all tools they have received in the forms of strings, you can use :lower() with the strings inside the table once you need to load tools, and use :lower() on Tool.Name to avoid mistakes in capitalization