Making objects disappear once clicked?

What script would I need to use in order for an object to disappear (destroy itself) when the player is right in front of it and clicks on it. I also want a message to pop up on the screen when the player clicks on the object. How do I do all of this?

That’s all really simple. I don’t think you would even benefit from people on the forums telling you how to do it if you don’t know the basics. Look up some tutorials on YouTube, there are tons of them. Eteeski has some good ones and so does Brackeys and so does Unity, Mike Geig is one of my favorite tutors. Sorry if it sounds rude but these things are so simple.