Roblox doesn’t add module functions into the scripts environment. If your module returns a table of functions, you’d have to work with it like this.
Modulescript:
local Module = {}
function Module.Function()
end
return Module
Script:
local Module = require(ModulePath)
Module.Function()
If you definitely want to add functions into the scripts environment, you’d have to put all your code into a single function and then edit the environment for it using setfenv
.