2 ms·
Well, you can inherit in Lua, right? In http://lua-users.org/wiki/InheritanceTutorial http://lua-users.org/wiki/InheritanceTutorial it's just setmetatable
by kragen 1y ago
Well, you can inherit in Lua, right? In http://lua-users.org/wiki/InheritanceTutorial http://lua-users.org/wiki/InheritanceTutorial it's just
setmetatable(new_class, {__index = base_class})
because __index can be a table; it doesn't have to be a function.
I've never tried Roblox, so I have no idea how often people do such things in it.