How do i do this

I have a problem, i am making a system where if you click on something u equip it and i dont know how to do this trought a script can anyone help?

use click detectors. make a script to detect if a tool has been clicked and then make the humanoid in the players character equip the tool.