About 383,000 results
Open links in new tab
  1. Garbage Collection and Memory Leaks in Roblox - What you …

    Oct 24, 2019 · This article is meant to teach you how to prevent memory leaks and how the Roblox lua garbage collector works. What is garbage collection? Garbage collection, for those …

  2. A Beginner’s Guide to Lua Garbage Collection - Roblox

    Apr 15, 2022 · This article is designed to introduce complete beginners to the concept of Lua garbage collection and how Lua handles automatic memory management. ㅤ A Beginner’s …

  3. What is garbage collecting and when should I manually do it

    May 28, 2020 · This article is meant to teach you how to prevent memory leaks and how the Roblox lua garbage collector works. What is garbage collection? Garbage collection, for those …

  4. What is gcinfo () and How do I use it? - Roblox

    Sep 25, 2020 · I think most of Lua’s garbage collection functions are disabled on Roblox. If you manage your data properly (nullify unused variables or disconnect unneeded events) the GC …

  5. Lua garbage collection question - Scripting Support - Roblox

    Mar 25, 2022 · Firstly, you aren’t going to trigger GC, the function for that is collectgarbage and it is deprecated on Roblox. GC in Lua 5.1 is incremental and runs mark and sweep collection. It …

  6. Make __gc work on tables - Engine Features - Roblox

    Aug 26, 2018 · As a Roblox developer it is impossible to know when your table/“object” is garbage collected AND “destroyed” in the general scenario Having the __gc metamethod would help …

  7. __gc implementation - Scripting Support - Developer Forum | Roblox

    Sep 10, 2018 · Well I believe the metamethod is restricted on Roblox due to security issues. Typically I would try to avoid relying on GC for custom replication patterns. Instead I would try …

  8. __GC (Mind blowing) - Creations Feedback - Roblox

    Dec 18, 2014 · Warning: This code can blow your mind It’s basicly some code to detect whenever something garbage collects. You can connect a handler to it, a function to be called when it …

  9. Public Handbook | GC - Bulletin Board - Developer Forum | Roblox

    Introduction Welcome to Guitar Central! This public handbook was made to enlighten users of our community, how we operate, and to provide resources in an organized manner. About Us …

  10. Skip the GC, Boost Performance! - DevForum | Roblox

    Aug 30, 2025 · Hey Roblox devs 👋 I’m excited to share a new module I’ve built called ManualMemoryManagement (MMM), designed to bring manual memory allocation to Luau in …