Custom Shift Lock Module - [New]

Where is the code that activates the ShiftLock, and what’s it’s source code?
(Send it as a private Message, the thread is getting too long)

An option to not rotate the character would be nice

1 Like

Sorry for the incredible delay, I haven’t looked at this post for a while now.
You can do this directly through the code, by just removing the line that changes HumanoidRootPart.CFrame (don’t know where it is exactly).
When I will soon get on studio, I will add the requested feature, and edit this comment to update when I will have done that. Thanks for the suggestion and patience.
Edit: RotateCharacter is now a feature which you can disable/enable in the settings.

Hello, when i unshiftlock the cursor is still stuck in the middle of the screen, behaving like im holding right click.

Do you know how to fix this?

Yea I’m having the same problem, is there any fix to this?

I still can’t find a fix unfortunately

Fixed it, thank you both for reporting.

1 Like

This Module is so helpful it made thing easier for me
You should also try making OTS - Over The Shoulder Camera
for gun system

1 Like

Thanks for the feedback!
I can make an over the shoulder camera module, but there are so many out there that do it, but thank you for the idea!

How can i prevent them seeing through walls when using shiftlock?

There isn’t a certain answer to this question, due to how ray casting is done. My approach to fix it might be to raycast searching for walls with an offset forwards from the character, therefore it won’t miss out on any walls in the way.

When disabling shift lock, it won’t allow me to rotate the camera anymore. When right click and dragging, it will move just a tiny bit, but mostly doesn’t move.

I don’t really know why this happens, sending a video of the bug will help.

Nevermind, with further testing everything seems to be working fine. I think I was using another shift lock module that was acting up and I got these two mixed up. Sorry for the confusion

Everything seemed to be working fine but I ran into this upon testing just now. Never ran into this problem before, but I can’t move my camera.


Shifting in or out of shift lock doesn’t fix it. In the video I’m moving my mouse around while in and out of shift lock and also trying to right click to drag. I think going in and out of shift lock allows me to move the camera a little bit. My mouse is invisible because my combat system does that.

2 Likes

not yet, but I haven’t really looked into it yet. I’m sure it’s something to do with the script not running when it should be after the character loads

1 Like

I am here with a fix for you both! I was running into the same problem in my MMO-Rpg but the fix is quite simple, you see renderstepped makes a action happen multiple times regardless the situation, in the shiftLockController module there is a renderstepped which constantly changes the mouse’s behaviour causing the mouse to well, glitch like yours does, the fix is quite simple, remove the mouse behaviour from the renderstepped and change it through a UIS.InputBegan.
Before:


After:

I myself moved the mouse behaviour to another one of my module which sets it without using renderstep:
image_2023-04-02_120936942
Enjoy!

3 Likes

Awesome, I just put the problem off lol so it’s nice to see this :smiley: thanks!

1 Like

The script breaks after the player dies…

1 Like

Yeah I have the same issue. I’ve been trying to fix it for the past couple hours.