Force Shift Lock and Restrict Camera Movements

Yea, this question might sound a bit confusing at first

So, this is the goal: To be able to Force Shift Lock, then restrict the camera from panning around.

Step 1: Force Shift Lock (Solved)
This part should be pretty easy, as I’m just doing some camera editing.

Step 2: Restrict Camera (Unsolved) ← Main Problem
Basically, while in the shift lock position, the player isn’t allowed to “move”/pan their camera. The end result should be something like this:
https://gyazo.com/099d02e59fe47ad5a1b40577897cfcbd

(Just an example above)
As you can see, it should make it so that the player isn’t able to turn/move their camera.

3 Likes

There are two ways of doing this that I came up with.

  1. Find the function responsible for camera panning and disable it
  2. Create your own camera script with this function (I don’t recommend this)
2 Likes

I didnt understand, can you explain more?

From what i noticed, it didnt make the player able to move the camera, wasnt this what you wanted?

If you were talking about the gif, that was just an example of what I wanted it to look like, (I myself didn’t move my mouse)

1 Like

You can disable shiftlock and bind the shift key into a function that locks the mouse into a LockCenter mode (UserInputService | Documentation - Roblox Creator Hub)

From there you can turn off auto rotate in the humanoid. I think that should replicate the video you linked

4 Likes