ByDefault
|
  |
| Joined: 25 Jul 2014 |
| Total Posts: 3197 |
|
|
| 12 Mar 2016 08:14 AM |
I'm trying to get an ImageButton to register a touch, without using MouseButton1Down (it doesn't work 100% of the time on touch). So I tried using .InputBegan and using Enum.UserInputType.Touch and that wouldn't work, so I tried using .TouchTap and that didn't work either. Any suggestions?
button.TouchTap:connect(function() print("Touched") end)
button.InputBegan:connect(function(input) if input.UserInputType == Enum.UserInputType.Touch the print("Touched") end end)
Neither of those work |
|
|
| Report Abuse |
|
|
| 12 Mar 2016 09:19 AM |
button.MouseButton1Down:connect(function() print('Touched') end) button.MouseButton2Down:connect(function() print('Touched') end)
|
|
|
| Report Abuse |
|