|
| 15 Sep 2015 10:27 PM |
Output says that persistence getblob placeid userid = failed
http 404 http/#.# 404 not found
elapsed time: 0.10388
wat do
here script:
local TaS = game:GetService("DataStoreService"):GetDataStore("Items")
function GiveStuff(player) local key = "user_" .. player.userId local items = TaS:GetAsync(key) local itemstoget = {} if not items then items = "" end for founditem in string.gmatch(items,"%P+") do print(founditem) table.insert(itemstoget,founditem) end for i = 1, #itemstoget do game.Lighting:FindFirstChild(itemstoget[i]):Clone().Parent=player.StarterGear end end
function SaveStuff(player) local key = "user_"..player.userId TaS:UpdateAsync(key,function(oldVal) local allitems= "" local stuff = player.StarterGear:GetChildren() for i = 1, #stuff do if stuff[i].ClassName=="Tool" then allitems = allitems ..stuff[i].Name.."," end end return allitems end) end
game.Players.PlayerAdded:connect(GiveStuff) game.Players.PlayerRemoving:connect(SaveStuff)
game.OnClose = function() wait(5) end |
|
|
| Report Abuse |
|
|
Sevrick
|
  |
| Joined: 22 Oct 2013 |
| Total Posts: 3846 |
|
| |
|
|
| 15 Sep 2015 11:03 PM |
@Sevrick if you had read the code, you would find he just titled it wrong, he actually is trying to use data store.
-The [Guy] |
|
|
| Report Abuse |
|
|
|
| 16 Sep 2015 06:21 PM |
the script is datastore, the thing roblox using is persistence hence the 'persistence getblob placeid userid = failed' |
|
|
| Report Abuse |
|
|
| |
|