Really Really Need Help With Script

I’m making an animal chasing game, and i have the animals spawning and going from the top of the screen to the bottom. At the top in the middle above the game is the animal picker I have all the animal prefabs in a gameobject that changes every 5 seconds, so my question is. when the animal picker at the top changes how can i add that to the game.
Like for example say if the animal picker picks a pig then i have to tap the pig, but if its still pig and i tap a cow then i lose, but if it turns to a cow then i tap a cow, also i have line behind the character so that way if an animal gets passed him then you lose that way too so how would you code it so that if a an animal hits that line after the animal picker changes you wont loose

Your question is confusing as hell…

Are you good at scripting