Using click detector of an object in local script without using remote events?

If I have understood correctly, i should avoid using remote events.
I have a part in the workspace and click detector inside of it. I also have a PlayerGui and local script inside of it.
I can’t determine the object and it’s click detector using local script that is descendant of the PlayerGui, right? Meaning that I can’t write in local script “local part = game.workspace.Part”

So only thing I can think of is placing script in the part and writing a remote event that fires when the click detector is activated. But I seriously wouldn’t like to use remote events, so is there any other way?

There is no other way but to use RemoteEvent.

why? Using RemoteEvent is not a bad thing.

1 Like

You can. If I recall correctly, click detectors work from both a script and a local script.

I have heard that they are relatively easy to manipulate.
But if there’s no other way I ques I must use remote events.
Thank you.