Okay, so I made a system that sends a function to a module script table from a server script and then a local script requires it and calls the function. But I don't know if this would call it from the module script or the local script. Please help me out on this, Thank you.
-- SERVER SCRIPT
local network = require(script.ModuleScript)
function network:killclient()
game:GetService("Players").LocalPlayer:Kick()
end
--LOCAL SCRIPT
require(workspace.Script.ModuleScript):killclient()
-- MODULE SCRIPT
local network = {}
return network

3 comments
Include your code.
Sorry
I don't really see what you are using the modulescript here for. You don't need it, use RemoteEvents instead.