It's been 3 years since I've consistently programmed in ROBLOX Lua, and thus the API has changed quite a bit since my hay day. I'm currently trying to get back into it, but I've run into a problem with GUIs.
I used to use this as a click function:
script.Parent.MouseButton1Down:connect(function()
end)
but now it seems to no longer work. I can't find any new documentation on the ROBLOX developer site, so I was curious as to whether there was something I was doing wrong. I have also tried using :connect and :Connect but capitalization does not appear to be the problem.
Thanks.
Solved - forgot when to use local scripts.

5 comments
Connect is correct, connect is deprecated, but either will work currently.
MouseButton1Down should also work. Local script?
@DinozCreates ah crap I forgot about local scripts. It's been while so I didn't even think about it, but I guess that makes sense. I'll try that out real quick.
Please mark as [Solved]
Don't forget to accept my answer if it helps.