Sorry for the late upload. Anyways heres the SmoothShiftLock script --SmoothShiftlock -- StarterCharacter script local player = game.Players.LocalPlayer local cam = workspace.CurrentCamera local char = player.Character local human = char:WaitForChild("Humanoid") local rootPart = char.PrimaryPart local upperTorso = char:WaitForChild("UpperTorso") local waistJoint = upperTorso:WaitForChild("Waist") -- Services local uis = game:GetService("UserInputService") local runService = game:GetService("RunService") local tweenService = game:GetService("TweenService") -- Globals local currentSpeed = 0; local currentTween = nil; human.Running:Connect(function(speed) currentSpeed = speed end) -- This was actually not needed to be disabled --human.AutoRotate = false local originalWaistC1 = waistJoint.C1 local maxRotation = math.rad(65) runService:BindToRenderStep("vanityCamera", 400, function() local targetPosition = (cam.CFrame * CFrame.new(0,0,-1000)).p local torsoFront = rootPart.CFrame.LookVector local torsoRight = rootPart.CFrame.RightVector local vectorToTarget = (targetPosition - rootPart.Position) local rotation = math.atan2(torsoRight:Dot(vectorToTarget), torsoFront:Dot(vectorToTarget)) -- Clamp the rotation if (rotation < -maxRotation) then rotation = -maxRotation elseif (rotation > maxRotation) then rotation = maxRotation end if (math.abs(rotation) == maxRotation and currentSpeed 0.5) then if (currentTween.PlaybackState == Enum.PlaybackState.Playing) then currentTween:Cancel() end end waistJoint.C1 = CFrame.Angles(0,rotation,0) * originalWaistC1 end end)
@@axolol-bro please can you make it for R6 script it doesn't work for R6 and for my game i need r6 pls can you adjust angles i tried but they wasn't perfect
Sorry for the late upload.
Anyways heres the SmoothShiftLock script
--SmoothShiftlock
-- StarterCharacter script
local player = game.Players.LocalPlayer
local cam = workspace.CurrentCamera
local char = player.Character
local human = char:WaitForChild("Humanoid")
local rootPart = char.PrimaryPart
local upperTorso = char:WaitForChild("UpperTorso")
local waistJoint = upperTorso:WaitForChild("Waist")
-- Services
local uis = game:GetService("UserInputService")
local runService = game:GetService("RunService")
local tweenService = game:GetService("TweenService")
-- Globals
local currentSpeed = 0;
local currentTween = nil;
human.Running:Connect(function(speed)
currentSpeed = speed
end)
-- This was actually not needed to be disabled
--human.AutoRotate = false
local originalWaistC1 = waistJoint.C1
local maxRotation = math.rad(65)
runService:BindToRenderStep("vanityCamera", 400, function()
local targetPosition = (cam.CFrame * CFrame.new(0,0,-1000)).p
local torsoFront = rootPart.CFrame.LookVector
local torsoRight = rootPart.CFrame.RightVector
local vectorToTarget = (targetPosition - rootPart.Position)
local rotation = math.atan2(torsoRight:Dot(vectorToTarget), torsoFront:Dot(vectorToTarget))
-- Clamp the rotation
if (rotation < -maxRotation) then
rotation = -maxRotation
elseif (rotation > maxRotation) then
rotation = maxRotation
end
if (math.abs(rotation) == maxRotation and currentSpeed 0.5) then
if (currentTween.PlaybackState == Enum.PlaybackState.Playing) then
currentTween:Cancel()
end
end
waistJoint.C1 = CFrame.Angles(0,rotation,0) * originalWaistC1
end
end)
True Just Add Pastebin
Or ControlC
@@Best_Junior5Maybe in the future I'll make a pastebin.
@@axolol-bro please can you make it for R6 script it doesn't work for R6 and for my game i need r6 pls can you adjust angles i tried but they wasn't perfect
Dude I can't copy the comment?
I tried this, and it worked perfectly!! Thanks for the tutorial!
You're welcome!
leave your like guys he deserves it
Thank you!
you gonna break your spine trynna recreate that irl 😭😭
yo tysm this is perfect for my pc2 game!
Pls show us how to make view model like for a gun like rivals plsssssss
Hmm I'll try, but it's probably gonna be really bad lol.
Perfect!
meet me in regretevator soon or later
I understand
does this works with R6?
Of course no
--
Tutorial = Copy and paste
You dont deserve 100 subscribers, You deserve 10000 subscribers!