Anti-gravity gun
An anti-gravity gun makes things float. Sometimes it's a powerful weapon that could possibly threaten the integrity of the planet upon which it's used. Sometimes it's wielded by any random idiot.
Fiction
Generation 1 continuity
Generation 1 toy bios
Scorponok wields a fusion-powered anti-gravity gun in robot mode.
Desert Flight

Originally developed on Cybertron, the anti-gravity gun proved too unstable to continue using. However, Megatron secretly rebuilt the weapon on Earth, where the continued integrity of the planet is much less of a concern.
The anti-gravity gun is subject to severe and uncontrollable fluctuations in the degree to which it nullifies the effect of gravity. At its highest settings, it can cause objects to fly off into space. The version built on Earth is much more powerful. The unstable energies of the anti-gravity gun could potentially cause a localized rip in the space-time continuum if mishandled.
On Cybertron, the Decepticons experimented with anti-gravity gun technology, using it on many Autobot emplacements. The Autobot Smokescreen's home was almost sent floating off into space in one of these attacks. The technology was eventually abandoned after 1) even the Decepticons found its unstable nature too dangerous, and 2) Optimus Prime turned the weapon on them, using its reverse setting to send them plummeting down into Cybertron's lower levels. (The embarrassment of the latter probably had more to do with the technology's abandonment than the former did.)
Millions of years later on Earth, Megatron had a secret base constructed to develop the technology again, building a much more powerful weapon. He ordered Dirge to attract attention deliberately so that he could bring the weapon to bear on the Autobots as they approached the base.
Megatron's ultimatum was simple: Optimus Prime would deactivate himself and give himself to the Decepticons, or Megatron would send every human on the face of the Earth hurtling off into space. Desert Flight
Marvel The Transformers comics
For one shining moment, Skullcruncher's demolecularization gun was traded in for an anti-gravity gun. He used it to make bubbles float, as well as the Nebulan professional wrestlers inside them. Love and Steel!
Animated cartoon
The Andellorian Anti-Gravity Cannon was the first weapon Swindle sold to Blitzwing after Lugnut furiously berated him for contacting Lockdown. Icy Blitzwing used this gun to declare war on Lugnut and sent the zealous Decepticon rocketing into a boulder. Everything Must Go
Games
3D Battle-Card Game
Scorponok had access to an anti-gravity cannon in robot mode. 3D Battle-Card Game
Notes
- Gravity is one of the fundamental forces holding matter together. A weapon that could actually make gravity disappear, in even a small area, would not cause astronaut-style floating but rather would reduce its target to scattered dust flung apart at the speed of planetary rotation.

