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

What is the difference between :connect and :Connect?

Asked by 5 years ago

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?

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. User#20279 0 — 5y
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. User#24403 69 — 5y
0
Yes, it's worth switching them all to Connect. ScriptGuider 5640 — 5y
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() justintubba123 6 — 5y

2 answers

Log in to vote
0
Answered by
Nogalo 148
5 years ago

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

Ad
Log in to vote
0
Answered by 5 years ago

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.

Answer this question