Can I earn anything without leaving the game open?
Yes. The game advertises rewards you can earn while offline, so leaving the Roblox session running is not required for that reward route. That does not mean an unfinished wave run keeps going after you leave; offline earnings and progress in a battle are separate things to check.