Is my Data script optimal?

i amnot very good at data stores but you should use profile service for serverlocking to prevent players from losing data
imagine this
– player joined server a and got 100 cash
– player left server a and the server is saving his data
– player joins server b but server a didnot finish saving his data
– server b will get 0 cash from the datastore and loads his data
– the player got 0 cash and server a saved his data but its too late
– i amnot good at explanation if this wasnot clear you can check server locking on the forum or yt

1 Like