✓ Accepted answer
Well, you'd first want to change them to a value format, currently you have them as a table.
local presetbans = {
["ApocalypseRising927"] = "Testing",
["Interzone"] = "Testing Also"
}
now with the modified code, this means ApocalypseRising927 is the index of value Testing. Now to print out the value, we would iterate through the table's contents using the pairs function.
local presetbans = {
["ApocalypseRising927"] = "Testing",
["Interzone"] = "Testing Also"
}
for index, value in pairs(presetbans) do
print(index,value)
end
technically this script would print out both the indexes and values.
2 comments
Interzone* Apologies.
Should be "print(presetbans["Interzone"][1])" not 2, as you want to print the reason which is the first value