|
| 15 Apr 2012 01:42 PM |
game.Players.PlayerAdded:connect(function(p) Board = Instance.new("IntValue", p) Board.Name = "leaderstats" Gold = Instance.new("IntValue", Board) Gold.Name = "Gold" p:WaitForDataReady() p.leaderstats.Gold.Value = p:LoadNumber("Gold") p.Backpack:Destroy() wait(1) p:LoadInstance("Back").Parent = p
if p:FindFirstChild("Backpack") == nil then game.Lighting.Backpack:Clone().Parent = p end
p.Backpack.ChildAdded:connect(function() p:SaveInstance("Back", p.Backpack) end) game.Players.PlayerRemoving:connect(function() p:SaveNumber("Gold", p.leaderstats.Gold.Value) end) end)
I don't know what is wrong, NO OUTPUT! |
|
|
| Report Abuse |
|
|
Tiranin
|
  |
| Joined: 03 Apr 2009 |
| Total Posts: 18850 |
|
|
| 15 Apr 2012 02:24 PM |
| I don't think Data Presistance works in solo. |
|
|
| Report Abuse |
|
|
Tiranin
|
  |
| Joined: 03 Apr 2009 |
| Total Posts: 18850 |
|
|
| 15 Apr 2012 02:25 PM |
| Ugh, data persistance is like C++ to me. |
|
|
| Report Abuse |
|
|
|
| 15 Apr 2012 02:47 PM |
| Im not using it in solo -_- |
|
|
| Report Abuse |
|
|
| |
|
|
| 16 Apr 2012 12:01 PM |
| Nobody is helping because? |
|
|
| Report Abuse |
|
|
mark298
|
  |
| Joined: 24 Oct 2008 |
| Total Posts: 1264 |
|
|
| 16 Apr 2012 12:17 PM |
| Put a few of prints in so you know which part is going wrong. |
|
|
| Report Abuse |
|
|
|
| 16 Apr 2012 12:27 PM |
| Already have, I CLEARLY said, I don't know what is WRONG! |
|
|
| Report Abuse |
|
|
|
| 16 Apr 2012 01:37 PM |
| Does it do anything at all? Anyways, I think the board variable should be a model. |
|
|
| Report Abuse |
|
|
|
| 16 Apr 2012 02:37 PM |
| I have a data persistance script. You can use that. It works with any leaderstats. |
|
|
| Report Abuse |
|
|
| |
|