Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make a GUI follow the Mouse? [closed]

Asked by 7 years ago

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.

Closed as Not Constructive by Goulstem

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
1
Answered by 7 years ago

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.

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