https://gyazo.com/f439df2bbf48d28c879deb62ebcf3e85
https://gyazo.com/97b02b2f9327f044bf36d6724a51fe29
what wrong in my script? no errors but i noticed that when player exit it not printing “Cash Saved”
i have Api Services Enabled
https://gyazo.com/f439df2bbf48d28c879deb62ebcf3e85
https://gyazo.com/97b02b2f9327f044bf36d6724a51fe29
what wrong in my script? no errors but i noticed that when player exit it not printing “Cash Saved”
i have Api Services Enabled
Do you have apiservices enabled? and ru changing the cash locally
yes i have api services enabled
this is server? or locally ![]()
i am in the studio locally
.
Studio has problems with datastore, try TeamTest if it is a TC, otherwise idk.
i will try wait sec
.
Otherwise, just make an autosave and see if that works.
Script please??? Also try clicking create on the roblox home page and click start place of your game and try to test it there.
https://gyazo.com/97b02b2f9327f044bf36d6724a51fe29
ok i will try
I see you are using a localscript to change the value, that won’t work. You need to change the value server-sided, otherwise the Datastore won’t detect a change in the value and won’t save it.
it doesn’t work idk… ![]()
You don’t need userid you just need player, value
i want to save gui money not leaderstats
You need the UserId, so the keys are unique to each player. Instances can not be a key.
Just use leaderstats and make the gui say the value of Cash??
You might’ve missed an equals sign when you pcall, try checking that.
My point is you can’t save anything locally. It needs to be SERVER-SIDED. So you need to make a value for the player and save/change it from there.
can you show me example if no its ok
Wait my DataStore works and I dont use UserId? please explain this