2d camera not allowing me to use invisicam

I’m making a 2d game and for some reason the camera script wont allow me to use Inviscam.
I have Invisicam enabled and here is my script

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

player.CharacterAdded:Wait()
player.Character:WaitForChild("HumanoidRootPart")

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

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,0,27)
    end
end

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

Set the DevCameraOcclusionMode to Invisicam, set a Max and MinZoomDistance in StarterPlayer, initialize the camera cframe, and then disable camera change input

sorry to say this but im actually new to scripting. I had my friend make this script for me and ive already done the first two steps that u said but does the last 2 steps require me to script them? if so what do I change?