Requested module experienced an error while loading? And I can't fix It

You can write your topic however you want, but you need to answer these questions:

So, I’ve been stuck on this issue for a while and I can’t figure It out.
I’m trying to require a function but, It keeps giving me the same error(the one In the title).

And I know that I returned and required the function, and the module script Is In ServerScriptService
Proof

I’ve tried here and found nothing, tried Google It said use WaitForChild wich I did, and nothing happened, and tried ChatGPT, also did nothing

--module
local flap = workspace.RF
local controller = require(game.ServerScriptService:WaitForChild("BoxControl"))

flap.ClickDetector.MouseClick:Connect(function()
controller.open1()
end)
--server script
local flap = workspace.RF
local controller = require(game.ServerScriptService:WaitForChild("BoxControl"))

flap.ClickDetector.MouseClick:Connect(function()
controller.open1()
end)

please help me I don’t know what to do(I’m new to module scripts and this is my first post) :pray:

1 Like

Try putting the module in replicated storage, If im correct I think your using this in a local script, and as we know local scripts can’t access places like ServerScriptService

1 Like

Thanks, but I’m using a server script

1 Like

Can we see the module script probably an issue with it

1 Like

Where is the server script located? If it’s in ReplicatedStorage then it won’t run.

1 Like

here
–module
local flap = workspace.RF
local controller = require(game.ServerScriptService:WaitForChild(“BoxControl”))

flap.ClickDetector.MouseClick:Connect(function()
controller.open1()
end)

I they’re talking about the actual module (BoxController).

1 Like

It’s in serverscriptservice not in replicated