|
| 02 Oct 2016 02:38 PM |
How Do I Save Stats Within A Folder Inside Other Folders? Ill Try To Give Examples:
game.Players.PlayerRemoving:connect(function(p) if p:findFirstChild("Folders") then p:SaveInstance("SavedStatPNum"..tostring(game.PlaceId),p.Folders) #################################################################################################################################################################### end local Loaded = nil if p:findFirstChild("Folders") and pcall(function() Loaded = p:LoadInstance("SavedStatPNum"..tostring(game.PlaceId)) end) then for u,v in pairs(p.Folders:GetChildren()) do for i,l in pairs(v:GetChildren()) do pcall(function() v[l.Name].Value = l.Value end) end end end end)
This Is How The Folders Go:
Player Folders --Folder Stats --Folder Value --IntValue Materials --Folder Value --IntValue RuneInventory --Folder Value --Stringvalue Etc...
How Would I Save Whats In Each Folder? And Can Someone Give Me An Example |
|
|
| Report Abuse |
|
|
DataRoot
|
  |
| Joined: 07 Apr 2016 |
| Total Posts: 586 |
|
|
| 02 Oct 2016 02:39 PM |
Try looking at this: https://www.youtube.com/watch?v=OLuvQoF1o58 |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 02 Oct 2016 02:40 PM |
How many danm times do I have to say, STOP USING SAVE INSTANCE. Ive given you an example 1000000000000000000 times and you refuse to listen at all.
Read this thread and you will understand what you have to do:
https://forum.roblox.com/Forum/ShowPost.aspx?PostID=195621950
|
|
|
| Report Abuse |
|
|
DataRoot
|
  |
| Joined: 07 Apr 2016 |
| Total Posts: 586 |
|
|
| 02 Oct 2016 02:41 PM |
| And as Time would also suggest, watch this: https://www.youtube.com/watch?v=OLuvQoF1o58 |
|
|
| Report Abuse |
|
|
| |
|
|
| 02 Oct 2016 03:28 PM |
| @TimeTicks That Confuses Me, But I Can Try. |
|
|
| Report Abuse |
|
|