How to get the name of a variable?

It might be an issue with your implementation of ipairs, try replacing it with this temporarily to see if it changes anything:

function module:Boot(SettingsTable,GamepassTable,ProductsTable,CreditsTable)
	local SFolder = Instance.new("Folder")
	SFolder.Name = "workFrameSettings"
	SFolder.Parent = game:GetService("ReplicatedStorage")
	for name, value in ipairs(SettingsTable) do
		if typeof(value) == "string" then
			AddValue(name,"string",value)
		elseif typeof(value) == "boolean" then
			AddValue(name,"bool",value)
		elseif typeof(value) == "number" then
			AddValue(name,"number",value)
		else
			print(typeof(value).. " Error, other unknown value")
		end
	end
end

Side note: Don’t use the second argument of Instance.new

1 Like