How to make a bounce effect on mouse move

Hello, I’m wondering how to make a bounce effect on moving the mouse on my placement system, I tried using UnitRay but I didn’t get something (idk if it’s because I didn’t apply correctly)

This is what I want