Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why is this script keep resetting me when I say these emotes?

When I said /e dance, it keeps resetting me for some reason. This is what I have:

game.Players.PlayerAdded:connect(function(player)
  player.Chatted:connect(function(msg)
    if msg == "/e dance" or "/e wave" or "/e point" or "/e laugh" or "/e cheer" or "/e dance2" or "/e dance3" or "/e salute" then
      player.Character:BreakJoints()
    end
  end)
end)

1 comment

4

When you break a players joints, it kills them.

2 answers

✓ Accepted answer

As ILuv and Dyler have explained [I am classifying it more], the BreakJoints method is used to break the joints of a Player's Character, or any other type of Model-type instance containing parts, what BreakJoints simply does is, well, breaks or destroys the Joints between Part-type instances, for instance, you have a House Model in your game, and you call BreakJoints on it, it will break the joints of every Part within that Model, making it fall apart [If not anchored], as for the character, heres how it works:

game.Workspace.TheeDeathCaster:BreakJoints() --This will break the joints of my Character
--or
game.Players.TheeDeathCaster.Character:BreakJoints() --This will also break the joint of my Character

or how it kills the character, it breaks the Joints between the Player's Head and Torso, or the welds are disabled, causing them to seperate, or as the Roblox WIKI says Breaks any surface connection with any adjacent part, including Welds and other JointInstances. If you want to check out the WIKI, click here Hope this helped!

Breaking a players joints are killing it

And why did you put the break joints in?Please comment why.

1 comment

0

Its pulling off all the players joint so it takes off the legs arms torso and head.

This discussion is preserved as it was. New answers, comments, and votes are closed.