I wish there were some examples of virtual worlds with user-accessible Luau scripting that I could look at, since I'm not 100% confident that my implementation in https://github.com/NovaSquirrel/TilemapTownScriptingService is good and that I'm using the API right.
That was one of the trickiest and most complicated systems I ever tried to make. I don't *think* it leaks, and I don't *think* I've seen evidence of it leaking, but memory usage goes up and down in a way that's unintuitive to me.
That said, multi-user worlds where people can put objects running user-provided scripts in the same environment seems to be such a niche concept that I wouldn't be surprised if Second Life and Tilemap Town's server were actually the *only* programs that even attempt this use-case with Luau (or maybe even Lua?) and I assume I can't just go ask the SL devs what they're doing. Maybe I would be surprised.
#luau #lua