stravant/goodsignal — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a small Roblox Lua module called GoodSignal that works just like Roblox’s RBXScriptSignal, but implemented in pure Lua instead of using BindableEvent.

It should let me create a signal, connect callback functions, fire it with any arguments, wait for the next fire and receive those arguments, disconnect one connection, and disconnect all connections. The behavior should match what Roblox developers expect from RBXScriptSignal as closely as possible.

Please make sure it doesn’t create memory leak problems when signals or connections are no longer used. Even if someone forgets to disconnect everything manually, normal garbage collection should be able to clean it up.

Keep the API simple, something like Signal.new(), Connect, Fire, Wait, Disconnect, and DisconnectAll. Add a clear README with short examples showing how to use it in Roblox Lua.

Want more depth? Deep Reverse