if gear.Value==1 then if script.Parent.TC.On.Value==true then if carSeat.Throttle==1 and script.Parent.CC.Value==true then rwd.Torque=0 lwd.Torque=0 rrwd.Torque=0 rwd.Throttle=0 lwd.Throttle=0 rrwd.Throttle=0 elseif carSeat.Throttle==1 and script.Parent.CC.Value==false then rwd.Throttle=0 rwd.Torque=0 rwd.MaxSpeed=maxspeed lwd.Throttle=0 lwd.Torque=0 lwd.MaxSpeed=maxspeed rrwd.Throttle=0 rrwd.Torque=0 rrwd.MaxSpeed=maxspeed elseif carSeat.Throttle==-1 then script.Parent.CC.Value=false rb.RB.CanCollide=true rb.FB.CanCollide=true lfb.RB.CanCollide=true lfb.FB.CanCollide=true rfb.RB.CanCollide=true rfb.FB.CanCollide=true wait(brakes)rb.RB.CanCollide=false rb.FB.CanCollide=false lfb.RB.CanCollide=false lfb.FB.CanCollide=false rfb.RB.CanCollide=false rfb.FB.CanCollide=false wait()elseif carSeat.Throttle==0 and script.Parent.CC.Value==true then rb.RB.CanCollide=false rb.FB.CanCollide=false lfb.RB.CanCollide=false lfb.FB.CanCollide=false rfb.RB.CanCollide=false rfb.FB.CanCollide=false elseif carSeat.Throttle==0 and script.Parent.CC.Value==false then rwd.Throttle=0 rwd.Torque=cst rwd.MaxSpeed=maxspeed lwd.Throttle=0 lwd.Torque=cst lwd.MaxSpeed=maxspeed rrwd.Throttle=0 rrwd.Torque=cst rrwd.MaxSpeed=maxspeed rb.RB.CanCollide=false rb.FB.CanCollide=false lfb.RB.CanCollide=false lfb.FB.CanCollide=false rfb.RB.CanCollide=false rfb.FB.CanCollide=false end end if script.Parent.TC.On.Value==false then if carSeat.Throttle==1 and script.Parent.CC.Value==true then rwd.Torque=tq lwd.Torque=ftq rrwd.Torque=ftq rwd.Throttle=1 lwd.Throttle=1 rrwd.Throttle=1 elseif carSeat.Throttle==1 and script.Parent.CC.Value==false then rwd.Throttle=1 rwd.Torque=tq rwd.MaxSpeed=maxspeed lwd.Throttle=1 lwd.Torque=ftq lwd.MaxSpeed=maxspeed rrwd.Throttle=1 rrwd.Torque=ftq rrwd.MaxSpeed=maxspeed elseif carSeat.Throttle==-1 then script.Parent.CC.Value=false rb.RB.CanCollide=true rb.FB.CanCollide=true lfb.RB.CanCollide=true lfb.FB.CanCollide=true rfb.RB.CanCollide=true rfb.FB.CanCollide=true wait(brakes)rb.RB.CanCollide=false rb.FB.CanCollide=false lfb.RB.CanCollide=false lfb.FB.CanCollide=false rfb.RB.CanCollide=false rfb.FB.CanCollide=false wait()elseif carSeat.Throttle==0 and script.Parent.CC.Value==true then rb.RB.CanCollide=false rb.FB.CanCollide=false lfb.RB.CanCollide=false lfb.FB.CanCollide=false rfb.RB.CanCollide=false rfb.FB.CanCollide=false elseif carSeat.Throttle==0 and script.Parent.CC.Value==false then rwd.Throttle=0 rwd.Torque=cst rwd.MaxSpeed=maxspeed lwd.Throttle=0 lwd.Torque=cst lwd.MaxSpeed=maxspeed rrwd.Throttle=0 rrwd.Torque=cst rrwd.MaxSpeed=maxspeed rb.RB.CanCollide=false rb.FB.CanCollide=false lfb.RB.CanCollide=false lfb.FB.CanCollide=false rfb.RB.CanCollide=false rfb.FB.CanCollide=false end end end

