Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What is the difference between :connect and :Connect?

In a recent question someone commented that i should use :Connect because it is better. Throughout all my games I have always used :connect. Is there a reason to switch and is it worth it to switch them all?

4 comments

0

:connect is deprecated, which pretty much means Roblox doesn't really maintain it anymore and can possibly be removed in the future, although that might be unlikely.

0

The former is deprecated. https://developer.roblox.com/articles/Deprecation. Meaning it should not be used anyways. Roblox has provided us an alternative, and that is to use :Connect(). So use it.

0

Yes, it's worth switching them all to Connect.

0

Is there a way to find all of the :connect()'s and replace them? I have 168 times that I used :connect() instead of :Connect()

2 answers

✓ Accepted answer

As others have pointed out :connect is deprecated

to change :connect to :Connect in your scripts simply open the script and press ctrl + H this will open a menu in the top right corner which will allow you to find and replace words simply type :connect in the top one and :Connect in the bottom one and keep pressing enter until you've changed them all

Apart from the fact that connect() is deprecated, there is quite literally no difference.

To replace them all, what you can easily do is replace all of the "c"'s with "C"'s in your scripts. This should take a shorter amount of time than using the Object menu.

This discussion is preserved as it was. New answers, comments, and votes are closed.