This is the improved version, that actually works. The problem with the real one was that the player kept going down until touching a different color. The color was off by one. I remixed this, and this version actually works.
Thanks to @Noodle999 for the original project.