if gear.Value == 1 then
if script.Parent.TC.On.Value == true then
if carSeat.Throttle == 1 and script.Parent.CC.Value == true then
	rwd.Torque = 0
	lwd.Torque = 0
	rrwd.Torque = 0
	rwd.Throttle = 0
	lwd.Throttle = 0
	rrwd.Throttle = 0
	elseif carSeat.Throttle == 1 and script.Parent.CC.Value == false then
	rwd.Throttle = 0
	rwd.Torque = 0
	rwd.MaxSpeed = maxspeed
	lwd.Throttle = 0
	lwd.Torque = 0
	lwd.MaxSpeed = maxspeed
	rrwd.Throttle = 0
	rrwd.Torque = 0
	rrwd.MaxSpeed = maxspeed
	
elseif carSeat.Throttle == -1 then
	script.Parent.CC.Value = false
	rb.RB.CanCollide = true
	rb.FB.CanCollide = true
	lfb.RB.CanCollide = true
	lfb.FB.CanCollide = true
	rfb.RB.CanCollide = true
	rfb.FB.CanCollide = true
	wait(brakes)
	rb.RB.CanCollide = false
	rb.FB.CanCollide = false
	lfb.RB.CanCollide = false
	lfb.FB.CanCollide = false
	rfb.RB.CanCollide = false
	rfb.FB.CanCollide = false
	wait()
elseif carSeat.Throttle == 0 and script.Parent.CC.Value == true then
	rb.RB.CanCollide = false
	rb.FB.CanCollide = false
	lfb.RB.CanCollide = false
	lfb.FB.CanCollide = false
	rfb.RB.CanCollide = false
	rfb.FB.CanCollide = false
	elseif carSeat.Throttle == 0 and script.Parent.CC.Value == false then
	rwd.Throttle = 0
	rwd.Torque = cst
	rwd.MaxSpeed = maxspeed
	lwd.Throttle = 0
	lwd.Torque = cst
	lwd.MaxSpeed = maxspeed
	rrwd.Throttle = 0
	rrwd.Torque = cst
	rrwd.MaxSpeed = maxspeed
	rb.RB.CanCollide = false
	rb.FB.CanCollide = false
	lfb.RB.CanCollide = false
	lfb.FB.CanCollide = false
	rfb.RB.CanCollide = false
	rfb.FB.CanCollide = false
	end
end

if script.Parent.TC.On.Value == false then
	if carSeat.Throttle == 1 and script.Parent.CC.Value == true then
	rwd.Torque = tq
	lwd.Torque = ftq
	rrwd.Torque = ftq
	rwd.Throttle = 1
	lwd.Throttle = 1
	rrwd.Throttle = 1
	elseif carSeat.Throttle == 1 and script.Parent.CC.Value == false then
	rwd.Throttle = 1
	rwd.Torque = tq
	rwd.MaxSpeed = maxspeed
	lwd.Throttle = 1
	lwd.Torque = ftq
	lwd.MaxSpeed = maxspeed
	rrwd.Throttle = 1
	rrwd.Torque = ftq
	rrwd.MaxSpeed = maxspeed
	
elseif carSeat.Throttle == -1 then
	script.Parent.CC.Value = false
	rb.RB.CanCollide = true
	rb.FB.CanCollide = true
	lfb.RB.CanCollide = true
	lfb.FB.CanCollide = true
	rfb.RB.CanCollide = true
	rfb.FB.CanCollide = true
	wait(brakes)
	rb.RB.CanCollide = false
	rb.FB.CanCollide = false
	lfb.RB.CanCollide = false
	lfb.FB.CanCollide = false
	rfb.RB.CanCollide = false
	rfb.FB.CanCollide = false
	wait()
elseif carSeat.Throttle == 0 and script.Parent.CC.Value == true then
	rb.RB.CanCollide = false
	rb.FB.CanCollide = false
	lfb.RB.CanCollide = false
	lfb.FB.CanCollide = false
	rfb.RB.CanCollide = false
	rfb.FB.CanCollide = false
	elseif carSeat.Throttle == 0 and script.Parent.CC.Value == false then
	rwd.Throttle = 0
	rwd.Torque = cst
	rwd.MaxSpeed = maxspeed
	lwd.Throttle = 0
	lwd.Torque = cst
	lwd.MaxSpeed = maxspeed
	rrwd.Throttle = 0
	rrwd.Torque = cst
	rrwd.MaxSpeed = maxspeed
	rb.RB.CanCollide = false
	rb.FB.CanCollide = false
	lfb.RB.CanCollide = false
	lfb.FB.CanCollide = false
	rfb.RB.CanCollide = false
	rfb.FB.CanCollide = false
	end
end
	end