SmoothShiftLock [Module]

Hello, you need to call :Fire() on the BindableEvent that’s inside of the ModuleScript instance, not the required module.

ok ty
chars aaaaaaaaaaaaaaaaaa

1 Like

Hey, I’m working on a first person project

Is there a way to permanently bind the character to shift lock.

I want too do this because i want the smooth turning to be present as the player can see their bodies.

Thank you,

1 Like

Drop this script into StarterCharacterScripts.

local Workspace = game:GetService("Workspace");
local Players = game:GetService("Players");
local RunService = game:GetService("RunService");

local LocalPlayer = Players.LocalPlayer;
local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait();
local Humanoid = Character:WaitForChild("Humanoid");
local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart");
local Camera = Workspace.CurrentCamera;

local config = {
	["CHARACTER_ROTATION_SPEED"] = 3
};

Humanoid.AutoRotate = false;
RunService.RenderStepped:Connect(function(Delta)
	if not Humanoid.Sit then
		local x, y, z = Camera.CFrame:ToOrientation();
		HumanoidRootPart.CFrame = HumanoidRootPart.CFrame:Lerp(CFrame.new(HumanoidRootPart.Position) * CFrame.Angles(0, y, 0), Delta * 5 * config.CHARACTER_ROTATION_SPEED);
	end;
end);

Thank you! Didn’t think about this
Should I implement a maid? Or a spring?

Thank you though!

1 Like

Ok so I modified the script to where you are permanently locked into smooth rotation but when you go to 3rd person you can toggle shift lock

I remade the shift lock module using a different spring module and added “spin control” which doesn’t let the smooth rotation freak out and reset.

It resets its CFrame to the last heartbeat until it finds one within valid parameters

1 Like

Looks sick! Pretty easy to use and accessible.

1 Like

does anyone know how can i make the character rotation still work when the shiftlock is off?

How can you add mobile support to this?

Is it only me that can’t open the module’s link?

User is currently banned. @Rixtys99 might reupload on an alt.

2 Likes

Module is located here: https://create.roblox.com/store/asset/13628590040/Smooth-ShiftLock

Seems to be a 1:1 reupload of OPs module.

its an old version tho theres no manually toggleable variable

I kind of forgot about this, but I just worked on it a little rn and made some changes.
It is a little improved and mobile compatible now. As well, a reupload:

1 Like

It says I need permission to use it ;/

Forgot to make it public, fixed now

The PlayerModule version brings me to a page like this: