GUI Frame only detecting Change state and MouseMovement input type

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?

1 Like

Tried at this again this morning, the reason was actually because the GUI Element I was trying to detect MouseButton1 on contained a button as a descendant of it.

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