Check this Google Drive file: https://drive.google.com/file/d/17MUtnI4xJHg2NmlgatzlhoDnPlzafzu_/view?usp=drivesdk

Then place the scripts in a Script Block.

NOTE: If the game isn't running at 60 fps then this method becomes inaccurate.