Run it
Copy the script and paste it into your executor.
ShiftLockScreenGui = .()
ShiftLockButton = .()
ShiftlockCursor = .()
CoreGui = :()
Players = :()
RunService = :()
ContextActionService = :()
Player = Players.LocalPlayer
UserInputService = :()
States = {
Off = ,
On = ,
Lock = ,
Lock2 =
}
MaxLength =
EnabledOffset = .(, , )
DisabledOffset = .(-, , )
Active
ShiftLockScreenGui.Name =
ShiftLockScreenGui.Parent = CoreGui
ShiftLockScreenGui.ZIndexBehavior = .ZIndexBehavior.Sibling
ShiftLockScreenGui.ResetOnSpawn =
ShiftLockButton.Parent = ShiftLockScreenGui
ShiftLockButton.BackgroundColor3 = .(, , )
ShiftLockButton.BackgroundTransparency =
ShiftLockButton.Position = .(, , , )
ShiftLockButton.Size = .(, , , )
ShiftLockButton.SizeConstraint = .SizeConstraint.RelativeXX
ShiftLockButton.Image = States.Off
ShiftlockCursor.Name =
ShiftlockCursor.Parent = ShiftLockScreenGui
ShiftlockCursor.Image = States.Lock
ShiftlockCursor.Size = .(, , , )
ShiftlockCursor.Position = .(, , , )
ShiftlockCursor.AnchorPoint = .(, )
ShiftlockCursor.SizeConstraint = .SizeConstraint.RelativeXX
ShiftlockCursor.BackgroundTransparency =
ShiftlockCursor.BackgroundColor3 = .(, , )
ShiftlockCursor.Visible =
ShiftLockButton.MouseButton1Click:(
()
Active
Active =
RunService.RenderStepped:(
()
Player.Character.Humanoid.AutoRotate =
ShiftLockButton.Image = States.On
ShiftlockCursor.Visible =
Player.Character.HumanoidRootPart.CFrame =
.(
Player.Character.HumanoidRootPart.Position,
.(
.CurrentCamera.CFrame.LookVector.X * MaxLength,
Player.Character.HumanoidRootPart.Position.Y,
.CurrentCamera.CFrame.LookVector.Z * MaxLength
)
)
.CurrentCamera.CFrame = .CurrentCamera.CFrame * EnabledOffset
.CurrentCamera.Focus =
.(
.CurrentCamera.Focus.Position,
.CurrentCamera.CFrame.RightVector,
.CurrentCamera.CFrame.UpVector
) * EnabledOffset
)
Player.Character.Humanoid.AutoRotate =
ShiftLockButton.Image = States.Off
.CurrentCamera.CFrame = .CurrentCamera.CFrame * DisabledOffset
ShiftlockCursor.Visible =
(
()
Active:()
Active =
)
)
ShiftLockAction = ContextActionService:(, ShiftLock, , )
ContextActionService:(, .(, , , ))
{} ShiftLockAction
Shiftlock

Universal