To get to Stirling by car, take the M9 from Edinburgh or Glasgow and follow the signs. From Perth, take the A9 then join the M9 towards the city. If you're coming from the north, take the A82/A84 and follow the signs.
To get to Stirling by rail, take the train to Stirling Station from Edinburgh or Glasgow. There are also direct trains from London that run to Stirling.
If you're already in Scotland, you may want to visit nearby landmarks such as Loch Lomond or the Wallace Monument on your way to Stirling. Both are easily accessible by car or public transportation and are worth a visit.