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 MouseOver function?

I'm trying to do a mouse over function for a GUI which would do the following when the mouse hovers over a GUI:

  • Button moves over by 5
  • Another small GUI appears
  • Makes the text ArialBold I can do that, it's just a matter of getting the correct function.

Please help? Thanks.

3 answers

You must be looking for the MouseEnter event. For the button moving, you'd use Tweening.

Example:

script.Parent.MouseEnter:connect(function()
	--your code here
end)

Not a function. An event. I think it's like this (Sorry if I'm wrong):

--Since you probably know basic scripting, you would know where to put this script
function NameWhatEverYouWant()
--Code here
end
script.Parent.MouseEnter:connect(NameWhatEverYouWant)

1 comment

0

Or do what the other guy did. Same thing, do his answer it's better

As the 2 guys said MouseEnter() is the Event for this situation. For the Future, first check this: Events()

1 comment

0

NOOBS! -_-

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