Given this code :
function OOPModule.new(Name, Damage)
local newItem = {}
newItem.Name = Name
newItem.Damage = Damage
setmetatable(newItem, OOPModule)
return newItem
end
-
The table is located within
OOPModule
, but how do I go about accessing the same objects from a second script without directly accessing the table? -
Can client-side constructors be hacked? What is the process that occurs during object creation in the client?
-
In such a game implemented with OOP (with one client script, one server script, and multiple module scripts), the client would call the module and the server would run it when?
-
How would I implement an inventory system using OOP? Would it be passed through a constructor if a player clicked a button to equip an item? How do I go from there? How do I use it in a way to provide the player with health but avoid exploits?