of     1   

OldGoldie
#223902155Saturday, August 19, 2017 3:11 AM GMT

I heard there was a new way to do it, I'm trying to UpdateAsync a datastore when the server dies.
Unsubtleties
#223902296Saturday, August 19, 2017 3:14 AM GMT

It was replaced by the BindToClose method.
OldGoldie
#223902540Saturday, August 19, 2017 3:20 AM GMT

game:BindToClose(function() servers:UpdateAsync("servers", function(oldValue) local newValue = oldValue or {} --oldValue might be nil for i = 1,#oldValue do if newValue[i].jobid == game.JobId then table.remove(newValue,i) break end end return newValue end) end) It isn't updating? When the server dies is there no time to update the datastore?

    of     1