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

[?] "Insufficent permissions to set DevEnableMouseLockOption" Help.

Asked by
C1RAXY 81
6 years ago

My "Dev" settings are not working

and i want to set "DevEnableMouseLock" to false and other as in the code.

My Local script located in "StarterPlayerScripts"

local player = game.Players.LocalPlayer

player.DevEnableMouseLock = false
player.DevComputerCameraMode = "Classic"
player.DevComputerMovementMode = "1"

I got this in the Output when I play.

19:03:44.432 - Insufficent permissions to set DevEnableMouseLockOption 19:03:44.433 - The current identity (2) cannot setDevEnableMouseLockOption (lacking permission 5)

How i can fix it?

1 answer

Log in to vote
0
Answered by
popeeyy 493 Moderation Voter
6 years ago

When doing this, you should set it in StarterPlayer, not for each player. You can do this with a normal Script inside ServerScriptService. Here is the code I made for this.

game.StarterPlayer.EnableMouseLockOption = false --Sets ShiftLock off
game.StarterPlayer.DevComputerCameraMovementMode = Enum.DevComputerCameraMovementMode.Classic --Makes cameramovement to classic
game.StarterPlayer.DevComputerMovementMode =  Enum.DevComputerMovementMode.KeyboardMouse --Makes movementmode to keyboardmouse
0
Tyvm! C1RAXY 81 — 6y
Ad

Answer this question