Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I save tools with DataStore by using a table?

Asked by 7 years ago
Edited 7 years ago

I'm trying to make a DataStore for tools, I know you can't save instances in a DataStore so I'm trying to create a table. So in the script where you buy the tool, it will add its name to the table, then when you leave and rejoin another script checks to see what tools are in the table and then gives them to you.

Question: Can I use DataStore to create a table? If so, how would I call upon the table and check to see the values inside in another script?

Help is appreciated!

1 answer

Log in to vote
1
Answered by 7 years ago

You absolutely can use DataStore's to create a table and save the values and also check them. If you have not done so already I recommend looking at ROBLOX's nice tutorial that they made. It can be found here

Link: http://wiki.roblox.com/index.php?title=Saving_Player_Data

0
Thank you! this is exactly what I needed! roblox99456789 104 — 7y
0
Your welcome. Glad I could help! thebootsie123 160 — 7y
Ad

Answer this question