|
| 04 May 2015 04:40 PM |
Code:
local Key = "Tokens" game.Players.PlayerAdded:connect(function(Player) Player:WaitForDataReady() local Score = Player.leaderstats:LoadNumber(Key) print(""..Score) end) game.Players.PlayerRemoving:connect(function(Player) local Score = Player.leaderstats:SaveNumber(Key,Score) end)
Error:
21:47:38.784 - SaveNumber is not a valid member of IntValue
I typed this from a lua programming book btw
If I could have anything I wanted I would choose friends |
|
|
| Report Abuse |
|
|
|
| 04 May 2015 04:44 PM |
b1
If I could have anything I wanted I would choose friends |
|
|
| Report Abuse |
|
|
murcury57
|
  |
| Joined: 30 Jun 2010 |
| Total Posts: 90299 |
|
| |
|
|
| 04 May 2015 04:52 PM |
Player.leaderstats:SaveNumber(Key,Score)
replace that with
Player.leaderstats:SaveNumber(Key,Score.Value)
i think you need to save the property value, not the object |
|
|
| Report Abuse |
|
|