How to Draw a line and make a 3D character follow it

Hello, guys lately I am trying to figure out how can I make my 3d object follow a path by drawing it on the scene. I tried my best to do it myself but it was just out of my league there are a lot of things to do for getting around this if anyone knows how to do it it would be a great help to me and anyone seeing this Question in the future

Get DOTween, it’s free and it has a feature where you can set up a path with waypoints in your scene and then attach a game object to it and make the game object tween along the path.

Image from DOTween - Documentation