I recommend changing this topic to the category #help-and-feedback:code-review since you are asking for organization on your code instead of help on a coding issue. But that’s just a suggestion.
You could create different tables for example; a table containing strings, a table containing booleans, and a table containing integers and a table containing floating point numbers:
local settings = {
booleans = {
-- Put your booleans in this table
},
strings = {
-- Put your strings in this table
},
ints = {
-- Put your integer numbers in this table
},
floats = {
-- Put your floating pointnumbers in this table
}
}
return settings
Rather than grouping by types as suggested above (my personal advice: never do that, group by relevancy/system not by an abstract concept), quickly reading over your code shows that you’re trying to make a dialogue system. You should probably look into creating an actual deep dialogue system where your options can be represented in separate ModuleScripts or as Luau OOP objects.