1 | script.Parent.ClickDetector.MouseClick:Connect( function (player) |
2 | print ( "hay" ) |
3 | end ) |
This simple Local script doesn't work. No errors, nothing. It's like I'm not clicking at all, but I am.
Here you go. Make sure that this script is NOT a Local Script and is put inside of the ClickDetector which should be inside of the part.
1 | script.Parent.mouseClick:connect( function () -- LUA Script Noticing the click |
2 | print ( "hay" ) -- Script responding to the click |
3 | end ) |
Hope this helps!