Are there any other ways to store a stringValue?

Hey guys,
I’ve been a scripter for nearly 2 months.
I tried to store basic info of a client when they join my experience.

local userId = player.UserId
local name = player.Name
local accountage = player.AccountAge

Is there a way to store all this in a table from a stringValue that I created called “account_info” because when i try to i get the error “string expected” and not a table, when I obviously like this:

client_info.Value = {

	{"Welcome back: " , name},
	{"you're userID: ", userId},
	{your account is: " , accountage}
	
}

If you guys have a soliution, I’m happy to hear it.
Thanks.

2 Likes

When you want to store a table into a string.value you will need to use JSON to encode/decode the table into a string that you can then assign to your string.value
You can find more info about using JSON here:

3 Likes

Hey,
Thanks again. This definitely helps!

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.