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
This wouldn't at all. Requiring the script is like importing code from a different file. Once you import (or require) the code and you add something to it, it doesn't change the code originally imported from a file. Same case here, except the code required actually runs. Hopefully my analogy made sense.