Making a part stick to another part in it's original location

So I created a knife-throwing script, and I made it so that when the knife hit something (using :Touched() function ) it stuck onto the part using a WeldConstraint. The only problem is that when the knife gets welded, the CFrame of the object of the knife gets modified. Is there a way to make the knife stick to objects better?

Example of the CFrame being modified:

Original -

After-

image

Sorry if I’m misunderstanding your question.
Could you specify which instance is part0 and which instance is part1?
Then, maybe try switching them.
(Ex: if the knife was part0, and the cross was part1, the make the knife part1 and the cross part0)

Part0 would have to be the cross to make it so the knife moves with the cross and not the other way (if the cross was unanchored), and Part1 would be the knife to stick to the cross.

The problem is that the knife still changes the CFrame even if it is unanchored or anchored.

I have tried to solution you’ve provided, and sadly I saw no changes.

I figured that it was the script making the knife spin (which spun the knife using Cframe), and when the knife attached to something it still modified/spun the CFrame of the knife (which also changed the Cframe of the Part0).

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.