Gostrondude

Untitled

Dec 6th, 2017
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.22 KB | None | 0 0
  1. --By Rufus14 (USE IT ON OWN RISK (BUG ALERT!))
  2. mouse = game.Players.LocalPlayer:GetMouse()
  3. attacking = false
  4. ragdolling = false
  5. function attacking(key)
  6. key = key:lower()
  7. if key == "q" then
  8. for i = 0,2 , 0.1 do
  9. wait()
  10. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.new():lerp(CFrame.Angles(0,0,0.08),i)
  11. end
  12. wait(1)
  13. for i = 1,10 do
  14. wait()
  15. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,-0.32)
  16. end
  17. local check = Instance.new("Part", game.Players.LocalPlayer.Character)
  18. check.Transparency = 1
  19. local weld = Instance.new("Weld" ,check)
  20. weld.Part0 = game.Players.LocalPlayer.Character["Left Arm"]
  21. weld.Part1 = check
  22. weld.C0 = weld.C0 * CFrame.new(0,-0.5,0)
  23. check.CanCollide = false
  24. local function ragdoll(part)
  25. using = false
  26. hit = Instance.new("Sound", torso)
  27. hit.SoundId = "rbxassetid://260430060"
  28. hit.Volume = 5
  29. hit1 = Instance.new("Sound", torso)
  30. hit1.SoundId = "rbxassetid://138087186"
  31. hit1.Volume = 5
  32. hit2 = Instance.new("Sound", torso)
  33. hit2.SoundId = "rbxassetid://131237241"
  34. hit2.Volume = 5
  35. hit3 = Instance.new("Sound", torso)
  36. hit3.SoundId = "rbxassetid://278062209"
  37. hit3.Volume = 5
  38. hit3.TimePosition = 0.33
  39. if not ragdolling then
  40. ragdolling = true
  41. local humanoid = part.Parent:findFirstChild("Humanoid")
  42. if humanoid ~= nil then
  43. humanoid.PlatformStand = true
  44. end
  45. local leftarm = part.Parent:findFirstChild("Left Arm")
  46. local rightrm = part.Parent:findFirstChild("Right Arm")
  47. local leftleg = part.Parent:findFirstChild("Left Leg")
  48. local rightleg = part.Parent:findFirstChild("Right Leg")
  49. torso = part.Parent:findFirstChild("Torso")
  50. if torso ~= nil then
  51. if leftleg ~= nil then
  52. local glue = Instance.new("Glue", torso)
  53. glue.Part0 = torso
  54. glue.Part1 = leftleg
  55. glue.Name = "Left leg"
  56. local collider = Instance.new("Part", leftleg)
  57. collider.Position = Vector3.new(0,999,0)
  58. collider.Size = Vector3.new(0.7,1.8,0.7)
  59. local weld = Instance.new("Weld", collider)
  60. weld.Part0 = leftleg
  61. weld.Part1 = collider
  62. weld.C0 = weld.C0 * CFrame.new(0,0,0)
  63. collider.TopSurface = "Smooth"
  64. collider.BottomSurface = "Smooth"
  65. collider.formFactor = "Symmetric"
  66. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  67. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  68. collider.Transparency = 1
  69. end
  70. ------------
  71. torso["Right Hip"]:destroy()
  72. if rightleg ~= nil then
  73. local glue1 = Instance.new("Glue", torso)
  74. glue1.Part0 = torso
  75. glue1.Part1 = rightleg
  76. glue1.Name = "Right leg"
  77. local collider1 = Instance.new("Part", rightleg)
  78. collider1.Position = Vector3.new(0,9999,0)
  79. collider1.Size = Vector3.new(0.7,1.8,0.7)
  80. local weld1 = Instance.new("Weld", collider1)
  81. weld1.Part0 = rightleg
  82. weld1.Part1 = collider1
  83. weld1.C0 = weld1.C0 * CFrame.new(0,0,0)
  84. collider1.TopSurface = "Smooth"
  85. collider1.BottomSurface = "Smooth"
  86. collider1.formFactor = "Symmetric"
  87. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  88. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  89. collider1.Transparency = 1
  90. end
  91. ------------
  92. torso["Right Shoulder"]:destroy()
  93. if rightrm ~= nil then
  94. local glue11 = Instance.new("Glue", torso)
  95. glue11.Part0 = torso
  96. glue11.Part1 = rightrm
  97. glue11.Name = "Right shoulder"
  98. local collider11 = Instance.new("Part", rightrm)
  99. collider11.Position = Vector3.new(0,9999,0)
  100. collider11.Size = Vector3.new(0.7,1.8,0.7)
  101. local weld11 = Instance.new("Weld", collider11)
  102. weld11.Part0 = rightrm
  103. weld11.Part1 = collider11
  104. weld11.C0 = weld11.C0 * CFrame.new(0,0,0)
  105. collider11.TopSurface = "Smooth"
  106. collider11.BottomSurface = "Smooth"
  107. collider11.formFactor = "Symmetric"
  108. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  109. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  110. collider11.Transparency = 1
  111. end
  112. ------------
  113. torso["Left Shoulder"]:destroy()
  114. if leftarm ~= nil then
  115. local glue111 = Instance.new("Glue", torso)
  116. glue111.Part0 = torso
  117. glue111.Part1 = leftarm
  118. glue111.Name = "Left shoulder"
  119. local collider111 = Instance.new("Part", leftarm)
  120. collider111.Position = Vector3.new(0,9999,0)
  121. collider111.Size = Vector3.new(0.7,1.8,0.7)
  122. local weld111 = Instance.new("Weld", collider111)
  123. weld111.Part0 = leftarm
  124. weld111.Part1 = collider111
  125. weld111.C0 = weld111.C0 * CFrame.new(0,0,0)
  126. collider111.TopSurface = "Smooth"
  127. collider111.BottomSurface = "Smooth"
  128. collider111.formFactor = "Symmetric"
  129. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  130. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  131. collider111.Transparency = 1
  132. end
  133. end
  134. wait(0.5)
  135. local function touch()
  136. if not using then
  137. using = true
  138. local Math = math.random(1,4)
  139. if Math == 1 then
  140. hit:Play()
  141. end
  142. if Math == 2 then
  143. hit1:Play()
  144. end
  145. if Math == 3 then
  146. hit2:Play()
  147. end
  148. if Math == 4 then
  149. hit3:Play()
  150. end
  151. wait(0.5)
  152. using = false
  153. end
  154. end
  155. torso.Touched:connect(touch)
  156. ragdolling = false
  157. end
  158. end
  159. check.Touched:connect(ragdoll)
  160. wait(3)
  161. end
  162. attacking = false
  163. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  164. end
  165. mouse.KeyDown:connect(attacking)
Add Comment
Please, Sign In to add comment