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

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

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

✓ Accepted answer

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

1 comment

0

Tyvm!

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