Fastcast orientation with PCache

local function OnLengthChanged(cast, LastPoint, Dir, Length, Vel, Bullet)
if Bullet then
local BulletLength = Bullet.Size.Z/2
local OffSet = CFrame.new(0,0, -(Length - BulletLength))
Bullet.CFrame = CFrame.lookAt(LastPoint, LastPoint + Dir):ToWorldSpace(OffSet)
end
end

I dont know how to format my code in here.
So basically I have costmetBulletProvider for my fastcast system with PCache. No matter what i set the BulletSize.Axis/2 the orientation wont change. Is this a general problem with PCache or did i set it up wrong?