3rd person camera controls while locked in first person

Atm I’m working on a game that locks you in first person via LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson and there’s a tool in my game that the player can physically interact with by dragging a physical slider.

There’s just one problem, the mouse is locked to the center of the screen, so you can’t move the mouse to change the slider.

My plan was to somehow adapt the 3rd person camera controls to first person (Unlocked mouse, Move cam with right click) but I just couldn’t figure it out.

Most people here suggest creating a modal ui object that spans the whole screen, and that does solve the locked mouse issue, but since the mouse input is eaten by the ui object, not only can you not move the camera with right click, but you also can’t interact with the tool (which is again, an important part of making it work).

I did find one singular topic where somebody suggested forcing the camera zoom to be just above the threshold of first person mode, but I don’t really like this, as it kind of feels hacky and unreliable, plus it would get really annoying if the camera shifted every time you pulled the tool out.

Pls help lol :sweat_smile:

Nvm I fixed it lol, the modal guy does work if you set it’s size to 0, so now the mouse is unlocked and you can move the camera by right clicking

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.