thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
|
| 10 Mar 2014 10:58 AM |
game.Players.PlayerAdded:connect(function(Player) local leaderstats = Instance.new("Model", Player) leaderstats.Name = "leaderstats" local points = Instance.new("IntValue", leaderstats) points.Name = "Points" points.Value = Player:LoadNumber("points") points.Changed:connect(function(change) Player:SaveNumber("points", change) end) end)
|
|
|
| Report Abuse |
|
|
thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
| |
|
thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
| |
|
thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
| |
|
|
| 10 Mar 2014 12:00 PM |
Any errors? If not, are you sure youre running it in online mode?
If there are no errors and youre doing this online, do this:
game.Players.PlayerAdded:connect(function(Player) Player:WaitForDataReady() local leaderstats = Instance.new("Model", Player) leaderstats.Name = "leaderstats" local points = Instance.new("IntValue", leaderstats) points.Name = "Points" points.Value = Player:LoadNumber("points")
points.Changed:connect(function(change) Player:SaveNumber("points", change) end) end) |
|
|
| Report Abuse |
|
|