Datastore2 How to use tables?

So i’ve been trying to learn datastore2 but the process is not going well, there are almost no recent videos that I can find, the only useful thing ive found is the API, which had a basic guide but it wasn’t what I was looking for.

Can someone right me a basic template script, where when you trigger a proximity prompt on a part
it will save the parts name in a table? ive been trying to do this but each time I just got a million warnings

Thanks

use http service to encode into a json string

game:GetService("HttpService"):JsonDecode(string)