How would I use certain returned values from a table with a RemoteFunction?

MouseData.OnClientInvoke = function()
	return {
	Value = x,
    Value2 = y
	};
end;

How exactly would I be able to use this in a server script? Really new to remotefunctions

The server script would probably look like this:

local values = MouseData:InvokeClient(player)

print(values.Value, values.Value2)

The returned values will be in the exact same order and layout as you had returned from the client

1 Like

Yeah i figured soon after actually trying haha but thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.