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
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()