#Money saving in the game

1 messages · Page 1 of 1 (latest)

last maple
#

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?

#

this is the script i have in Gui

timid hamlet
vagrant plover
vagrant plover
#

^^

last maple
last maple
swift cairn
last maple
#

how should the script look like?

#

should i use something from the docs?

last maple
#

okey, there is a progress

mint baneBOT
#

studio** You are now Level 1! **studio

last maple
#

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

sudden wave
#

Can I see the script?

#

Are you setting async when player leaves?

split sand
#

You have to set the data to be the same as the plr's values

swift cairn
#

Make sure you change the money on the server side. If the server cannot see a change then it will not save said change

split sand
#

(thats because client's actions are ignored by the server)

vagrant plover
#

am i tripping?

#

😭

last maple
#

Which line?

vagrant plover
#

everything thats a server script

#

it says "Sewer

#

serwer

#

not sewer mb

last maple
#

Yeah.

#

Serwer

vagrant plover
#

why tf

#

😭

last maple
#

I am polish

#

And server in polish is serwer

#

It's just a name that appears when the script is active

vagrant plover
#

oh

#

😭

last maple
#

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.

vagrant plover
#

dont do that.

#

no.