H20_HYDRATION_V2

School shooter edit lol

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