of     1   

acer1102
#228395174Sunday, December 03, 2017 8:00 PM GMT

I've been playing around with both RemoteFunctions and RemoteEvents and the wiki states that "Data can be passed from server to client through remote events in the same way data is passed from client to server". I was wondering if I could do the same through RemoteFunctions and how that would work.
Evil_Scripter
#228395272Sunday, December 03, 2017 8:01 PM GMT

Do you need an explanation on how they work?
bigboy77584
#228395381Sunday, December 03, 2017 8:02 PM GMT

The main difference between RemoteEvents and RemoteFunctions is that RemoteFunctions wait for a response from the receiver while RemoteEvents are more of a form of one-way communication. Both can pass data from server to client and vice versa.
acer1102
#228395790Sunday, December 03, 2017 8:09 PM GMT

Not exactly, I've read the wiki page, though it's heavily implied. Do I need to add any additional parameters?
acer1102
#228395842Sunday, December 03, 2017 8:10 PM GMT

And thanks
bigboy77584
#228395920Sunday, December 03, 2017 8:11 PM GMT

just remember whenever going from client to server, the player is passed as the first parameter so you'll have to take that into account in the server script.
ScriptBased
#228396605Sunday, December 03, 2017 8:23 PM GMT

It’s literally like a function, the caller expects/ awaits a returned value like when you call a function. So if I do function giveTwo() return 2 end local two = giveTwo() print(two) It will wait for a response from the function, if none is given it returns nil,

    of     1