If you're driving to Rosyth, one option is to take the M90 motorway and exit at junction 1. From there, follow signs for Rosyth. Another option is to take the A985 road. If you're coming from nearby towns such as Dunfermline or Inverkeithing, follow signs for Rosyth.
If you're taking public transportation, you can take the train to Rosyth station. Trains run from Edinburgh and Dunfermline. From the station, it's a short walk to the town centre. Alternatively, you can take the bus to Rosyth. Buses run from Edinburgh and Dunfermline.
If you're travelling from Edinburgh, you can take the train from Edinburgh Waverly station to Rosyth station. The journey takes approximately 30 minutes. If you're travelling from Glasgow, take the train to Dunfermline Town station and transfer to a train to Rosyth. If you're travelling from St Andrews, take the bus to Dunfermline and transfer to a bus to Rosyth.