I'm trying to make a GUI that says "Open Door" to appear and follow the mouse when my mouse goes over a door. I'm pretty sure I have everything else down but I don't know how to make it so it follows the mouse.
COMMUNITY QUESTION
How do I make a GUI follow the Mouse?
1 answer
I've done something like this before. Make a .Changed event for the mouse, and make the position of a GUI the mouse's X and Y whenever the mouse is changed.
This discussion is preserved as it was. New answers, comments, and votes are closed.

6 comments
I'll try that.
How would I make change the position to the Mouse's x y ?
gui.Position.X = plr:GetMouse().X / gui.Position.Y = plr:GetMouse().Y
It gets an error" Players.Player1.PlayerGui.LocalScript:7: unexpected symbol near '=' "
Can you give me the whole script because my script doesn't seem to be working.
you didn't include that slash, right? I just meant it should be on two seperate lines.