Downloaded from the official Roblox website, the game is safe and virus-free. The risk only appears when you grab it from unofficial third-party sites, where files can't be guaranteed clean.
Historically, Roblox was briefly compromised by an anonymous group, and during that short window a harmful file was uploaded. Fortunately, Roblox Corporation identified and fixed the issue quickly. The takeaway: always install from the official source to stay protected.