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.
COMMUNITY QUESTION
Is there a built-in function to know if your mouse in inside of a GUI instance?
1 answer
You could use this :)
Script.Parent.MouseEnter:connect(function()
-- Put your scripts here
end)
2 comments
0
im sure you know what "script.parent" means on line 1
0
cjay, "Script" is supposed to be lowercase xD
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
https://wiki.roblox.com/index.php?title=API:Class/GuiObject/MouseEnter