Semaphore signals don't operate while the simulation is paused in Surveyor. Place a locomotive facing towards the signal and un-pause the simulator and your semaphore signals should operate fine.
If the signals don't operate, then there's something else wrong with the scripts.