How could I get the mouse position here?

Hi devs,

I’m currently making a plugin, and I need some help with getting the mouse position (in scale)
What I’m wanting is the position of the mouse inside of the red object. (Which also needs to work when the red object is moved)
e
As the image shows, this is inside of a plugin widget. The red box using scaling for position, and offset for size.

Any help is appreciated, thanks!

You might be able to use i believe

Frame.MouseEntered:Connect(function()

end()

Im not too sure as i cant test out at this time

1 Like