Can a perpetuum mobile work in a vacuum? I think when it is in vacuum it won’t stop working because of outside forces, because there is no outside forces. Tell me if I’m wrong.
If there are no external forces acting on a system that is in motion then it will continue in motion. This is a consequence of the conservation of energy. The laws of thermodynamics say that a machine cannot do work indefinitely without an external source of energy - but if there are no external forces then the system is not doing work, so it can continue in motion forever.
Perpetual motion would also require 0 loss of energy due to internal friction in the object itself. This would not only require a perfect vacuum, but also, among others, perfect bearings and perfect parts. No energy lost to friction and deformations of the object.
So not only external forces on the object will play a part, also internal forces that will lead to a loss of energy.
Perpetual motion machines of the third kind are not possible because there is always some friction (or friction-like force) that makes them dissipate their energy. Air resistance certainly causes a drag that can be reduced by making the machine run in vacuum, but now other sources of friction matter like the bearings, or even induced currents and electromagnetic radiation from magnetic suspensions. Even two gravitationally bound objects in the depths of space with no outside force whatsoever will lose energy due to gravitational wave emission.