I want to make a click detector on a part, that launches a server event. To launch a server event it has to be in a local script, right? Click detectors don't work in local scripts.
✓ ANSWER ACCEPTED
How do I make a click script that fires a server event?
1 answer
✓ Accepted answer
The ClickDetector script would be a server script itself so you could just run it in that script, if you wanted to execute code in another script you could use global functions.
3 comments
0
I don't need to put it in a server event?
0
NEVER use _G. It's horrible!
0
@THELASTPICKLE no, a remote event that you are firing from a local script is just sending to a normal server script which would be the exact same type of script that handles ClickDetectors
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Just use a server script