This script is on a LocalScript and should change the Player's devCameraOcclusionMode (not the StarterPlayer) But when i test it online, it happen "Insufficient Permission Level to set value"
I seen on the wiki.roblox.com and it's not an ReadOnly value
here's the line of this script
script.Parent.Parent.DevCameraOcclusionMode = Enum.DevCameraOcclusionMode.Invisicam
Instead of getting the player by doing script.Parent.Parent use local player:
local player = Game.Players.LocalPlayer
Local player is the player you are playing as. So your script would be:
local player = Game.Players.LocalPlayer player.DevCameraOcclusionMode = Enum.DevCameraOcclusionMode.Invisicam
This script needs to be in a local script or it will not work. It may work in studio because studio is blind between scripts and local scripts.