DevCameraOcclusion, problem with other camera script

I am using a script to make the player’s camera topdown, but make parts between the camera and character transparent. I made a script to change the player’s DevCameraOcclusion invisible, and the script seems to work fine. The problem seems to come from the camera script inside of StarterPlayerScripts. After inspecting, it seems that the camera script also breaks regular occlusion (the cam won’t get closer to the player if something obstructs it). How would I make an invisible occlusion script that still keeps the topdown view locked?

Camera LocalScript in StarterPlayerScript:

local player = game.Players.LocalPlayer
local camera = workspace.CurrentCamera
local event = game.Workspace.CamOcclusion
print("Camera script started")
player.CharacterAdded:Wait()
player.Character:WaitForChild("HumanoidRootPart")
event:FireServer()

camera.CameraSubject = player.Character.HumanoidRootPart
camera.CameraType = Enum.CameraType.Attach
camera.FieldOfView = 90

local RunService = game:GetService("RunService")

local function onUpdate()
	if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
		camera.CFrame = CFrame.new(player.Character.HumanoidRootPart.Position) * CFrame.new(0,25,15) * CFrame.Angles(math.rad(-60), 0, 0) --The first two numbers are Height(25) and distance(15). The third is the angle(-60), the lower this variable is the more the camera will face the ground 

	end
end
 
RunService:BindToRenderStep("Camera", Enum.RenderPriority.Camera.Value, onUpdate)

Other Occlusion enabler ServerScript in workspace (it works fine, seems to just be a problem with the first script preventing the cam’s occlusion)

local event = script.Parent
event.OnServerEvent:Connect(function(Player)
	print("order recieved")
	Player.DevCameraOcclusionMode = Enum.DevCameraOcclusionMode.Invisicam
	print(Player.DevCameraOcclusionMode)
    print(Player)
end)