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

Pass a variable with a function with MouseButton1Click?

Asked by
vkax 85
5 years ago

Can someone help me? I'm trying to do this but it won't work, apparently the variable can't be passed or something :p

wait(2)
function MouseEnterFunction(button)
    print(button.Name)
end

script.Parent.Overview.MouseEnter:connect(MouseEnterFunction(script.Parent.Overview))

It prints it but then when I actually try to hover over it, it doesn't work.

0
It basicly prints random numbers. I do not know where these number are ment for. iiSxnic 5 — 5y

Answer this question