How can u save your data of tools I made a button that will give sword if you have 1000 Coins and put it on Backpack and Starter Gear But it won't save when i leave the server and rejoin back again I want to save it but I don't know how to save it please help me.
Check this service DataStoreService as well as theses functions UpdateAsync and GetAsync. They will help you. There are code samples at the end of these pages too.
Take into account you can't save Instances, but you can save a value like a string or a boolean value to know if someone should have the item, and then give it to them.
You can't exactly save a tool using the DataStoreService, but what you can do is save a value, such as a string or a number that identifies what tool they have upon leaving. Then, you will be able to add the tool to the players backpack once they joined. If this is the answer you needed, please accept my answer! If you need any more help, feel free to ping me in the community chat. Thanks!
I'm not sure if I'm meant to post YouTube tutorials, but this one by Shirooo may help you out. I have followed another one of her tutorials (for player list) and it was easy to follow and well explained.
Link: https://www.youtube.com/watch?v=E082PFJJHOM