Local Script in player's Character ignores Click Detector

  1. What do you want to achieve? I want to make click player to mute his music system.

  2. What is the issue? When I use local script in Click Detector which is in player’s Character local script ignores Click Detector.

  3. What solutions have you tried so far? I’ve tried using normal script and Mouse.Target.

I don’t understand why it works like that because when I’ve created only loop that prints something without any condition it works but when i use Click Detector to print something, it’s stop working. Also it works with Click Detector using normal script but i have to use local script because it must be only client side.

First of all, localscripts wont load unless they’re in StarterGui
Second; to make something client only, use RemoteEvents
Third, If this is a ui, clickdetectors of course wont work

It’s not an UI but how I can navigate to someone’s character when local script is in the StarterGui.

Do you not understand what i said? Use RemoteEvents.