How can I improve my backpack system to reduce delay in-game?

What does the code do and what are you not satisfied with?
I basically made a custom backpack system using ChildAdded and ChildRemoved from the backpack and character. I am not satisfied with the delay in-game, and I was thinking that if I improve my code, the delay will reduce.
What potential improvements have you considered?
Maybe less for loops? I am honestly not too sure.
How (specifically) do you want to improve the code?
My code works perfectly in the studio, but there’s a delay in-game, I tried to improve my code by using GetChildren() and not GetDescendants() and look for the object class in the children, but it doesn’t seem to stop the delay.

Backpack Place (contains only the backpack system):
BackpackDelay.rbxl (81.0 KB)

Thanks for everyone who responds :slightly_smiling_face:

Note: I wasn’t sure if I should put this topic in #help-and-feedback:scripting-support or in here, so if I need to move it then tell me okay?