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

Can remote functions check back to which script invoked it?

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

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

4 comments

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.

0

Distinguish that item. Name it something special maybe, or have a unique ID for each script.

0

Wouldn't that be inefficient to be going around renaming them? Is there a better way?

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,

This discussion is preserved as it was. New answers, comments, and votes are closed.