Switching from shift lock to mouse

I’ve noticed an update when switching from shift lock to normal mouse. Previously, if you were to hold down right-click when in Shift lock and then switch to normal mouse movement you would be able to move your screen around. Now, if you do that you have to right-click again to move your screen.

Here are some clips:

New Update

What I want

Some games have this change and others don’t. Is there a script I can use to revert the change or something in the game settings I can disable / enable? Thanks for your help. :sweat_smile:

4 Likes

I added videos to help explain. Is this in the right category?

Most likely it’s not a game setting. From what I understand what you probably want to happen was an unwanted bug initially, later patched by Roblox.

You can try to check after Shift Lock has been disabled if the player is holding down Right Mouse Button, then rotate the character based on the X and Z of the Camera CFrame.

1 Like

You’re trying to do this, correct?

1 Like

Yes, but with the normal shiftlock

So, a new flag was recently enabled (3 months ago called “FFlagUserCameraInputRefactor”) and it has broken the mechanics you want. I forked the PlayerModule script and edited it to work how you want it. rbxm file is attached.

PlayerModule.rbxm (123.1 KB)

Drop that in the StarterPlayerScripts and it will override Roblox’s now broken one.

image

Then the shift lock will work how you want it. My edits are tagged with comments with my username and the following files were edited

  • BaseCamera
  • CameraInput

Just Ctrl + f and search “MrNicNac” to see what was edited

2 Likes

After I put the PlayerModule into StarterPlayerScripts I get this screen and cannot move my character or camera.

I edited my post a few seconds ago, redownload the module. There was an error in the one I uploaded originally.

If the redownload doesn’t work, here’s a fresh link: PlayerModule.rbxm (123.1 KB)

1 Like

Ok, this seems to have fixed the issue but there is still a small problem.

How could I make it so the shift lock camera is moved slightly to the right as you can see in this picture:
Screen Shot 2020-12-05 at 20.31.32
Thanks :smiley:

I accidentally commented the line out that does that. Here is the final revision that should work as intended: PlayerModule.rbxm (123.1 KB)

All previous download links for that module in this thread have been updated as well.

1 Like

Thank you so much! I’ll credit you in my published games that use this Module! :smiley:

1 Like