Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make a GUI follow the Mouse?

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.

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.

6 comments

0

I'll try that.

0

How would I make change the position to the Mouse's x y ?

0

gui.Position.X = plr:GetMouse().X / gui.Position.Y = plr:GetMouse().Y

0

It gets an error" Players.Player1.PlayerGui.LocalScript:7: unexpected symbol near '=' "

0

Can you give me the whole script because my script doesn't seem to be working.

0

you didn't include that slash, right? I just meant it should be on two seperate lines.

This discussion is preserved as it was. New answers, comments, and votes are closed.