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 » Scripting Helpers
Home Search
 

Re: Help with Data Persistence?

Previous Thread :: Next Thread 
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
30 Sep 2012 11:05 PM
So I have this Login System and I want it to save the login info. But it isn't returning any errors or informations and it's not working.


game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:wait()
script.LoginSystem:Clone().Parent = player.PlayerGui
wait()
player:WaitForDataReady()
player:LoadString("p")
player:LoadString("u")
msg = Instance.new("Message", player.PlayerGui)
msg.Text = "Pass: " .. player.PlayerGui.LoginSystem.Code.Value .. ", Username: " .. player.PlayerGui.LoginSystem.Username.Value
end)

game.Players.PlayerRemoving:connect(function(plr)
if plr.DataReady then
plr:SaveString("p", player.PlayerGui.LoginSystem.Code.Value)
plr:SaveString("u", player.PlayerGui.LoginSystem.Username.Value)
end
end)
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
30 Sep 2012 11:09 PM
...
bump
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
30 Sep 2012 11:13 PM
God do I hate Scripting Helpers at night. So sllllllllooooooooowwwwwwwwwww
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
30 Sep 2012 11:40 PM
...
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
01 Oct 2012 12:31 AM
Herro?
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
01 Oct 2012 09:18 AM
cmon
Report Abuse
awas3 is not online. awas3
Joined: 24 Oct 2010
Total Posts: 2854
01 Oct 2012 09:39 AM
Output?
Report Abuse
jobro13 is not online. jobro13
Joined: 05 Aug 2009
Total Posts: 2865
01 Oct 2012 10:54 AM
You loaded them, but you didnt use them to do anything. Example;

local text = p:LoadString("u")

print(text)

That will do something with the thing loaded.
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
01 Oct 2012 03:43 PM
@awas, "But it isn't returning any errors or informations" can you not read?

@jobro, I'll try that thanks
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
01 Oct 2012 04:12 PM
Doesn't work still and still doesn't have any errors.
Report Abuse
zamsongod is not online. zamsongod
Joined: 05 Dec 2008
Total Posts: 109
01 Oct 2012 04:24 PM
You cannot save after PlayerRemoving is called as it will miss it's timing. Use while wait() do or Changed() instead.
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
01 Oct 2012 04:32 PM
Yeah I was wondering why PlayerRemoving is listed in the Data Persistence tutorial. Thanks :D
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
01 Oct 2012 04:38 PM
It works!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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