Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I got a question about data persistence and how I can use it?

well I already know how to use it anyways but heres my question

can I save a players info as a table on a online server then when I go to edit the game load that same data and if so how would it look like would it be the script it was saved in or no?

1 comment

0

Not with DataStore or DataPersistence. They each use different storage for data when you're in Edit mode vs. when you're in online mode.

1 answer

and also i'm currently making a RPG but in the game your player creates an account so would this work to save their ingame account password after they create it

heres my script so far :

script.Parent.MouseButton1Down:connect(function(click)
	if game.Players.LocalPlayer.Info.Username.Value == "" and game.Players.LocalPlayer.Info.Password.Value == "" then
game.Players.LocalPlayer.Info.Username.Value = script.Parent.Parent.Username.Text
game.Players.LocalPlayer.Info.Password.Value = script.Parent.Parent.Password.Text
game.Players.LocalPlayer.Info.Password.Value:SaveString()
	end
end)

2 comments

1

you could have edited your question above and put this in...

0

I know im not really helping with your script, but if you could, it would be easier for your players just to join and there would be an automatic load so they dont have to remember a password.

This discussion is preserved as it was. New answers, comments, and votes are closed.