How do I go about detecting mouse movement across a part and splitting it through that point with CSG?

Fruit ninja style action

  1. How would i go about detecting that someone moved their mouse across this union?

  2. How would I go about splitting it in half using roblox’s real time CSG? ( like here: Roblox Developer Conference 2018 - Real-Time CSG Solver Example - YouTube )

I’m not a new scripter, just don’t want to do too much unnecessary digging. :happy3:
Any help is welcome.

Are you trying to just detect mouse movement or detect mouse movement when a key or button like left click is held down?

Mouse movement when MouseButton1 is held down.

Found the open-sourced post by @Imaginze in WAYWOC after a while of searching that does the exact thing you need:

https://www.roblox.com/games/7175312021/Chop-stuff