How to get the second returned value from a RemoteFunction?

Hello! So I’m playing around with RemoteFunctions now and I wanted to know would I get the second value that I returned to the LocalScript with the RemoteFunction?

What I mean is:

In my serverscript I do:

return table,text

Then the localscript waits for response.

I know how to get the table value but how can I access the second value(text) I returned?

   I hope I can be understood, I'm horrible at explaining!
1 Like
local a, b = remoteFunction:InvokeServer()

Read more about multiple results here:
https://www.lua.org/pil/5.1.html

10 Likes

Yeah, that’s what I was looking for! :grin:

Thank you.

1 Like