Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

why is MouseHoverEnter not working?

Asked by 5 years ago

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)
0
Having the same problem wtf HeadlessDeathSpeaker 9 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

Do it in a server script and remove the first line

Ad

Answer this question