How to allow the mouse cursor to click a clickdetector through a gui

  1. What do you want to achieve?
    To allow the player’s mouse to click a clickdetector despite having a gui in front of it.
  2. What is the issue?
    I would like to use clickdetectors in my first-person game, however my game also has a gui that covers the entire screen and that does not allow my mouse to click the clickdetector, instead it tries to click the gui
  3. What solutions have you tried so far?
    I’ve tried messing with the z-index, however that does nothing, and I have looked all over the internet and cannot find anyone with the same problem as me.

I would really appreciate anyone who can help as in this game the guis really matter, thanks!

Set your GuiObject's Active property to false if it isn’t already.
See the documentation here.

Im sorry, everything else BUT the thing infront of the mouse was inactive, thanks