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

has connect() been deprecated?

Asked by 5 years ago

So i've been hearing around that connect() has been deprecated and a huge majority of my scripts use this. the script below is a section of my script.

plrGui.Main.EditHotel.MouseButton1Click:Connect(function()
    --GUI button clicked do stuff.
end)

would that mean I need to put something else where connect() is written? Or am I getting this completely wrong

3
Lowecase connect() is deprecated, not Connect(). I'd mostly use Connect() as it's not deprecated. If you use connect() It's still fine, nothing has happened w/ it getting completely removed so either way is practically fine. xEiffel 280 — 5y
2
To others who still use deprecated code: https://www.robloxdev.com/articles/Deprecation xPolarium 1388 — 5y
3
Don't use deprecated methods, period. use Connect. And @xEiffel you shouldn't use deprecated methods, don't use them because "they still work". Bad argument. User#19524 175 — 5y

1 answer

Log in to vote
1
Answered by
cailir 284 Moderation Voter
5 years ago

Hello, Yes the :connect() got deprecated, and you should't use it. You should use the :Connect()

And nothing is wrong with your code, just change :connect() to :Connect()

Ad

Answer this question