How to make cruve line

(Fling Things and People - Roblox)
this game when u hold on to an object will created a line and it will curve acroding to the movement how they do it? i just want to know how to make a similar line and make it curve for my rock throwing game

This might have what you need.