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

Is there a built-in function to know if your mouse in inside of a GUI instance?

Asked by 5 years ago

So I have a script that identifies if a mouse is inside of a ui instance but for future reference is there a built in function for this? Maybe it will be faster if it was run in the c side of the engine.

1 answer

Log in to vote
0
Answered by
CjayPlyz 643 Moderation Voter
5 years ago

You could use this :)

Script.Parent.MouseEnter:connect(function()
    -- Put your scripts here
end)
0
im sure you know what "script.parent" means on line 1 CjayPlyz 643 — 5y
0
cjay, "Script" is supposed to be lowercase xD DeceptiveCaster 3761 — 5y
Ad

Answer this question