Can remote functions cause memory leak by hacker?

can remote functions cause memory leak by hacker ? and if so what is the alternative for them?

1 Like

Yes, you should avoid invoking them from server to client, and the reason is since RemoteFunctions yield and wait for a response, the client may never return any value which will create an infinite yield and will cause a memory leak.

If you want to request something from the client and avoid using RemoteFunction, you can use a RemoteEvent and fire it to the client, and the client will use the same RemoteEvent to respond back to the server. With some proper server-side checking, you can easily avoid any issues, and exploiters cannot take advantage of this.

However, invoking them from client to server is completely fine since we know that the server is guaranteed to respond back.

Keep in mind that there are some other alternatives, however this works the best for me. If you want to learn more, watch this video.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.