function Steering()if _MSteer then local o=math.max(1,(mouse.ViewSizeX*_Tune.Peripherals.MSteerWidth)/200)local V=_Tune.Peripherals.MSteerDZone/100 local q=(mouse.X-mouse.ViewSizeX/2)/o if math.abs(q)<=V then _GSteerT=0 else _GSteerT=(math.max(math.min(math.abs(q)-V,1-V),0)/(1-V))^_Tune.MSteerExp*(q/math.abs(q))end end if _GSteerC<_GSteerT then _GSteerC=math.min(_GSteerT,_GSteerC+_Tune.SteerSpeed)else _GSteerC=math.max(_GSteerT,_GSteerC-_Tune.SteerSpeed)end local o=1-math.min(car.DriveSeat.Velocity.Magnitude/_Tune.SteerDecay,1-_Tune.MinSteer)for V,q in pairs(car.Wheels:GetChildren())do if q.Name=="\070"then q.Arm.Steer.cframe=car.Wheels.F.Base.CFrame*CFrame.Angles(0,-math.rad((_GSteerC*_Tune.SteerInner)*o),0)elseif q.Name=="\070\076"then if _GSteerC>=0 then q.Arm.Steer.cframe=car.Wheels.FL.Base.CFrame*CFrame.Angles(0,-math.rad((_GSteerC*_Tune.SteerOuter)*o),0)else q.Arm.Steer.cframe=car.Wheels.FL.Base.CFrame*CFrame.Angles(0,-math.rad((_GSteerC*_Tune.SteerInner)*o),0)end elseif q.Name=="\070\082"then if _GSteerC>=0 then q.Arm.Steer.cframe=car.Wheels.FR.Base.CFrame*CFrame.Angles(0,-math.rad((_GSteerC*_Tune.SteerInner)*o),0)else q.Arm.Steer.cframe=car.Wheels.FR.Base.CFrame*CFrame.Angles(0,-math.rad((_GSteerC*_Tune.SteerOuter)*o),0)end end end end
---Steering
function Steering()
	if _MSteer then
		local msWidth = math.max(1, mouse.ViewSizeX * _Tune.Peripherals.MSteerWidth / 200)
		local mdZone = _Tune.Peripherals.MSteerDZone / 100
		local mST = ((mouse.X - mouse.ViewSizeX / 2) / msWidth)
		if math.abs(mST) <= mdZone then
			_GSteerT = 0
		else
			_GSteerT = (math.max(math.min((math.abs(mST) - mdZone), (1 - mdZone)), 0) / (1 - mdZone)) ^ _Tune.MSteerExp
				* (mST / math.abs(mST))
		end
	end
	if _GSteerC < _GSteerT then
		_GSteerC = math.min(_GSteerT, _GSteerC + _Tune.SteerSpeed)
	else
		_GSteerC = math.max(_GSteerT, _GSteerC - _Tune.SteerSpeed)
	end
	local sDecay = (1 - math.min(car.DriveSeat.Velocity.Magnitude / _Tune.SteerDecay, 1 - _Tune.MinSteer))
	for i, v in pairs(car.Wheels:GetChildren()) do
		if v.Name == "F" then
			v.Arm.Steer.cframe = car.Wheels.F.Base.CFrame
				* CFrame.Angles(0, -math.rad(_GSteerC * _Tune.SteerInner * sDecay), 0)
		elseif v.Name == "FL" then
			if _GSteerC >= 0 then
				v.Arm.Steer.cframe = car.Wheels.FL.Base.CFrame
					* CFrame.Angles(0, -math.rad(_GSteerC * _Tune.SteerOuter * sDecay), 0)
			else
				v.Arm.Steer.cframe = car.Wheels.FL.Base.CFrame
					* CFrame.Angles(0, -math.rad(_GSteerC * _Tune.SteerInner * sDecay), 0)
			end
		elseif v.Name == "FR" then
			if _GSteerC >= 0 then
				v.Arm.Steer.cframe = car.Wheels.FR.Base.CFrame
					* CFrame.Angles(0, -math.rad(_GSteerC * _Tune.SteerInner * sDecay), 0)
			else
				v.Arm.Steer.cframe = car.Wheels.FR.Base.CFrame
					* CFrame.Angles(0, -math.rad(_GSteerC * _Tune.SteerOuter * sDecay), 0)
			end
		end
	end
end
