if the table are empty, why use the command bar buddy, when you can just generate a stack of empty table and then create a a function to furnish them …
Do you mean automatically writing your table in Lua(u) format? You will have to write something up to generate that for you. Here is an example that allows you to copy-paste a generated template directly from the Roblox Studio output window:
--!strict
local function generate<T>(amount: number, value: T): string
assert(typeof(value) == "table")
local s: string = `\{`
for index: number = 1, amount do
s ..= `\n\t[{index}] = \{`
for key: any, value: any in value do
s ..= `\n\t\t["{key}"] = {if typeof(value) ~= "string" then value else `"{value}"`},`
end
s ..= "\n\t},"
end
return s .. "\n}"
end
print("\n", generate(3, {
Name = "Name",
Description = "Description",
Cost = 100
}))
Pasting this entire table inside Studio’s script editor should automatically indent for you, so in reality, you don’t need to add indentations. I just did for visualization purposes.
I mean, you could try using HTTPService:JSONEncode() and HTTPService:JSONDecode() to change the value of a StringValue. Can’t change a table in a ModuleScript.