Shut off the electricity to the furnace from your circuit breaker box; move the corresponding switch into the "Off" position. Rotate the gas valve that feeds the furnace all the way to the left to disrupt the gas supply while changing the rollout limit.
Remove the screws securing the burner access panel to the front of the furnace; the type and number of screws varies by model. Slide the panel up and pull it toward you if your model uses retaining tabs instead of screws.
Find the rollout limit switch mounted just above the gas burners. Pull the small metal wiring connectors with needle-nose pliers to detach them from the limit switch terminals. Remove the screws securing the component to the burner cabinet. Discard the faulty rollout limit switch, but reserve the screws.
Hold the new rollout limit switch to the burner cabinet. Align the screw holes on the cabinet with the ones on the component. Insert and tighten the reserved screws. Slide the metal wiring connectors onto the rollout switch terminals, using the needle-nose pliers.