|
| 14 Aug 2017 06:33 PM |
| Does anyone know how to make a save/load gui that can save not just the player's money but also the purchases they have made in a tycoon? |
|
|
| Report Abuse |
|
|
| |
|
|
| 14 Aug 2017 07:10 PM |
that isnt what i was looking for but thanks? bump |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2017 07:12 PM |
You need to: Make a table of all purchased items. Save the table to a datastore when the player leaves.
Example: local purchases = { Dropper1 = true; Dropper2 = false; }
dataStore:SetAsync(player.UserId, purchases) |
|
|
| Report Abuse |
|
|
|
| 15 Aug 2017 11:08 AM |
| Thank you. That's just what I needed. :D |
|
|
| Report Abuse |
|
|
Mr_Crunch
|
  |
| Joined: 16 Jul 2016 |
| Total Posts: 275 |
|
|
| 15 Aug 2017 11:11 AM |
| serialize all the info for their tycoon when the user leaves using datastore, load it and iterate through it and create what info its giving. |
|
|
| Report Abuse |
|
|