can ignore this stuff if you get question:
/~~~~~~~~~~~~~~~~~ Functions = {
CreateConfiguration = (function(Configurations, Table)
--gets the table of the first parameter
for i, v in pairs(Configurations:GetChildren()) do
--finds if the values classname is a value
if string.find(v.ClassName, "Value") then
--if it make its name a clone of its value
print(v.Name)
Table[v.Name] = v:Clone()
--if it isnt and it is either a folder or configuration class
print(Table)
elseif v:IsA("Folder") or v:IsA("Configuration") then
--then make the values name become
Table[v.Name] = Functions.CreateConfiguration(v, Table)
print(Table[v.Name])
end
print(Table)
end~~~~~~~~~~~~~~~~~
The line 16 for some reason ends up making 2 values when I print the table it makes. I don’t know why this happened.
print log:
~~~~~~~~~~~~~~~~~ ["Ammo"] = "*** cycle table reference detected ***", ["Automatic"] = Automatic, ["Bullets"] = Bullets, ["Burst"] = "*** cycle table reference detected ***", ["ClipSize"] = ClipSize, ["Damage"] = Damage, ["FireRate"] = FireRate, ["Magazines"] = Magazines, ["Offset"] = Offset, ["Range"] = Range, ["ReloadTime"] = ReloadTime, ["ToolName"] = ToolName
Burst is the folder then offset and bullets are its children.
