Fable 2 Power bar Help!

I am currently making a project and my main mechanic is one tap on the screen, I want to make a power bar go back and fourth and the player has to hit it on the green area and it will get faster over time. can anybody help me out? here is a video of a similar mechanic used in Fable 2