Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago

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
Just use a server script User#24403 69 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

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.

0
I don't need to put it in a server event? THELASTPlCKLE 57 — 5y
0
NEVER use _G. It's horrible! SirDerpyHerp 262 — 5y
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 Warfaresh0t 414 — 5y
Ad

Answer this question