#Datastores
53 messages · Page 1 of 1 (latest)
try this
https://devforum.roblox.com/t/save-your-player-data-with-profileservice-datastore-module/667805
DATA STORE v2 IS NOW SUPPORTED - Click for more info Mad Studio cross-promo: Check out ReplicaService for state replication / networking! If you’re curious about how Madwork is written, give MadLife - code_guidebook a read! If you find this resource helpful please consider supporting me by shouting out my latest project 🥰 Madwork - Profi...
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
@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 }
hello which one is better?
@last hull or your strategy
Depends on what you need. bmike simply showed a basic example of how to retrieve either a number, a string or a boolean
My method tells you how to save instances
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
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
Exactly what bmike said
Other way around. I showed him how to save instances. As you can’t directly save them in stores, so you’ll have to have a system in place to translate either a number or a string to an instance
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
No I didn’t, please learn how to read English
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
My guy
Are you blind or something?
Read what I said
.
Yea my bad I should learn english as a folder is not a instance of the game my bad
GUYS I JUST WANT TO SAVE DATA THAT IS NOT ACTUALLY IN THE GAME SO VIRTUAL DATA OMG
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
Make yo 50%? What does that even mean also I had alot of trouble reading what you said you start yapping about folders and tables when what you are talking about has nothing to do about the problem
Now good?
A small typo over a guy being unable to build a normal English sentence
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
You need to re word this entire mess
That’s actually a normal way of explaining it without using a lot of scripting terms
But hey
You do you
I’ve other shit to do so I’ll probably stop responding
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
Alright probably the best option
@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
I created an example here for you. This how you would create your own key can be named anything
Ok thank you so much
Np man
Idk what the other guy was talking about tbh but glad you got the awnser
u need a DataStore
bruh there is a much easier way
yes there is but profile service is prob the most efficient
and much easier to use
when you get the hang of it