How do you answer when someone say good luck to you?

well if their saying it in a good way then you should say thanks
but if they say it in a bad way then...... well you should probably say thankyou too cause maybe you'll still need it