Go up and down and let cars through at railroad tracks and parking garage entrances??

NEED AN ANSWER ASAP THAINKS!