Memory leaks occur when you don’t properly clean/disconnect data that is otherwise not auto-garbage-collected, such as some connections, run service binds, uncleaned tables, etc.
Give this a read: Garbage Collection and Memory Leaks in Roblox - What you should know