Moving Cursor while walking

Hey guys!

For my game im currently working on a gun, and I went to this one game and saw how there cursor worked. When you move the circle expands out, and when you stop moving it go tights, im wondering how I can do this!

https://gyazo.com/80d3d4f6d126361a5c847f4dfdd67b54

Any help loved!

check the velocity of the player, if it’s more than 1 then expand the circle, otherwise close.

You can check how fast the player’s character is moving with:

Character.HumanoidRootPart.Velocity.Magnitude