Hello, I’ve been making a game and wanted to add a custom smooth shift lock similar to Combat Warriors to it, so I made this module. And since I’ve seen a lot of people trying to achieve something similar I thought I would share it.
SmoothShiftLock: What does it do? It’s like default Roblox’s shift lock except it’s more smooth. When you turn your character it Lerps and not just locks into where you look, also it gives a smooth transition into the shift lock camera offset. (ShiftLock offset doesn’t actually use CameraOffset, so it looks better)
Here are the settings of the module that you can edit:
local config = {
["CHARACTER_SMOOTH_ROTATION"] = true, --// If your character should rotate smoothly or not
["MANUALLY_TOGGLEABLE"] = true, --// If the shift lock can be toggled manually by player
["CHARACTER_ROTATION_SPEED"] = 3, --// How quickly the character rotates smoothly
["TRANSITION_SPRING_DAMPER"] = 0.7, --// Camera transition spring damper, test it out to see what works for you
["CAMERA_TRANSITION_IN_SPEED"] = 10, --// How quickly locked camera moves to offset position
["CAMERA_TRANSITION_OUT_SPEED"] = 14, --// How quickly locked camera moves back from offset position
["LOCKED_CAMERA_OFFSET"] = Vector3.new(1.75, 0.25, 0), --// Locked camera offset
["LOCKED_MOUSE_ICON"] = --// Locked mouse icon
"rbxasset://textures/MouseLockedCursor.png",
["SHIFT_LOCK_KEYBINDS"] = --// Shift lock keybinds
{Enum.KeyCode.LeftShift, Enum.KeyCode.RightShift}
}
A video of what it looks like in-game:
Pros:
- Works with both R6 and R15
- Easy to implement
- Easy to change the settings and customize
Cons:
- So far none
You’re free to write any feedback and let me know if you find any bugs.
Anyways, if you want to get the module it’s here:
PlayerModule Paired version: