When throwing an object, the object randomly disapears

I am making a pickup system, and I wanted to add throwing but for some reason, it sometimes randomly disappears.

I used this method for another thing, and it still happens.

video:

local Direction = (Part.Position - Character:FindFirstChildWhichIsA("Humanoid").RootPart.Position).Unit * 50
	
	
	local Velocity = Instance.new("LinearVelocity")
	Velocity.Parent = Part
	Velocity.VectorVelocity = Direction
	Velocity.Attachment0 = Attachment
	Velocity.MaxForce = math.huge
	
	game:GetService("Debris"):AddItem(Velocity,.1)

any help I am very thankful for!

it seems to glitch through the floor some how


you can tell when it does the glitch

Have you tried using the Part’s AssemblyLinearVelocity instead of a LinearVelocity instance?

local direction = (Part.Position - Character:FindFirstChildWhichIsA("Humanoid").RootPart.Position).Unit
Part.AssemblyLinearVelocity += direction * 50

that has seemed to fix it! thanks man!