Ant8893

Boing

May 8th, 2022 (edited)
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. game.Players.LocalPlayer.CharacterAdded:Connect(function(character)
  2. wait(1)
  3. character.Animate.Disabled = true
  4. for i,v in pairs(character.Humanoid:GetPlayingAnimationTracks()) do
  5. v:Stop()
  6. end
  7. for i,v in pairs(character:GetDescendants()) do
  8. if v:IsA("Motor6D") then
  9. local socket = Instance.new("AlignPosition")
  10. local part0 = v.Part0
  11. local joint_name = v.Name
  12. local attachment0 = v.Parent:FindFirstChild(joint_name.."Attachment") or v.Parent:FindFirstChild(joint_name.."RigAttachment")
  13. local attachment1 = part0:FindFirstChild(joint_name.."Attachment") or part0:FindFirstChild(joint_name.."RigAttachment")
  14. if attachment0 and attachment1 then
  15. socket.Attachment0, socket.Attachment1 = attachment0, attachment1
  16. socket.Parent = v.Parent
  17. end
  18. local socket = Instance.new("AlignOrientation")
  19. local part0 = v.Part0
  20. local joint_name = v.Name
  21. local attachment0 = v.Parent:FindFirstChild(joint_name.."Attachment") or v.Parent:FindFirstChild(joint_name.."RigAttachment")
  22. local attachment1 = part0:FindFirstChild(joint_name.."Attachment") or part0:FindFirstChild(joint_name.."RigAttachment")
  23. if attachment0 and attachment1 then
  24. socket.Attachment0, socket.Attachment1 = attachment0, attachment1
  25. socket.Parent = v.Parent
  26. end
  27. end
  28. end
  29. for i,v in pairs(game.Players.LocalPlayer.Character:GetDescendants()) do
  30. if v:IsA("Motor6D") and v.Name ~= "Neck" then
  31. v:Destroy()
  32. end
  33. end
  34. end)
  35. if game.Players.LocalPlayer.Character then
  36. game.Players.LocalPlayer.Character:BreakJoints()
  37. end
Add Comment
Please, Sign In to add comment