In most games, fairly easily. Common causes include touching a zombie or other enemy, getting hit by a weapon, falling off the baseplate, walking into lava, or being caught in an explosion.
Because Roblox is a platform rather than a single game, the specifics depend entirely on the experience you are in. Obby games kill you with gaps, tycoons with bankruptcy, and combat games with, well, combat. Dying is usually a cheap setback anyway, since most experiences respawn you within seconds.