#Datastores

53 messages · Page 1 of 1 (latest)

carmine birch
#

can you store other things besides bool values, int values, etc and instead store variables? If so please tell me thank you!

shrewd nymph
#
sonic tulip
#

that's an option, or if you want to create your own system to store things such as instances then you can have a storage (a folder with all retreiveable instances) and just reference them by name), then just table.find the right instance and copy it over

last hull
#

@carmine birch

#

yes he is right able the table you can save the data creating your own custom key. Like this: lua local TowerStats = DSS:Get("TowerStats"..player.UserId) or { TowerHeight = 0 }

carmine birch
#

@last hull or your strategy

sonic tulip
#

My method tells you how to save instances

carmine birch
#

I dont need to save instances though just variable values

#

like coins = x amount

#

but instead of it being an int value it would be a variable stored

last hull
#

Use my method then

#

@sonic tulip is just showing you how to normally save like int values strings etc but to store values that are not an object inside the game you will need to use a table

sonic tulip
#

Exactly what bmike said

sonic tulip
last hull
#

No

#

You showed him to create a folder

#

And save those instances that way as the values are parented to the folder

#

While the thing I am showing is how to save a table without doing all that

#

Using || will auto set all the values I know you meant by reference but I feel like that is pointless because you are just retrieving names

sonic tulip
#

The table will be used to reference strings/ints into instances. As saving instances is impossible, it’s a very simple workaround around the set limitations of datastores

last hull
#

Are you blind or something?

#

Read what I said

last hull
#

Yea my bad I should learn english as a folder is not a instance of the game my bad

carmine birch
#

GUYS I JUST WANT TO SAVE DATA THAT IS NOT ACTUALLY IN THE GAME SO VIRTUAL DATA OMG

sonic tulip
# last hull Read what I said

I’m reading it to the best of my abilities and I have to make up* 50% of what I read because I’ve no clue what you tried to say

last hull
sonic tulip
#

A small typo over a guy being unable to build a normal English sentence

last hull
#

I don’t know why you are talking I obviously can’t understand what you are trying to say so that’s why you are asking me if I can read English

#

Because you are horrible at explaining

last hull
sonic tulip
#

But hey

#

You do you

#

I’ve other shit to do so I’ll probably stop responding

last hull
#

I am just wondering why you are talking about instances when he wants to store things that are not instances I just find it crazy

last hull
#

@carmine birch to save data that is not an instance like you said, you will just create your own key and store that data as a table so you can store like stats or whatever.

#

Without creating real objects

last hull
last hull
#

Idk what the other guy was talking about tbh but glad you got the awnser

void mortar
void mortar
shrewd nymph
#

and much easier to use

#

when you get the hang of it