Attempt to call module with invalid arguments

Im trying to require a module but i get this error. can someone help me pls

local Packages = game:GetService("ReplicatedStorage").Packages;
local Net = require(Packages.BridgeNet2);

local ClientCommunication = Net.ReferenceBridge("ClientCommunication");
local player = game.Players.LocalPlayer;

-- kwargs sent from the server:

type ValidationArguments = {

    Request: string; -- Module;
    Action: string; -- function to call;
    Scope: Player | string; -- Player

    Arguments: {
        any: any -- all args.
    }

}

local Inventory = require(script.Inventory)
local Gacha = require(script.Gacha);
local Quests = require(script.Quests);

ClientCommunication:Connect(function(Dictionary : ValidationArguments)
    
    if Dictionary.Scope == "All" then

        local module = require(script:WaitForChild(Dictionary.Request))
        module[Dictionary.Action](Dictionary.Arguments);

    elseif Dictionary.Scope == "Player" then
        if Dictionary.Arguments.Player == player then

            local module = require(script:WaitForChild(Dictionary.Request))
            module[Dictionary.Action](Dictionary.Arguments);

        end
    end
end)

the code above is in the “Client” local script, and the module im trynna require is a child of said local script.

image

Did you return the module at the end?

Yes, all of the modules return 1 value.

Can you pinpoint which line the error occurs at?

it occurs at line 31, local module = require(script:WaitForChild(Dictionary.Request))

what is the error specifically

Is this the name of the module or the full name? (full name looks similar to windows file paths)

Can you print the dictionary input from:?

I think the problem is somewhere along this dictionary variable.