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
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)