Saving datastore error (saving tables)

Can you print something after the setasync? I’ve never had this happen to me before.

1 Like

i printed allsave before the pcall also

1 Like

1 Like

Can you print something after the setasync? It shouldn’t take very long for it to attempt to save so…

1 Like

hm it doesnt print “pcall ended”

1 Like

1 Like

Oh shoot. Can you do tostring(plr.UserId) instead of just plr.UserId?

1 Like

same thing happens even when i do that

1 Like

Can I see your code? Are there any errors?

1 Like

There is no errors and the code is at the top

I meant with the tostring() also can you send the output.

the output is up here if you scroll up a bit the output is the same

With the tostring applied to the player id.

the output is same either way i dont think tostring affects it

Iirc playerid is a number and you can’t concatenate a number with string directly.

Edit: dumb autocorrect

still, nothing changes still doesnt print anything after pcall

encode your table with HttpService
then decode it when getting the data

game.Players.PlayerRemoving:Connect(function(plr)
	print("Left.")
	save(plr)
end)


game:BindToClose(function()
	for i, plr in pairs(game.Players:GetPlayers()) do
		save(plr)
	end
end)

i fixed it by doing this - but sometimes its not running script because past shutdown

The code is not saving the data whatsoever also I’m pretty sure his table is empty. Not sure why it’s not giving the table in a readable format.

the table isnt empty + read the code i gave and what i said