Get mouse position on SurfaceGui

I want to make the black Frame (workspace.Part.SurfaceGui.Frame.FollowMouse) follow my mouse.

I don’t know how to get the mouse position on a SurfaceGui.

put the surfacegui in StarterGui and set the adornee to that part
then, you should be able to use local scripts and track things like mouse movement with .MouseMoved or .InputChanged

1 Like

It’s working now, thank you very much!

1 Like