Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I breakjoints of a certain part of the Player?

Asked by 2 years ago

Basically, I am trying to break the head joint of a player once they died, however every time I try, it does not work. Any help?

1
joints are of class Motor6D so you just need to use FindFirstChildOfClass on part you want to destroy joint of: part:FindFirstChildOfClass("Motor6D"):Destroy() where part is your head. imKirda 4491 — 2y

1 answer

Log in to vote
1
Answered by 2 years ago

The easiest way to do this is to set PlayerCharacter.Humanoid.BreakJointsOnDeath to False so a character will be a some sort of statue when he dies. And if you want to cut off head, you want to set PlayerCharacter.Head.CanCollide to True (false by default) so it can collide with a surface, and whenever a character dies, remove Motor6D from a head (it's called Neck): PlayerCharacter.Head:FindFirstChildOfClass("Motor6D"):Destroy()

Ad

Answer this question