Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make a click script that fires a server event?

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.

1 comment

1

Just use a server script

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.