TouchStarted fires when moving camera

I’ve recently released a update for my game and came across Mobile players, telling me that they couldn’t place blocks, only break them. So I looked into my code more and found out a bug.

I tried fixing it using TouchStarted and TouchEnded, since they are the most viable for me, however, they fire even if the user moves the camera, which is not what I want to occur.

I also need both because otherwise it’ll not work, as the player has to Tap to place a block and Hold to break a block.

I need help right now, or it would become impossible to play on Mobile.

Make it so that there is a tiny cooldown and if the player hasn’t moved their finger further than a certain distance till the end of the cooldown, place the block

That won’t really work well though, I kinda want a more practical solution to this.