To unlock Roy in Super Smash Bros. Melee, first unlock Marth, then use him to beat Classic Mode. Defeating Roy at the end of that run adds him to your roster.
There are two ways to go about it. The easier method is beating Classic Mode with Marth on any difficulty and any stock setting. The harder, more tedious route is winning 900 versus matches.
Since the Classic Mode approach is far quicker, most players go that way. Either path gets you Roy, one of the game's popular sword-wielding fighters.