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

How do I make a MouseOver function?

Asked by 10 years ago

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

Log in to vote
1
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
10 years ago

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)
Ad
Log in to vote
0
Answered by 10 years ago

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)
0
Or do what the other guy did. Same thing, do his answer it's better fahmisack123 385 — 10y
Log in to vote
-1
Answered by
KAAK82 16
10 years ago

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

0
NOOBS! -_- KAAK82 16 — 10y

Answer this question