|
| 20 Aug 2014 06:38 PM |
i explain in comments (yes i know data persistence is old but it still works)
game.Players.PlayerAdded:connect(function( PLAYER ) PLAYER:WaitForDataReady()
local backpack = PLAYER.Backpack local tool = script.Healing:Clone() -- it clones the thing i need it to fine tool.Parent = backpack
local bob = Instance.new("IntValue") -- this doesn't get added bob.Name = "gamestuff" bob.Value = 0
local cash = Instance.new("BoolValue") -- or this cash.Name = "IsATeam" cash.Value = false
bob.Parent = PLAYER cash.Parent = bob
if PLAYER:LoadNumber("A") then --cash.Value = PLAYER:LoadNumber("A") end
end)
game.Players.PlayerRemoving:connect(function( PLYR ) --PLYR:SaveNumber("A", PLYR.leaderstats.Cash.Value) end)
--i get no errors |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
| 20 Aug 2014 08:06 PM |
| Thats not what i needed help with lol |
|
|
| Report Abuse |
|
|
|
| 20 Aug 2014 08:13 PM |
--cash.Value = PLAYER:LoadNumber("A")
hmm i wonder y it wont work |
|
|
| Report Abuse |
|
|
|
| 20 Aug 2014 08:22 PM |
| If you read the comments in the code you would see that the problem is not that it isn't loading the code won't create the instances LOL |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 21 Aug 2014 05:35 AM |
| it wont work cuz ur bad at scripturing |
|
|
| Report Abuse |
|
|
Laedere
|
  |
| Joined: 17 Jun 2013 |
| Total Posts: 23601 |
|
|
| 21 Aug 2014 05:47 AM |
| Hey, Dueling, This Is a Christian Community, Please Don't Bullie Others Jesus Doesent Like it.. |
|
|
| Report Abuse |
|
|
DataStore
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 8540 |
|
|
| 21 Aug 2014 05:53 AM |
@Laedere, No, it's really not. Religion really doesn't matter here, and the forum isn't a place to express it.
@OP, You've never parented the new instance.
Instance.new("IntValue", Workspace) --// This would instance an 'IntValue' to Workspace.
|
|
|
| Report Abuse |
|
|
Laedere
|
  |
| Joined: 17 Jun 2013 |
| Total Posts: 23601 |
|
|
| 21 Aug 2014 05:55 AM |
| Most OF The World Is Christian, Making The Primary Religion Christianity, If You Defy it You Will Burn |
|
|
| Report Abuse |
|
|
DataStore
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 8540 |
|
|
| 21 Aug 2014 06:04 AM |
Toasty.
Now shuu. Go talk to people who care. |
|
|
| Report Abuse |
|
|
Laedere
|
  |
| Joined: 17 Jun 2013 |
| Total Posts: 23601 |
|
| |
|
|
| 21 Aug 2014 09:02 AM |
i did set the parent later on in the script
bob.Parent = PLAYER |
|
|
| Report Abuse |
|
|
| |
|
| |
|