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

How can you delete an object from a metatable?

Asked by 5 years ago
Edited 5 years ago

When you're finished with an object, is there a way you can remove/delete it? I just started learning about metatables/oop today and was wondering.

Also, can you set metatables to metatables? Like a super metatable? ;p

Sorry if these are dumb questions, I just started learning about them 4 hours ago.

0
Set the object = nil or table.remove() and yes I am pretty sure you can put a metatable inside of a metatable. LostPast 253 — 5y
0
thanks AIasdair 50 — 5y

Answer this question