I want to ignore input if its input regarding the players movement (on mobile) as its causing me to place blocks down, when it shouldn’t place when moving
This works
but maybe there is another way that doesn’t need RenderStepped
.
Doesn’t really work all that well. It prints false if I move my the movement dragger too far, so my character is still moving (and still using the dragger) but it prints false
--put this inside regular placing script
if game:GetService("UserInputService").TouchEnabled then
return
end
game:GetService("UserInputService").TouchTapInWorld:Connect(function(position, processed)
if processed then --ignore if touch resulted from thumbstick or some other core gui
return
end
--place block
end)
3 Likes