Module script problem

Hey, i am making a queue system but its not the case rn, I have problem calling the Module script.

i have a module script that is in the ServerScriptService and another module script inside a NPC model.

the npc model is in replicated storage and when game starts the npc been clonned to the worspace. now I want to access a function inside the npc’s module script but its not working hope can someone help me:

image




image
as you can see its inside that model, when I print I can see that the module script is inside the model but I can’t call the function inside

If this is on the client you may need to wait for the module script to be created:

servedNpc:WaitForChild("Main")

Your module script also seems to have a different name than you’re looking for, are you sure the code shouldn’t be doing:

servedNpc:FindFirstChild("MainModule")

instead?