How do I stop the memory leak in this code

WaitForChild completes every time. The function runs from top to bottom every time it’s run.