I'm trying to get a function from a server script to a local script, is this possible? I've tried this
local myRemoteFunction = script.Parent.load -- RemoteFunction
function myRemoteFunction.OnServerInvoke(plr,code)
return function() print("Test") end
end
But I don't think return works with functions. I've also tried putting the function in a table, this didn't work either. Thanks. (Someone asked me to put this)
local myRemoteFunction = script.Parent.load -- RemoteFunction
function myRemoteFunction.OnServerInvoke(plr,code)
return {["Func"] = function() print("Test") end}
end

3 comments
Could you show the other script, also?
Yeah. It's the same thing just slightly changed
Done