Hi I have a quick question

How do I make 3D moving platforms in directions left and right and up and down and forwards and backwards?