The MouseButton1Down event does not work for all clicks

  1. What do you want to achieve?
    I want to detect if the button is pressed.

  2. What is the issue?
    For some reason the event does not fire everytime i click the button. And if i click only once it does not detect the click

  3. What solutions have you tried so far?
    In this video i am currently spamming the button but in the console it prints a few times.

I tried to disable every GUI instance because i tought there was another Instance causing this issue.

-- SHOULD PRINT PRESSED WHEN THE BUTTON IS CLICKED
script.Parent.MouseButton1Down:Connect(function()
	print("PRESSED")
end)

Ok i fixed it. I found out that on the backgroud there was a TextBox that i scripted to always stay focused to. This TextBox was the issue all the time.

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