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

Functions through other scripts?

Asked by
Seenit 80
10 years ago

Is it possible to run a function in a different script from another script

1 answer

Log in to vote
0
Answered by 10 years ago
_G["InsertFunctionNameHere"] = function(parametersHere)
    --BLAH
end

To call it in another script..

_G.NameHere(paramsHere)
0
ModuleScripts are a better option. Destrings 406 — 10y
0
its easier this way tho TochiWasHere 10 — 10y
Ad

Answer this question