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)
:Remove is deprecated. Use :Destroy() or :ClearAllChildren() instead. Instance:Destroy