Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Insufficient permissions level?

Asked by 9 years ago

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 answer

Log in to vote
0
Answered by 9 years ago

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.

0
thx but it did not work :v JoseskVolpe 0 — 9y
0
Output? docrobloxman52 407 — 9y
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 JoseskVolpe 0 — 9y
Ad

Answer this question