How to save backpack upon leave with DataStore2

I am kinda new with DataStore2
I would like a script that will save backpack upon player leave with DataStore2

This post shows how to save the player’s backpack. It doesn’t use DataStore2 but it would be pretty easy to edit it to use DataStore2.

DataStore 2 is outdated and really hard to use. View this video to show you how to this!

so what should i use between datastore and datastore2?

I have a little to no knowledge about DataStore2 so I can’t really edit to DataStore2
Thats why im asking for the script directly I prefer reading open source scripts than reading a doc

bump bump bump bump bump bump bump

I don’t know much about DataStore2 But you could save a table full of the names of the items they have, then load that in the game using the names?

The rule is you can’t ask someone for a full-on script.

how do i load them with datastore2 ig

Why do you need to use DataStore2?

u got a way without datastore2?
when i use roblox datastore & datastore2 it puts backpack datastore in queue etc

ProfileService