How to invoke client to client

  1. What do you want to achieve? Keep it simple and clear!
    I want to be able to run a function from one client to the next and return data. By using a bindable function
  2. What is the issue? Include screenshots / videos if possible!
    The data can only be sent to the client invoking the function.
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I have searched for a while for a answer, and I can’t seem to figure it out.

In short, you can’t directly communicate client-to-client. You must go through the server first. Think of the server as the central hub, and each client connects to that hub. No client connects to other clients. So in order for data to flow from one client to another, you have to go client->server->client.

The easiest way to do this is to have a RemoteFunction/RemoteEvent that the client fires to the server, and then the server fires to the correct client.

3 Likes