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 = {}
Players.PlayerAdded:Connect(function(player)
if table.find(systemManager.authorized(), player.UserId) then
local addGui = script:WaitForChild("RankManagerGui"):Clone()
addGui.Parent = player.PlayerGui
end
end)
local function updateFrames()
--Print all keys and values from awaitingResult datastore
end
updateFrames()
rankManagerEvent.OnServerEvent:Connect(function(player, instruction, mouseX, mouseY)
if debounce then return end
debounce = true
--????????????
debounce = false
end)
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.