The function works well, and I was wondering if there is a way to silence the warnings.
maybe just set the Utilities table to have those keys before the function was made
local Utilities = {
DeepCopy = function(…) end,
ToObject = function(…) end,
ToValue = function(…) end
}
Utilities.DeepCopy = function()
end
Utilities.ToObject = function()
end
Utilities.ToValue = function()
end
return Utilities
this way if recursion happens, the key already exists in the table so it shouldn’t error
tell me how it works
It already didn’t error when it was run, and I was just wondering if there was another way of silencing it without having to define the functions previously.
another way would be adding an if statement
try changing like 23 to this
if type(Value) == "table" and Utilities["ToObject"] then
1 Like