Hi, I’m trying to save tools and have wrote a script but it hasnt worked, im confused.
The game has a folder called Tools in server storage
when players buy the tools from the shop i want them to save when respawning and when leaving.
How do i do this ?
1 Like
What script did you write? Either a datastore script or a temporary inventory-table system shouldve been constructed
1 Like
UhhQuoi
(Aegarys)
April 8, 2022, 12:16am
#3
This should be like saving datastores but instead, if you already have a script you should focus on getting into the player(s) backpack and saving it within the script exactly like you would do it to a normal data value. I’m not the best on datastore things but there should be some posts around the devforum which contain information on how to do this.
2 Likes
To save player tools, use DatastoreService
To permanently keep tools that player bought, parent the tool into StarterGear
2 Likes
I have put here some resources you can use
Gamer m8’s tutorial worked for me, maybe it will work for you
Here is a model I found which can help
If it won’t work, look at the output and see what is needed
https://www.roblox.com/library/refer/8606681256/Save-Tool-ServerScriptService?Category=Models&SortType=Relevance&SortAggregation=AllTime&SearchKeyword=save%20tools&CreatorId=0&Page=1&Position=2&SearchId=234e0c75-ea78-4ea7-a767-f7d37bbcd1eb
I don’t usually post here, so if there is an error reply and tell me
If it worked, I’m happy
Good luck @TheEternalDev
From 7