How to make a it so the when I script the camera it happens to everyone on the server

So I have made a “:stage” command to change the camera of the player to the stage but it only changes one players camera and I want it to change everyone in the servers camera.

You can use RemoteEvent / RemoteFunctions:

Inside a server script you do something like:
game.ReplicatedStorage.RemoteEvent:FireAllClients(arguments)
FireAllClients Will fire the event on every client (player)

Then inside a local script you do:

game.ReplicatedStorage.RemoteEvent:OnClientEvent:Connect(function(arguments)
        --you camera code
end)
1 Like