A resistor limits the current to a safe value so that the associated parts can function properly. Resistors are used to control the fan speed of automotive blowers. The change in resistance limits the current through the motor, which dictates the speed.