You must put a resistor between 12Volts and the Mosfet Drain. 1K should do it.
You see the mosfet has two states (the way you are using it) either Very low resistance or open circuit.
Then connect the scope common to your circuit common and the drain.