Why isn't MouseLeave() Working?

MouseLeave Isn’t working for a scrolling frame for whatever reason.
Did i do something wrong or is it a glitch?

script.Parent.Parent.MouseLeave:Connect(function()
	print("Pls Work")
	local HoverService = require(game:GetService("Players").LocalPlayer.PlayerGui:WaitForChild("HoverGui").Frame.HoverService)
	HoverService.HoverDesc(false)	
end)

is it detecting the scrolling frame. and do any errors pop up in the developer console?

1 Like

it is detecting when the mouse leaves the scrolling frame, and no, there are no errors

1 Like

i think this could be the problem for your HoverService function

1 Like

Can you show us the explorer hierarchy?

The HoverService Location in StarterGui


The Script’s location. As DeHoverScript
Screenshot 2024-05-12 at 2.18.20 PM

If you show the HoverDesc() function in your HoverService module we can help you better. If it’s detecting the mouse leaving fine then it is a problem with your module.

turns out that I have a localScript that destroy()s the script, but i fixed it, sorry if i wasted anyone’s time.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.