Answered by
4 years ago Edited 4 years ago
RemoteFunctions are usefull in many ways, for example getting information from server
(I personally use it in my games to get RemoteKeys from server)
Here is an example:
Server Script
1 | local TableWithData = { 1 , 2 , 3 } |
3 | remotefunction.OnServerInvoke = function (CalledBy, ...) |
Local Script
1 | local Data = remotefunction:InvokeServer() |
Note: What I provided is not the best explanation in the world. I would recommend checking it out at https://developer.roblox.com/en-us/api-reference/class/RemoteFunction