Knit AddControllers is inconsistent

I have this local script

local Players = game:GetService("Players")
local RpS = game:GetService("ReplicatedStorage")
local SSS = game:GetService("ServerScriptService")

local Knit = require(RpS.Packages.knit)

print(RpS.Shared.Controllers:GetChildren())

Knit.AddControllers(RpS.Shared.Controllers)

print("Check")

Knit.Start():catch(warn)

Half of the time when I run the game, everything works finely and all the controllers start properly

But the other half the line with Knit.AddControllers just yields and nothing happens (As the print(“Check”) is not even printing). All the controllers dont load.

Im considering just writing my own framework than just using knit, unless anyone can please identify the issue here.

Most likely, the issue isn’t with Knit but with an infinite yield / cyclic dependency / race condition deadlock in one of the Controllers’ loaders themselves.

Also, you probably don’t need to build or use a “framework” at all – just use ModuleScripts. The developer of Knit, sleitnick, even recommends this himself.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.