Weird lag when player performs certain actions

My game has major FPS drops when the player fires a weapon (Carbon Engine) or when they click on a ClickDetector that updates the properties of a Union. I have no idea how to fix this, so if someone can explain to me what is going on, I would be very grateful.
Example:

Checks for any loops that occur when you equip the items, usually this happens when you try to mass clone things

Neither of them uses a loop. So I don’t think that’s the issue.