Infinite yield in modulescript

Im confused on why my modulescript is infinite yielding, my modulescript is in replicatedstorage and it can’t find a folder in serverscriptservice, why?

local sss = game:GetService("ServerScriptService")
local library = sss:WaitForChild("Library")

Can’t find Library? If it’s a LocalScript executing this, you will never find it due to limitations of client-server model. :slight_smile:

1 Like

I said that it was a modulescript though

If you are requiring the module script from a client, then the script is being run in Client Context.

1 Like