local q=game:GetService("\082\117\110\083\101\114\118\105\099\101")local U=game:GetService("\080\108\097\121\101\114\115")local Q=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")local T=U.LocalPlayer local R=script.Parent local D=R:FindFirstChildOfClass("\072\117\109\097\110\111\105\100")local L=workspace.Camera repeat wait()until D local Z=R:WaitForChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")local e=R:WaitForChild("\084\111\114\115\111")local J=Z:WaitForChild("\082\111\111\116\074\111\105\110\116")local function a(q,U,Q)return q+(U-q)*Q end local S=nil local x=nil local Y=0 local f=0 local s=J.C0 q.RenderStepped:Connect(function()S=Z.Velocity*Vector3.new(.2,0,.2)if S.Magnitude>2 then x=S.Unit Y=Z.CFrame.RightVector:Dot(x)f=Z.CFrame.LookVector:Dot(x)else Y=0 f=0 end J.C0=J.C0:Lerp(s*CFrame.Angles(math.rad(f*8),math.rad(-Y*7),0),.2)end)
--== OK DEVON MAKE THIS ==--

local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local TS = game:GetService("TweenService")

local Player = Players.LocalPlayer
local Character = script.Parent

local Humanoid = Character:FindFirstChildOfClass("Humanoid")

local camera = workspace.Camera

repeat
	wait()
until Humanoid

local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
local Torso = Character:WaitForChild("Torso")

local RootJoint = HumanoidRootPart:WaitForChild("RootJoint")

local function Lerp(a, b, c)
	return a + (b - a) * c
end

local Force = nil
local Direction = nil
local Value1 = 0
local Value2 = 0

local RootJointC0 = RootJoint.C0

RunService.RenderStepped:Connect(function()
	Force = HumanoidRootPart.Velocity * Vector3.new(0.2, 0, 0.2)

	if Force.Magnitude > 2 then
		Direction = Force.Unit
		Value1 = HumanoidRootPart.CFrame.RightVector:Dot(Direction)
		Value2 = HumanoidRootPart.CFrame.LookVector:Dot(Direction)
	else
		Value1 = 0
		Value2 = 0
	end

	RootJoint.C0 = RootJoint.C0:Lerp(RootJointC0 * CFrame.Angles(math.rad(Value2 * 8), math.rad(-Value1 * 7), 0), 0.2)
end)
