Making application center.
What i’m working on specifically: Answer checking; Inserting all the answers in the table in their correct order. So I can compare with the answers given by the client.
It inserts void…
local SpecificQuizAnswers = {}
for i,v in pairs(QuizAnswers["Barista Quiz"]) do
if tonumber(i) then
print(i,v)
table.insert(SpecificQuizAnswers, i, v.Answer)
end
end
print(SpecificQuizAnswers)
Relevant code.
Quiz Answers Module script
local QuizInfo = {
["Barista Quiz"] = {
["Requirements"] = {
["GroupId"] = 0, --Put 0 if there is no require
["GroupRankId"] = 0, --Will not matter if there is no groupId.
["BlacklistedUsers"] = {"ROBLOX"}, --Username
["BlacklistedUserIDs"] = {0, 1, 2, 3},
["PercentageToPass"] = 75 --Out of 100. Anything above 100 will be an automatic failure
},
[1] = {
["Answer"] = "A", --A,B,C, or D
},
[2] = {
["Answer"] = "B",
},
[3] = {
["Answer"] = "D",
},
[4] = {
["Answer"] = "B",
}
},
["ManagerQuiz"] = {
["Requirements"] = {
["GroupId"] = 0, --Put 0 if there is no require
["GroupRankId"] = 0, --Will not matter if there is no groupId.
["BlacklistedUsers"] = {"ROBLOX"}, --Username
["BlacklistedUserIDs"] = {0, 1, 2, 3},
["PercentageToPass"] = 75 --Out of 100. Anything above 100 will be an automatic failure
},
[1] = {
["Answer"] = "A", --A,B,C, or D
},
[2] = {
["Answer"] = "B",
},
[3] = {
["Answer"] = "D",
},
[4] = {
["Answer"] = "B",
}
},
}
return QuizInfo
If anyone can answer this, greatly appreciated.

