Hover Event?

Hello Community,
I have a quick question. How do i make something like this : If i watch a cube like just watch over it, execute something, coulndn’t find aything on google so i tried here.