I've been building a sandbox for a project I'm working on, but I'm stuck on events. I can't think of any way of being able to transfer events through a event.
I'm using a modulescript which handles all the sandbox stuff, and I require it on the other end with a regular script.
Is it possible to transfer through my sandboxed tables to the other end or do I have to do some trickery on the other end to get it to work?
You could serialize the metatable in theory, but in practice that's terribly inefficient and a very bad solution. Instead, I recommend implementing a module for events (they're about twice as fast as BindableEvent
s when replicating their functionality). The only downside is that you can't implement RBXScriptSignal:Wait()
without an Instance
.