Spock: Are you a memeber of Starfleet?
Scotty: Umm, yes, can I get a towel?
Spock: Under penalty of court marshall I order you to explain to me how you were able to beam aboard this ship while travelling at warp.
Kirk: Don't answer him.
Spock: You will answer me.
Spock greets Kirk and Scotty after they just beamed aboard while they were travelling at warp speed (which they haven't discovered how to do yet).