Advertisement
Catsss

rag

Jul 18th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mouse = game.Players.LocalPlayer:GetMouse()
  2. using = false
  3. ragdolling = false
  4. hit = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  5. hit.SoundId = "rbxassetid://1542642349"
  6. hit.Volume = 2
  7. hit1 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  8. hit1.SoundId = "rbxassetid://1542642349"
  9. hit1.Volume = 2
  10. hit2 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  11. hit2.SoundId = "rbxassetid://1542642349"
  12. hit2.Volume = 2
  13. hit3 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  14. hit3.SoundId = "rbxassetid://1542642349"
  15. hit3.Volume = 2
  16. hit3.TimePosition = 0.33
  17.  
  18. stand = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  19. stand.SoundId = "rbxassetid://162456532"
  20. stand.Volume = 3
  21.  
  22. print("Press R to ragdollify")
  23. function respawn(key)
  24. key = key:lower()
  25. if key == "t" then
  26. stand:Play()
  27. if ragdolling then
  28. ragdolling = false
  29. lshclone.Parent = game.Players.LocalPlayer.Character.Torso
  30. glue:destroy()
  31. rshclone.Parent = game.Players.LocalPlayer.Character.Torso
  32. glue1:destroy()
  33. lhclone.Parent = game.Players.LocalPlayer.Character.Torso
  34. glue11:destroy()
  35. rhclone.Parent = game.Players.LocalPlayer.Character.Torso
  36. glue111:destroy()
  37. collider:destroy()
  38. collider1:destroy()
  39. collider11:destroy()
  40. collider111:destroy()
  41. sensoring:destroy()
  42. sensoring1:destroy()
  43. game.Players.LocalPlayer.Character.Torso.SpotLight:destroy()
  44. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = false
  45. end
  46. end
  47. end
  48. mouse.KeyDown:connect(respawn)
  49. function ragdoll(key)
  50. key = key:lower()
  51. if key == "r" then
  52. if not ragdolling then
  53. ragdolling = true
  54. local light = Instance.new("SpotLight", game.Players.LocalPlayer.Character.Torso)
  55. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = true
  56. lshclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  57. rshclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  58. lhclone = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
  59. rhclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  60. local leftarm = game.Players.LocalPlayer.Character["Left Arm"]
  61. local rightrm = game.Players.LocalPlayer.Character["Right Arm"]
  62. local leftleg = game.Players.LocalPlayer.Character["Left Leg"]
  63. local rightleg = game.Players.LocalPlayer.Character["Right Leg"]
  64. game.Players.LocalPlayer.Character.Torso["Left Hip"]:destroy()
  65. local head = game.Players.LocalPlayer.Character.Head
  66. glue = Instance.new("Glue", game.Players.LocalPlayer.Character.Torso)
  67. glue.Part0 = game.Players.LocalPlayer.Character.Torso
  68. glue.Part1 = leftleg
  69. glue.Name = "Left leg"
  70. collider = Instance.new("Part", leftleg)
  71. collider.Position = Vector3.new(0,999,0)
  72. collider.Size = Vector3.new(1.5, 1, 1)
  73. collider.Shape = "Cylinder"
  74. local weld = Instance.new("Weld", collider)
  75. weld.Part0 = leftleg
  76. weld.Part1 = collider
  77. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  78. collider.TopSurface = "Smooth"
  79. collider.BottomSurface = "Smooth"
  80. collider.formFactor = "Symmetric"
  81. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  82. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  83. collider.Transparency = 1
  84. ------------
  85. game.Players.LocalPlayer.Character.Torso["Right Hip"]:destroy()
  86. glue1 = Instance.new("Glue", game.Players.LocalPlayer.Character.Torso)
  87. glue1.Part0 = game.Players.LocalPlayer.Character.Torso
  88. glue1.Part1 = rightleg
  89. glue1.Name = "Right leg"
  90. collider1 = Instance.new("Part", rightleg)
  91. collider1.Position = Vector3.new(0,9999,0)
  92. collider1.Size = Vector3.new(1.5, 1, 1)
  93. collider1.Shape = "Cylinder"
  94. local weld1 = Instance.new("Weld", collider1)
  95. weld1.Part0 = rightleg
  96. weld1.Part1 = collider1
  97. weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  98. collider1.TopSurface = "Smooth"
  99. collider1.BottomSurface = "Smooth"
  100. collider1.formFactor = "Symmetric"
  101. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  102. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  103. collider1.Transparency = 1
  104. ------------
  105. game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:destroy()
  106. glue11 = Instance.new("Glue", game.Players.LocalPlayer.Character.Torso)
  107. glue11.Part0 = game.Players.LocalPlayer.Character.Torso
  108. glue11.Part1 = rightrm
  109. glue11.Name = "Right shoulder"
  110. collider11 = Instance.new("Part", rightrm)
  111. collider11.Position = Vector3.new(0,9999,0)
  112. collider11.Size = Vector3.new(1.8,1,1)
  113. collider11.Shape = "Cylinder"
  114. local weld11 = Instance.new("Weld", collider11)
  115. weld11.Part0 = rightrm
  116. weld11.Part1 = collider11
  117. weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  118. collider11.TopSurface = "Smooth"
  119. collider11.BottomSurface = "Smooth"
  120. collider11.formFactor = "Symmetric"
  121. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  122. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  123. collider11.Transparency = 1
  124. ------------
  125. game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:destroy()
  126. glue111 = Instance.new("Glue", game.Players.LocalPlayer.Character.Torso)
  127. glue111.Part0 = game.Players.LocalPlayer.Character.Torso
  128. glue111.Part1 = leftarm
  129. glue111.Name = "Left shoulder"
  130. collider111 = Instance.new("Part", leftarm)
  131. collider111.Position = Vector3.new(0,9999,0)
  132. collider111.Size = Vector3.new(1.5, 1, 1)
  133. collider111.Shape = "Cylinder"
  134. local weld111 = Instance.new("Weld", collider111)
  135. weld111.Part0 = leftarm
  136. weld111.Part1 = collider111
  137. weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  138. collider111.TopSurface = "Smooth"
  139. collider111.BottomSurface = "Smooth"
  140. collider111.formFactor = "Symmetric"
  141. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  142. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  143. collider111.Transparency = 1
  144. -----------------
  145. sensoring = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
  146. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  147. sensoring.CanCollide = false
  148. sensoring.Position = game.Players.LocalPlayer.Character.Torso.Position
  149. local welder = Instance.new("Weld", sensoring)
  150. welder.Part0 = game.Players.LocalPlayer.Character.Torso
  151. welder.Part1 = sensoring
  152. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  153. sensoring.Transparency = 1
  154. -----------------
  155. sensoring1 = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
  156. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  157. sensoring1.CanCollide = false
  158. sensoring1.Position = game.Players.LocalPlayer.Character.Torso.Position
  159. local welder1 = Instance.new("Weld", sensoring)
  160. welder1.Part0 = game.Players.LocalPlayer.Character.Torso
  161. welder1.Part1 = sensoring1
  162. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  163. sensoring1.Transparency = 1
  164. local function touch()
  165. if not using then
  166. using = true
  167. local Math = math.random(1,4)
  168. if Math == 1 then
  169. hit:Play()
  170. end
  171. if Math == 2 then
  172. hit1:Play()
  173. end
  174. if Math == 3 then
  175. hit2:Play()
  176. end
  177. if Math == 4 then
  178. hit3:Play()
  179. end
  180. wait(0.1)
  181. using = false
  182. end
  183. end
  184. sensoring.Touched:connect(touch)
  185. sensoring1.Touched:connect(touch)
  186. end
  187.  
  188. end
  189. end
  190. mouse.KeyDown:connect(ragdoll)
  191. --di ent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement