Prevent mouse events from going through UI to TextBox

Instead of preventing the event just return out of the event’s connected callback function immediately.

local button = script.Parent

button.MouseEnter:Connect(function()
	return
end)

I call the TextBox:ReleaseFocus() function when mouse enters frame. You probably misunderstood what I wanted to do.