How would I replicate this custom camera system to the server?

Hello! I need some help figuring out what is the best way to replicate this custom camera system to the server? I tried firing remotes to the server and it was just static, any advice?

> local function Custom_Camera()
> 	local Mouse = Player:GetMouse()
> 	Mouse.TargetFilter = workspace.Map.TargetFilter
> 	
> 	local Coordinate = CFrame.new(Vector3.new(PlayerHRP.Position.X, PlayerHRP.Position.Y + CameraOffset, PlayerHRP.Position.Z + 0)) * CFrame.Angles(math.rad(-90),0, 0)
> 	
> 	PlayerCamera.CFrame = Coordinate
> 
> 	local Position = Mouse.Hit.Position
> 	
> 	local CF = CFrame.new(PlayerHRP.Position, Vector3.new(Position.X, PlayerHRP.Position.Y, Position.Z))
> 		
> 	PlayerHRP.CFrame = CF
> end