Playing a Roblox game solo is not always an option, unfortunately. The only reliable way is to look at the game's page and check whether it offers a "Play Solo" button to the right of the normal Play button.
If that option is not there, the game simply may not support solo play.