To go along with whatever happens / To adapt to circumstances
Literally 'to dance to the tune they play'. Describes someone who adapts to whatever situation they find themselves in, sometimes used critically.
Here you have to go along with whatever happens or you won't survive.
—What will you do? —Go along with whatever happens, I have no other choice.
He always goes along with whatever happens, he never stands his ground.