Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 442 Bytes

Managing Connections.md

File metadata and controls

7 lines (5 loc) · 442 Bytes

#tag

Memory leaks and performance drops can become more common without properly managing your connections, which are made whenever you :Connect() a function to an event. To prevent these problems:

  • Avoid nesting connected functions, which can cause a function to be connected and run many times
  • Prefer :Once() when a connected function only needs to run once
  • Ensure connections are destroyed and removed from tables that store them