Any answers are much appreciated but please leave a scripting example and talk through how the script works if its not too much work. Thanks in advance.
✓ ANSWER ACCEPTED
How do I check if the player's mouse is hovering over a frame?
1 answer
✓ Accepted answer
You can use the Frame.MouseEnter and Frame.MouseLeave along with a variable to do so
Heres an example:
local Hovering = false
local Frame = Script.Parent -- Frame location here
Frame.MouseEnter:Connect(function()
Hovering = true
end)
Frame.MouseLeave:Connect(function()
Hovering = false
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
