Camera manipulation for everyone

Basically, I made a type of animation that requires everyone in the server to be at the same camera position or angle.

I tried using a remote event and a for loop for every player in a script, then fired their clients using :FireClient(), and then position their camera and make it scriptable at the same time in the client or LocalScript.

It seemed that it only worked when I was alone when I went to test with my friend, it didn’t do anything.

Example :


The camera will be at ^
and every players camera in the server is in the same position.
It would also help if it were through a RemoteEvent.

You could alternatively use :FireAllClients() to get all the clients in the server instead of using a for loop to get all the players.

Here’s how to do this.

SERVER SCRIPT

cameraRemoteEvent:FireAllClients(cameraCFrame)

LOCAL SCRIPT

local camera = workspace.currentCamera;    

cameraRemoteEvent.onClientEvent:Connect(function(cameraCFrame)
    camera.CFrame = cameraCFrame;
end)

Ensure your LocalScript script sets the camera type to Scriptable