Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

why is MouseHoverEnter not working?

hey, ive made a simple MouseHoverEnter and Leave script that will change a value when its entering and leaving but it is not firing. this is the local script, im making a single player game thats why i use local scripts in the wiki it says it should work with both

player = game.Players:FindFirstChildOfClass("player")

function MouseLeave()
	print("mouseLeft")
	script.Parent.MouseOverHolder.Value = false
end

function MouseEnter()
	print("mouseEntered")
	script.Parent.MouseOverHolder.Value = true
end

script.Parent.ClickDetector.MouseHoverLeave:Connect(MouseLeave)
script.Parent.ClickDetector.MouseHoverEnter:Connect(MouseEnter)

1 comment

0

Having the same problem wtf

1 answer

✓ Accepted answer

Do it in a server script and remove the first line

This discussion is preserved as it was. New answers, comments, and votes are closed.