#Knit/Client Studio Issue?

1 messages · Page 1 of 1 (latest)

fast mantle
#

Sometimes it will loop twice or 3 times or 4 times i dont understand why even though every time it sees that there are 4 modules in the folder

#

Knit/Client Studio Issue?

edgy prairie
#

maybe change it to ipairs(folder:GetChildren()), with my framework, there wont be issues like those, just saying xd

fast mantle
#

i dont think this is a knit issue

edgy prairie
#

is it possible that somewhere in the controllers is yielding and just waits until it is done yielding?

#

and thats why it stops the loop

#

or maybe all the modules arent loaded still

#

if game:IsLoaded() == false then game.Loaded:Wait() end

fast mantle
#

yea taht doesnt work either

#

i think it has something to do with it being in starterplayerscripts

#

yea

edgy prairie
#

if it doesnt work, just keep it either way

fast mantle
#

i have tried that it still sometimes works sometimes doesnt

#

even though at every time it sees that there are 4 modules

#

in the folder

#

it doesnt even make sense how it sees there are 4 items in that folder yet it loops once or twice lol

edgy prairie
#

put like wait(10) for example above (before requireing knit) to see if it works and if it does, then we know it is loading issue

fast mantle
#

let me see

#

i remmber i yieleded 1 second

#

and it was the same

#

yea i tried 10 same thing

#

my only guess is that this is a studio issue?

edgy prairie
fast mantle
#

no same thing

#

i have no idea whats going on

edgy prairie
#

My only guess is on the line where u require the module replace it with this:

coroutine.wrap(function() require(module) end)()

#

So if there is yielding, this will prevent it tho it may mess up things if u have way more controllers

#

If this works, then u just yield in one of the controllers

fast mantle
#

hmm let me see something

edgy prairie
#

My guess is that you yield somewhere in the controller

#

And waits until it is done yielding

fast mantle
#

ok yea im dumb i was doing a dumb yield

#

in one of the controlelrs

#

sometimes it was all loading because that controller loads last

#

thats funny well thank u lol

edgy prairie
#

Np