Weld doesn't work as intended

I was working on npc execution system and encountered this problem;

when I try to weld player’s humanoidrootpart to npc humanoidrootpart even if I set the player hrp as part0 for some reason it gives the control to npc and teleports the player to npc hrp location instead heres the code

image

(I’ve tried setting networkowner to player, and made sure the mass of npc is not higher than players character)

here’s the code “Attacker” is the player and “Victim” is the Npc
does anyone know why is this happening?

1 Like

you should use a weld constraint which does the same thing without teleporting anything

and teleport separately

Its the root priority, the part that doesnt move when welding is the root part.

1 Like

Hey thanks for your answer I tried it now and encountered something like this

https://i.gyazo.com/ad90c37e59648fe8d82c365dce4d3a74.mp4

any ideas on this?

Nope no idea, theres too much going on in that gif.

Try isolating just the welding portion in another script without vfx and avoid overcomplicating things.

ah I found the code line that was leading to this bug
image

turning autorotate off breaks it for some reason I dont know why though anyway rootpriority helped so thanks

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