Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

InvokeServer or InvokeClient? Limitations?

Asked by 8 years ago

So I've read the wiki, and I understand how to use RemoteFunctions, and how these work. InvokeServer is to be used from LocalScripts, calling functions housed in Server Scripts. InvokeClient is to be used in ServerScripts, and calls a function housed in the client(?). I get that, but Im still confused as to what would be useful for what. I mean, there are options to do it both ways right?

Im just curious as to what each of these would be optimal for, and how I should use them for my games. The example code on the wiki gave me a good idea, but I just want to get a better understanding over them than what I already have. Any help is greatly appreciated. Thanks! :)

0
It's a good way for scripts to interact with each other, and for LocalScripts to interact with objects, because (for security reasons) LocalScripts have been limited in that sense. DeadToMe 105 — 8y

Answer this question