How would I get rid of an OOP object?

What? Garbage collection is built into Lua, and Roblox utilizes this as well. Doesn’t matter if it’s Luau or Lua. Simply google “Roblox Garbage Collection”

Garbage collection runs in the background with the task scheduler. It’s automatic.

Garbage Collection and Memory Leaks in Roblox - What you should know - Resources / Community Tutorials - DevForum | Roblox

5 Likes