generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Saving Stat Problems

Previous Thread :: Next Thread 
lopsidedmail is not online. lopsidedmail
Joined: 29 Oct 2011
Total Posts: 253
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 is not online. 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 is not online. 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 is not online. 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
lopsidedmail is not online. lopsidedmail
Joined: 29 Oct 2011
Total Posts: 253
02 Oct 2016 03:08 PM
@DataRoot Lol?
Report Abuse
lopsidedmail is not online. lopsidedmail
Joined: 29 Oct 2011
Total Posts: 253
02 Oct 2016 03:28 PM
@TimeTicks That Confuses Me, But I Can Try.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image