Context Action Service TouchStart Firing From JoyStick

Hey its me.
Im trying to add mobile support to my guns, they work fine but its just that theres something bothering about it.
Whenever you move with the joystick, the gun fires and I dont want players to deal with that.

local userinputservice = game:GetService("UserInputService")
if not input == gpe then

again the only problem is that the function fires whenever you use the joystick
this isnt the full script but this is where the problem is coming from