Hello developers!
I want to know if there is a way to save data like currency (without publishing a mode and using API).
Like through a text document or something like that?
Saving data simply via the rblx file
In what context are you saving this data? Like during game runtime or studio? Also, specifically what kind of data is this?
I want to create a currency money, and have it saved locally on my computer. I am NOT publishing the game, and this game can only be played by me via the rblx file. How can I save the numbers so that when I re-enter the game I have money saved. I don’t use API service and certainly I don’t publish the game
I am unsure if this is possible. (I don’t think it is.) I know you can save data in studio if you used plugins, but that is all I think that is possible. What is the use case for this? Why not publish and use the datastore API?
I was just curious to know if it was possible to do such a thing
ty for help
It’s possible to do this with HttpService and creating your own local storage API.
For example, if you create an Express JS API and run it locally on localhost:3000, you can use HttpService to send requests to that address to create or retrieve data. This is the only way I can see data being stored locally.
Don’t you have to publish the game to use the http service?
I don’t remember, I would have to test this first to confirm.
I remember in order to send HTTP requests, you have to publish the game
Is it possible to do the saving somehow via text notepad?
By placing in the root folder of roblox studio
For example, you can use sound if you put the sound in the root folder of Roblox Studio
NodeJS applications are capable of saving and reading from a text file. I don’t think this can be done on Roblox.
I’ll give it a try, if I don’t understand something, can I get help from you?
ty for help
Sure, feel free to ask me anything through this thread.
Here’s some resources to get you started:
Heads up, this does require some basic knowledge of JavaScript and using NodeJS.
Hi again, can I make a table in google sheets, and add and get data from there directly into roblox?
If so, can you show me code roughly how, if it’s not too difficult
I don’t have any code that uses Google Sheets API, but you could use something like this:
I’m very grateful to you! It works great, I’m so happy.
Can I ask you one last question? I learned how to get information from google sheets table, but how can I add information there through a script?
Oh, I didn’t realize the module doesn’t have a function to add data. It looks like you’ll have to stick with making your own module/wrapper for the Google Sheets API.
These are the REST API Endpoints for Google Sheets:
Adding Data:
Retrieving Data:
Edit:
If you don’t want to make a Google Sheets module from scratch, I believe there are modules for NodeJS, however, this means you would still have to make your own local API using Express to make use of this.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.