Script on making the godlfish go back and forth

it says:


But I will try your other idea, thanks.