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 » Scripting Helpers
Home Search
 

Data Persistence Script Help

Previous Thread :: Next Thread 
MrChickens is not online. MrChickens
Joined: 21 Feb 2009
Total Posts: 1076
12 Aug 2012 05:34 PM
Please look for mistakes in between the two marked areas.

game.Players.PlayerAdded:connect(function(player)
local lb = Instance.new("IntValue")
lb.Name = "leaderstats"
local points = Instance.new("IntValue", lb)
points.Name = "Points"
lb.Parent = player
player:WaitForDataReady()
points.Value = player:LoadNumber("Points")
--From here onwards
points.Changed:connect(function()
player:SaveNumber("Points", player.leaderstats.Points)
end)
--Until here
end)
Report Abuse
michael1784 is not online. michael1784
Joined: 15 Feb 2011
Total Posts: 3322
12 Aug 2012 05:44 PM
Hi
Report Abuse
MrChickens is not online. MrChickens
Joined: 21 Feb 2009
Total Posts: 1076
12 Aug 2012 05:54 PM
Bump
Report Abuse
luke111000 is not online. luke111000
Joined: 26 Apr 2009
Total Posts: 1853
12 Aug 2012 05:57 PM
http://wiki.roblox.com/index.php/Data_Persistence
Report Abuse
MrChickens is not online. MrChickens
Joined: 21 Feb 2009
Total Posts: 1076
12 Aug 2012 05:57 PM
luke... Fuuuuuuu
Report Abuse
luke111000 is not online. luke111000
Joined: 26 Apr 2009
Total Posts: 1853
12 Aug 2012 05:59 PM
What?
Report Abuse
MrChickens is not online. MrChickens
Joined: 21 Feb 2009
Total Posts: 1076
12 Aug 2012 06:00 PM
I already tried,
but saving when the player leaves doesn't work,
so i've tried saving when value is changed:connect
can you correct that part?
Report Abuse
luke111000 is not online. luke111000
Joined: 26 Apr 2009
Total Posts: 1853
12 Aug 2012 06:00 PM
Go on YouTube and go to coolbob44. Thats where I learned to script ;)
Report Abuse
DangCool is not online. DangCool
Joined: 27 Apr 2010
Total Posts: 5568
12 Aug 2012 06:02 PM
[ Content Deleted ]
Report Abuse
luke111000 is not online. luke111000
Joined: 26 Apr 2009
Total Posts: 1853
12 Aug 2012 06:06 PM
Hi DangCool. I learnt some stuff from you.
Report Abuse
MrChickens is not online. MrChickens
Joined: 21 Feb 2009
Total Posts: 1076
12 Aug 2012 06:08 PM
Wow! It was such a small error!

They need to let us exploit again so that I can see the output like before.
Report Abuse
luke111000 is not online. luke111000
Joined: 26 Apr 2009
Total Posts: 1853
13 Aug 2012 03:33 AM
Yeah, well your brother is creating 2.0. Should be soon.

















Then I've lost my account...
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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