I tend to utilize GUIObject.InputBegan for my custom button handling, as such I do the following:
GUIObject.InputBegan:Connect(function(Input : InputObject)
if Input.UserInputState == Enum.UserInputState.Begin then
if Input.UserInputType == Enum.UserInputType.MouseButton1 or Input.UserInputType == Enum.UserInputType.Touch then
-- do stuff
end
end
end)
However, I was recently using this exact methodology to create a button, and the only UserInputState that is firing is Change, and the only UserInputType is MouseMovement.
Has anyone else had this problem? If so, how do I go about resolving this?