----------------------------------------------------------------[SS6] TO ADJUST ANY OF THE STEERING OPTIONS, GO TO LINE 66 "--change"

ssl = carSeat.Parent.Parent.LW.WheelML
ssr = carSeat.Parent.Parent.RW.WheelMR
strlckL = 1
strlckR = 1
strspd = script.Parent.Storage.SteerSpeed.Value 
strprg = 0 
maxlockL = carSeat.Storage.SteeringAngle.Value 
maxlockR = carSeat.Storage.SteeringAngle.Value
m = false occ = false n = false
steer = 0
if carSeat.Steer == 1 then
strlckL = math.rad(maxlockL+4)
strlckR = math.rad(maxlockR+6)
elseif carSeat.Steer == -1 then
strlckL = math.rad(maxlockL+6)
strlckR = math.rad(maxlockR+4)
end


while wait() do
	spd = carSeat.Velocity.Magnitude
	steer = (steer+((carSeat.Steer-steer)*strspd))
	carSeat.Parent.Parent.LW.WheelML.Gyro.cframe = carSeat.Parent.ref.CFrame * CFrame.Angles(0,((-1*steer)*strlckL)*(strprg/(spd+strprg)),0)
	carSeat.Parent.Parent.RW.WheelMR.Gyro.cframe = carSeat.Parent.ref.CFrame * CFrame.Angles(0,((-1*steer)*strlckR)*(strprg/(spd+strprg)),0)
	carSeat.Parent.Parent.LW.ML.HingeConstraint.MotorMaxTorque = 0
	carSeat.Parent.Parent.RW.MR.HingeConstraint.MotorMaxTorque = 0
	
	if carSeat.Throttle == 0 then
		strspd = script.Parent.Storage.SteerSpeed.Value*4.3
	end
	
	ssl.Gyro.D = damp
ssl.Gyro.maxTorque = Vector3.new(0,maxtq,0)
ssl.Gyro.P = pw
ssr.Gyro.D = damp
ssr.Gyro.maxTorque = Vector3.new(0,maxtq,0)
ssr.Gyro.P = pw

	if spd < 140 then
		strprg = 160
	else
		strprg = 80*ty
	end
	
	if carSeat.Storage.Mode == "City" then
	ty = 0.005
	else
	ty = 1		
	end
	if script.Parent.Storage.CurrentGear.Value == 2  and carSeat.Steer == 0 then 
		damp = 800
maxtq = 30000
pw = 100000
	else 
	damp = 1000 --change
maxtq = 3000 --change
pw = 10000 --change	
	end
	
	--if script.Parent.Storage.CurrentGear.Value == 2  and carSeat.Steer == 0 then 
		--if m == false then
	--	m = true occ = true n = true 