I am working on a tool that allows you to place blocks and I have run into a issue that happens for mobile users. When they drag their screen to change camera perspective it places a block. I have tried finding other posts about this issue and searching on youtube for answers but got none.
Here’s the script that fires the function.
local Uis = game:GetService("UserInputService")
Uis.InputBegan:connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
spawnpart()--Function that spawns part
end
end)