DataStore Saving Problem

That should not be a problem, but as I suggested make sure the PlayerRemoving codeblock is placed at the end of the script.

local Players = game:GetService("Players")

Players.PlayerAdded:Connect(function(Player)
     -- get data
end)

Players.PlayerRemoving:Connect(function(Player)
     -- save data
end)

Are there any errors in the output?

No errors, I put it at the very end of the script and for some reason it won’t save.

Follow the format I have provided above, please.

Do you have API Services turned on? If not, your DataStore will not work.

I just turned it on, it has the same result though. I also followed the format you provided.

@AbiZinho I followed the format you provided, I wonder why it’s not working.

SetAsync will overwrite any existing value, you can use it if you don’t care about the old value being overwritten.

UpdateAsync will update the datastore with the new value instead of overwriting it, it also returns the old value.