Proximity prompt change camera for the player who used it

Hello devs , i made a script to change the camera of the player who triggered it but it doesn’t work. So if someone can help me .

Serverscript ( in prox )

local Prox = script.Parent
local ReplicatedStorage = game:GetService("ReplicatedStorage")

Prox.Triggered:Connect(function()
	print("test")
		ReplicatedStorage.Entity011JumpscareCamera:FireAllClients()
	
end)

Local script

local Players = game:GetService("Players")

local player = Players.LocalPlayer
local camera = workspace.CurrentCamera
local ReplicatedStorage = game.ReplicatedStorage


ReplicatedStorage.Entity011JumpscareCamera.OnClientEvent:Connect(function()
	camera.CameraType = Enum.CameraType.Scriptable
	camera.CFrame = game.Workspace.SpawnLocation.CFrame
end)