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

Can remote functions check back to which script invoked it?

Asked by 7 years ago

Its really hard to explain what I would like to do but is there any way for either the client or server (whichever being used for the remote function) to check which script was the one who invoked it?

1 answer

Log in to vote
1
Answered by
H4X0MSYT 536 Moderation Voter
7 years ago

No, create a method. Just send the name of the script or its location as an arg in the function/event...

0
Could you elaborate? Also, because I'm cloning an object multiple times and putting it into workspace, the script would not know which object (script inside object) was the one which fired. AbandonedRick 112 — 7y
0
Distinguish that item. Name it something special maybe, or have a unique ID for each script. H4X0MSYT 536 — 7y
0
Wouldn't that be inefficient to be going around renaming them? Is there a better way? AbandonedRick 112 — 7y
0
If you dont have filtering enabled, you could send "script" as one of the args. If fe is enabled, i don't see another way, H4X0MSYT 536 — 7y
Ad

Answer this question