how to make line that follows player'path

hey i was wondering how can i achieve this kind of a trail that follows the player i’ve tried line renderer but it’s not smooth at all even after modifying it,it’s still so edgy.


any ideas how can i get this type of effect?