Someone told me that I could improve by using :Connect instead of using :connect. Does it matter which one I use? I think it's one of those things that can work both ways.
Example:
script.Parent.MouseButton1Click:Connect(function()
:connect()
is deprecated, meaning that Roblox may remove its functionality at any point (i.e. the code is at risk of breaking). Items are deprecated when they are no longer meant to be used for an assortment of reasons. Some examples are that the original method was a typo or does not look like other property and method names.
It is recommended to use the provided alternative, :Connect()
, as this method does not run the risk of breaking your code and will continue to be regularly updated by Roblox.
Absolutely does not matter. Use either one. He probably just thought that because the wiki says that 'connect' is deprecated.