Advertisement
Smarty6788

Tf2 Ragdoll screams

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