This doesn't run the rest of the code and stops at this line. Any help is appreciated ;)
game:GetService("DataStoreService"):GetDataStore("Played"):SetAsync(tostring(player.userId),false)