For example, I want to do this:
local module = {}
function module.destroyPart()
workspace:FindFirstChild("ClonedPart"):Destroy()
print("Destroyed :)")
end
function createpart()
Cloned = workspace.part:Clone()
Cloned.Name = "ClonedPart"
wait(5)
--How would I do this?: (I just guessed on how to do it below)
module.destroyPart()
end
return module

2 comments
its not a very complicated question, I dont think
You can't do that sir, you can only call module scripts from scripts or local scripts; the same rule goes with remote events and functions, you can only access them from a local script.