I just realized that you can parse a function as a string and then use the loadstring() function to execute it. for example:
Hmm wait now i'm suddenly unsure if it works..
------------------------------------------------ --Plugin 1 local Callback = [[ return type(500) ]] Plugin:Call("Example", Callback) ------------------------------------------------ --Plugin 2 function Example(Callback) local Function = loadstring(Callback) if Function then --If the string is loaded correctly then execute it. Otherwise it's a nil value. Test = Function() end print(Test) endnow Test should be equal to 'number'.
Hmm wait now i'm suddenly unsure if it works..