Is There Anything like "mouse.Target" for the UserInputService event, TouchTap?
Is there anything like mouse.Target
for the UserInputService event, TouchTap
? I was trying to make a handcuff tool in Roblox Studio, but then I ran into a problem that it didn't work for mobile. I searched it up in the Roblox Developer Website and it gave me examples of a gui, not a touch target instance. This is the script:
1 | local UserInputService = game:GetService( "UserInputService" ) |
3 | local function onTap(touch, gameProcessed) |
5 | print ( tostring (touch.Target)) |
8 | UserInputService.TouchTap:Connect(onTap) |
touch.Target
prints out nil
.