TheUnknownDiscord

Untitled

Nov 10th, 2021 (edited)
254
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bg = Instance.new("BodyGyro",owner.Character["Right Arm"])
  2. bg.MaxTorque = Vector3.new(0,0,0)
  3.             local limbcollider = Instance.new("Part", owner.Character:findFirstChild("Right Arm"))
  4.                 limbcollider.Size = Vector3.new(1.4,1,1)
  5.                 limbcollider.Transparency = 1
  6.                 limbcollider.Name = "LimbCollider"
  7.                 local limbcolliderweld = Instance.new("Weld", limbcollider)
  8.                 limbcolliderweld.Part0 = owner.Character:findFirstChild("Right Arm")
  9.                 limbcolliderweld.Part1 = limbcollider
  10.                 limbcollider.Shape = "Cylinder"
  11.                 limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  12.             local limbcollider2 = Instance.new("Part", owner.Character:findFirstChild("Left Arm"))
  13.                 limbcollider2.Size = Vector3.new(1.4,1,1)
  14.                 limbcollider2.Transparency = 1
  15.                 limbcollider2.Name = "LimbCollider"
  16.                 limbcollider2.Shape = "Cylinder"
  17.                 local limbcolliderweld2 = Instance.new("Weld", limbcollider2)
  18.                 limbcolliderweld2.Part0 = owner.Character:findFirstChild("Left Arm")
  19.                 limbcolliderweld2.Part1 = limbcollider2
  20.                 limbcolliderweld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  21.             local limbcollider3 = Instance.new("Part", owner.Character.Head)
  22.                 limbcollider3.Size = Vector3.new(0.5,0.5,0.5)
  23.                 limbcollider3.Shape = "Ball"
  24.                 limbcollider3.Transparency = 1
  25.                 limbcollider3.Name = "LimbCollider"
  26.                 local limbcolliderweld = Instance.new("Weld", limbcollider3)
  27.                 limbcolliderweld.Part0 = owner.Character.Head
  28.                 limbcolliderweld.Part1 = limbcollider3
  29.                 limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  30.     for i,v in pairs(owner.Character:GetDescendants()) do
  31. pcall(function()
  32.         if v:IsA("Motor6D") then
  33. if v.Name == "Left Shoulder" or v.Name == "Right Shoulder" then
  34.             v.Enabled = false
  35. end
  36. end
  37. end)
  38. end
  39. function the()
  40.             local Socket = Instance.new("BallSocketConstraint")
  41.             local a1 = Instance.new("Attachment")
  42.             local a2 = Instance.new("Attachment")
  43.             a1.Parent = owner.Character["Left Arm"]
  44.             a2.Parent = owner.Character.Torso
  45.             Socket.Parent = owner.Character["Left Arm"]
  46.             Socket.Attachment0 = a1
  47.             Socket.Attachment1 = a2
  48.             a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,0.5,0)
  49.             a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(-1.5,0.5,0)
  50. end
  51. function the2()
  52.             local Socket = Instance.new("BallSocketConstraint")
  53.             local a1 = Instance.new("Attachment")
  54.             local a2 = Instance.new("Attachment")
  55.             a1.Parent = owner.Character["Right Arm"]
  56.             a2.Parent = owner.Character.Torso
  57.             Socket.Parent = owner.Character["Right Arm"]
  58.             Socket.Attachment0 = a1
  59.             Socket.Attachment1 = a2
  60.             a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,0.5,0)
  61.             a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(1.5,0.5,0)
  62. end
  63. the()
  64. the2()
  65.     owner.Character.Humanoid.RequiresNeck = false
  66. local density = 1
  67. local friction = 1
  68. local elasticity = 0
  69. local frictionWeight = 100000000000
  70. local elasticityWeight = 0
  71. local physProperties = PhysicalProperties.new(density, friction, elasticity, frictionWeight, elasticityWeight)
  72. for i,v in pairs(owner.Character:GetDescendants()) do
  73. pcall(function()
  74. v.CustomPhysicalProperties = physProperties
  75. end)
  76. end
  77. for i,v in pairs(owner.Character:GetDescendants()) do
  78. if v:IsA("Part") then
  79. local nocollide = Instance.new("NoCollisionConstraint",owner.Character.HumanoidRootPart)
  80. nocollide.Part0 = v
  81. nocollide.Part1 = owner.Character.HumanoidRootPart
  82. end
  83. end
  84. on = false
  85. nocollide2 = Instance.new("NoCollisionConstraint",owner.Character.Torso)
  86. nocollide2.Part0 = limbcollider
  87. nocollide2.Part1 = owner.Character.Torso
  88. nocollide2.Enabled = false
  89. owner.Character.ChildAdded:Connect(function(v)
  90. if v:IsA("Tool") then
  91. on = true
  92. nocollide2.Enabled = true
  93. end
  94. end)
  95. owner.Character.ChildRemoved:Connect(function(v)
  96. if v:IsA("Tool") then
  97. on = false
  98. nocollide2.Enabled = false
  99. end
  100. end)
  101. game:GetService("RunService").Heartbeat:Connect(function()
  102. if on then
  103. bg.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  104. bg.CFrame = owner.Character.Head.CFrame * CFrame.Angles(math.rad(90),0,0)
  105. elseif not on then
  106. bg.MaxTorque = Vector3.new(0,0,0)
  107. end
  108. end)
RAW Paste Data