Simple button activating when sliding finger onto it, how to fix?

This is supposed to be a Holding button by the way, and so far the only way to use hold is Button.InputBegin() and Button.InputEnded() for Mobile.

However, while using this method, the button activates when sliding finger over it, which is the primary obstacle.

What are some ways to overcome this??
Any help would be highly appreciated!

Quite Easy to overcome, actually. I’ve found this method after studying the inputobject class:

Button.InputBegin:Connect(function(inputObject)
   if inputObject.UserInputType == Enum.UserInputType.Begin then
      -- Checks if this is the beginning of player's input
      -- Won't Run if finger/mouse is slid onto the button
      -- Enjoy ;)
   end
end)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.