Stop projectiles from sticking into walls?

Heya.

So there’s an issue with projectiles in my game. The issue being that projectiles will stick onto the ground before shortly after popping out. I’m using FastCast for moving the projectile and whatever.

local function LengthChange(cast, lastPoint, direction, length, velocity, bullet)
	if bullet then
		local bulletLength = bullet.Size.Z/2
		local offset = CFrame.new(0,0, -(length - bulletLength))
		bullet.CFrame = CFrame.lookAt(lastPoint, lastPoint + direction):ToWorldSpace(offset)
	end
end

Any ideas?

Could be this

Wydm by that? I’ll respond once you give me more information about what you posted.