So I am using OrderedDataStores and so I have created this function
local function getCurrentPage()
if not debounce then
debounce = true
for title,id in pairs(pages:GetCurrentPage()) do -- create new tags
print(title)
print(id)
print(id['Key'])
local tag = script:FindFirstChild('Tag'):Clone()
--tag:FindFirstChild('TextButton').Text = string.split(id.Key,'_')[1]
tag.Parent = frame:FindFirstChild('ScrollingFrame')
end
wait(1)
debounce = false
end
end
so what does this do? It gets an item that is on the current page, now apparently the ID value is a table that contains a value called Key (Which is the key of what I used to save it to the datastore).
This is what I get when I print id.
▼ {
[“key”] = “Kevin here ya go!_3296960201”,
[“value”] = 3
} - Edit - Control:60
now as we can see when I print it yes there is a Key value, but everytime I try to get it I get nil.
Ive tried doing these things, they all print nil
print(id.Key)
print(id['Key'])
so uh how can I get the Key value?