they are legit just functions but they communicate across. its just a remote event but with a return. If u just have like a remote:FireClient and then after the client gets it u remote:FireServer then u could just use a remote function
local rf = remotefunction
local results = rf:InvokeClient(5, 10)
print(results)
local rf = remotefunction
rf.OnClientInvoke = function(player, num1, num2)
return num1 + num2
end
This is an example of how it works. You would use it for stuff that only client can access like guis. You can also invoke server and its simple. you could fire a remote function to buy something and return true if it was succcessful or false if the player was broke.
1 comment
HappyTimIsHim can you go step by step like what all this means on this script . I’m really trying to know how to script :)