I was looking for the way to implement the exact same feature you were looking for, and found a good youtube video and codes that you can exploit to do that. I did it, and I believe that you can, too.
https://youtu.be/8w6tHAv7WuI?si=P2Tn1UbD8ffJ68RC