Get All Data from Datastore

local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local rankManagerEvent = ReplicatedStorage:WaitForChild("rankManagerEvent")
local applicationFrame = script:WaitForChild("ApplicationFrame")

local DataStoreService = game:GetService('DataStoreService')
local awaitingResult = DataStoreService:GetDataStore('awaitingResult')

local debounce = false
local systemManager = require(script.Parent:WaitForChild("systemManager"))

local currentFrames = {}

	if table.find(systemManager.authorized(), player.UserId) then
		local addGui = script:WaitForChild("RankManagerGui"):Clone()
		addGui.Parent = player.PlayerGui

local function updateFrames()
	--Print all keys and values from awaitingResult datastore

rankManagerEvent.OnServerEvent:Connect(function(player, instruction, mouseX, mouseY)
	if debounce then return end
	debounce = true
	debounce = false

I want to be able to get all the keys and values in a datastore, I tried searching for another question like this, although I found answers, none of them worked for me and I kept getting errors.

So, you want something like ListKeysAsync?

If listKeysAsync gets me all the keys and values stored in the datastore then yes

So, this part of the docs talks about it:
DataStore | Documentation - Roblox Creator Hub

You have to loop through the pages object to get the key names, which is literally a property called “KeyName” of the DataStoreKey object.