Is it possible to show to all players in the server what a player is "watching"?

Hey!

I just wanted to know if it’s possible doing something like this, let me explain:

We got 3 players:

  • Main Player
  • Player1
  • Player2

(Every player has a CameraPart attached, welded and invisible to their character, so when they move the CameraPart will “follow them”.)

Just for test purposes, let’s say that everybody in the server has a ScreenGui with a ViewportFrame enabled and visible.

Thru a button, the Main Player activates this “feature” (idk how can i call it).
In that moment, every other player in the server will see thru their ViewportFrames what the Main Player’s CameraPart is seeing.

Basically, when the Main Player moves around the map etc. everything that his CameraPart sees will be rendered in everybody else’s ViewportFrames.

I think this is a really “consuming” feature, but I’m just curious.

I tried to explain it thru a photo as well, let me know if you have any questions.

(Also sorry for my bad English and for any possible mistakes that i made writing this post)

Thanks in advance!

Player presses button → send request to server through a remoteevent ( :FireServer() ) → server ( :FireAllClients(player, camera) ) → client checks if a request to it has been made, then enable the viewport frame and set its destination to the part inside of the players character.

1 Like

I might’ve misunderstood, but i believe you can use dot product for this?