local function S()while wait(AUTOSAVE_INTERVAL)do print("\083\097\118\105\110\103")for S,z in pairs(sessionData)do savePlayerData(S)end end end
-- 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
