#datastorage is hell please help me
1 messages · Page 1 of 1 (latest)
dont keys have to be sstrings
ur saving the data using a number
the player id
@cerulean pendant
idk
i giiv eup
What do u mean
Do tostring(Player.UserId)
game:bindtoclose
also do not yield in this function, if PlayerMoney isn't there on player removing, it never will be. lua players.PlayerRemoving:Connect(function(plr) local playerMoney = plr:WaitForChild('PlayerMoney')
Im relativly new so
Eh
I don't really get why it the same code worked on a other place
the last possibility is that sometimes i've found reading from these values doesn't work with how players are removed, so you may need to hold it in a table and getpropertychangedsignal("value")
Just called PlayerCoins
My goat pyro saving the day
Do u have a docs link
** You are now Level 3! **
you probably only need to do just game:bindtoclose https://create.roblox.com/docs/reference/engine/classes/DataModel#BindToClose
Ty
playerremoving doesn't fire properly if the server shuts down with players in it, such as in studio and occasionally it will happen in live server.
9 times out of 10 'mah datastuur not saevin' is missing game:bindtoclose
