Err: Attempt to index nil with 'WaitForChild'

No, but you need to correctly reference the API module path.

For example if this is how it structured

- ServerScriptService
    - groupBanScript
        - TrelloAPI
    - anotherScriptThatRequireTrelloAPI

then in anotherScriptThatRequireTrelloAPI you will call it

local TrelloAPI = require(script.Parent.groupBanScript:WaitForChild("TrelloAPI"))
-- script is reference to the anotherScriptThatRequireTrelloAPI itself
-- Parent will reference the ServerScriptService
-- and from that you follow the script tree

Hope this clear enough

1 Like