How to Unlock Mouse

My CameraMode is in LockFirstMode and i cant move the Mouse its locked in the Middle.
How could i make it move?
I dont want to use Modal, how could i do the same like when Modal is activated but without Modal? I also dont want to use CameraToggle, it should be like Modal, thanks!

2 Likes

https://developer.roblox.com/en-us/api-reference/enum/CameraMode

Switch from ‘LockFirstPerson’ to ‘Classic’?

why dont you want to use modal?

Hello! Here’s the best way to do this:
Hit play in studio, go in “PlayerScripts” (in your LocalPlayer) and copy the module called “PlayerModule”, stop the game. Paste it into StarterPlayerScripts. It should look something like this:

image

Now go into that Module called “BaseCamera” and do Ctrl+F. You will find a variable likely on line 13 called “FIRST_PERSON_DISTANCE_THRESHOLD”, set this value to 0. Run the game and see what happens. Please note that this method fully disables first person mouse lock. There are other alternatives you can take such as finding the function in this module called “BaseCamera:UpdateMouseBehavior()” and editing how it works.

4 Likes

Another alternative is editing the CameraUtils module, as you can see there are many ways to do it:
image

Another another alternative is tampering with UserInputService directly:
https://developer.roblox.com/en-us/api-reference/property/UserInputService/MouseBehavior

1 Like

Okay thank u i will try it now and the UserInputService dont work i tried it already

Thanks the FIRST_PERSON_DISTANCE_THRESHOLD to Value 0 worked for CameraMode Classic FirstPerson but not for CameraMode LockFirstPerson but making in BaseCamera:UpdateMouseBehavior() the Enum.MouseBehavior to Default worked. Thanks!

1 Like