Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How its wrong Number of insert and how fix?

Asked by 5 years ago
local Main = {InventoryTable = {Item = {["Newbie Sword"] = {Upgrade = 0
}
}
}
}
function Main.InventoryTable.Add(g1)
Item = table.insert(g1)
end
function Main.InventoryTable.Remove(g1)
Item = table.remove(g1)
end
return Main

UP there is a mod script another normal script

 local module = require(game:GetService("ServerScriptService"):WaitForChild("Inventory"))
local clone = {"Newbie Sword"}
module.InventoryTable.Add(clone)

1 answer

Log in to vote
-3
Answered by 5 years ago

:Remove is deprecated. Use :Destroy() or :ClearAllChildren() instead. Instance:Destroy

0
False, table.remove is correct The_Pr0fessor 595 — 5y
0
This question is confusing by itself lol, tried. Warriorfoox 25 — 5y
Ad

Answer this question