To collect Rox, click on the trees to shake them—though this only works in the Port area. You can also earn Rox by playing the daily challenges and games, such as those in the Underground Disco and Moshling Boshling on Main Street.
If you're a member, you get an extra perk: the ability to shake the Port trees once a week for more Rox.