Using commands on Roblox really depends on the specific game you are playing. Many Roblox games are created by users who build their own custom commands into their experiences.
If a game has commands, you simply type one in to activate it. The easiest way to find out what is available is to ask the owner of the game for the command list, since each creator sets up their own set.