If you grabbed a policemans gun, what would they do?

Not a good idea. In fact, a horrible idea. I do not recommend anyone try this. Even if you are just joking, it’s not funny, and you will not like the response.

Note, you didn’t say “touched” the gun, you said “grabbed” the gun. If a person grabbed my gun I would assume they were attempting to disarm me. As the other officers here have answered, my response would be immediate and very forceful. In Illinois this would be a Class 2 felony at the very least.

(720 ILCS 5/31-1a) (from Ch. 38, par. 31-1a)
Sec. 31-1a. Disarming a peace officer or correctional institution employee.
(a) A person who, without the consent of a peace officer or correctional institution employee as defined in subsection (b) of Section 31-1, takes a weapon from a person known to him or her to be a peace officer or correctional institution employee, while the peace officer or correctional institution employee is engaged in the performance of his or her official duties or from an area within the peace officer’s or correctional institution employee’s immediate presence is guilty of a Class 1 felony.
(b) A person who, without the consent of a peace officer or correctional institution employee as defined in subsection (b) of Section 31-1, attempts to take a weapon from a person known to him or her to be a peace officer or correctional institution employee, while the peace officer or correctional institution employee is engaged in the performance of his or her official duties or from an area within the peace officer’s or correctional institution employee’s immediate presence is guilty of a Class 2 felony.
(Source: P.A. 96-348, eff. 8-12-09.)

Source