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

help Scripting a call to another scripts code?

Asked by 9 years ago

I don't know the technical term for this so bare with me:

What i'm trying to accomplish here is a code panel like system. Users will need to enter a specific code to enter, after the it checks for verification and permissions from other scripts. Here is the basic idea of what im trying to do:

  1. User enters the code (the right one)
  2. The Panel Script identifies the user currently using the code panel. (Something along the lines of GetLocalPlayer if i remember correctly)
  3. The script then calls to another script for it's coding. We'll call it the "Perm-Data", it stores the authorized Username and user id of players that are allowed. And To verify that the localplayers detected identity is genuine...

Does someone mind quickly writing this up and posting it on here? The rest i can do myself.

Nobody else would help and I have no idea even how to start this, so let's see who's nice on this website

1 answer

Log in to vote
0
Answered by
drew1017 330 Moderation Voter
9 years ago

There's something just for this called RemoteFunctions (and RemoteEvents). You can read up a tutorial for them here.

Remotes are objects that can be ''activated'' with a script, and a function in another script can be triggered by the remote being activated, allowing communication across script to script, and client to server in the case of localscripts. Be sure to read up on the differences of Re's and Rf's, however, as they can break if you don't use the right one for the situation.

Ad

Answer this question