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

Is it possible to call a function from another script?

Asked by
wjs3456 90
10 years ago

I was wondering if it is possible to call a function from another script. Is this possible?

1 answer

Log in to vote
0
Answered by 10 years ago

Yes, its possible by using the _G Global function/Global tables and also using either Remote or Bindable functions. You should look at this page Reusing code, and Global function to give you the idea of `_G

0
A good answer to this question would also discuss BindableFunctions / RemoteFunctions. Also, your two links go to the same place. BlueTaslem 18071 — 10y
0
Remote/Bindable functions could work too CMVProduction 25 — 10y
0
Oh, also ModuleScripts. Really this is a very weak answer... BlueTaslem 18071 — 10y
0
No need to be so mean Blue. Thank you for the answer. I'm testing it now. wjs3456 90 — 10y
Ad

Answer this question