Robux is purchased for real-world currency and is only sold by the Roblox company. And You can earn only through giveaways on different platforms then will give you when you will complete their tasks. But on the official site, you cannot earn.