|
| 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 |
|
|
| |
|
| |
|
|
| 12 Aug 2012 05:57 PM |
| http://wiki.roblox.com/index.php/Data_Persistence |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 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 |
|
|
|
| 12 Aug 2012 06:00 PM |
| Go on YouTube and go to coolbob44. Thats where I learned to script ;) |
|
|
| Report Abuse |
|
|
DangCool
|
  |
| Joined: 27 Apr 2010 |
| Total Posts: 5568 |
|
| |
|
|
| 12 Aug 2012 06:06 PM |
| Hi DangCool. I learnt some stuff from you. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|