When a function is in a table, it doesnt seem to be passed through if the table is an argument for another function

I’m not sure how exactly to get the function over to the other side. I want to call it but it just says “attempt to call a nil value”.

1 Like

You cannot pass functions or metatables through events (even non remote ones). Did you try to do that?

yeah, i didnt know that, is there any way to circumvent it?

Yeah, you can put the functions in a module then send them by name. So if you want to call function Jeff with args A, B, C you could turn that into a table like {"Jeff", A, B, C} on one side, then lookup the function from the module on the other side.

You can use a signal library as a replacement for BindableEvents (highly recommend signal libraries),
If you were using a RemoveEvent, then not really, other than manually decoding the data you send to do some fancy stuff

1 Like