this code.
local Players = game:GetService"Players"
local Camera = workspace.CurrentCamera
local Player = Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Mul = 1.25
Character:WaitForChild"HumanoidRootPart"
if Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
local Neck = Character:FindFirstChild("Neck", true)
local Waist = Character:FindFirstChild("Waist", true)
local NeckC0 = Neck.C0
local WaistC0 = Waist.C0
Camera:GetPropertyChangedSignal("CFrame"):Connect(function()
local LookVector = Camera.CFrame.LookVector
Neck.C0 = NeckC0 * CFrame.Angles(LookVector.Y * Mul, 0, 0)
Waist.C0 = WaistC0 * CFrame.Angles(LookVector.Y * Mul, 0, 0)
end)
else
local Neck = Character:FindFirstChild("Neck", true)
local Root = Character:FindFirstChild("RootJoint", true) or Character:FindFirstChild("Root Joint", true) or Character:FindFirstChild("Root Hip", true)
local LeftHip = Character:FindFirstChild("Left Hip", true)
local RightHip = Character:FindFirstChild("Right Hip", true)
local NeckC1 = Neck.C1
local RootC1 = Root.C1
local LHC0 = LeftHip.C0
local RHC0 = RightHip.C0
Camera:GetPropertyChangedSignal("CFrame"):Connect(function()
local LookVector = Camera.CFrame.LookVector
Neck.C1 = NeckC1 * CFrame.Angles(LookVector.Y * Mul, 0, 0)
Root.C1 = RootC1 * CFrame.Angles(LookVector.Y * Mul, 0, 0)
LeftHip.C0 = LHC0 * CFrame.Angles(0, 0, LookVector.Y * Mul)
RightHip.C0 = RHC0 * CFrame.Angles(0, 0, -LookVector.Y * Mul)
end)
end
make it serverscript