Clicker detector not working

I’m trying to add a click detector in the lobby of my game. I realized that it doesn’t work since I have mouse click 1 binded to a function using the context action service. How can I allow it so that I can use my context action service script and still use click detectors.

In other words, how can I stop context action service from overriding click detectors.

May we please see code? We cannot really help you if you provide no code whatsoever.

I don’t think you need to see code for this situation, it says in the documentation that context action service overrides click detectors. I’m just wondering how to get around that.

Ah, I believe this thread might help you. :man_shrugging:

you can use a remoteevent to do whatever you needed for the mouse click in the first place and have a local script like this:

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()

local clickevent = --location of event

mouse.Button1Down:Connect(function()
    clickevent:FireServer()
end)

Or, simply you can do this, and check whether it was a click detector or a certain click detector and fire a remote event like this (as a way to still be able to bind the mouseclick):

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()

local clickevent = --location of event

mouse.Button1Down:Connect(function()
    if mouse.Target:IsA("ClickDetector") then
        clickevent:FireServer()
    end
end)