"use client"; import { useSyncExternalStore } from "react"; import { Button } from "@/components/ui/button"; import { X } from "lucide-react"; import { closeDownloadDialog, getDownloadDialogState, subscribeDownloadDialog } from "@/components/providers/download-dialog-store"; import Link from "next/link"; export function DownloadDialog() { const state = useSyncExternalStore( subscribeDownloadDialog, getDownloadDialogState, getDownloadDialogState ); const isLinux = typeof window !== "undefined" && navigator.userAgent.includes("Linux"); const downloadUrl = state.url ?? "https://www.roblox.com/download/client"; if (!state.isOpen) return null; return (
event.stopPropagation()} >

Thanks for downloading Roblox

{isLinux ? (

Unfortunately, Roblox does not support Linux natively. The only way to play Roblox on Linux as of now is through{" "} Sober .

) : (

Just follow the steps below to install Roblox. The download should start in a few seconds. If it doesn't,{" "} restart the download .

)}

Install Instructions

    {isLinux ? ( <>
  1. Install Flatpak {" "} using the guide provided for your distro.
  2. Add the Flathub repository to your system with following command:
    												
    													flatpak remote-add
    													--if-not-exists flathub
    													https://flathub.org/repo/flathub.flatpakrepo
    												
    											
  3. Install and run Sober with these commands:
    												
    													flatpak install flathub
    													org.vinegarhq.Sober
    												
    											
    												
    													flatpak run
    													org.vinegarhq.Sober
    												
    											
  4. ) : ( <>
  5. Once downloaded, double-click the{" "} Roblox.exe {" "} file in your Downloads folder.
  6. Double-click{" "} RobloxPlayerInstaller {" "} to install the app.
  7. Follow the instructions to install Roblox on your computer.
  8. Now that Roblox is installed,{" "} join the experience .
  9. )}
); }