#datastorage is hell please help me

1 messages · Page 1 of 1 (latest)

sharp plover
#

Try find first child instead of wait for child in player removing function maybe

wind dagger
#

dont keys have to be sstrings

#

ur saving the data using a number

#

the player id

#

@cerulean pendant

#

idk

#

i giiv eup

cerulean pendant
#

Wym

#

Sorry wasnt there

cerulean pendant
wind dagger
static tide
#

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')

cerulean pendant
#

Im relativly new so

#

Eh

#

I don't really get why it the same code worked on a other place

static tide
#

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")

cerulean pendant
#

Just called PlayerCoins

hearty windBOT
#

studio** You are now Level 3! **studio

cerulean pendant
#

Will do later gotta sleep

#

Dang

static tide
cerulean pendant
#

Ty

static tide
#

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.

cerulean pendant
#

Got it

#

Imma text tomorrow and tell u how it went if that's fine

static tide
wind dagger
#

Wait a minute

#

U just reminded me

#

My data store doesn’t have that

#

Wtf

#

Alr I gotta add that now