-- Function to periodically save player data

local function autoSave()
	while wait(AUTOSAVE_INTERVAL) do
		print("Saving")
		for playerUserId, data in pairs(sessionData) do
			savePlayerData(playerUserId)
		end
	end
end
 