Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Insufficient permissions level?

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

1 comment

1 answer

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.

4 comments

0

thx but it did not work :v

0

Output?

0

thx for the help. I've already fixed that now, i put this code line in a script and the local script enable this script

This discussion is preserved as it was. New answers, comments, and votes are closed.