#Does anyone know how to save script-created values?

1 messages · Page 1 of 1 (latest)

distant lance
#

so when a script creates an numvalue, there will be an script that saves the script-created value. so when you join, the script-created value WILL appear on the player.

rapid jetty
distant lance
#

the script made value is when

#

YOU buy something, and to make the character save

#

the script that makes the datastore

#

must save the script-made value

#

like

#

kinda brain aint braining

rapid jetty
distant lance
#

like

#

when you buy something

#

an different script gets triggered

#

and makes an value

#

which when you leave

#

that value gets into the player

#

and gets saved by the datastore script

rapid jetty
#

when you leave the game it gets "into the player"?

#

thats the part i dont get

distant lance
#

im making an character saving system.

#

you buy a character

#

it gets into an slot

#

then when the player leaves

#

the script made value with the character's info

#

gets saved by the datastore script.

#

so like the datastore script saves money and the script made value

rapid jetty
#

alr so say when the player join, you create an empty table

#

and each time the player purchases a new character that character gets saved into that table(added)

#

once the player leaves, that table gets saved to datastore

#

do you know how to achieve this?

distant lance
#

but how do i add the character and its slot's info to the table

rapid jetty
#

how familiar are you with tables

distant lance
tame stratus
#

@distant lance

#

re-explain

rapid jetty
tame stratus
#

in one sentence

rapid jetty
tame stratus
#

u are both explaining badly

rapid jetty
#

since you are saving a bunch of purchased characters

distant lance
# tame stratus in one sentence

basically, when you buy a character, it gets into your base, so it gets into an slot, which i wanna use an table to save the character's info and its slot, so each time you buy a character, it gets into the table to save.

distant lance
rapid jetty
#

set in mind that a table itself can contain tables

tame stratus
#

?? idk if thats what ur looking for

distant lance
tame stratus
#

ya

distant lance
#

but an table gets added

tame stratus
#

what are u making a table out of us

#

that makes a table alreadcy

#

it's a array of [1] character info and [2] slot

distant lance
tame stratus
#

read bottom one

rapid jetty
#

guess get slapped with ressources

rapid jetty
distant lance
tame stratus
#

i hate s1s bro

rapid jetty
tame stratus
#

ur a skid

rapid jetty
#

nah but id rather give a good explaination first