gist/test.lua

18 lines
447 B
Lua
Raw Permalink Normal View History

2022-01-10 16:57:14 +00:00
local serverM, server = {}, {}
serverM.__index = function(args, args2)
local func = [[
local args = { ... }
local conn = "]]
.. args2 .. [["
print("Running this function: " .. conn)
print(...)
return true
]]
local fun, err = loadstring(func)
return fun
end
setmetatable(server, serverM)
server.call = function() print "meh" end
server.rpc("have", "you", "heard", "of", "the", "tragedy", "of", "darth", "plageius", "the", "wise")