My fall damage script is not breaking trough the loop

I cannot find where I could return the function and it would actually work

It is still broken, no matter what!