An RNA produced by transcription that carries the code for a particular protein from the nuclear DNA to a ribosome in the cytoplasm and acts as a template for the formation of that protein.