Oh boy.

Basically i want to make a 2d platformer have invisicam. It is something where you can see with your camera trough things.

Error:

19:23:41.250 - RunService:fireRenderStepEarlyFunctions unexpected error while invoking callback: The current identity (2) cannot setDevCameraOcclusionMode (lacking permission 5)
19:23:41.263 - Insufficent permissions to set DevCameraOcclusionMode
  19:23:41.263 - The current identity (2) cannot setDevCameraOcclusionMode (lacking permission 5)

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 = 70

local runService = game:GetService("RunService")

local function onUpdate()
    if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
		player.DevCameraOcclusionMode = Enum.DevCameraOcclusionMode.Invisicam
		camera.CFrame = CFrame.new(player.Character.HumanoidRootPart.Position) * CFrame.new(0,3,45)  
	end
end
 
runService:BindToRenderStep("Camera", Enum.RenderPriority.Camera.Value, onUpdate)

Can you help me? Dont want to put another project into the drain because of one thing.

2 comments

0

Almost sure you can't, maybe you can edit that property on "Starter Player", directly from studio

0

I did that