Copy gameobject in game

Hello, I want to go up to just about any gameobject when playing and be able to “scan it” to copy it and shoot it later. Say if I walked up to an apple and scanned it, would I be able to store it as a, prefab maybe?

@originalhappiness1

This would be of major help to your problem.

use Physics.Raycast to see if you are clicking on an object and then
save the object as a prefab (example on link)

and then just instantiate the object