How do I get from Lucerne train station to Alpnachstad to the valley station?

Lucerne train station to Alpnachstad valley station

From Lucerne train station: Take train S5 to Alpnachstad station (17 minutes). Or from Lucerne by boat from pier no. 2 (50 - 90 minutes) to Alpnachstad. The ship is only in operation from May to October.