Hey all,
I’m currently making a small little vampire-styled FFA game, and I just got to scripting the grab move for the vampires. It’s not done, obviously, as the victim needs a way to escape, and it doesn’t deal damage (Except for when it connects). However, I’ve came across an issue: whenever the victim dies while grabbed, for some reason, the captor instantly dies as well.
I’ve tried disabling the BreakJointsOnDeath for when a player spawns, but that didn’t work. I’ve attached a video below so you can clearly see how it’s supposed to go (i scripted it so it just automatically makes the victim escape after 3 seconds), and when the bug occurs. I think it might be an issue with the weld? Not sure. (Video might be a little loud, and sorry about the horrible quality)
Have you tried welding it to each players’ HRP instead? I’m guessing that when the victim dies, its torso pulls the player’s torso as well and breaks the joints, which then kills the player assuming that the RequiresNeck property of the player’s Humanoid is turned on.
You could possibly try breaking the weld right before you kill them?
If not you could create an invisible part to weld the grabbed person to and using alignposition or a script to set its position to the same as the person grabbing’s torso position.
You shouldn’t use welds when attaching a character to another character, I recommend using either physics constraints, or a well positioned animation with each other. I heard about using Motor6D’s as an option but I haven’t tested that out.
Hey all, sorry for the late response: but it has been fixed (by a now good friend of mine). ObbyCreator reached out to help me fix it, and I’d never forgive myself if I never provided a solution, so:
To anyone that may have this issue in the future… use alignposition and alignorientation, not welds. It works wonders (it may not be as good as welds, but you won’t have the issue anymore lol).