Camera script works in studio but not actual server

I’ve got a script that changes the player camera and it’s always worked in studio and in game but today after testing something multiple times in studio and having it work I’m getting this in the console on a real server:

Please let us see the code. This will help us understand the issue.

local Button = script.Parent
local SaveScreen = script.Parent.Parent.Parent.SaveScreen
local MenuSelector2 = script.Parent.Parent
local Whole = script.Parent.Parent.Parent.Whole
local ScrollFrame = script.Parent.Parent.Parent.ScrollingFrame
local Menu = script.Parent.Parent.Parent.Menu

local Rep = game:GetService(“ReplicatedStorage”)
local CameraDisplayFolder = Rep:WaitForChild(“CameraDisplay”)
local CameraDisplayToggle = CameraDisplayFolder.CameraDisplayToggle
local Camera = game.Workspace.CurrentCamera
local Player = game:GetService(“Players”).LocalPlayer
local AreasFolder = game.Workspace.Areas
local DisplayPosition = Player:WaitForChild(“DisplayPosition”)
local PlayerGUI = Player:WaitForChild(“PlayerGui”)
local DisplayGUIS = PlayerGUI:WaitForChild(“DisplayGuis”)
local MakeThree = CameraDisplayFolder.MakeThree

local SpeedGui = script.Parent.Parent.Parent.Parent.DefaultGuis.Speed
local MainOpen = script.Parent.Parent.Parent.OpenButton

DisplayPosition.Changed:Connect(function(Value)

if Value == 1 then
	
	local CamerasFolder
	local PlayerAreaOwned = Player:WaitForChild("AreaOwned").Value
	for i, Area in pairs(AreasFolder:GetChildren()) do
		if Area.Name == PlayerAreaOwned then
			CamerasFolder = Area:FindFirstChild("Cameras")
			local CameraSelected = CamerasFolder:FindFirstChild("Left2")
			Camera.CameraType = Enum.CameraType.Scriptable
			Camera.CFrame = CameraSelected.CFrame

		end

	end
   
end

Change
Camera.CFrame = CameraSelected.CFrame
to
Camera.CFrame = CFrame.new(CameraSelected.Position) * CFrame.fromEulerAnglesXYZ(CameraSelected.Orientation)