Platform movement

Can someone please help me on How do I make the player control a single platform in any direction they choose in a 2d platformer