How do i make an interactive object?

I want to make an object interactive so when i press a key on my keyboard it will also make the object disappear afterwards.,I want to make an object that i can activate by pressing a key on my keyboard and having the object disappear afterwards.

Hello. @MiniatureMonkey
You are asking multiple things: How to detect keys? MAke an object disapear? “Activate” and object?..
You are not asking for a problem, you are asking for people to make a script for you.


FAQ :

What are the guidelines for writing good questions?

We want Unity Answers to become a comprehensive database of questions and answers related to Unity. When you ask your questions, it can be helpful to keep a few things in mind:

Don’t write things that will be irrelevant in a few days. Writing that “This is urgent!” will probably not get you faster answers, but it may make people frown at your question.

Some reasons for getting a post rejected:

There exists duplicate questions with answers if you were to do a search, either on Answers or on the Forum or on Unity's tutorials

Your question isn't specific enough: asking for a script, asking multiple questions in one post or asking a question that could be either subjective or require extensive discussion