light_L.BrickColor=lightColor_off light_R.BrickColor=lightColor_off brake_L.BrickColor=brakeColor_off brake_R.BrickColor=brakeColor_off smoke.Enabled=false fire.Enabled=false print("\074\101\101\112\083\099\114\105\112\116\058 \099\111\110\110\101\099\116\105\110\103 \101\118\101\110\116\115\046\046\046")seat.ChildAdded:connect(seatChildAddedHandler)seat.ChildRemoved:connect(seatChildRemovedHandler)seat.Changed:connect(seatChangedHandler)print("\074\101\101\112\083\099\114\105\112\116\058 \101\118\101\110\116\115 \099\111\110\110\101\099\116\101\100\046")while true do if vehicleSeatBack.CFrame.lookVector.y<=.707 then print("\074\101\101\112 \105\115 \102\108\105\112\112\101\100\046  \070\108\105\112\112\105\110\103 \114\105\103\104\116 \115\105\100\101 \117\112\046\046\046")gyro.cframe=CFrame.new(Vector3.new(0,0,0),Vector3.new(0,1,0))gyro.maxTorque=Vector3.new(1000,1000,1000)wait(2)gyro.maxTorque=Vector3.new(0,0,0)end wait(8)end

light_L.BrickColor = lightColor_off
light_R.BrickColor = lightColor_off
brake_L.BrickColor = brakeColor_off
brake_R.BrickColor = brakeColor_off
smoke.Enabled = false
fire.Enabled = false

print("JeepScript: connecting events...")
seat.ChildAdded:connect(seatChildAddedHandler)
seat.ChildRemoved:connect(seatChildRemovedHandler)
seat.Changed:connect(seatChangedHandler)
print("JeepScript: events connected.")

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