Can't pass userdata to client?

When returning ‘newproxy()’ with a RemoteFunction, it will be nil for the client. How do I fix this?

I’m trying to secure RemoteEvents by doing this. RemoteEvents would only be fired by the ‘newproxy()’ the RemoteFunction tries to return (can only be returned once, else it would be useless.)

Although I do know it is bypassable, I like making it as hard as possible for exploiters to do anything to my game.

Userdata is a C/C++ pointer type of data when sending it cannot be serialized into a data pretty much userdata is nil type of data network receives it as nil because its a unusual data other than string and other data types that normal lua can handle.