So I attempted to use a function in a module script and then use it In server scripts but its not working obviously because I don't know how to use it can anyone tell me the proper way to use it here is my script
Module script
local module = {} function Destroy(part) part:Destroy() end return module
Server Script
Module = require(game.ReplicatedStorage.ModuleScript) Module:Destroy(game.Workspace.Baseplate)
In function you put
function Destroy(part) end
When it should be
function module.Destroy(part) end
Oh and there is another issue.
You're destroying the Module script instead of running the destroy function.
ModuleScript.Destroy(workspace.BasePlate)