Mr-Shadow_Cat

Hotline miami

Jan 10th, 2018
428
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 52.97 KB | None | 0 0
  1. --By Rufus14
  2. mouse = game.Players.LocalPlayer:GetMouse()
  3. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 25
  4. local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  5. game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Remove()
  6. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  7. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  8. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  9. rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  10. local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  11. game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Remove()
  12. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  13. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  14. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  15. lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  16. local llegclone = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
  17. game.Players.LocalPlayer.Character.Torso["Left Hip"]:Remove()
  18. local llegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  19. llegweld.Part0 = game.Players.LocalPlayer.Character.Torso
  20. llegweld.Part1 = game.Players.LocalPlayer.Character["Left Leg"]
  21. llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  22. local rlegclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  23. game.Players.LocalPlayer.Character.Torso["Right Hip"]:Remove()
  24. local rlegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  25. rlegweld.Part0 = game.Players.LocalPlayer.Character.Torso
  26. rlegweld.Part1 = game.Players.LocalPlayer.Character["Right Leg"]
  27. rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  28. local rootjointclone = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  29. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Remove()
  30. local humanoidrootpart = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  31. humanoidrootpart.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart
  32. humanoidrootpart.Part1 = game.Players.LocalPlayer.Character.Torso
  33. local heed = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  34. local headweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  35. headweld.Part0 = game.Players.LocalPlayer.Character.Torso
  36. headweld.Part1 = game.Players.LocalPlayer.Character.Head
  37. headweld.C0 = headweld.C0 * CFrame.new(0,1.5,0)
  38. game.Players.LocalPlayer.Character.Torso.Neck:Remove()
  39. howmuch = 0
  40. canwalk = true
  41. function change(key)
  42. if key == "w" or key == "a" or key == "s" or key == "d" then
  43. howmuch = howmuch + 1
  44. end
  45. end
  46. function otherchange(key)
  47. if key == "w" or key == "a" or key == "s" or key == "d" then
  48. howmuch = howmuch - 1
  49. end
  50. end
  51. mouse.KeyDown:connect(change)
  52. mouse.KeyUp:connect(otherchange)
  53. --Converted with ttyyuu12345's model to script plugin v4
  54. function sandbox(var,func)
  55. local env = getfenv(func)
  56. local newenv = setmetatable({},{
  57. __index = function(self,k)
  58. if k=="script" then
  59. return var
  60. else
  61. return env[k]
  62. end
  63. end,
  64. })
  65. setfenv(func,newenv)
  66. return func
  67. end
  68. cors = {}
  69. mas = Instance.new("Model",game:GetService("Lighting"))
  70. Model0 = Instance.new("Model")
  71. Part1 = Instance.new("Part")
  72. Part2 = Instance.new("Part")
  73. Part3 = Instance.new("Part")
  74. Weld4 = Instance.new("Weld")
  75. Weld5 = Instance.new("Weld")
  76. Weld6 = Instance.new("Weld")
  77. Part7 = Instance.new("Part")
  78. Model0.Name = "Sawed Off"
  79. Model0.Parent = mas
  80. Part1.Parent = Model0
  81. Part1.BrickColor = BrickColor.new("Dark stone grey")
  82. Part1.Shape = Enum.PartType.Cylinder
  83. Part1.Size = Vector3.new(2.96000075, 0.449999958, 0.400000334)
  84. Part1.CFrame = CFrame.new(40.7499924, 151.548019, 156.470001, 1.0000006, -1.78813934e-07, 0, -1.78813934e-07, 1.00000024, 0, 0, 0, 1)
  85. Part1.Position = Vector3.new(40.7499924, 151.548019, 156.470001)
  86. Part1.Material = "Metal"
  87. Part2.Parent = Model0
  88. Part2.BrickColor = BrickColor.new("Dark stone grey")
  89. Part2.Shape = Enum.PartType.Cylinder
  90. Part2.Size = Vector3.new(2.96000075, 0.449999958, 0.400000334)
  91. Part2.CFrame = CFrame.new(40.7499962, 151.548035, 156.079056, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  92. Part2.Position = Vector3.new(40.7499962, 151.548035, 156.079056)
  93. Part2.Material = "Metal"
  94. Part3.Parent = Model0
  95. Part3.BrickColor = BrickColor.new("Cocoa")
  96. Part3.Rotation = Vector3.new(0, 0, -34)
  97. Part3.Size = Vector3.new(1.11000025, 0.519999921, 0.570000172)
  98. Part3.CFrame = CFrame.new(42.5974922, 150.98793, 156.274887, 0.829038441, 0.559192181, 0, -0.55919224, 0.829038203, 0, 0, 0, 1)
  99. Part3.Color = Color3.new(0.317647, 0.145098, 0)
  100. Part3.Position = Vector3.new(42.5974922, 150.98793, 156.274887)
  101. Part3.Orientation = Vector3.new(0, 0, -34)
  102. Part3.Color = Color3.new(0.317647, 0.145098, 0)
  103. Part3.Material = "WoodPlanks"
  104. Weld4.Name = "1"
  105. Weld4.Parent = Part3
  106. Weld4.C0 = CFrame.new(-1.84484863, -0.568756104, -0.195831299, 0.829038441, -0.55919224, 0, 0.559192181, 0.829038203, 0, 0, 0, 1)
  107. Weld4.Part0 = Part3
  108. Weld4.Part1 = Part2
  109. Weld5.Name = "3"
  110. Weld5.Parent = Part3
  111. Weld5.C0 = CFrame.new(-0.60994339, 0.0636444092, 0.00506591797, 0.866026163, 0.499997735, 0, -0.499997616, 0.866026044, 0, 0, 0, 1)
  112. Weld5.Part0 = Part3
  113. Weld5.Part1 = Part7
  114. Weld6.Name = "2"
  115. Weld6.Parent = Part3
  116. Weld6.C0 = CFrame.new(-1.84484482, -0.568771362, 0.195114136, 0.829038441, -0.55919224, 0, 0.559192181, 0.829038203, 0, 0, 0, 1)
  117. Weld6.Part0 = Part3
  118. Weld6.Part1 = Part1
  119. Part7.Parent = Model0
  120. Part7.BrickColor = BrickColor.new("Cocoa")
  121. Part7.Rotation = Vector3.new(0, 0, -64)
  122. Part7.Size = Vector3.new(0.440000623, 0.519999921, 0.759999931)
  123. Part7.CFrame = CFrame.new(42.1274147, 151.381775, 156.279953, 0.438374251, 0.898792326, 0, -0.898792267, 0.438373834, 0, 0, 0, 1)
  124. Part7.Color = Color3.new(0.317647, 0.145098, 0)
  125. Part7.Position = Vector3.new(42.1274147, 151.381775, 156.279953)
  126. Part7.Orientation = Vector3.new(0, 0, -64)
  127. Part7.Color = Color3.new(0.317647, 0.145098, 0)
  128. Part7.Material = "WoodPlanks"
  129. for i,v in pairs(mas:GetChildren()) do
  130. v.Parent = game:GetService("Players").LocalPlayer.Character
  131. pcall(function() v:MakeJoints() end)
  132. end
  133. mas:Destroy()
  134. for i,v in pairs(cors) do
  135. spawn(function()
  136. pcall(v)
  137. end)
  138. end
  139. for i,v in pairs(Model0:GetChildren()) do
  140. if v.ClassName == "Part" then
  141. v.CanCollide = false
  142. end
  143. end
  144.  
  145. --Converted with ttyyuu12345's model to script plugin v4
  146. function sandbox(var,func)
  147. local env = getfenv(func)
  148. local newenv = setmetatable({},{
  149. __index = function(self,k)
  150. if k=="script" then
  151. return var
  152. else
  153. return env[k]
  154. end
  155. end,
  156. })
  157. setfenv(func,newenv)
  158. return func
  159. end
  160. cors = {}
  161. mas = Instance.new("Model",game:GetService("Lighting"))
  162. for i,v in pairs(mas:GetChildren()) do
  163. v.Parent = game:GetService("Players").LocalPlayer.Character.Torso
  164. pcall(function() v:MakeJoints() end)
  165. end
  166. mas:Destroy()
  167. for i,v in pairs(cors) do
  168. spawn(function()
  169. pcall(v)
  170. end)
  171. end
  172. Player=game:GetService("Players").LocalPlayer
  173. Character=Player.Character
  174. Sound0 = Instance.new("Sound")
  175. Sound0.Volume = 5
  176. Sound0.Parent = game.Players.LocalPlayer.Character.Head
  177. Sound0.SoundId = "rbxassetid://579318824"
  178. Sound0.Looped = true
  179. Sound0:Play()
  180. shirt = Instance.new("Shirt", Character)
  181. shirt.Name = "Shirt"
  182. pants = Instance.new("Pants", Character)
  183. pants.Name = "Pants"
  184. Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=779083539"
  185. Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=768003110"
  186. Sound00 = Instance.new("Sound")
  187. Sound00.Volume = 6
  188. Sound00.Parent = game.Players.LocalPlayer.Character.Head
  189. Sound00.SoundId = "rbxassetid://330706798"
  190. bullethitforclone = Instance.new("Sound")
  191. bullethitforclone.Volume = 4
  192. bullethitforclone.Parent = game.Players.LocalPlayer.Character.Head
  193. bullethitforclone.SoundId = "rbxassetid://144884872"
  194. weldf = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  195. weldf.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  196. weldf.Part1 = Part3
  197. weldf.C0 = CFrame.new(-0.0861244202, -1.04447937, -0.182327271, -0.105800174, 0.219419539, -0.969882667, 0.973032475, -0.178225949, -0.146464914, -0.204995126, -0.959215224, -0.194644511)
  198. using = false
  199. function shoot()
  200. if not using then
  201. using = true
  202. canwalk = false
  203. for i = 0,1 , 0.02 do
  204. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 0.207927465, 1.10965065e-11, -0.978144228, -7.31349337e-09, 1, -1.5433097e-09, 0.978144288, 7.47454809e-09, 0.207927451),i)
  205. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(2.01304245, 0.49798584, -0.020904541, 0.0697589889, -0.997563899, -2.65673535e-22, -1.85331179e-23, 2.65026316e-22, -0.999999881, 0.997563779, 0.0697589815, 0),i)
  206. weldf.C0 = weldf.C0:lerp(CFrame.new(-0.0359191895, -0.892173767, 0.284561157, -0.0689456016, 0.0198679417, -0.997422755, 0.839448929, 0.541383147, -0.0472417921, 0.539049447, -0.840541601, -0.0540040247),i)
  207. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(-0.00933837891, -0.0203552246, -0.000652313232, 0.0697618872, -2.27432338e-06, 0.997569025, 1.77783205e-11, 0.999999881, 2.2798622e-06, -0.997569859, -1.59030108e-07, 0.0697606578),i)
  208. game:GetService("RunService").RenderStepped:wait()
  209. end
  210. Sound00:Play()
  211. for i = 1,5 do
  212. ghosting = math.random(1,2)
  213. local bullet = Instance.new("Part", workspace)
  214. bullet.Size = Vector3.new(0.2,0.2,3)
  215. bullet.BrickColor = BrickColor.new("New Yeller")
  216. bullet.Material = "Neon"
  217. bullet.Anchored = false
  218. bullet.CFrame = Part1.CFrame * CFrame.new(3,0,0) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  219. local velocityofbullet = Instance.new("BodyVelocity", bullet)
  220. velocityofbullet.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  221. velocityofbullet.Velocity = mouse.Hit.lookVector * 650 + Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  222. bullet.CanCollide = false
  223. bullet:BreakJoints()
  224. local function kill(part)
  225. local humanoid = part.Parent:findFirstChild("Humanoid")
  226. if humanoid then
  227. if humanoid.Parent.Name == game.Players.LocalPlayer.Name then
  228.  
  229. else
  230. if ghosting == 1 then
  231.  
  232. else
  233. bullet:destroy()
  234. end
  235. local bullethit = bullethitforclone:Clone()
  236. bullethit.Parent = part
  237. if part.Name == "Left Leg" then
  238. bullethit:Play()
  239. humanoid.Parent.Torso["Left Hip"]:Remove()
  240. humanoid.Health = humanoid.Health - math.random(35,50)
  241. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  242. glue.Part0 = humanoid.Parent.Torso
  243. glue.Part1 = humanoid.Parent["Left Leg"]
  244. glue.Name = "Left leg"
  245. local collider = Instance.new("Part", humanoid.Parent["Left Leg"])
  246. collider.Position = Vector3.new(0,999,0)
  247. collider.Size = Vector3.new(1.5, 1, 1)
  248. collider.Shape = "Cylinder"
  249. local weld = Instance.new("Weld", collider)
  250. weld.Part0 = humanoid.Parent["Left Leg"]
  251. weld.Part1 = collider
  252. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  253. collider.TopSurface = "Smooth"
  254. collider.BottomSurface = "Smooth"
  255. collider.formFactor = "Symmetric"
  256. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  257. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  258. collider.Transparency = 1
  259. end
  260. if part.Name == "Right Leg" then
  261. humanoid.Parent.Torso["Right Hip"]:Remove()
  262. bullethit:Play()
  263. humanoid.Health = humanoid.Health - math.random(35,50)
  264. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  265. glue.Part0 = humanoid.Parent.Torso
  266. glue.Part1 = humanoid.Parent["Right Leg"]
  267. glue.Name = "Right leg"
  268. local collider = Instance.new("Part", humanoid.Parent["Right Leg"])
  269. collider.Position = Vector3.new(0,999,0)
  270. collider.Size = Vector3.new(1.5, 1, 1)
  271. collider.Shape = "Cylinder"
  272. local weld = Instance.new("Weld", collider)
  273. weld.Part0 = humanoid.Parent["Right Leg"]
  274. weld.Part1 = collider
  275. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  276. collider.TopSurface = "Smooth"
  277. collider.BottomSurface = "Smooth"
  278. collider.formFactor = "Symmetric"
  279. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  280. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  281. collider.Transparency = 1
  282. end
  283. if part.Name == "Right Arm" then
  284. bullethit:Play()
  285. humanoid.Parent.Torso["Right Shoulder"]:Remove()
  286. humanoid.Health = humanoid.Health - math.random(20,35)
  287. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  288. glue.Part0 = humanoid.Parent.Torso
  289. glue.Part1 = humanoid.Parent["Right Arm"]
  290. glue.Name = "Right arm"
  291. local collider = Instance.new("Part", humanoid.Parent["Right Arm"])
  292. collider.Position = Vector3.new(0,999,0)
  293. collider.Size = Vector3.new(1.5, 1, 1)
  294. collider.Shape = "Cylinder"
  295. local weld = Instance.new("Weld", collider)
  296. weld.Part0 = humanoid.Parent["Right Arm"]
  297. weld.Part1 = collider
  298. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  299. collider.TopSurface = "Smooth"
  300. collider.BottomSurface = "Smooth"
  301. collider.formFactor = "Symmetric"
  302. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  303. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  304. collider.Transparency = 1
  305. end
  306. if part.Name == "Left Arm" then
  307. bullethit:Play()
  308. humanoid.Parent.Torso["Left Shoulder"]:Remove()
  309. humanoid.Health = humanoid.Health - math.random(20,35)
  310. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  311. glue.Part0 = humanoid.Parent.Torso
  312. glue.Part1 = humanoid.Parent["Left Arm"]
  313. glue.Name = "Left arm"
  314. local collider = Instance.new("Part", humanoid.Parent["Left Arm"])
  315. collider.Position = Vector3.new(0,999,0)
  316. collider.Size = Vector3.new(1.5, 1, 1)
  317. collider.Shape = "Cylinder"
  318. local weld = Instance.new("Weld", collider)
  319. weld.Part0 = humanoid.Parent["Left Arm"]
  320. weld.Part1 = collider
  321. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  322. collider.TopSurface = "Smooth"
  323. collider.BottomSurface = "Smooth"
  324. collider.formFactor = "Symmetric"
  325. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  326. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  327. collider.Transparency = 1
  328. end
  329. if part.Name == "Torso" then
  330. bullethit:Play()
  331. humanoid.Health = humanoid.Health - math.random(15,50)
  332. humanoid.WalkSpeed = humanoid.WalkSpeed - math.random(1,2)
  333. end
  334. if part.Name == "Head" then
  335. bullethit:Play()
  336. humanoid.JumpPower = 0
  337. humanoid.PlatformStand = true
  338. humanoid.WalkSpeed = 0
  339. local decal = Instance.new("Decal", part)
  340. decal.Texture = "http://www.roblox.com/asset/?id=1081285488"
  341. local findlefthip = humanoid.Parent.Torso:findFirstChild("Left Hip")
  342. if findlefthip then
  343. findlefthip:Remove()
  344. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  345. glue.Part0 = humanoid.Parent.Torso
  346. glue.Part1 = humanoid.Parent["Left Leg"]
  347. glue.Name = "Left leg"
  348. local collider = Instance.new("Part", humanoid.Parent["Left Leg"])
  349. collider.Position = Vector3.new(0,999,0)
  350. collider.Size = Vector3.new(1.5, 1, 1)
  351. collider.Shape = "Cylinder"
  352. local weld = Instance.new("Weld", collider)
  353. weld.Part0 = humanoid.Parent["Left Leg"]
  354. weld.Part1 = collider
  355. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  356. collider.TopSurface = "Smooth"
  357. collider.BottomSurface = "Smooth"
  358. collider.formFactor = "Symmetric"
  359. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  360. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  361. collider.Transparency = 1
  362. end
  363. --
  364. local findrighthip = humanoid.Parent.Torso:findFirstChild("Right Hip")
  365. if findrighthip then
  366. findrighthip:Remove()
  367. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  368. glue.Part0 = humanoid.Parent.Torso
  369. glue.Part1 = humanoid.Parent["Right Leg"]
  370. glue.Name = "Right leg"
  371. local collider = Instance.new("Part", humanoid.Parent["Right Leg"])
  372. collider.Position = Vector3.new(0,999,0)
  373. collider.Size = Vector3.new(1.5, 1, 1)
  374. collider.Shape = "Cylinder"
  375. local weld = Instance.new("Weld", collider)
  376. weld.Part0 = humanoid.Parent["Right Leg"]
  377. weld.Part1 = collider
  378. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  379. collider.TopSurface = "Smooth"
  380. collider.BottomSurface = "Smooth"
  381. collider.formFactor = "Symmetric"
  382. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  383. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  384. collider.Transparency = 1
  385. end
  386. --
  387. local findrightshoulder = humanoid.Parent.Torso:findFirstChild("Right Shoulder")
  388. if findrightshoulder then
  389. findrightshoulder:Remove()
  390. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  391. glue.Part0 = humanoid.Parent.Torso
  392. glue.Part1 = humanoid.Parent["Right Arm"]
  393. glue.Name = "Right arm"
  394. local collider = Instance.new("Part", humanoid.Parent["Right Arm"])
  395. collider.Position = Vector3.new(0,999,0)
  396. collider.Size = Vector3.new(1.5, 1, 1)
  397. collider.Shape = "Cylinder"
  398. local weld = Instance.new("Weld", collider)
  399. weld.Part0 = humanoid.Parent["Right Arm"]
  400. weld.Part1 = collider
  401. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  402. collider.TopSurface = "Smooth"
  403. collider.BottomSurface = "Smooth"
  404. collider.formFactor = "Symmetric"
  405. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  406. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  407. collider.Transparency = 1
  408. end
  409. --
  410. local findleftshoulder = humanoid.Parent.Torso:findFirstChild("Left Shoulder")
  411. if findleftshoulder then
  412. findleftshoulder:Remove()
  413. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  414. glue.Part0 = humanoid.Parent.Torso
  415. glue.Part1 = humanoid.Parent["Left Arm"]
  416. glue.Name = "Left arm"
  417. local collider = Instance.new("Part", humanoid.Parent["Left Arm"])
  418. collider.Position = Vector3.new(0,999,0)
  419. collider.Size = Vector3.new(1.5, 1, 1)
  420. collider.Shape = "Cylinder"
  421. local weld = Instance.new("Weld", collider)
  422. weld.Part0 = humanoid.Parent["Left Arm"]
  423. weld.Part1 = collider
  424. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  425. collider.TopSurface = "Smooth"
  426. collider.BottomSurface = "Smooth"
  427. collider.formFactor = "Symmetric"
  428. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  429. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  430. collider.Transparency = 1
  431. end
  432. wait(5)
  433. humanoid.Health = 0
  434. end
  435. local howmany = 0
  436. for i,v in pairs(humanoid.Parent.Torso:GetChildren()) do
  437. if v.ClassName == "Glue" then
  438. howmany = howmany + 1
  439. end
  440. end
  441. if howmany == 4 then
  442. humanoid.JumpPower = 0
  443. humanoid.PlatformStand = true
  444. humanoid.WalkSpeed = 0
  445. end
  446. if humanoid.Health < 1 then
  447. if humanoid.Parent:findFirstChild("Health") then
  448. humanoid.Parent.Health:Remove()
  449. humanoid.Health = 0.001
  450. for i,v in pairs(humanoid.Parent:GetChildren()) do
  451. if v.ClassName == "Part" then
  452. for q,w in pairs(v:GetChildren()) do
  453. if w.ClassName == "Part" then
  454. w:destroy()
  455. end
  456. end
  457. end
  458. end
  459. end
  460. if humanoid.Parent:findFirstChild("Torso") then
  461. humanoid.Parent.Torso.Velocity = mouse.Hit.lookVector * 35
  462. for i,v in pairs(humanoid.Parent.Torso:GetChildren()) do
  463. if v.ClassName == "Motor6D" then
  464. if v.Name == "Neck" then
  465.  
  466. else
  467. v:destroy()
  468. end
  469. end
  470. end
  471. end
  472. humanoid.WalkSpeed = 0
  473. humanoid.JumpPower = 0
  474. humanoid.PlatformStand = true
  475. if humanoid.Parent:findFirstChild("Right Arm") then
  476. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  477. attachment.Position = Vector3.new(1, 1, 0)
  478. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  479. ball.Attachment0 = humanoid.Parent["Right Arm"].RightShoulderAttachment
  480. ball.Attachment1 = attachment
  481. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  482. collidepartofleftleg.Name = "Bone"
  483. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  484. collidepartofleftleg.Transparency = 1
  485. collidepartofleftleg:BreakJoints()
  486. local weeld = Instance.new("Weld", collidepartofleftleg)
  487. weeld.Part0 = humanoid.Parent["Right Arm"]
  488. weeld.Part1 = collidepartofleftleg
  489. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  490. end
  491. if humanoid.Parent:findFirstChild("Left Arm") then
  492. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  493. attachment.Position = Vector3.new(1, 1, 0)
  494. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  495. ball.Attachment0 = humanoid.Parent.Torso.LeftCollarAttachment
  496. ball.Attachment1 = humanoid.Parent["Left Arm"].LeftShoulderAttachment
  497. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  498. collidepartofleftleg.Name = "Bone"
  499. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  500. collidepartofleftleg.Transparency = 1
  501. collidepartofleftleg:BreakJoints()
  502. local weeld = Instance.new("Weld", collidepartofleftleg)
  503. weeld.Part0 = humanoid.Parent["Left Arm"]
  504. weeld.Part1 = collidepartofleftleg
  505. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  506. end
  507. if humanoid.Parent:findFirstChild("Right Leg") then
  508. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  509. attachment.Position = Vector3.new(0.5, -1, 0)
  510. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  511. ball.Attachment0 = humanoid.Parent["Right Leg"].RightFootAttachment
  512. ball.Attachment1 = attachment
  513. humanoid.Parent["Right Leg"].RightFootAttachment.Position = Vector3.new(0, 1, 0)
  514. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  515. collidepartofleftleg.Name = "Bone"
  516. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  517. collidepartofleftleg.Transparency = 1
  518. collidepartofleftleg:BreakJoints()
  519. local weeld = Instance.new("Weld", collidepartofleftleg)
  520. weeld.Part0 = humanoid.Parent["Right Leg"]
  521. weeld.Part1 = collidepartofleftleg
  522. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  523. end
  524. if humanoid.Parent:findFirstChild("Left Leg") then
  525. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  526. attachment.Position = Vector3.new(-0.5, -1, 0)
  527. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  528. ball.Attachment0 = humanoid.Parent["Left Leg"].LeftFootAttachment
  529. ball.Attachment1 = attachment
  530. humanoid.Parent["Left Leg"].LeftFootAttachment.Position = Vector3.new(0, 1, 0)
  531. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  532. collidepartofleftleg.Name = "Bone"
  533. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  534. collidepartofleftleg.Transparency = 1
  535. collidepartofleftleg:BreakJoints()
  536. local weeld = Instance.new("Weld", collidepartofleftleg)
  537. weeld.Part0 = humanoid.Parent["Left Leg"]
  538. weeld.Part1 = collidepartofleftleg
  539. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  540. end
  541. if humanoid.Parent:findFirstChild("Head") then
  542. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  543. attachment.Position = Vector3.new(0, -0.5, 0)
  544. humanoid.Parent.Torso.NeckAttachment.Visible = false
  545. humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  546. local ball = Instance.new("HingeConstraint", humanoid.Parent)
  547. ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
  548. ball.Attachment1 = attachment
  549. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  550. collidepartofleftleg.Name = "Bone"
  551. collidepartofleftleg.Size = Vector3.new(0.5,0.3,0.5)
  552. collidepartofleftleg.Transparency = 1
  553. collidepartofleftleg:BreakJoints()
  554. local weeld = Instance.new("Weld", collidepartofleftleg)
  555. weeld.Part0 = collidepartofleftleg
  556. weeld.Part1 = humanoid.Parent["Head"]
  557. humanoid.Parent.Torso.Neck:destroy()
  558. end
  559. if humanoid.Parent:findFirstChild("Head") then
  560. local aah = Instance.new("Sound", humanoid.Parent.Head)
  561. if aah then
  562. aah.Volume = 8
  563. local aahmath = math.random(2,8)
  564. if aahmath == 2 then
  565. aah.SoundId = "rbxassetid://884348443"
  566. aah:Play()
  567. end
  568. if aahmath == 3 then
  569. aah.SoundId = "rbxassetid://535528169"
  570. aah.TimePosition = 0.3
  571. aah:Play()
  572. end
  573. if aahmath == 4 then
  574. aah.SoundId = "rbxassetid://1080363252"
  575. aah:Play()
  576. end
  577. if aahmath == 5 then
  578. aah.SoundId = "rbxassetid://150245085"
  579. aah:Play()
  580. end
  581. if aahmath == 6 then
  582. aah.SoundId = "rbxassetid://345287845"
  583. aah.TimePosition = 2.5
  584. aah:Play()
  585. end
  586. if aahmath == 7 then
  587. aah.SoundId = "rbxassetid://147758746"
  588. aah.TimePosition = 1.3
  589. aah:Play()
  590. end
  591. if aahmath == 8 then
  592. aah.SoundId = "rbxassetid://626777433"
  593. aah.TimePosition = 1.4
  594. aah:Play()
  595. end
  596. end
  597. humanoid.Name = "Hammoodmememememem"
  598. end
  599. end
  600. end
  601. end
  602. end
  603. bullet.Touched:connect(kill)
  604. end
  605. for i = 0,1 , 0.25 do
  606. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 0.207933038, -0.102243967, -0.972784758, 8.86239135e-08, 0.994521916, -0.104528628, 0.978143096, 0.0217348691, 0.206793979),i)
  607. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.82263184, 0.730773926, -0.020904541, 0.0646852478, -0.924928367, 0.374597609, 0.0261337012, -0.373684913, -0.927187502, 0.997563481, 0.0697649717, -9.91872824e-08),i)
  608. weldf.C0 = weldf.C0:lerp(CFrame.new(-0.0359191895, -0.892173767, 0.284561157, -0.0689456016, 0.0198679417, -0.997422755, 0.839448929, 0.541383147, -0.0472417921, 0.539049447, -0.840541601, -0.0540040247),i)
  609. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(-0.00933837891, -0.0203552246, -0.000652313232, 0.0697618872, -2.27432338e-06, 0.997569025, 1.77783205e-11, 0.999999881, 2.2798622e-06, -0.997569859, -1.59030108e-07, 0.0697606578),i)
  610. game:GetService("RunService").RenderStepped:wait()
  611. end
  612. for i = 0,1 , 0.02 do
  613. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 0.207927465, 1.10965065e-11, -0.978144228, -7.31349337e-09, 1, -1.5433097e-09, 0.978144288, 7.47454809e-09, 0.207927451),i)
  614. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(2.01304245, 0.49798584, -0.020904541, 0.0697589889, -0.997563899, -2.65673535e-22, -1.85331179e-23, 2.65026316e-22, -0.999999881, 0.997563779, 0.0697589815, 0),i)
  615. weldf.C0 = weldf.C0:lerp(CFrame.new(-0.0359191895, -0.892173767, 0.284561157, -0.0689456016, 0.0198679417, -0.997422755, 0.839448929, 0.541383147, -0.0472417921, 0.539049447, -0.840541601, -0.0540040247),i)
  616. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(-0.00933837891, -0.0203552246, -0.000652313232, 0.0697618872, -2.27432338e-06, 0.997569025, 1.77783205e-11, 0.999999881, 2.2798622e-06, -0.997569859, -1.59030108e-07, 0.0697606578),i)
  617. game:GetService("RunService").RenderStepped:wait()
  618. end
  619. for i = 0,1 , 0.02 do
  620. weldf.C0 = weldf.C0:lerp(CFrame.new(-0.0861244202, -1.04447937, -0.182327271, -0.105800174, 0.219419539, -0.969882667, 0.973032475, -0.178225949, -0.146464914, -0.204995126, -0.959215224, -0.194644511),i)
  621. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  622. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.48563504, -0.102214813, 1, 6.31088724e-30, -1.00974196e-28, -2.5243549e-29, 0.990270674, 0.139171436, -5.04870979e-29, -0.139171436, 0.990270674),i)
  623. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.606146812, -2.0409379, 0.23392868, 0.994522691, 0.104527831, 4.48272353e-09, -0.10395515, 0.989075184, 0.104526937, 0.0109259691, -0.103954434, 0.994521797),i)
  624. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.56223869, 0.00435209274, 0, 0.997564316, 0.0697554871, 0, -0.0697554871, 0.997564316, 0, 0, 2.5243549e-29, 1),i)
  625. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.589343071, -2.06024575, -0.139556885, 0.997564077, -0.0693742931, 0.0072911568, 0.0697562397, 0.992102206, -0.104268931, 1.75914945e-08, 0.104523741, 0.994524658),i)
  626. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.61233902, 0.0157878399, 0, 0.990270674, -0.139171436, 5.04870979e-29, 0.139171436, 0.990270674, 2.01948392e-28, 1.00974196e-28, 2.27191941e-28, 1),i)
  627. game:GetService("RunService").RenderStepped:wait()
  628. end
  629. canwalk = true
  630. using = false
  631. end
  632. end
  633. function kys(key)
  634. key = key:lower()
  635. if key == "q" and not using then
  636. using = false
  637. canwalk = false
  638. for i = 0,1 , 0.02 do
  639. weldf.C0 = weldf.C0:lerp(CFrame.new(-0.168807983, -2.35839844, 1.06054688, 0.376244515, -0.0200107303, 0.92630434, -0.527649045, -0.826430559, 0.196466327, 0.761594713, -0.562682986, -0.321498603),i)
  640. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  641. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 0.964937389, -0.102245584, 0.241747394, 0.104467049, 0.994521677, 0.00364552485, -0.240795761, 0.0217369329, 0.970332384),i)
  642. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.606146812, -2.0409379, 0.23392868, 0.994522691, 0.104527831, 4.48272353e-09, -0.10395515, 0.989075184, 0.104526937, 0.0109259691, -0.103954434, 0.994521797),i)
  643. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.755413055, -0.0500183105, -2.32714844, 0.992147624, -0.122393578, 0.0257476419, 0.0214064512, -0.0366528891, -0.999098778, 0.123226993, 0.991804659, -0.0337450653),i)
  644. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.589343071, -2.06024575, -0.139556885, 0.997564077, -0.0693742931, 0.0072911568, 0.0697562397, 0.992102206, -0.104268931, 1.75914945e-08, 0.104523741, 0.994524658),i)
  645. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.817108154, 0.43989563, -1.35630798, 0.906662822, 0.312888145, -0.28295514, -0.253573388, -0.131829232, -0.958290994, -0.337139636, 0.9405967, -0.04018455),i)
  646. game:GetService("RunService").RenderStepped:wait()
  647. end
  648. --0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0
  649. --0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0
  650. --[[
  651. local vel = Instance.new("BodyVelocity", game.Players.LocalPlayer.Character.Torso)
  652. vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * -5
  653. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  654. --]]
  655. --By Rufus14 (FINALLY I KNOW HOW TO MAKE A RAGDOLL :D)
  656. --die plz
  657. mouse = game.Players.LocalPlayer:GetMouse()
  658. function ragdoll()
  659. game.Players.LocalPlayer.Character.Archivable = true
  660. Sound0:destroy()
  661. clone = game.Players.LocalPlayer.Character:Clone()
  662. clone.Parent = workspace
  663. for i,v in pairs(clone:GetChildren()) do
  664. if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  665. v:destroy()
  666. end
  667. for i,p in pairs(v:GetChildren()) do
  668. if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
  669. p:destroy()
  670. end
  671. end
  672. end
  673. for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  674. if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
  675. t:destroy()
  676. end
  677. end
  678. vel = Instance.new("BodyVelocity", clone.Torso)
  679. vel.Velocity = clone.Torso.CFrame.lookVector * -5
  680. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  681. clone.Head.face.Texture = "http://www.roblox.com/asset/?id=161061608"
  682. using = false
  683. hit = Instance.new("Sound", clone.Torso)
  684. hit.SoundId = "rbxassetid://260430060"
  685. hit.Volume = 0
  686. hit1 = Instance.new("Sound", clone.Torso)
  687. hit1.SoundId = "rbxassetid://138087186"
  688. hit1.Volume = 0
  689. hit2 = Instance.new("Sound", clone.Torso)
  690. hit2.SoundId = "rbxassetid://131237241"
  691. hit2.Volume = 0
  692. hit3 = Instance.new("Sound", clone.Torso)
  693. hit3.SoundId = "rbxassetid://278062209"
  694. hit3.Volume = 0
  695. hit3.TimePosition = 0.33
  696. ded = Instance.new("Sound", clone.Torso)
  697. ded.SoundId = "rbxassetid://418892870"
  698. ded.Volume = 0
  699. local leftarm = clone:findFirstChild("Left Arm")
  700. local rightrm = clone:findFirstChild("Right Arm")
  701. local leftleg = clone:findFirstChild("Left Leg")
  702. local rightleg = clone:findFirstChild("Right Leg")
  703. local head = clone:findFirstChild("Head")
  704. for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  705. if g.ClassName == "Part" then
  706. g:destroy()
  707. end
  708. end
  709. for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  710. if h.ClassName == "Accesory" then
  711. h:destroy()
  712. end
  713. end
  714. game.Workspace.CurrentCamera.CameraSubject = head
  715. if head then
  716. local attachment = Instance.new("Attachment", clone.Head)
  717. attachment.Position = Vector3.new(0, -0.5, 0)
  718. attachment.Name = "lol"
  719. attachment.Visible = false
  720. clone.Torso.NeckAttachment.Visible = false
  721. clone.Torso.NeckAttachment.Position = clone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  722. local ball = Instance.new("BallSocketConstraint", clone)
  723. ball.Attachment0 = clone.Torso.NeckAttachment
  724. ball.Attachment1 = attachment
  725. ball.LimitsEnabled = true
  726. ball.TwistLimitsEnabled = true
  727. ball.UpperAngle = 90
  728. ball.Restitution = 0.5
  729. ball.TwistUpperAngle = 90
  730. ball.TwistLowerAngle = -90
  731. local collidepartofleftleg = Instance.new("Part", clone.Torso)
  732. collidepartofleftleg.Name = "Bone"
  733. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  734. collidepartofleftleg.Transparency = 1
  735. collidepartofleftleg:BreakJoints()
  736. local weeld = Instance.new("Weld", collidepartofleftleg)
  737. weeld.Part0 = collidepartofleftleg
  738. weeld.Part1 = clone["Head"]
  739. end
  740. if leftleg ~= nil then
  741. local glue = Instance.new("Glue", clone.Torso)
  742. glue.Part0 = clone.Torso
  743. glue.Part1 = leftleg
  744. glue.Name = "Left leg"
  745. local collider = Instance.new("Part", leftleg)
  746. collider.Position = Vector3.new(0,999,0)
  747. collider.Size = Vector3.new(1.5, 1, 1)
  748. collider.Shape = "Cylinder"
  749. local weld = Instance.new("Weld", collider)
  750. weld.Part0 = leftleg
  751. weld.Part1 = collider
  752. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  753. collider.TopSurface = "Smooth"
  754. collider.BottomSurface = "Smooth"
  755. collider.formFactor = "Symmetric"
  756. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  757. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  758. collider.Transparency = 1
  759. end
  760. ------------
  761. if rightleg ~= nil then
  762. local glue1 = Instance.new("Glue", clone.Torso)
  763. glue1.Part0 = clone.Torso
  764. glue1.Part1 = rightleg
  765. glue1.Name = "Right leg"
  766. local collider1 = Instance.new("Part", rightleg)
  767. collider1.Position = Vector3.new(0,999,0)
  768. collider1.Size = Vector3.new(1.5, 1, 1)
  769. collider1.Shape = "Cylinder"
  770. local weld1 = Instance.new("Weld", collider1)
  771. weld1.Part0 = rightleg
  772. weld1.Part1 = collider1
  773. weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  774. collider1.TopSurface = "Smooth"
  775. collider1.BottomSurface = "Smooth"
  776. collider1.formFactor = "Symmetric"
  777. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  778. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  779. collider1.Transparency = 1
  780. end
  781. ------------
  782. if rightrm ~= nil then
  783. local glue11 = Instance.new("Glue", clone.Torso)
  784. glue11.Part0 = clone.Torso
  785. glue11.Part1 = rightrm
  786. glue11.Name = "Right shoulder"
  787. local collider11 = Instance.new("Part", rightrm)
  788. collider11.Position = Vector3.new(0,9999,0)
  789. collider11.Size = Vector3.new(1.5,1,1)
  790. collider11.Shape = "Cylinder"
  791. local weld11 = Instance.new("Weld", collider11)
  792. weld11.Part0 = rightrm
  793. weld11.Part1 = collider11
  794. weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  795. collider11.TopSurface = "Smooth"
  796. collider11.BottomSurface = "Smooth"
  797. collider11.formFactor = "Symmetric"
  798. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  799. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  800. collider11.Transparency = 1
  801. end
  802. ------------
  803. if leftarm ~= nil then
  804. local glue111 = Instance.new("Glue", clone.Torso)
  805. glue111.Part0 = clone.Torso
  806. glue111.Part1 = leftarm
  807. glue111.Name = "Left shoulder"
  808. local collider111 = Instance.new("Part", leftarm)
  809. collider111.Position = Vector3.new(0,9999,0)
  810. collider111.Size = Vector3.new(1.5,1,1)
  811. collider111.Shape = "Cylinder"
  812. local weld111 = Instance.new("Weld", collider111)
  813. weld111.Part0 = leftarm
  814. weld111.Part1 = collider111
  815. weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  816. collider111.TopSurface = "Smooth"
  817. collider111.BottomSurface = "Smooth"
  818. collider111.formFactor = "Symmetric"
  819. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  820. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  821. collider111.Transparency = 1
  822. ----------------
  823. sensoring = Instance.new("Part", clone.Torso)
  824. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  825. sensoring.CanCollide = false
  826. sensoring.Position = clone.Torso.Position
  827. local welder = Instance.new("Weld", sensoring)
  828. welder.Part0 = clone.Torso
  829. welder.Part1 = sensoring
  830. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  831. sensoring.Transparency = 1
  832. -----------------
  833. sensoring1 = Instance.new("Part", clone.Torso)
  834. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  835. sensoring1.CanCollide = false
  836. sensoring1.Position = clone.Torso.Position
  837. local welder1 = Instance.new("Weld", sensoring)
  838. welder1.Part0 = clone.Torso
  839. welder1.Part1 = sensoring1
  840. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  841. sensoring1.Transparency = 1
  842. end
  843. clone.Name = game.Players.LocalPlayer.Character.Name.." (Sniper hit the deck)"
  844. ded:Play()
  845. vel:destroy()
  846. wait(0.5)
  847. local function touch()
  848. if not using then
  849. using = true
  850. local Math = math.random(1,4)
  851. if Math == 1 then
  852. hit:Play()
  853. end
  854. if Math == 2 then
  855. hit1:Play()
  856. end
  857. if Math == 3 then
  858. hit2:Play()
  859. end
  860. if Math == 4 then
  861. hit3:Play()
  862. end
  863. wait(0.1)
  864. using = false
  865. end
  866. end
  867. sensoring.Touched:connect(touch)
  868. sensoring1.Touched:connect(touch)
  869. while true do
  870. clone.Head.CanCollide = false
  871. game:GetService("RunService").Stepped:wait()
  872. end
  873. end
  874.  
  875. game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll)
  876.  
  877. --di ent
  878. Sound00:Play()
  879. game.Players.LocalPlayer.Character.Humanoid.Health = 0
  880. end
  881. end
  882. mouse.Button1Down:connect(shoot)
  883. mouse.KeyDown:connect(kys)
  884. function look()
  885. game.Players.LocalPlayer.Character.Torso.CFrame = CFrame.new(game.Players.LocalPlayer.Character.Torso.Position,Vector3.new(mouse.Hit.p.x, game.Players.LocalPlayer.Character.Torso.Position.y, mouse.Hit.p.z))
  886. end
  887. game:GetService("RunService").RenderStepped:connect(look)
  888. while true do
  889. if howmuch <= -1 then
  890. howmuch = 0
  891. end
  892. if howmuch >= 4 then
  893. howmuch = 0
  894. end
  895. if canwalk and howmuch < 1 then
  896. for i = 0,1 , 0.01 do
  897. if canwalk and howmuch < 1 then
  898. weldf.C0 = weldf.C0:lerp(CFrame.new(-0.0861244202, -1.04447937, -0.182327271, -0.105800174, 0.219419539, -0.969882667, 0.973032475, -0.178225949, -0.146464914, -0.204995126, -0.959215224, -0.194644511),i)
  899. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  900. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.48563504, -0.102214813, 1, 6.31088724e-30, -1.00974196e-28, -2.5243549e-29, 0.990270674, 0.139171436, -5.04870979e-29, -0.139171436, 0.990270674),i)
  901. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.606146812, -2.0409379, 0.23392868, 0.994522691, 0.104527831, 4.48272353e-09, -0.10395515, 0.989075184, 0.104526937, 0.0109259691, -0.103954434, 0.994521797),i)
  902. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.56223869, 0.00435209274, 0, 0.997564316, 0.0697554871, 0, -0.0697554871, 0.997564316, 0, 0, 2.5243549e-29, 1),i)
  903. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.589343071, -2.06024575, -0.139556885, 0.997564077, -0.0693742931, 0.0072911568, 0.0697562397, 0.992102206, -0.104268931, 1.75914945e-08, 0.104523741, 0.994524658),i)
  904. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.61233902, 0.0157878399, 0, 0.990270674, -0.139171436, 5.04870979e-29, 0.139171436, 0.990270674, 2.01948392e-28, 1.00974196e-28, 2.27191941e-28, 1),i)
  905. game:GetService("RunService").RenderStepped:wait()
  906. end
  907. end
  908. for i = 0,0.3 , 0.004 do
  909. if canwalk and howmuch < 1 then
  910. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  911. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5222218, -0.102214813, 1, 6.31088724e-30, -1.00974196e-28, -2.5243549e-29, 0.990270674, 0.139171436, -5.04870979e-29, -0.139171436, 0.990270674),i)
  912. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.606146812, -2.0409379, 0.23392868, 0.994522691, 0.104527831, 4.48272353e-09, -0.10395515, 0.989075184, 0.104526937, 0.0109259691, -0.103954434, 0.994521797),i)
  913. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.56223869, 0.0409388542, 0, 0.997564316, 0.0697554871, 0, -0.0697554871, 0.997564316, 0, 0, 2.5243549e-29, 1),i)
  914. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.589343071, -2.06024575, -0.139556885, 0.997564077, -0.0693742931, 0.0072911568, 0.0697562397, 0.992102206, -0.104268931, 1.75914945e-08, 0.104523741, 0.994524658),i)
  915. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.61233902, 0.0523746014, 0, 0.990270674, -0.139171436, 5.04870979e-29, 0.139171436, 0.990270674, 2.01948392e-28, 1.00974196e-28, 2.27191941e-28, 1),i)
  916. game:GetService("RunService").RenderStepped:wait()
  917. end
  918. end
  919. end
  920. if canwalk and howmuch >= 1 then
  921. if canwalk then
  922. for i = 0,0.5 , 0.05 do
  923. if canwalk and howmuch >= 1 then
  924. weldf.C0 = weldf.C0:lerp(CFrame.new(0.405254364, -0.770187378, -0.0317382813, 0.916420221, 0.388018847, -0.0981012359, 0.181092858, -0.183419436, 0.966214538, 0.356913, -0.90321666, -0.238354743),i)
  925. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 1, -4.22829445e-28, 5.04870979e-28, -4.7962743e-28, 0.98481518, -0.173646927, 4.54383881e-28, 0.173646927, 0.98481518),i)
  926. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, -0.0218505859, -0.207862854, 1, -2.65673535e-22, 5.23747954e-22, 1.5097504e-22, 0.978147745, 0.207910955, -5.67539301e-22, -0.207910955, 0.978147745),i)
  927. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.35635376, 0.984832764, 1, -1.46412584e-27, -1.17303617e-26, 1.15615454e-26, -0.0348859876, 0.999391198, -1.61558713e-27, -0.999391198, -0.0348859876),i)
  928. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.2262764, 0.145446777, -0.484161377, 0.788011551, -0.578533888, 0.210562602, 0.411958992, 0.241324201, -0.878665209, 0.457523763, 0.779141247, 0.428498387),i)
  929. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.81869507, -0.922622681, 1, -1.72713825e-22, -5.61306619e-22, -2.65673535e-22, 0.719345152, -0.694654465, 5.23747954e-22, 0.694656253, 0.719344676),i)
  930. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.39048004, 0.431030273, -0.798828125, 0.978150845, 0.207915336, -2.65673535e-22, -3.24998904e-22, 2.51171167e-22, -1, -0.207915336, 0.978150845, 3.13253081e-22),i)
  931. game:GetService("RunService").RenderStepped:wait()
  932. end
  933. end
  934. end
  935. if canwalk then
  936. for i = 0,0.5 , 0.05 do
  937. if canwalk and howmuch >= 1 then
  938. weldf.C0 = weldf.C0:lerp(CFrame.new(0.405254364, -0.770187378, -0.0317382813, 0.916420221, 0.388018847, -0.0981012359, 0.181092858, -0.183419436, 0.966214538, 0.356913, -0.90321666, -0.238354743),i)
  939. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 1, -4.22829445e-28, 5.04870979e-28, -4.7962743e-28, 0.98481518, -0.173646927, 4.54383881e-28, 0.173646927, 0.98481518),i)
  940. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, -0.0218505859, -0.00492095947, 1, -2.65673535e-22, 5.23747954e-22, 1.5097504e-22, 0.978147686, 0.20791094, -5.67539301e-22, -0.20791094, 0.978147686),i)
  941. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.86941528, -0.882217407, 1, -6.4421537e-26, 9.04728795e-26, 1.09784194e-25, 0.694650829, -0.71934706, -1.64587939e-26, 0.71934706, 0.694650829),i)
  942. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.2262764, 0.145446777, -0.484161377, 0.788011551, -0.578533888, 0.210562602, 0.411958992, 0.241324201, -0.878665209, 0.457523763, 0.779141247, 0.428498387),i)
  943. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.35365295, 1.16508484, 1, 5.03939593e-22, 3.01560673e-22, -2.65673358e-22, -0.0697558299, 0.997564077, 5.237476e-22, -0.997564077, -0.0697558299),i)
  944. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.39048004, 0.431030273, -0.798828125, 0.978150845, 0.207915336, -2.65673535e-22, -3.24998904e-22, 2.51171167e-22, -1, -0.207915336, 0.978150845, 3.13253081e-22),i)
  945. game:GetService("RunService").RenderStepped:wait()
  946. end
  947. end
  948. end
  949. end
  950. game:GetService("RunService").RenderStepped:wait()
  951. end
Add Comment
Please, Sign In to add comment