What they both said. Buy the screws designed for metal roofing. Woodtite is one brand, there are others, just talk to the folks at your hardware store. They mostly have hex heads so make sure you have an appropriate driver bit. You will NOT regret using them, I promise.
(You can, or at least used to be able to, get rubber- or lead-gasketed nails for roofs, but do not use them - they will leak (thus cause rot) and do not hold the metal on near as tightly as the roofing screws. Which is especially important if you are just screwing into OSB b/c metal roofing is really better put into 2x4 strapping, for a secure attachment)
Put them through the HIGH part of the rib, not the valley. This may seem counterintuitive ('won't they hold better if I put them where the metal is right directly against the wood?") but as long as you use the right length screws they hold just as well, and if you put them in the valleys they will leak even with the neoprene gaskets. Leakage around fasteners equals rot equals things becoming unfastened, so you really want to avoid it!
Good luck, have fun,
Pat