MouseHoverEnter not firing

I have this part, and when you hover over it with your mouse you are supposed to see a SelectionBox appear around it. However, this is not the case.

Hitbox: (ignore the server script)
exs
Where the SelectionBox is from:
es

Hover:

local click = script.Parent.ClickDetector

click.MouseHoverEnter:Connect(function(plr)
	script.Parent.Parent.Parent.Data.Extra.SelectionBox.Visible = true
end)

click.MouseHoverLeave:Connect(function(plr)
	script.Parent.Parent.Parent.Data.Extra.SelectionBox.Visible = false
end)

I’m kind of stuck, any help is appreciated!

1 Like

LocalScripts don’t work in workspace, move it to StarterPlayerScripts.

3 Likes

that thing is kinda annoying ngl lol

1 Like

It’s because the script won’t know which player it’s running on.

2 Likes

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