Hello,
I have a question.
Whats the different between RemoteEvent and RemoteFunctions???
Hello,
I have a question.
Whats the different between RemoteEvent and RemoteFunctions???
"The first difference is that RemoteFunctions are designed for two way communication, while RemoteEvents are designed for one way."
"Another major difference between the two is how they are handled. RemoteEvents use the Roblox event system. This means that any number of scripts can listen for the event to fire, and they can each handle that firing in different ways. RemoteFunctions on the other hand use a callback. For every RemoteFunction, only one callback can be defined on the server and only one for each client."
"The last difference is how many different targets remote events and functions can have. For both Remote Events and Functions, a client can contact the server and the server can contact the client. In the case of RemoteEvents, the server can also contact every client at the same time."
Basically, RemoteEvents are meant for one way communication and to send requests and the server can "contact" every client at the same time using Roblox's "event" system.
RemoteFunctions can communicate to Server-Client, Client-Server, and Client-Client while RemoteEvents can only handle Server-Client and Client-Server.
"Invoking a client is very similar to invoking the server, except in this case the invocation has to pass the player to invoke. The function used to do this is InvokeClient."
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
https://wiki.roblox.com/index.php?title=Remote_Functions_%26_Events it explains it here
https://scriptinghelpers.org/questions/50488/remote-function-or-remote-events-when-to-use-which-one
research plz :c