I want to make a table with a script name and the code as the value then use a i,v loop to do something with it, but when I use the script it only prints "a" (from the table and not the loop) I'm not sure how I can make this work.
local scripts = {
["Script"] = print("a"),
}
for name, value in pairs(scripts) do
print(name, value)
end

6 comments
you set
you set "script" to a
Can we talk this over discord to get a better idea of what you're trying to do? Lucy#0003
In this case, why not use modules for each set of script you want?
I don't use discord sorry... And for the modules, I'm trying to make an easy script executer and have the scripts as an easy way to paste it into the textbox for executing or editing.
I couldnt really understand, are you trying to make it print script and a?