Realtime Scoring

I presume you mean, while the Score Editor window is open/frontmost?
If so, (and the same is true when recording in any of the MIDI Editors), you will have to create an empty MIDI Part first, so that the Score Editor window can open, then, just make sure that the MIDI track is record-enabled, then record normally.
Obviously, the way the Score will look depends on the track/staff’s default Display Quantize settings.