Camera Moving on button touch

I am trying to create a mobile version for my game, but not able to target properly with the gun.
Whenever I Touch the fire button then gun is displaced from its position and not able to target properly.

is it possible that if we Touch the fire button and we restrict the game from taking it as a camera movement input and just as a button click (so that this will stop my weapon from moving)? Please provide me some solution.

For reference, I have attached a Loom video.

1 Like

Can show you the script on that button?

You could set the active property of the button to true. I’m not sure if that’s possible if the button was created using Context Action Service. But you could create a separate UI Object under the button and set the active property of that to true.
https://developer.roblox.com/en-us/api-reference/property/GuiObject/Active