generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Persistance help

Previous Thread :: Next Thread 
CrixusOdalisManiatus is online. CrixusOdalisManiatus
Joined: 16 Jun 2011
Total Posts: 5987
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 is not online. Sevrick
Joined: 22 Oct 2013
Total Posts: 3846
15 Sep 2015 10:53 PM
use datastore
Report Abuse
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
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
CrixusOdalisManiatus is online. CrixusOdalisManiatus
Joined: 16 Jun 2011
Total Posts: 5987
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
CrixusOdalisManiatus is online. CrixusOdalisManiatus
Joined: 16 Jun 2011
Total Posts: 5987
16 Sep 2015 06:49 PM
...?
Any help?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image