References with BindableFunction

I noticed with RemoteFunctions and RemoteEvents, when returning or passing arguments, the data gets serialized/doesn’t send properly if an instance (normal of course) but I noticed recently by using a BindableFunction that the OnInvoke function does not return directly the reference to my Lua table object and instead it returns a new reference so when I tried to check for equality in the invoker script, it did not match and I found it really strange since the BindableFunction is used on the server so memory addresses should be in the same pool so why did it do a copy of the table? (PS: I found a workaround by doing tostring(reference) instead so I can compare the strings but I just find it strange.

2 Likes