hello, whenever i try to use caster:Init with objectcache enabled i get
“Infinite yield possible on ‘ReplicatedFirst.CastVMContainer.Actor:WaitForChild(“ActiveCastObjectCache”)’”
caster2:Init(
4, -- Roblox limits at 4 :(
ReplicatedFirst,
"CastVMs",
ReplicatedFirst,
"CastVMContainer",
"CastVM",
true, -- Enable BulkMoveTo for CosmeticBulletObjects.
nil, -- ModuleScript returning a FastCastEvents table.
true, -- Enable ObjectCache for this Caster.
ReplicatedStorage.Assets.Bullet, -- Template object for ObjectCache (if enabled).
50,
workspace.Assets.Bullets -- Parent Instance for cached objects (if enabled).
)
however when i went into the fastcast2 script and changed waitforchild with findfirstchild (the thing you said not to replace it with), it works, whys that
for _, v in vmDispatcher.Threads do
print(v)
local BindableObjectCache: BindableFunction = v:WaitForChild("ActiveCastObjectCache") :: BindableFunction
if BindableObjectCache then
--print("CONNECTED")
BindableObjectCache.OnInvoke = function(targetCFrame: CFrame)
--print("INVOKED")
return self.ObjectCache:GetPart(targetCFrame)
end -- OH MY GOD
end
end

