How to make player movement without user input

Hi, I’m making a game and I’m stuck on this for ages. How to make the player move in a certain direction without user input. Please, could you help me I’m new to Unity?

You aren’t very descriptive in asking the question, I would love to help @Alex_Randelovic but you simply didn’t provide any context.

If you’re looking to do player movement I recommend checking out the Unity NavMesh system.