This page may help, although I have no real coding experience with regard to how to implement it into Flynax script.

https://codepen.io/nfisher/pen/YYJoYE