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

Why is connect deprecated?

I've always used event:connect(), except I was going through RBXScriptSignal and I saw that connect is deprecated in favor of Connect() does anybody know why this is?

2 comments

0

It's not technically deprecated; Connect isn't even studio highlighted. No worries

0

Its not, Ive been using :conect() for a while, and my code still works.

1 answer

✓ Accepted answer

It was most likely because connect is inconsistent with Roblox's use of Pascal Case for object member names. Other such instances of this have occurred in the past, for instance getService being deprecated in favor of GetService in DataModel.

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