How to use remote functions safely?

Hello!, i have a question about remote functions,
i’ve heard that hackers could exploit it and it would lead to a memory leak, how can i use remote functions safely? i never tried remote functions so when writing examples make it as simple as possible, thanks!

just try to use them as little as possible :person_shrugging:
the same also goes for remote events

Client → Server [GOOD]
Server → Client [BAD]

Server → Client can be achieved with RemoteEvents without risking an infinite yield.

1 Like

i’ve been thinking of a way to not use remote functions , theres is no way i could do that, i have to wait for a server response cuz client executes the script faster than the server

Oh, im doing client → server so its ok
thanks!