Knit Help, Services KnitStart() Not always firing

I have this to load my Service modules.

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerScriptService = game:GetService("ServerScriptService")
local Knit = require(ReplicatedStorage.Packages.Knit)

for i, v in pairs(ServerScriptService.Services:GetChildren()) do
	if v:IsA("ModuleScript") then
		local success, err = pcall(function()
			require(v)
		end)
		if not success then
			warn(string.format("Service '%s' errored while loading!", v.Name))
		end
	end
end

Knit.Start():catch(warn)

And the same thing to load the controllers in Player Scripts

But for some reason the Services don’t always load. They are being required but the KnitStart() Doesn’t run.

Its weird because the Controllers always run no problem. But the serivces are random in terms of which ones load and which ones don’t. Sometimes they all load, sometimes none of them load.

Any Ideas?

1 Like

Can you provide snippets of your service modules? Testing this loader worked perfectly fine for me.

1 Like