--print("JeepScript: events connected.")


while true do
	-- Every 15 seconds, poll if jeep has turned upside down.  If true, then flip back upright.
	if(upVectorPart.CFrame.lookVector.y <= 0.707) then
		print("Vehicle is flipped.  Flipping right side up...")
		gyro.cframe = CFrame.new( Vector3.new(0,0,0), Vector3.new(0,1,0) )
		gyro.maxTorque = Vector3.new(tiltForce, tiltForce, tiltForce)
		wait(2)
		gyro.maxTorque = Vector3.new(0,0,0)
	end
	wait(8)
end
