Datastore2 Table Saving Method

Hello, I have some questions regarding the Datastore2 ModuleScript.

My first question is how would i go around saving Tables

local data = {}
data.player={
	Wins=0,
	Loses=0,
	Points=0,
	Rank='Novice',
}
data.ball = {
	BallType='Doom Ball',
	BallTrail='Default',
	BallExplosion='Default',
}

data.information={}
data.moveSet={}


return data

i want to save these tables and load them on to StringValues, IntValues etc.
this is how my Datastore script looks

local dataModule = require(script.Data)

function dataStore.setUp(plr)
	dataStore.plrDataStore = dataStore2(dataStore.keys.plrKey, plr)
	dataStore.ballDataStore = dataStore2(dataStore.keys.ballKey, plr)
	print('dataStore.setUp() API Executed loading player assets.')	
	local plrFolder = serverStorage:WaitForChild('plrFolder'):Clone() plrFolder.Name = plr.Name..'-folder'
	
	local function setPlrData(v)
	end
	local function setBallData(v)
	end
end

Any assistance would be appreciated; i see many post yet most of them are solutions but all different methods, Also while im scrolling through the Datastore2 GitHub pages, i found a Datastore2:GetTables() ← I never seen any post referring to this, so if this is a Superior method of saving tables using datastore2 please explain to me.

1 Like