|
| 23 Aug 2017 11:28 AM |
local ds = game:GetService("DataStoreService"):GetDataStore("datastorename")
game.Players.PlayerAdded:connect(function(player) --make the values value.Value = ds:GetAsync("Value"..player.userId) end
game.Players.PlayerRemoving:connect(function(player) ds:SetAsync("Value"..player.userId,player.boolValue.Value) end
its supposed to save bool values in a player
halp
"The LORD is my shepherd, I lack nothing." Psalm 23:1 |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2017 11:31 AM |
pls
"The LORD is my shepherd, I lack nothing." Psalm 23:1 |
|
|
| Report Abuse |
|
|
RobuxLife
|
  |
| Joined: 19 Sep 2012 |
| Total Posts: 13336 |
|
|
| 23 Aug 2017 11:52 AM |
I saw your other thread, are you trying to save tools that are in a players backpack?
|
|
|
| Report Abuse |
|
|
|
| 23 Aug 2017 12:02 PM |
yes, and this script is also supposed to copy values in a script called InventoryStore and paste them into the player but that parts not working either
the bool values are called Values, and inside are diffrent things called "cookieVal" "lemonadeVal", etc. Those values become true when a player buys something from the shop
HALP PLS
"The LORD is my shepherd, I lack nothing." Psalm 23:1 |
|
|
| Report Abuse |
|
|