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!
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:
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.
Another alternative is editing the CameraUtils module, as you can see there are many ways to do it:
Another another alternative is tampering with UserInputService directly:
https://developer.roblox.com/en-us/api-reference/property/UserInputService/MouseBehavior
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!