I understand that you were trying to figure out how to do it, but adding speed to make it move with a moving platform is not the way to go.
Check this video:...