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.

2 Likes

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

2 Likes

It’s working now, thank you very much!

2 Likes

Hey Quinacon! May I ask how you did it?

2 Likes

Yeah, I really need this right now. I can’t find anywhere else that tells me how.