My fall damage script is not breaking trough the loop

(I am reposting this because it died last time I posted it)

I have a fall damage script along with a gliding script, For some reason, my script is not breaking trough a loop that allows it to calculate the damage, it has to do with something in my gliding script

The reason how I know it’s a loop it’s because I placed a loop to print something and the loop is never ending

Here are both scripts: fallandglide.rbxm (2.4 KB)

I cannot find why it isn’t breaking the loop, I tried everything and nothing is working at all.
(They both belong under StarterCharacterScripts in StarterPlayer)