Thanks a lot for the tips. This managed to solve the problem.
I turned out to be right that one of the invisible elements overlaps the button.
Created localScript and placed it in StarterCharacterScripts
-- https://create.roblox.com/docs/reference/engine/classes/BasePlayerGui#GetGuiObjectsAtPosition
-- GetGuiObjectsAtPosition
local UIS = game:GetService("UserInputService")
local Player = game:GetService("Players")
local plr = Player.LocalPlayer
local PlayerGui = plr.PlayerGui
UIS.InputEnded:Connect(function(input, clickBtn)
warn("========================================")
if input.UserInputType == Enum.UserInputType.MouseButton1 then
local pos = input.Position
local guisAtPosition = PlayerGui:GetGuiObjectsAtPosition(pos.X, pos.Y)
warn(guisAtPosition)
for k,v in pairs(guisAtPosition) do
print(k,v:GetFullName())
end
end
warn("========================================")
end)
Found pest: