function Flip()if(car.DriveSeat.CFrame*CFrame.Angles(math.pi/2,0,0)).lookVector.y>.1 or FlipDB then FlipWait=tick()else if tick()-FlipWait>=3 then FlipDB=true local I=car.DriveSeat.Flip I.maxTorque=Vector3.new(10000,0,10000)I.P=3000 I.D=500 wait(1)I.maxTorque=Vector3.new(0,0,0)I.P=0 I.D=0 FlipDB=false end end end
--[[Flip]]

function Flip()
	--Detect Orientation
	if (car.DriveSeat.CFrame * CFrame.Angles(math.pi / 2, 0, 0)).lookVector.y > 0.1 or FlipDB then
		FlipWait = tick()

		--Apply Flip
	else
		if tick() - FlipWait >= 3 then
			FlipDB = true
			local gyro = car.DriveSeat.Flip
			gyro.maxTorque = Vector3.new(10000, 0, 10000)
			gyro.P = 3000
			gyro.D = 500
			wait(1)
			gyro.maxTorque = Vector3.new(0, 0, 0)
			gyro.P = 0
			gyro.D = 0
			FlipDB = false
		end
	end
end
