TouchTapInWorld unexpectedly fires when tapping a GUI button

UserInputService.TouchTapInWorld fires when tapping on a button. According to the wiki, " If the user taps a GUI element, UserInputService/TouchTap will fire instead of TouchTapInWorld." (UserInputService | Documentation - Roblox Creator Hub)

I’ve tested this in studio and on an iPhone 5s and it always happens. Here is a basic repro: TouchTapInWorldRepro.rbxl (15.1 KB)

6 Likes

This is a fairly old topic, but I had the same issue as the name of this event can be misleading.

processedByUI is the second parameter of TouchTapInWorld. From what I have observed, it’s true if the user taps a GUI element with the ‘Active’ property true, otherwise it’s false. If no references to processedByUI are specified, TouchTapInWorld seems to behave like TouchTap, but with the first parameter as Vector2 instead of an array.

4 Likes