So i am working on a game, and i made a simple money system, it seems to work but it doesn't save when player is rejoining. I watched a few YT videos that explains it, but all videos i found were about leaderstats Saving progress, but i have my system displayed on the screen as a Gui, how do i make this work? How to make the Value from Gui and the player save after rejoining?
#Money saving in the game
1 messages · Page 1 of 1 (latest)
idk ask chatgpt that will help allot
are we deadass
You have to save the values in a ServerScript using DataStoreService
^^
I did and this guy broke my script that is barely working anyway
And how do i do that? How do i save Values from the money script in the DataStoreService? I couldn't find it online like i said, the tutorials only showed how to make it work if you got money on leaderscore
https://create.roblox.com/docs/reference/engine/classes/DataStoreService
yet keep replication in mind:
i have no idea what i just read
how should the script look like?
should i use something from the docs?
okey, there is a progress
** You are now Level 1! **
it seems like the game starts to catch the amount
but it sets it to zero
like, i gave myself 200$, then i left and the last line says that it saved 0
You have to set the data to be the same as the plr's values
Make sure you change the money on the server side. If the server cannot see a change then it will not save said change
(thats because client's actions are ignored by the server)
Which line?
like
everything thats a server script
it says "Sewer
serwer
not sewer mb
I am polish
And server in polish is serwer
It's just a name that appears when the script is active
Yeah, was easier for me that way
Well, it was. Nothing works for now so I deleted every script and i am working On the project from the beggining
making a GaG be like game is hard.