KrYn0MoRe

pvp map 2

May 5th, 2020
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 290.51 KB | None | 0 0
  1. Model0 = Instance.new("Model")
  2. Part1 = Instance.new("Part")
  3. Part2 = Instance.new("Part")
  4. Part3 = Instance.new("Part")
  5. Part4 = Instance.new("Part")
  6. Part5 = Instance.new("Part")
  7. Part6 = Instance.new("Part")
  8. Part7 = Instance.new("Part")
  9. Part8 = Instance.new("Part")
  10. Part9 = Instance.new("Part")
  11. Model10 = Instance.new("Model")
  12. Model11 = Instance.new("Model")
  13. Part12 = Instance.new("Part")
  14. ParticleEmitter13 = Instance.new("ParticleEmitter")
  15. ParticleEmitter14 = Instance.new("ParticleEmitter")
  16. ParticleEmitter15 = Instance.new("ParticleEmitter")
  17. UnionOperation16 = Instance.new("UnionOperation")
  18. UnionOperation17 = Instance.new("UnionOperation")
  19. UnionOperation18 = Instance.new("UnionOperation")
  20. Part19 = Instance.new("Part")
  21. PointLight20 = Instance.new("PointLight")
  22. PointLight21 = Instance.new("PointLight")
  23. Part22 = Instance.new("Part")
  24. Part23 = Instance.new("Part")
  25. Part24 = Instance.new("Part")
  26. Part25 = Instance.new("Part")
  27. Part26 = Instance.new("Part")
  28. Part27 = Instance.new("Part")
  29. Part28 = Instance.new("Part")
  30. Part29 = Instance.new("Part")
  31. Part30 = Instance.new("Part")
  32. Part31 = Instance.new("Part")
  33. Part32 = Instance.new("Part")
  34. Part33 = Instance.new("Part")
  35. WedgePart34 = Instance.new("WedgePart")
  36. WedgePart35 = Instance.new("WedgePart")
  37. Part36 = Instance.new("Part")
  38. WedgePart37 = Instance.new("WedgePart")
  39. Model38 = Instance.new("Model")
  40. Model39 = Instance.new("Model")
  41. Part40 = Instance.new("Part")
  42. ParticleEmitter41 = Instance.new("ParticleEmitter")
  43. ParticleEmitter42 = Instance.new("ParticleEmitter")
  44. ParticleEmitter43 = Instance.new("ParticleEmitter")
  45. UnionOperation44 = Instance.new("UnionOperation")
  46. UnionOperation45 = Instance.new("UnionOperation")
  47. UnionOperation46 = Instance.new("UnionOperation")
  48. Part47 = Instance.new("Part")
  49. PointLight48 = Instance.new("PointLight")
  50. PointLight49 = Instance.new("PointLight")
  51. Part50 = Instance.new("Part")
  52. Part51 = Instance.new("Part")
  53. Part52 = Instance.new("Part")
  54. Part53 = Instance.new("Part")
  55. WedgePart54 = Instance.new("WedgePart")
  56. WedgePart55 = Instance.new("WedgePart")
  57. Part56 = Instance.new("Part")
  58. Part57 = Instance.new("Part")
  59. WedgePart58 = Instance.new("WedgePart")
  60. Part59 = Instance.new("Part")
  61. Part60 = Instance.new("Part")
  62. Part61 = Instance.new("Part")
  63. WedgePart62 = Instance.new("WedgePart")
  64. Part63 = Instance.new("Part")
  65. Part64 = Instance.new("Part")
  66. Part65 = Instance.new("Part")
  67. Model66 = Instance.new("Model")
  68. Part67 = Instance.new("Part")
  69. Part68 = Instance.new("Part")
  70. Part69 = Instance.new("Part")
  71. Part70 = Instance.new("Part")
  72. Part71 = Instance.new("Part")
  73. Part72 = Instance.new("Part")
  74. Part73 = Instance.new("Part")
  75. Part74 = Instance.new("Part")
  76. Part75 = Instance.new("Part")
  77. Part76 = Instance.new("Part")
  78. SurfaceGui77 = Instance.new("SurfaceGui")
  79. TextBox78 = Instance.new("TextBox")
  80. ClickDetector79 = Instance.new("ClickDetector")
  81. Part80 = Instance.new("Part")
  82. SurfaceGui81 = Instance.new("SurfaceGui")
  83. TextBox82 = Instance.new("TextBox")
  84. ClickDetector83 = Instance.new("ClickDetector")
  85. Model0.Name = "pvp map"
  86. Model0.Parent = script
  87. Part1.Parent = Model0
  88. Part1.CFrame = CFrame.new(-27, 14.5, 51.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  89. Part1.Position = Vector3.new(-27, 14.5, 51.5)
  90. Part1.Size = Vector3.new(84, 29, 1)
  91. Part1.Anchored = true
  92. Part1.BottomSurface = Enum.SurfaceType.Smooth
  93. Part1.Locked = true
  94. Part1.Material = Enum.Material.DiamondPlate
  95. Part1.TopSurface = Enum.SurfaceType.Smooth
  96. Part2.Parent = Model0
  97. Part2.CFrame = CFrame.new(30, 0.5, 151, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  98. Part2.Position = Vector3.new(30, 0.5, 151)
  99. Part2.Color = Color3.new(0.156863, 0.498039, 0.278431)
  100. Part2.Size = Vector3.new(198, 1, 198)
  101. Part2.Anchored = true
  102. Part2.BottomSurface = Enum.SurfaceType.Smooth
  103. Part2.BrickColor = BrickColor.new("Dark green")
  104. Part2.Locked = true
  105. Part2.Material = Enum.Material.Grass
  106. Part2.TopSurface = Enum.SurfaceType.Smooth
  107. Part2.brickColor = BrickColor.new("Dark green")
  108. Part3.Parent = Model0
  109. Part3.CFrame = CFrame.new(-15, 14, 109, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  110. Part3.Position = Vector3.new(-15, 14, 109)
  111. Part3.Color = Color3.new(0.411765, 0.25098, 0.156863)
  112. Part3.Size = Vector3.new(2, 4, 10)
  113. Part3.Anchored = true
  114. Part3.BottomSurface = Enum.SurfaceType.Smooth
  115. Part3.BrickColor = BrickColor.new("Reddish brown")
  116. Part3.Locked = true
  117. Part3.Material = Enum.Material.WoodPlanks
  118. Part3.TopSurface = Enum.SurfaceType.Smooth
  119. Part3.brickColor = BrickColor.new("Reddish brown")
  120. Part4.Parent = Model0
  121. Part4.CFrame = CFrame.new(-15, 8.5, 101.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  122. Part4.Position = Vector3.new(-15, 8.5, 101.5)
  123. Part4.Color = Color3.new(0.411765, 0.25098, 0.156863)
  124. Part4.Size = Vector3.new(2, 15, 5)
  125. Part4.Anchored = true
  126. Part4.BottomSurface = Enum.SurfaceType.Smooth
  127. Part4.BrickColor = BrickColor.new("Reddish brown")
  128. Part4.Locked = true
  129. Part4.Material = Enum.Material.WoodPlanks
  130. Part4.TopSurface = Enum.SurfaceType.Smooth
  131. Part4.brickColor = BrickColor.new("Reddish brown")
  132. Part5.Parent = Model0
  133. Part5.CFrame = CFrame.new(-15, 8, 109, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  134. Part5.Position = Vector3.new(-15, 8, 109)
  135. Part5.Color = Color3.new(0, 1, 1)
  136. Part5.Transparency = 0.60000002384186
  137. Part5.Size = Vector3.new(2, 8, 10)
  138. Part5.Anchored = true
  139. Part5.BottomSurface = Enum.SurfaceType.Smooth
  140. Part5.BrickColor = BrickColor.new("Toothpaste")
  141. Part5.Locked = true
  142. Part5.Material = Enum.Material.Glass
  143. Part5.Reflectance = 1
  144. Part5.TopSurface = Enum.SurfaceType.Smooth
  145. Part5.brickColor = BrickColor.new("Toothpaste")
  146. Part6.Parent = Model0
  147. Part6.CFrame = CFrame.new(-15, 2.5, 109, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  148. Part6.Position = Vector3.new(-15, 2.5, 109)
  149. Part6.Color = Color3.new(0.411765, 0.25098, 0.156863)
  150. Part6.Size = Vector3.new(2, 3, 10)
  151. Part6.Anchored = true
  152. Part6.BottomSurface = Enum.SurfaceType.Smooth
  153. Part6.BrickColor = BrickColor.new("Reddish brown")
  154. Part6.Locked = true
  155. Part6.Material = Enum.Material.WoodPlanks
  156. Part6.TopSurface = Enum.SurfaceType.Smooth
  157. Part6.brickColor = BrickColor.new("Reddish brown")
  158. Part7.Parent = Model0
  159. Part7.CFrame = CFrame.new(-15, 8.5, 116, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  160. Part7.Position = Vector3.new(-15, 8.5, 116)
  161. Part7.Color = Color3.new(0.411765, 0.25098, 0.156863)
  162. Part7.Size = Vector3.new(2, 15, 4)
  163. Part7.Anchored = true
  164. Part7.BottomSurface = Enum.SurfaceType.Smooth
  165. Part7.BrickColor = BrickColor.new("Reddish brown")
  166. Part7.Locked = true
  167. Part7.Material = Enum.Material.WoodPlanks
  168. Part7.TopSurface = Enum.SurfaceType.Smooth
  169. Part7.brickColor = BrickColor.new("Reddish brown")
  170. Part8.Parent = Model0
  171. Part8.CFrame = CFrame.new(-11, 7.5, 76, 0, 0, 1, -1, 0, 0, 0, -1, 0)
  172. Part8.Orientation = Vector3.new(0, 90, -90)
  173. Part8.Position = Vector3.new(-11, 7.5, 76)
  174. Part8.Rotation = Vector3.new(-90, 90, 0)
  175. Part8.Color = Color3.new(0.356863, 0.364706, 0.411765)
  176. Part8.Size = Vector3.new(13, 12, 12)
  177. Part8.Anchored = true
  178. Part8.BottomSurface = Enum.SurfaceType.Smooth
  179. Part8.BrickColor = BrickColor.new("Smoky grey")
  180. Part8.Locked = true
  181. Part8.Material = Enum.Material.Marble
  182. Part8.TopSurface = Enum.SurfaceType.Smooth
  183. Part8.brickColor = BrickColor.new("Smoky grey")
  184. Part8.Shape = Enum.PartType.Cylinder
  185. Part9.Parent = Model0
  186. Part9.CFrame = CFrame.new(43, 7.5, 126, 0, 0, 1, -1, 0, 0, 0, -1, 0)
  187. Part9.Orientation = Vector3.new(0, 90, -90)
  188. Part9.Position = Vector3.new(43, 7.5, 126)
  189. Part9.Rotation = Vector3.new(-90, 90, 0)
  190. Part9.Color = Color3.new(0.356863, 0.364706, 0.411765)
  191. Part9.Size = Vector3.new(13, 12, 12)
  192. Part9.Anchored = true
  193. Part9.BottomSurface = Enum.SurfaceType.Smooth
  194. Part9.BrickColor = BrickColor.new("Smoky grey")
  195. Part9.Locked = true
  196. Part9.Material = Enum.Material.Marble
  197. Part9.TopSurface = Enum.SurfaceType.Smooth
  198. Part9.brickColor = BrickColor.new("Smoky grey")
  199. Part9.Shape = Enum.PartType.Cylinder
  200. Model10.Name = "WallTorch"
  201. Model10.Parent = Model0
  202. Model11.Name = "Torch"
  203. Model11.Parent = Model10
  204. Part12.Name = "Effects"
  205. Part12.Parent = Model11
  206. Part12.CFrame = CFrame.new(-53.5426407, 7.71180916, 138.235062, 0.965925217, 0.258821428, 1.73094108e-11, -0.258821428, 0.965925276, 1.84496562e-09, 4.60797012e-10, -1.78657877e-09, 1)
  207. Part12.Orientation = Vector3.new(0, 0, -15)
  208. Part12.Position = Vector3.new(-53.5426407, 7.71180916, 138.235062)
  209. Part12.Rotation = Vector3.new(0, 0, -15)
  210. Part12.Transparency = 1
  211. Part12.Size = Vector3.new(0.300000012, 0.400000006, 0.300000012)
  212. Part12.Anchored = true
  213. Part12.BottomSurface = Enum.SurfaceType.Smooth
  214. Part12.TopSurface = Enum.SurfaceType.Smooth
  215. Part12.FormFactor = Enum.FormFactor.Custom
  216. Part12.formFactor = Enum.FormFactor.Custom
  217. ParticleEmitter13.Name = "Fire"
  218. ParticleEmitter13.Parent = Part12
  219. ParticleEmitter13.Speed = NumberRange.new(0.25, 0.25)
  220. ParticleEmitter13.Rotation = NumberRange.new(-20, 20)
  221. ParticleEmitter13.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
  222. ParticleEmitter13.LightEmission = 0.5
  223. ParticleEmitter13.Texture = "http://www.roblox.com/asset/?id=242102147"
  224. ParticleEmitter13.Transparency = NumberSequence.new(1,0.43124997615814,0.33125001192093,0.3125,1,1)
  225. ParticleEmitter13.ZOffset = 0.5
  226. ParticleEmitter13.Size = NumberSequence.new(0.43749988079071,0)
  227. ParticleEmitter13.Acceleration = Vector3.new(0, 5, 0)
  228. ParticleEmitter13.Lifetime = NumberRange.new(0.75, 0.85000002384186)
  229. ParticleEmitter13.Rate = 75
  230. ParticleEmitter13.RotSpeed = NumberRange.new(-10, 10)
  231. ParticleEmitter13.SpreadAngle = Vector2.new(25, 25)
  232. ParticleEmitter13.VelocitySpread = 25
  233. ParticleEmitter14.Name = "Glow"
  234. ParticleEmitter14.Parent = Part12
  235. ParticleEmitter14.Speed = NumberRange.new(3, 3)
  236. ParticleEmitter14.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
  237. ParticleEmitter14.LightEmission = 1
  238. ParticleEmitter14.Texture = "http://www.roblox.com/asset/?id=241923041"
  239. ParticleEmitter14.Transparency = NumberSequence.new(1,0.96249997615814,1,1)
  240. ParticleEmitter14.ZOffset = 0.5
  241. ParticleEmitter14.Size = NumberSequence.new(2.8749995231628,0)
  242. ParticleEmitter14.Acceleration = Vector3.new(0, 10, 0)
  243. ParticleEmitter14.Lifetime = NumberRange.new(0.25, 0.5)
  244. ParticleEmitter14.Rate = 35
  245. ParticleEmitter14.SpreadAngle = Vector2.new(45, 45)
  246. ParticleEmitter14.VelocitySpread = 45
  247. ParticleEmitter15.Name = "Smoke"
  248. ParticleEmitter15.Parent = Part12
  249. ParticleEmitter15.Speed = NumberRange.new(1, 1)
  250. ParticleEmitter15.Rotation = NumberRange.new(-180, 180)
  251. ParticleEmitter15.Color = ColorSequence.new(Color3.new(0.541176, 0.419608, 0.227451),Color3.new(0.152941, 0.152941, 0.152941))
  252. ParticleEmitter15.LightEmission = 0.25
  253. ParticleEmitter15.Texture = "http://www.roblox.com/asset/?id=241922778"
  254. ParticleEmitter15.Transparency = NumberSequence.new(1,0,0,1)
  255. ParticleEmitter15.Size = NumberSequence.new(0.56249976158142,2.0625)
  256. ParticleEmitter15.Acceleration = Vector3.new(0, 5, 0)
  257. ParticleEmitter15.Lifetime = NumberRange.new(1, 1.5)
  258. ParticleEmitter15.Rate = 10
  259. ParticleEmitter15.RotSpeed = NumberRange.new(-90, 90)
  260. ParticleEmitter15.SpreadAngle = Vector2.new(25, 25)
  261. ParticleEmitter15.VelocitySpread = 25
  262. UnionOperation16.Name = "Holder"
  263. UnionOperation16.Parent = Model11
  264. UnionOperation16.CFrame = CFrame.new(-54.0720596, 6.52022314, 138.23497, 0.965925217, 0.258821458, 1.82674409e-08, -0.258821458, 0.965925217, 1.23815802e-08, -1.44403618e-08, -1.66876859e-08, 1)
  265. UnionOperation16.Orientation = Vector3.new(0, 0, -15)
  266. UnionOperation16.Position = Vector3.new(-54.0720596, 6.52022314, 138.23497)
  267. UnionOperation16.Rotation = Vector3.new(0, 0, -15)
  268. UnionOperation16.Color = Color3.new(0.105882, 0.164706, 0.207843)
  269. UnionOperation16.Size = Vector3.new(0.823072314, 0.441888571, 0.376728863)
  270. UnionOperation16.Anchored = true
  271. UnionOperation16.BrickColor = BrickColor.new("Black")
  272. UnionOperation16.Material = Enum.Material.Metal
  273. UnionOperation16.brickColor = BrickColor.new("Black")
  274. UnionOperation16.UsePartColor = true
  275. UnionOperation17.Name = "Handle"
  276. UnionOperation17.Parent = Model11
  277. UnionOperation17.CFrame = CFrame.new(-53.853157, 6.55270195, 138.235031, 0.965925217, 0.258821428, 1.73094108e-11, -0.258821428, 0.965925276, 1.84496562e-09, 4.60797012e-10, -1.78657877e-09, 1)
  278. UnionOperation17.Orientation = Vector3.new(0, 0, -15)
  279. UnionOperation17.Position = Vector3.new(-53.853157, 6.55270195, 138.235031)
  280. UnionOperation17.Rotation = Vector3.new(0, 0, -15)
  281. UnionOperation17.Color = Color3.new(0.411765, 0.25098, 0.156863)
  282. UnionOperation17.Size = Vector3.new(0.525000036, 3, 0.525000036)
  283. UnionOperation17.Anchored = true
  284. UnionOperation17.BrickColor = BrickColor.new("Reddish brown")
  285. UnionOperation17.Material = Enum.Material.Wood
  286. UnionOperation17.brickColor = BrickColor.new("Reddish brown")
  287. UnionOperation18.Name = "End"
  288. UnionOperation18.Parent = Model11
  289. UnionOperation18.CFrame = CFrame.new(-53.5911942, 7.53066397, 138.235062, 0.965925217, 0.258821428, 1.73094108e-11, -0.258821428, 0.965925276, 1.84496562e-09, 4.60797012e-10, -1.78657877e-09, 1)
  290. UnionOperation18.Orientation = Vector3.new(0, 0, -15)
  291. UnionOperation18.Position = Vector3.new(-53.5911942, 7.53066397, 138.235062)
  292. UnionOperation18.Rotation = Vector3.new(0, 0, -15)
  293. UnionOperation18.Color = Color3.new(0.843137, 0.772549, 0.603922)
  294. UnionOperation18.Size = Vector3.new(0.600000143, 0.750000119, 0.600000024)
  295. UnionOperation18.Anchored = true
  296. UnionOperation18.BrickColor = BrickColor.new("Brick yellow")
  297. UnionOperation18.Material = Enum.Material.Grass
  298. UnionOperation18.brickColor = BrickColor.new("Brick yellow")
  299. Part19.Parent = Model10
  300. Part19.CFrame = CFrame.new(-53.4732437, 6.50000191, 138.235062, 1, 2.13164962e-13, -5.96861861e-13, -2.13164962e-13, 1, -2.5024028e-12, 5.96861861e-13, 2.5024028e-12, 1)
  301. Part19.Position = Vector3.new(-53.4732437, 6.50000191, 138.235062)
  302. Part19.Transparency = 1
  303. Part19.Size = Vector3.new(2, 3, 2)
  304. Part19.Anchored = true
  305. Part19.CanCollide = false
  306. Part19.FormFactor = Enum.FormFactor.Symmetric
  307. Part19.formFactor = Enum.FormFactor.Symmetric
  308. PointLight20.Name = "NearLight"
  309. PointLight20.Parent = Part19
  310. PointLight20.Color = Color3.new(1, 0.756863, 0.360784)
  311. PointLight20.Range = 12
  312. PointLight20.Brightness = 0.5
  313. PointLight20.Shadows = true
  314. PointLight21.Name = "FarLight"
  315. PointLight21.Parent = Part19
  316. PointLight21.Color = Color3.new(1, 0.756863, 0.360784)
  317. PointLight21.Range = 32
  318. PointLight21.Brightness = 0.25
  319. PointLight21.Shadows = true
  320. Part22.Parent = Model0
  321. Part22.CFrame = CFrame.new(-55.5, 8.5, 123, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  322. Part22.Position = Vector3.new(-55.5, 8.5, 123)
  323. Part22.Color = Color3.new(0.411765, 0.25098, 0.156863)
  324. Part22.Size = Vector3.new(1, 15, 46)
  325. Part22.Anchored = true
  326. Part22.BottomSurface = Enum.SurfaceType.Smooth
  327. Part22.BrickColor = BrickColor.new("Reddish brown")
  328. Part22.Locked = true
  329. Part22.Material = Enum.Material.WoodPlanks
  330. Part22.TopSurface = Enum.SurfaceType.Smooth
  331. Part22.brickColor = BrickColor.new("Reddish brown")
  332. Part23.Parent = Model0
  333. Part23.CFrame = CFrame.new(-36.5, 14, 99.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  334. Part23.Position = Vector3.new(-36.5, 14, 99.5)
  335. Part23.Color = Color3.new(0.411765, 0.25098, 0.156863)
  336. Part23.Size = Vector3.new(11, 4, 1)
  337. Part23.Anchored = true
  338. Part23.BottomSurface = Enum.SurfaceType.Smooth
  339. Part23.BrickColor = BrickColor.new("Reddish brown")
  340. Part23.Locked = true
  341. Part23.Material = Enum.Material.WoodPlanks
  342. Part23.TopSurface = Enum.SurfaceType.Smooth
  343. Part23.brickColor = BrickColor.new("Reddish brown")
  344. Part24.Parent = Model0
  345. Part24.CFrame = CFrame.new(-23.5, 8.5, 145.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  346. Part24.Position = Vector3.new(-23.5, 8.5, 145.5)
  347. Part24.Color = Color3.new(0.411765, 0.25098, 0.156863)
  348. Part24.Size = Vector3.new(15, 15, 1)
  349. Part24.Anchored = true
  350. Part24.BottomSurface = Enum.SurfaceType.Smooth
  351. Part24.BrickColor = BrickColor.new("Reddish brown")
  352. Part24.Locked = true
  353. Part24.Material = Enum.Material.WoodPlanks
  354. Part24.TopSurface = Enum.SurfaceType.Smooth
  355. Part24.brickColor = BrickColor.new("Reddish brown")
  356. Part25.Parent = Model0
  357. Part25.CFrame = CFrame.new(-36.5, 2.5, 145.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  358. Part25.Position = Vector3.new(-36.5, 2.5, 145.5)
  359. Part25.Color = Color3.new(0.411765, 0.25098, 0.156863)
  360. Part25.Size = Vector3.new(11, 3, 1)
  361. Part25.Anchored = true
  362. Part25.BottomSurface = Enum.SurfaceType.Smooth
  363. Part25.BrickColor = BrickColor.new("Reddish brown")
  364. Part25.Locked = true
  365. Part25.Material = Enum.Material.WoodPlanks
  366. Part25.TopSurface = Enum.SurfaceType.Smooth
  367. Part25.brickColor = BrickColor.new("Reddish brown")
  368. Part26.Parent = Model0
  369. Part26.CFrame = CFrame.new(-48.5, 8.5, 145.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  370. Part26.Position = Vector3.new(-48.5, 8.5, 145.5)
  371. Part26.Color = Color3.new(0.411765, 0.25098, 0.156863)
  372. Part26.Size = Vector3.new(13, 15, 1)
  373. Part26.Anchored = true
  374. Part26.BottomSurface = Enum.SurfaceType.Smooth
  375. Part26.BrickColor = BrickColor.new("Reddish brown")
  376. Part26.Locked = true
  377. Part26.Material = Enum.Material.WoodPlanks
  378. Part26.TopSurface = Enum.SurfaceType.Smooth
  379. Part26.brickColor = BrickColor.new("Reddish brown")
  380. Part27.Parent = Model0
  381. Part27.CFrame = CFrame.new(-36.5, 14, 145.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  382. Part27.Position = Vector3.new(-36.5, 14, 145.5)
  383. Part27.Color = Color3.new(0.411765, 0.25098, 0.156863)
  384. Part27.Size = Vector3.new(11, 4, 1)
  385. Part27.Anchored = true
  386. Part27.BottomSurface = Enum.SurfaceType.Smooth
  387. Part27.BrickColor = BrickColor.new("Reddish brown")
  388. Part27.Locked = true
  389. Part27.Material = Enum.Material.WoodPlanks
  390. Part27.TopSurface = Enum.SurfaceType.Smooth
  391. Part27.brickColor = BrickColor.new("Reddish brown")
  392. Part28.Parent = Model0
  393. Part28.CFrame = CFrame.new(-36.5, 8, 145.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  394. Part28.Position = Vector3.new(-36.5, 8, 145.5)
  395. Part28.Color = Color3.new(0, 1, 1)
  396. Part28.Transparency = 0.60000002384186
  397. Part28.Size = Vector3.new(11, 8, 1)
  398. Part28.Anchored = true
  399. Part28.BottomSurface = Enum.SurfaceType.Smooth
  400. Part28.BrickColor = BrickColor.new("Toothpaste")
  401. Part28.Locked = true
  402. Part28.Material = Enum.Material.Glass
  403. Part28.Reflectance = 1
  404. Part28.TopSurface = Enum.SurfaceType.Smooth
  405. Part28.brickColor = BrickColor.new("Toothpaste")
  406. Part29.Parent = Model0
  407. Part29.CFrame = CFrame.new(104, 7.5, 122, 0, 0, 1, -1, 0, 0, 0, -1, 0)
  408. Part29.Orientation = Vector3.new(0, 90, -90)
  409. Part29.Position = Vector3.new(104, 7.5, 122)
  410. Part29.Rotation = Vector3.new(-90, 90, 0)
  411. Part29.Color = Color3.new(0.356863, 0.364706, 0.411765)
  412. Part29.Size = Vector3.new(13, 12, 12)
  413. Part29.Anchored = true
  414. Part29.BottomSurface = Enum.SurfaceType.Smooth
  415. Part29.BrickColor = BrickColor.new("Smoky grey")
  416. Part29.Locked = true
  417. Part29.Material = Enum.Material.Marble
  418. Part29.TopSurface = Enum.SurfaceType.Smooth
  419. Part29.brickColor = BrickColor.new("Smoky grey")
  420. Part29.Shape = Enum.PartType.Cylinder
  421. Part30.Parent = Model0
  422. Part30.CFrame = CFrame.new(-9, 7.5, 191, 0, 0, 1, -1, 0, 0, 0, -1, 0)
  423. Part30.Orientation = Vector3.new(0, 90, -90)
  424. Part30.Position = Vector3.new(-9, 7.5, 191)
  425. Part30.Rotation = Vector3.new(-90, 90, 0)
  426. Part30.Color = Color3.new(0.356863, 0.364706, 0.411765)
  427. Part30.Size = Vector3.new(13, 12, 12)
  428. Part30.Anchored = true
  429. Part30.BottomSurface = Enum.SurfaceType.Smooth
  430. Part30.BrickColor = BrickColor.new("Smoky grey")
  431. Part30.Locked = true
  432. Part30.Material = Enum.Material.Marble
  433. Part30.TopSurface = Enum.SurfaceType.Smooth
  434. Part30.brickColor = BrickColor.new("Smoky grey")
  435. Part30.Shape = Enum.PartType.Cylinder
  436. Part31.Parent = Model0
  437. Part31.CFrame = CFrame.new(87, 14.5, 51.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  438. Part31.Position = Vector3.new(87, 14.5, 51.5)
  439. Part31.Size = Vector3.new(84, 29, 1)
  440. Part31.Anchored = true
  441. Part31.BottomSurface = Enum.SurfaceType.Smooth
  442. Part31.Locked = true
  443. Part31.Material = Enum.Material.DiamondPlate
  444. Part31.TopSurface = Enum.SurfaceType.Smooth
  445. Part32.Parent = Model0
  446. Part32.CFrame = CFrame.new(-49, 8.5, 99.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  447. Part32.Position = Vector3.new(-49, 8.5, 99.5)
  448. Part32.Color = Color3.new(0.411765, 0.25098, 0.156863)
  449. Part32.Size = Vector3.new(14, 15, 1)
  450. Part32.Anchored = true
  451. Part32.BottomSurface = Enum.SurfaceType.Smooth
  452. Part32.BrickColor = BrickColor.new("Reddish brown")
  453. Part32.Locked = true
  454. Part32.Material = Enum.Material.WoodPlanks
  455. Part32.TopSurface = Enum.SurfaceType.Smooth
  456. Part32.brickColor = BrickColor.new("Reddish brown")
  457. Part33.Parent = Model0
  458. Part33.CFrame = CFrame.new(-35, 16.5, 122.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  459. Part33.Position = Vector3.new(-35, 16.5, 122.5)
  460. Part33.Color = Color3.new(0.411765, 0.25098, 0.156863)
  461. Part33.Size = Vector3.new(42, 1, 47)
  462. Part33.Anchored = true
  463. Part33.BottomSurface = Enum.SurfaceType.Smooth
  464. Part33.BrickColor = BrickColor.new("Reddish brown")
  465. Part33.Locked = true
  466. Part33.Material = Enum.Material.WoodPlanks
  467. Part33.TopSurface = Enum.SurfaceType.Smooth
  468. Part33.brickColor = BrickColor.new("Reddish brown")
  469. WedgePart34.Parent = Model0
  470. WedgePart34.CFrame = CFrame.new(-35, 21, 134.5, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  471. WedgePart34.Orientation = Vector3.new(0, 180, 0)
  472. WedgePart34.Position = Vector3.new(-35, 21, 134.5)
  473. WedgePart34.Rotation = Vector3.new(-180, 0, -180)
  474. WedgePart34.Color = Color3.new(0.411765, 0.25098, 0.156863)
  475. WedgePart34.Size = Vector3.new(42, 8, 23)
  476. WedgePart34.Anchored = true
  477. WedgePart34.BottomSurface = Enum.SurfaceType.Smooth
  478. WedgePart34.BrickColor = BrickColor.new("Reddish brown")
  479. WedgePart34.Locked = true
  480. WedgePart34.Material = Enum.Material.Wood
  481. WedgePart34.brickColor = BrickColor.new("Reddish brown")
  482. WedgePart35.Parent = Model0
  483. WedgePart35.CFrame = CFrame.new(-35, 21, 111, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  484. WedgePart35.Position = Vector3.new(-35, 21, 111)
  485. WedgePart35.Color = Color3.new(0.411765, 0.25098, 0.156863)
  486. WedgePart35.Size = Vector3.new(42, 8, 24)
  487. WedgePart35.Anchored = true
  488. WedgePart35.BottomSurface = Enum.SurfaceType.Smooth
  489. WedgePart35.BrickColor = BrickColor.new("Reddish brown")
  490. WedgePart35.Locked = true
  491. WedgePart35.Material = Enum.Material.Wood
  492. WedgePart35.brickColor = BrickColor.new("Reddish brown")
  493. Part36.Parent = Model0
  494. Part36.CFrame = CFrame.new(-23.5, 8.5, 99.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  495. Part36.Position = Vector3.new(-23.5, 8.5, 99.5)
  496. Part36.Color = Color3.new(0.411765, 0.25098, 0.156863)
  497. Part36.Size = Vector3.new(15, 15, 1)
  498. Part36.Anchored = true
  499. Part36.BottomSurface = Enum.SurfaceType.Smooth
  500. Part36.BrickColor = BrickColor.new("Reddish brown")
  501. Part36.Locked = true
  502. Part36.Material = Enum.Material.WoodPlanks
  503. Part36.TopSurface = Enum.SurfaceType.Smooth
  504. Part36.brickColor = BrickColor.new("Reddish brown")
  505. WedgePart37.Parent = Model0
  506. WedgePart37.CFrame = CFrame.new(32.5, 6, 75.5, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  507. WedgePart37.Orientation = Vector3.new(0, 180, 0)
  508. WedgePart37.Position = Vector3.new(32.5, 6, 75.5)
  509. WedgePart37.Rotation = Vector3.new(-180, 0, -180)
  510. WedgePart37.Size = Vector3.new(13, 10, 21)
  511. WedgePart37.Anchored = true
  512. WedgePart37.BottomSurface = Enum.SurfaceType.Smooth
  513. WedgePart37.Locked = true
  514. WedgePart37.Material = Enum.Material.DiamondPlate
  515. Model38.Name = "WallTorch"
  516. Model38.Parent = Model0
  517. Model39.Name = "Torch"
  518. Model39.Parent = Model38
  519. Part40.Name = "Effects"
  520. Part40.Parent = Model39
  521. Part40.CFrame = CFrame.new(-53.5426407, 7.71180916, 109.235062, 0.965925217, 0.258821428, 1.73094108e-11, -0.258821428, 0.965925276, 1.84496562e-09, 4.60797012e-10, -1.78657877e-09, 1)
  522. Part40.Orientation = Vector3.new(0, 0, -15)
  523. Part40.Position = Vector3.new(-53.5426407, 7.71180916, 109.235062)
  524. Part40.Rotation = Vector3.new(0, 0, -15)
  525. Part40.Transparency = 1
  526. Part40.Size = Vector3.new(0.300000012, 0.400000006, 0.300000012)
  527. Part40.Anchored = true
  528. Part40.BottomSurface = Enum.SurfaceType.Smooth
  529. Part40.TopSurface = Enum.SurfaceType.Smooth
  530. Part40.FormFactor = Enum.FormFactor.Custom
  531. Part40.formFactor = Enum.FormFactor.Custom
  532. ParticleEmitter41.Name = "Fire"
  533. ParticleEmitter41.Parent = Part40
  534. ParticleEmitter41.Speed = NumberRange.new(0.25, 0.25)
  535. ParticleEmitter41.Rotation = NumberRange.new(-20, 20)
  536. ParticleEmitter41.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
  537. ParticleEmitter41.LightEmission = 0.5
  538. ParticleEmitter41.Texture = "http://www.roblox.com/asset/?id=242102147"
  539. ParticleEmitter41.Transparency = NumberSequence.new(1,0.43124997615814,0.33125001192093,0.3125,1,1)
  540. ParticleEmitter41.ZOffset = 0.5
  541. ParticleEmitter41.Size = NumberSequence.new(0.43749988079071,0)
  542. ParticleEmitter41.Acceleration = Vector3.new(0, 5, 0)
  543. ParticleEmitter41.Lifetime = NumberRange.new(0.75, 0.85000002384186)
  544. ParticleEmitter41.Rate = 75
  545. ParticleEmitter41.RotSpeed = NumberRange.new(-10, 10)
  546. ParticleEmitter41.SpreadAngle = Vector2.new(25, 25)
  547. ParticleEmitter41.VelocitySpread = 25
  548. ParticleEmitter42.Name = "Glow"
  549. ParticleEmitter42.Parent = Part40
  550. ParticleEmitter42.Speed = NumberRange.new(3, 3)
  551. ParticleEmitter42.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
  552. ParticleEmitter42.LightEmission = 1
  553. ParticleEmitter42.Texture = "http://www.roblox.com/asset/?id=241923041"
  554. ParticleEmitter42.Transparency = NumberSequence.new(1,0.96249997615814,1,1)
  555. ParticleEmitter42.ZOffset = 0.5
  556. ParticleEmitter42.Size = NumberSequence.new(2.8749995231628,0)
  557. ParticleEmitter42.Acceleration = Vector3.new(0, 10, 0)
  558. ParticleEmitter42.Lifetime = NumberRange.new(0.25, 0.5)
  559. ParticleEmitter42.Rate = 35
  560. ParticleEmitter42.SpreadAngle = Vector2.new(45, 45)
  561. ParticleEmitter42.VelocitySpread = 45
  562. ParticleEmitter43.Name = "Smoke"
  563. ParticleEmitter43.Parent = Part40
  564. ParticleEmitter43.Speed = NumberRange.new(1, 1)
  565. ParticleEmitter43.Rotation = NumberRange.new(-180, 180)
  566. ParticleEmitter43.Color = ColorSequence.new(Color3.new(0.541176, 0.419608, 0.227451),Color3.new(0.152941, 0.152941, 0.152941))
  567. ParticleEmitter43.LightEmission = 0.25
  568. ParticleEmitter43.Texture = "http://www.roblox.com/asset/?id=241922778"
  569. ParticleEmitter43.Transparency = NumberSequence.new(1,0,0,1)
  570. ParticleEmitter43.Size = NumberSequence.new(0.56249976158142,2.0625)
  571. ParticleEmitter43.Acceleration = Vector3.new(0, 5, 0)
  572. ParticleEmitter43.Lifetime = NumberRange.new(1, 1.5)
  573. ParticleEmitter43.Rate = 10
  574. ParticleEmitter43.RotSpeed = NumberRange.new(-90, 90)
  575. ParticleEmitter43.SpreadAngle = Vector2.new(25, 25)
  576. ParticleEmitter43.VelocitySpread = 25
  577. UnionOperation44.Name = "Holder"
  578. UnionOperation44.Parent = Model39
  579. UnionOperation44.CFrame = CFrame.new(-54.0720596, 6.52022314, 109.23497, 0.965925217, 0.258821458, 1.82674409e-08, -0.258821458, 0.965925217, 1.23815802e-08, -1.44403618e-08, -1.66876859e-08, 1)
  580. UnionOperation44.Orientation = Vector3.new(0, 0, -15)
  581. UnionOperation44.Position = Vector3.new(-54.0720596, 6.52022314, 109.23497)
  582. UnionOperation44.Rotation = Vector3.new(0, 0, -15)
  583. UnionOperation44.Color = Color3.new(0.105882, 0.164706, 0.207843)
  584. UnionOperation44.Size = Vector3.new(0.823072314, 0.441888571, 0.376728863)
  585. UnionOperation44.Anchored = true
  586. UnionOperation44.BrickColor = BrickColor.new("Black")
  587. UnionOperation44.Material = Enum.Material.Metal
  588. UnionOperation44.brickColor = BrickColor.new("Black")
  589. UnionOperation44.UsePartColor = true
  590. UnionOperation45.Name = "Handle"
  591. UnionOperation45.Parent = Model39
  592. UnionOperation45.CFrame = CFrame.new(-53.853157, 6.55270195, 109.235031, 0.965925217, 0.258821428, 1.73094108e-11, -0.258821428, 0.965925276, 1.84496562e-09, 4.60797012e-10, -1.78657877e-09, 1)
  593. UnionOperation45.Orientation = Vector3.new(0, 0, -15)
  594. UnionOperation45.Position = Vector3.new(-53.853157, 6.55270195, 109.235031)
  595. UnionOperation45.Rotation = Vector3.new(0, 0, -15)
  596. UnionOperation45.Color = Color3.new(0.411765, 0.25098, 0.156863)
  597. UnionOperation45.Size = Vector3.new(0.525000036, 3, 0.525000036)
  598. UnionOperation45.Anchored = true
  599. UnionOperation45.BrickColor = BrickColor.new("Reddish brown")
  600. UnionOperation45.Material = Enum.Material.Wood
  601. UnionOperation45.brickColor = BrickColor.new("Reddish brown")
  602. UnionOperation46.Name = "End"
  603. UnionOperation46.Parent = Model39
  604. UnionOperation46.CFrame = CFrame.new(-53.5911942, 7.53066397, 109.235062, 0.965925217, 0.258821428, 1.73094108e-11, -0.258821428, 0.965925276, 1.84496562e-09, 4.60797012e-10, -1.78657877e-09, 1)
  605. UnionOperation46.Orientation = Vector3.new(0, 0, -15)
  606. UnionOperation46.Position = Vector3.new(-53.5911942, 7.53066397, 109.235062)
  607. UnionOperation46.Rotation = Vector3.new(0, 0, -15)
  608. UnionOperation46.Color = Color3.new(0.843137, 0.772549, 0.603922)
  609. UnionOperation46.Size = Vector3.new(0.600000143, 0.750000119, 0.600000024)
  610. UnionOperation46.Anchored = true
  611. UnionOperation46.BrickColor = BrickColor.new("Brick yellow")
  612. UnionOperation46.Material = Enum.Material.Grass
  613. UnionOperation46.brickColor = BrickColor.new("Brick yellow")
  614. Part47.Parent = Model38
  615. Part47.CFrame = CFrame.new(-53.4732437, 6.50000191, 109.235062, 1, 2.13164962e-13, -5.96861861e-13, -2.13164962e-13, 1, -2.5024028e-12, 5.96861861e-13, 2.5024028e-12, 1)
  616. Part47.Position = Vector3.new(-53.4732437, 6.50000191, 109.235062)
  617. Part47.Transparency = 1
  618. Part47.Size = Vector3.new(2, 3, 2)
  619. Part47.Anchored = true
  620. Part47.CanCollide = false
  621. Part47.FormFactor = Enum.FormFactor.Symmetric
  622. Part47.formFactor = Enum.FormFactor.Symmetric
  623. PointLight48.Name = "NearLight"
  624. PointLight48.Parent = Part47
  625. PointLight48.Color = Color3.new(1, 0.756863, 0.360784)
  626. PointLight48.Range = 12
  627. PointLight48.Brightness = 0.5
  628. PointLight48.Shadows = true
  629. PointLight49.Name = "FarLight"
  630. PointLight49.Parent = Part47
  631. PointLight49.Color = Color3.new(1, 0.756863, 0.360784)
  632. PointLight49.Range = 32
  633. PointLight49.Brightness = 0.25
  634. PointLight49.Shadows = true
  635. Part50.Parent = Model0
  636. Part50.CFrame = CFrame.new(-15, 2.5, 137, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  637. Part50.Position = Vector3.new(-15, 2.5, 137)
  638. Part50.Color = Color3.new(0.411765, 0.25098, 0.156863)
  639. Part50.Size = Vector3.new(2, 3, 10)
  640. Part50.Anchored = true
  641. Part50.BottomSurface = Enum.SurfaceType.Smooth
  642. Part50.BrickColor = BrickColor.new("Reddish brown")
  643. Part50.Locked = true
  644. Part50.Material = Enum.Material.WoodPlanks
  645. Part50.TopSurface = Enum.SurfaceType.Smooth
  646. Part50.brickColor = BrickColor.new("Reddish brown")
  647. Part51.Parent = Model0
  648. Part51.CFrame = CFrame.new(76.5, 5.5, 90.5, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  649. Part51.Orientation = Vector3.new(0, 90, 0)
  650. Part51.Position = Vector3.new(76.5, 5.5, 90.5)
  651. Part51.Rotation = Vector3.new(0, 90, 0)
  652. Part51.Color = Color3.new(0.835294, 0.45098, 0.239216)
  653. Part51.Size = Vector3.new(11, 9, 19)
  654. Part51.Anchored = true
  655. Part51.BottomSurface = Enum.SurfaceType.Smooth
  656. Part51.BrickColor = BrickColor.new("Neon orange")
  657. Part51.Locked = true
  658. Part51.Material = Enum.Material.WoodPlanks
  659. Part51.TopSurface = Enum.SurfaceType.Smooth
  660. Part51.brickColor = BrickColor.new("Neon orange")
  661. Part52.Parent = Model0
  662. Part52.CFrame = CFrame.new(75.5, 5.5, 164.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  663. Part52.Position = Vector3.new(75.5, 5.5, 164.5)
  664. Part52.Color = Color3.new(0.835294, 0.45098, 0.239216)
  665. Part52.Size = Vector3.new(11, 9, 19)
  666. Part52.Anchored = true
  667. Part52.BottomSurface = Enum.SurfaceType.Smooth
  668. Part52.BrickColor = BrickColor.new("Neon orange")
  669. Part52.Locked = true
  670. Part52.Material = Enum.Material.WoodPlanks
  671. Part52.TopSurface = Enum.SurfaceType.Smooth
  672. Part52.brickColor = BrickColor.new("Neon orange")
  673. Part53.Parent = Model0
  674. Part53.CFrame = CFrame.new(30, 14.5, 250.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  675. Part53.Position = Vector3.new(30, 14.5, 250.5)
  676. Part53.Size = Vector3.new(200, 29, 1)
  677. Part53.Anchored = true
  678. Part53.BottomSurface = Enum.SurfaceType.Smooth
  679. Part53.Locked = true
  680. Part53.Material = Enum.Material.DiamondPlate
  681. Part53.TopSurface = Enum.SurfaceType.Smooth
  682. WedgePart54.Parent = Model0
  683. WedgePart54.CFrame = CFrame.new(86.5, 6, 208.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  684. WedgePart54.Position = Vector3.new(86.5, 6, 208.5)
  685. WedgePart54.Size = Vector3.new(13, 10, 21)
  686. WedgePart54.Anchored = true
  687. WedgePart54.BottomSurface = Enum.SurfaceType.Smooth
  688. WedgePart54.Locked = true
  689. WedgePart54.Material = Enum.Material.Metal
  690. WedgePart55.Parent = Model0
  691. WedgePart55.CFrame = CFrame.new(100.5, 6, 174.5, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  692. WedgePart55.Orientation = Vector3.new(0, 90, 0)
  693. WedgePart55.Position = Vector3.new(100.5, 6, 174.5)
  694. WedgePart55.Rotation = Vector3.new(0, 90, 0)
  695. WedgePart55.Size = Vector3.new(13, 10, 21)
  696. WedgePart55.Anchored = true
  697. WedgePart55.BottomSurface = Enum.SurfaceType.Smooth
  698. WedgePart55.Locked = true
  699. WedgePart55.Material = Enum.Material.Slate
  700. Part56.Parent = Model0
  701. Part56.CFrame = CFrame.new(-69.5, 14.5, 151, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  702. Part56.Position = Vector3.new(-69.5, 14.5, 151)
  703. Part56.Size = Vector3.new(1, 29, 200)
  704. Part56.Anchored = true
  705. Part56.BottomSurface = Enum.SurfaceType.Smooth
  706. Part56.Locked = true
  707. Part56.Material = Enum.Material.DiamondPlate
  708. Part56.TopSurface = Enum.SurfaceType.Smooth
  709. Part57.Parent = Model0
  710. Part57.CFrame = CFrame.new(-15, 8, 137, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  711. Part57.Position = Vector3.new(-15, 8, 137)
  712. Part57.Color = Color3.new(0, 1, 1)
  713. Part57.Transparency = 0.60000002384186
  714. Part57.Size = Vector3.new(2, 8, 10)
  715. Part57.Anchored = true
  716. Part57.BottomSurface = Enum.SurfaceType.Smooth
  717. Part57.BrickColor = BrickColor.new("Toothpaste")
  718. Part57.Locked = true
  719. Part57.Material = Enum.Material.Glass
  720. Part57.Reflectance = 1
  721. Part57.TopSurface = Enum.SurfaceType.Smooth
  722. Part57.brickColor = BrickColor.new("Toothpaste")
  723. WedgePart58.Parent = Model0
  724. WedgePart58.CFrame = CFrame.new(14.5, 6, 148.5, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  725. WedgePart58.Orientation = Vector3.new(0, -90, 0)
  726. WedgePart58.Position = Vector3.new(14.5, 6, 148.5)
  727. WedgePart58.Rotation = Vector3.new(0, -90, 0)
  728. WedgePart58.Size = Vector3.new(13, 10, 21)
  729. WedgePart58.Anchored = true
  730. WedgePart58.BottomSurface = Enum.SurfaceType.Smooth
  731. WedgePart58.Locked = true
  732. WedgePart58.Material = Enum.Material.Slate
  733. Part59.Parent = Model0
  734. Part59.CFrame = CFrame.new(-15, 14, 137, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  735. Part59.Position = Vector3.new(-15, 14, 137)
  736. Part59.Color = Color3.new(0.411765, 0.25098, 0.156863)
  737. Part59.Size = Vector3.new(2, 4, 10)
  738. Part59.Anchored = true
  739. Part59.BottomSurface = Enum.SurfaceType.Smooth
  740. Part59.BrickColor = BrickColor.new("Reddish brown")
  741. Part59.Locked = true
  742. Part59.Material = Enum.Material.WoodPlanks
  743. Part59.TopSurface = Enum.SurfaceType.Smooth
  744. Part59.brickColor = BrickColor.new("Reddish brown")
  745. Part60.Parent = Model0
  746. Part60.CFrame = CFrame.new(-36.5, 8, 99.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  747. Part60.Position = Vector3.new(-36.5, 8, 99.5)
  748. Part60.Color = Color3.new(0, 1, 1)
  749. Part60.Transparency = 0.60000002384186
  750. Part60.Size = Vector3.new(11, 8, 1)
  751. Part60.Anchored = true
  752. Part60.BottomSurface = Enum.SurfaceType.Smooth
  753. Part60.BrickColor = BrickColor.new("Toothpaste")
  754. Part60.Locked = true
  755. Part60.Material = Enum.Material.Glass
  756. Part60.Reflectance = 1
  757. Part60.TopSurface = Enum.SurfaceType.Smooth
  758. Part60.brickColor = BrickColor.new("Toothpaste")
  759. Part61.Parent = Model0
  760. Part61.CFrame = CFrame.new(-15, 8.5, 144, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  761. Part61.Position = Vector3.new(-15, 8.5, 144)
  762. Part61.Color = Color3.new(0.411765, 0.25098, 0.156863)
  763. Part61.Size = Vector3.new(2, 15, 4)
  764. Part61.Anchored = true
  765. Part61.BottomSurface = Enum.SurfaceType.Smooth
  766. Part61.BrickColor = BrickColor.new("Reddish brown")
  767. Part61.Locked = true
  768. Part61.Material = Enum.Material.WoodPlanks
  769. Part61.TopSurface = Enum.SurfaceType.Smooth
  770. Part61.brickColor = BrickColor.new("Reddish brown")
  771. WedgePart62.Parent = Model0
  772. WedgePart62.CFrame = CFrame.new(28.5000019, 6, 189.5, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  773. WedgePart62.Orientation = Vector3.new(0, 90, 0)
  774. WedgePart62.Position = Vector3.new(28.5000019, 6, 189.5)
  775. WedgePart62.Rotation = Vector3.new(0, 90, 0)
  776. WedgePart62.Size = Vector3.new(13, 10, 21)
  777. WedgePart62.Anchored = true
  778. WedgePart62.BottomSurface = Enum.SurfaceType.Smooth
  779. WedgePart62.Locked = true
  780. WedgePart62.Material = Enum.Material.DiamondPlate
  781. Part63.Parent = Model0
  782. Part63.CFrame = CFrame.new(-15, 14, 123, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  783. Part63.Position = Vector3.new(-15, 14, 123)
  784. Part63.Color = Color3.new(0.411765, 0.25098, 0.156863)
  785. Part63.Size = Vector3.new(2, 4, 10)
  786. Part63.Anchored = true
  787. Part63.BottomSurface = Enum.SurfaceType.Smooth
  788. Part63.BrickColor = BrickColor.new("Reddish brown")
  789. Part63.Locked = true
  790. Part63.Material = Enum.Material.WoodPlanks
  791. Part63.TopSurface = Enum.SurfaceType.Smooth
  792. Part63.brickColor = BrickColor.new("Reddish brown")
  793. Part64.Parent = Model0
  794. Part64.CFrame = CFrame.new(-15, 8.5, 130, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  795. Part64.Position = Vector3.new(-15, 8.5, 130)
  796. Part64.Color = Color3.new(0.411765, 0.25098, 0.156863)
  797. Part64.Size = Vector3.new(2, 15, 4)
  798. Part64.Anchored = true
  799. Part64.BottomSurface = Enum.SurfaceType.Smooth
  800. Part64.BrickColor = BrickColor.new("Reddish brown")
  801. Part64.Locked = true
  802. Part64.Material = Enum.Material.WoodPlanks
  803. Part64.TopSurface = Enum.SurfaceType.Smooth
  804. Part64.brickColor = BrickColor.new("Reddish brown")
  805. Part65.Parent = Model0
  806. Part65.CFrame = CFrame.new(-36.5, 2.5, 99.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  807. Part65.Position = Vector3.new(-36.5, 2.5, 99.5)
  808. Part65.Color = Color3.new(0.411765, 0.25098, 0.156863)
  809. Part65.Size = Vector3.new(11, 3, 1)
  810. Part65.Anchored = true
  811. Part65.BottomSurface = Enum.SurfaceType.Smooth
  812. Part65.BrickColor = BrickColor.new("Reddish brown")
  813. Part65.Locked = true
  814. Part65.Material = Enum.Material.WoodPlanks
  815. Part65.TopSurface = Enum.SurfaceType.Smooth
  816. Part65.brickColor = BrickColor.new("Reddish brown")
  817. Model66.Name = "Spawns"
  818. Model66.Parent = Model0
  819. Part67.Parent = Model66
  820. Part67.CFrame = CFrame.new(-43.9799995, 0.550017118, 68.0599899, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  821. Part67.Position = Vector3.new(-43.9799995, 0.550017118, 68.0599899)
  822. Part67.Transparency = 1
  823. Part67.Size = Vector3.new(5, 1, 5)
  824. Part67.Anchored = true
  825. Part67.BottomSurface = Enum.SurfaceType.Smooth
  826. Part67.CanCollide = false
  827. Part67.Locked = true
  828. Part67.TopSurface = Enum.SurfaceType.Smooth
  829. Part68.Parent = Model66
  830. Part68.CFrame = CFrame.new(-43.9799995, 0.550017118, 168.469971, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  831. Part68.Position = Vector3.new(-43.9799995, 0.550017118, 168.469971)
  832. Part68.Transparency = 1
  833. Part68.Size = Vector3.new(5, 1, 5)
  834. Part68.Anchored = true
  835. Part68.BottomSurface = Enum.SurfaceType.Smooth
  836. Part68.CanCollide = false
  837. Part68.Locked = true
  838. Part68.TopSurface = Enum.SurfaceType.Smooth
  839. Part69.Parent = Model66
  840. Part69.CFrame = CFrame.new(6.60999727, 0.550017118, 223.669937, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  841. Part69.Position = Vector3.new(6.60999727, 0.550017118, 223.669937)
  842. Part69.Transparency = 1
  843. Part69.Size = Vector3.new(5, 1, 5)
  844. Part69.Anchored = true
  845. Part69.BottomSurface = Enum.SurfaceType.Smooth
  846. Part69.CanCollide = false
  847. Part69.Locked = true
  848. Part69.TopSurface = Enum.SurfaceType.Smooth
  849. Part70.Parent = Model66
  850. Part70.CFrame = CFrame.new(105.819992, 0.550017118, 211.359909, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  851. Part70.Position = Vector3.new(105.819992, 0.550017118, 211.359909)
  852. Part70.Transparency = 1
  853. Part70.Size = Vector3.new(5, 1, 5)
  854. Part70.Anchored = true
  855. Part70.BottomSurface = Enum.SurfaceType.Smooth
  856. Part70.CanCollide = false
  857. Part70.Locked = true
  858. Part70.TopSurface = Enum.SurfaceType.Smooth
  859. Part71.Parent = Model66
  860. Part71.CFrame = CFrame.new(105.819992, 0.550017118, 156.049942, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  861. Part71.Position = Vector3.new(105.819992, 0.550017118, 156.049942)
  862. Part71.Transparency = 1
  863. Part71.Size = Vector3.new(5, 1, 5)
  864. Part71.Anchored = true
  865. Part71.BottomSurface = Enum.SurfaceType.Smooth
  866. Part71.CanCollide = false
  867. Part71.Locked = true
  868. Part71.TopSurface = Enum.SurfaceType.Smooth
  869. Part72.Parent = Model66
  870. Part72.CFrame = CFrame.new(105.819992, 0.550017118, 82.2399521, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  871. Part72.Position = Vector3.new(105.819992, 0.550017118, 82.2399521)
  872. Part72.Transparency = 1
  873. Part72.Size = Vector3.new(5, 1, 5)
  874. Part72.Anchored = true
  875. Part72.BottomSurface = Enum.SurfaceType.Smooth
  876. Part72.CanCollide = false
  877. Part72.Locked = true
  878. Part72.TopSurface = Enum.SurfaceType.Smooth
  879. Part73.Parent = Model66
  880. Part73.CFrame = CFrame.new(56.810009, 0.550017118, 82.2399521, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  881. Part73.Position = Vector3.new(56.810009, 0.550017118, 82.2399521)
  882. Part73.Transparency = 1
  883. Part73.Size = Vector3.new(5, 1, 5)
  884. Part73.Anchored = true
  885. Part73.BottomSurface = Enum.SurfaceType.Smooth
  886. Part73.CanCollide = false
  887. Part73.Locked = true
  888. Part73.TopSurface = Enum.SurfaceType.Smooth
  889. Part74.Parent = Model66
  890. Part74.CFrame = CFrame.new(28.1100197, 0.550017118, 129.799957, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  891. Part74.Position = Vector3.new(28.1100197, 0.550017118, 129.799957)
  892. Part74.Transparency = 1
  893. Part74.Size = Vector3.new(5, 1, 5)
  894. Part74.Anchored = true
  895. Part74.BottomSurface = Enum.SurfaceType.Smooth
  896. Part74.CanCollide = false
  897. Part74.Locked = true
  898. Part74.TopSurface = Enum.SurfaceType.Smooth
  899. Part75.Parent = Model0
  900. Part75.CFrame = CFrame.new(129.5, 14.5, 151, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  901. Part75.Position = Vector3.new(129.5, 14.5, 151)
  902. Part75.Size = Vector3.new(1, 29, 200)
  903. Part75.Anchored = true
  904. Part75.BottomSurface = Enum.SurfaceType.Smooth
  905. Part75.Locked = true
  906. Part75.Material = Enum.Material.DiamondPlate
  907. Part75.TopSurface = Enum.SurfaceType.Smooth
  908. Part76.Name = "join button"
  909. Part76.Parent = Model0
  910. Part76.CFrame = CFrame.new(29.9999962, 14.5, 51.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  911. Part76.Position = Vector3.new(29.9999962, 14.5, 51.25)
  912. Part76.Color = Color3.new(1, 0, 0)
  913. Part76.Size = Vector3.new(30.0100002, 29, 0.5)
  914. Part76.Anchored = true
  915. Part76.BottomSurface = Enum.SurfaceType.Smooth
  916. Part76.BrickColor = BrickColor.new("Really red")
  917. Part76.Locked = true
  918. Part76.Material = Enum.Material.DiamondPlate
  919. Part76.TopSurface = Enum.SurfaceType.Smooth
  920. Part76.brickColor = BrickColor.new("Really red")
  921. SurfaceGui77.Parent = Part76
  922. SurfaceGui77.LightInfluence = 1
  923. SurfaceGui77.ClipsDescendants = true
  924. SurfaceGui77.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  925. TextBox78.Parent = SurfaceGui77
  926. TextBox78.Size = UDim2.new(1, 0, 1, 0)
  927. TextBox78.BackgroundColor = BrickColor.new("Institutional white")
  928. TextBox78.BackgroundColor3 = Color3.new(1, 1, 1)
  929. TextBox78.BackgroundTransparency = 1
  930. TextBox78.Font = Enum.Font.SourceSans
  931. TextBox78.FontSize = Enum.FontSize.Size14
  932. TextBox78.Text = "Click to join!"
  933. TextBox78.TextColor = BrickColor.new("Really black")
  934. TextBox78.TextColor3 = Color3.new(0, 0, 0)
  935. TextBox78.TextScaled = true
  936. TextBox78.TextSize = 14
  937. TextBox78.TextWrap = true
  938. TextBox78.TextWrapped = true
  939. ClickDetector79.Parent = Part76
  940. ClickDetector79.MaxActivationDistance = 50
  941. Part80.Name = "leave button"
  942. Part80.Parent = Model0
  943. Part80.CFrame = CFrame.new(29.9999962, 14.5, 51.75, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  944. Part80.Orientation = Vector3.new(0, 180, 0)
  945. Part80.Position = Vector3.new(29.9999962, 14.5, 51.75)
  946. Part80.Rotation = Vector3.new(-180, 0, -180)
  947. Part80.Color = Color3.new(1, 0, 0)
  948. Part80.Size = Vector3.new(30.0100002, 29, 0.5)
  949. Part80.Anchored = true
  950. Part80.BottomSurface = Enum.SurfaceType.Smooth
  951. Part80.BrickColor = BrickColor.new("Really red")
  952. Part80.Locked = true
  953. Part80.Material = Enum.Material.DiamondPlate
  954. Part80.TopSurface = Enum.SurfaceType.Smooth
  955. Part80.brickColor = BrickColor.new("Really red")
  956. SurfaceGui81.Parent = Part80
  957. SurfaceGui81.LightInfluence = 1
  958. SurfaceGui81.ClipsDescendants = true
  959. SurfaceGui81.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  960. TextBox82.Parent = SurfaceGui81
  961. TextBox82.Size = UDim2.new(1, 0, 1, 0)
  962. TextBox82.BackgroundColor = BrickColor.new("Institutional white")
  963. TextBox82.BackgroundColor3 = Color3.new(1, 1, 1)
  964. TextBox82.BackgroundTransparency = 1
  965. TextBox82.Font = Enum.Font.SourceSans
  966. TextBox82.FontSize = Enum.FontSize.Size14
  967. TextBox82.Text = "Click to leave!"
  968. TextBox82.TextColor = BrickColor.new("Really black")
  969. TextBox82.TextColor3 = Color3.new(0, 0, 0)
  970. TextBox82.TextScaled = true
  971. TextBox82.TextSize = 14
  972. TextBox82.TextWrap = true
  973. TextBox82.TextWrapped = true
  974. ClickDetector83.Parent = Part80
  975. ClickDetector83.MaxActivationDistance = 50
  976.  
  977. function give_weapons(plr)
  978. spawn(function()
  979. local char = plr.Character
  980. local hum = char:FindFirstChildOfClass("Humanoid")
  981. local torso = char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso")
  982. local rootpart = char:FindFirstChild("HumanoidRootPart")
  983.  
  984. local debris = game:GetService("Debris")
  985. local tween = game:GetService("TweenService")
  986.  
  987. local gun = Instance.new("Tool")
  988. local han = Instance.new("Part")
  989. local SpecialMesh2 = Instance.new("SpecialMesh")
  990. gun.Name = "FAMAS G2"
  991. gun.Parent = plr['Backpack']
  992. gun.Grip = CFrame.new(0.355400085, -0.188222155, -0.00732704997, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  993. han.Name = "Handle"
  994. han.Parent = gun
  995. han.CFrame = CFrame.new(-12.4460001, 1.07099998, -5.64400005, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  996. han.Position = Vector3.new(-12.4460001, 1.07099998, -5.64400005)
  997. han.Size = Vector3.new(5.08, 1.824, 0.21)
  998. han.Color = Color3.fromRGB(27, 42, 53)
  999. han.BottomSurface = Enum.SurfaceType.Smooth
  1000. han.TopSurface = Enum.SurfaceType.Smooth
  1001. SpecialMesh2.Parent = han
  1002. SpecialMesh2.MeshId = "rbxassetid://1877852381"
  1003. SpecialMesh2.Scale = Vector3.new(0.007, 0.007, 0.007)
  1004. SpecialMesh2.TextureId = ""
  1005. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  1006.  
  1007. local effect_part = Instance.new("Part")
  1008. local smoke = Instance.new("ParticleEmitter")
  1009. local flash = Instance.new("ParticleEmitter")
  1010. local light = Instance.new("PointLight")
  1011. effect_part.Name = "effect"
  1012. effect_part.Parent = gun
  1013. effect_part.CFrame = CFrame.new(-14.3099976, 2.64201403, -6.57999992, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1014. effect_part.Position = Vector3.new(-14.3099976, 2.64201403, -6.57999992)
  1015. effect_part.Transparency = 1
  1016. effect_part.Size = Vector3.new(0.100000001, 0.100000001, 0.100000001)
  1017. effect_part.BottomSurface = Enum.SurfaceType.Smooth
  1018. effect_part.CanCollide = false
  1019. effect_part.TopSurface = Enum.SurfaceType.Smooth
  1020. smoke.Name = "smoke"
  1021. smoke.Parent = effect_part
  1022. smoke.Speed = NumberRange.new(5, 7)
  1023. smoke.Rotation = NumberRange.new(0, 360)
  1024. smoke.Color = ColorSequence.new(Color3.new(0.27451, 0.27451, 0.27451),Color3.new(0.27451, 0.27451, 0.27451))
  1025. smoke.Enabled = false
  1026. smoke.LightEmission = 0.10000000149012
  1027. smoke.Texture = "http://www.roblox.com/asset/?id=244514423"
  1028. smoke.Transparency = NumberSequence.new(0.60000002384186,1)
  1029. smoke.Size = NumberSequence.new(0.99999964237213,3)
  1030. smoke.Lifetime = NumberRange.new(1.25, 1.5)
  1031. smoke.Rate = 100
  1032. smoke.RotSpeed = NumberRange.new(10, 10)
  1033. smoke.SpreadAngle = Vector2.new(15, 15)
  1034. smoke.VelocitySpread = 15
  1035. flash.Name = "flash"
  1036. flash.Parent = effect_part
  1037. flash.Speed = NumberRange.new(0, 0)
  1038. flash.Rotation = NumberRange.new(0, 90)
  1039. flash.Color = ColorSequence.new(Color3.new(1, 1, 0.498039),Color3.new(1, 1, 0.498039))
  1040. flash.Enabled = false
  1041. flash.LightEmission = 1
  1042. flash.Texture = "http://www.roblox.com/asset/?id=3419963"
  1043. flash.Transparency = NumberSequence.new(0.75,1)
  1044. flash.Size = NumberSequence.new(0.20000000298023,0.20000000298023)
  1045. flash.Lifetime = NumberRange.new(0.050000000745058, 0.075000002980232)
  1046. flash.Rate = 1000
  1047. light.Name = "light"
  1048. light.Parent = effect_part
  1049. light.Color = Color3.new(1, 1, 0.498039)
  1050. light.Enabled = false
  1051. light.Range = 6
  1052. light.Brightness = 10
  1053. light.Shadows = true
  1054.  
  1055. local weld = Instance.new("Weld")
  1056. weld.Part0 = han
  1057. weld.Part1 = effect_part
  1058. weld.C1 = weld.C1 * CFrame.new(2.5,-0.2,0)
  1059. weld.Parent = effect_part
  1060.  
  1061. local cols = {BrickColor.new("Neon orange"),BrickColor.new("Really red"),BrickColor.new("Bright red"),BrickColor.new("Br. yellowish orange"),BrickColor.new("Bright yellow")}
  1062. local taunts = {298689061,2743459732,2852509470,1018518369}
  1063. local using = false
  1064. local op = false
  1065. local bulletfire = 3
  1066. local shootwait = 0.0666666667*bulletfire
  1067. local max_ammo = 30
  1068. local ammo = max_ammo
  1069. local hitpos = nil
  1070. local shooting = false
  1071. local equipped = false
  1072.  
  1073. local equip = Instance.new("Sound")
  1074. equip.SoundId = 'rbxassetid://3667098999'
  1075. equip.Volume = 0.8
  1076. equip.Parent = han
  1077.  
  1078. local shoot_s = Instance.new("Sound")
  1079. shoot_s.SoundId = 'rbxassetid://1112949558'
  1080. shoot_s.Volume = 3
  1081. shoot_s.Parent = han
  1082.  
  1083. local shoot_s2 = shoot_s:Clone()
  1084. shoot_s2.Parent = han
  1085.  
  1086. local shoot_s3 = shoot_s:Clone()
  1087. shoot_s3.Parent = han
  1088.  
  1089. local reload_s = Instance.new("Sound")
  1090. reload_s.SoundId = 'rbxassetid://3667100111'
  1091. reload_s.Volume = 0.7
  1092. reload_s.Parent = han
  1093.  
  1094. local wbreak = Instance.new("Sound")
  1095. wbreak.Parent = han
  1096. wbreak.SoundId = "rbxassetid://627558611"
  1097. wbreak.TimePosition = .1
  1098. wbreak.Volume = 0.7
  1099.  
  1100. local function CheckIfAlive()
  1101.     local alive = false
  1102.     if plr and char and char.Parent and torso and torso.Parent and hum and hum.Parent and hum.Health > 0 then
  1103.         alive = true
  1104.     end
  1105.     return alive
  1106. end
  1107. local function Ragdoll(targchar,headless,insta)
  1108.     local pc = targchar
  1109.     pc.Archivable = true
  1110.     local pc_torso
  1111.     for _,obj in pairs(pc:GetDescendants()) do
  1112.         obj.Archivable = true
  1113.         if obj:IsA("BasePart") or obj:IsA("UnionOperation") then
  1114.             obj.Massless = true
  1115.             obj.Locked = true
  1116.             obj.CanCollide = true
  1117.         end
  1118.     end
  1119.     if pc ~= nil then
  1120.         local hum = pc:FindFirstChild'Humanoid'
  1121.         local LArm = pc:FindFirstChild'Left Arm'
  1122.         local RArm = pc:FindFirstChild'Right Arm'
  1123.         local LLeg = pc:FindFirstChild'Left Leg'
  1124.         local RLeg = pc:FindFirstChild'Right Leg'
  1125.         local torso = pc:FindFirstChild'Torso'
  1126.         local head = pc:FindFirstChild'Head'
  1127.        
  1128.        
  1129.         local LUA = pc:FindFirstChild'LeftUpperArm'
  1130.         local LLA = pc:FindFirstChild'LeftLowerArm'
  1131.         local LH = pc:FindFirstChild'LeftHand'
  1132.        
  1133.         local RUA = pc:FindFirstChild'RightUpperArm'
  1134.         local RLA = pc:FindFirstChild'RightLowerArm'
  1135.         local RH = pc:FindFirstChild'RightHand'
  1136.        
  1137.         local LUL = pc:FindFirstChild'LeftUpperLeg'
  1138.         local LLL = pc:FindFirstChild'LeftLowerLeg'
  1139.         local LF = pc:FindFirstChild'LeftFoot'
  1140.        
  1141.         local RUL = pc:FindFirstChild'RightUpperLeg'
  1142.         local RLL = pc:FindFirstChild'RightLowerLeg'
  1143.         local RF = pc:FindFirstChild'RightFoot'
  1144.        
  1145.         local UT = pc:FindFirstChild'UpperTorso'
  1146.         local LT = pc:FindFirstChild'LowerTorso'
  1147.        
  1148.         if hum and LArm and RArm and LLeg and RLeg and head then
  1149.             pc_torso = torso
  1150.             hum.BreakJointsOnDeath = false
  1151.             if insta then
  1152.                 if hum.RigType==Enum.HumanoidRigType.R6 then
  1153.                     for _,v in pairs(torso:GetDescendants()) do
  1154.                         if v:IsA('Motor6D') --[[or v:IsA('BallSocketConstraint') or v:IsA('Attachment')]] then
  1155.                             v:Destroy()
  1156.                         end
  1157.                     end
  1158.                     --pc:BreakJoints()
  1159.                    local vis = false
  1160.                    local vis2 = false
  1161.                     if not LArm:FindFirstChild('Dismembered') then
  1162.                        local at1 = Instance.new("Attachment")
  1163.                        at1.Parent = torso
  1164.                        at1.Visible = vis
  1165.                        at1.Orientation = torso.Orientation + Vector3.new(0,180,0)
  1166.                        at1.Position = Vector3.new(-1,1,0)
  1167.                                        
  1168.                        local at1p2 = Instance.new("Attachment")
  1169.                        at1p2.Parent = LArm
  1170.                        at1p2.Visible = vis
  1171.                        at1p2.Orientation = LArm.Orientation + Vector3.new(0,180,0)
  1172.                        at1p2.Position = Vector3.new(.5,1,0)
  1173.                            
  1174.                        local bis = Instance.new("BallSocketConstraint")
  1175.                        bis.Parent = LArm
  1176.                        bis.Attachment0 = at1
  1177.                        bis.Attachment1 = at1p2
  1178.                        bis.LimitsEnabled = true
  1179.                        bis.UpperAngle = 15
  1180.                        bis.Visible = vis2
  1181.                        bis.TwistLimitsEnabled = true
  1182.                        bis.UpperAngle = -45
  1183.                        bis.TwistLowerAngle = -45
  1184.                     end
  1185.                     if not RArm:FindFirstChild('Dismembered') then    
  1186.                         local at2 = Instance.new("Attachment")
  1187.                         at2.Parent = torso
  1188.                         at2.Visible = vis
  1189.                         at2.Orientation = torso.Orientation + Vector3.new(0,0,0)
  1190.                         at2.Position = Vector3.new(1,1,0)
  1191.                                
  1192.                         local at2p2 = Instance.new("Attachment")
  1193.                         at2p2.Parent = RArm
  1194.                         at2p2.Visible = vis
  1195.                         at2p2.Orientation = RArm.Orientation + Vector3.new(0,0,0)
  1196.                         at2p2.Position = Vector3.new(-.5,1,0)
  1197.                        
  1198.                         local bis2 = Instance.new("BallSocketConstraint")
  1199.                         bis2.Parent = RArm
  1200.                         bis2.Attachment0 = at2
  1201.                         bis2.Attachment1 = at2p2
  1202.                         bis2.LimitsEnabled = true
  1203.                         bis2.UpperAngle = 15
  1204.                         bis2.Visible = vis2
  1205.                         bis2.TwistLimitsEnabled = true
  1206.                         bis2.UpperAngle = -45
  1207.                         bis2.TwistLowerAngle = -45
  1208.                     end
  1209.                      if not RLeg:FindFirstChild('Dismembered') then
  1210.                         local at3 = Instance.new("Attachment")
  1211.                         at3.Parent = torso
  1212.                         at3.Visible = vis
  1213.                         at3.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  1214.                         at3.Position = Vector3.new(.5,-1,0)
  1215.                                
  1216.                         local at3p2 = Instance.new("Attachment")
  1217.                         at3p2.Parent = RLeg
  1218.                         at3p2.Visible = vis
  1219.                         at3p2.Orientation = RLeg.Orientation + Vector3.new(90,0,-90)
  1220.                         at3p2.Position = Vector3.new(0,1,0)
  1221.                        
  1222.                         local bis3 = Instance.new("BallSocketConstraint")
  1223.                         bis3.Parent = RLeg
  1224.                         bis3.Attachment0 = at3
  1225.                         bis3.Attachment1 = at3p2
  1226.                         bis3.LimitsEnabled = true
  1227.                         bis3.UpperAngle = 180-15
  1228.                         bis3.Visible = vis2
  1229.                     end
  1230.                          
  1231.                     if not LLeg:FindFirstChild('Dismembered') then  
  1232.                         local at4 = Instance.new("Attachment")
  1233.                         at4.Parent = torso
  1234.                         at4.Visible = vis
  1235.                         at4.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  1236.                         at4.Position = Vector3.new(-.5,-1,0)
  1237.                                
  1238.                         local at4p2 = Instance.new("Attachment")
  1239.                         at4p2.Parent = LLeg
  1240.                         at4p2.Visible = vis
  1241.                         at4p2.Orientation = LLeg.Orientation + Vector3.new(90,0,-90)
  1242.                         at4p2.Position = Vector3.new(0,1,0)
  1243.                    
  1244.                         local bis4 = Instance.new("BallSocketConstraint")
  1245.                         bis4.Parent = LLeg
  1246.                         bis4.Attachment0 = at4
  1247.                         bis4.Attachment1 = at4p2
  1248.                         bis4.LimitsEnabled = true
  1249.                         bis4.UpperAngle = 180-15
  1250.                         bis4.Visible = vis2
  1251.                     end
  1252.                    
  1253.                     if not headless and not head:FindFirstChild('Dismembered') then  
  1254.                             local at5 = Instance.new("Attachment")
  1255.                             at5.Parent = torso
  1256.                             at5.Visible = vis
  1257.                             at5.Orientation = torso.Orientation + Vector3.new(180,90,0)
  1258.                             at5.Position = Vector3.new(0,1,0)
  1259.                          
  1260.                             local at5p2 = Instance.new("Attachment")
  1261.                             at5p2.Parent = head
  1262.                             at5p2.Visible = vis
  1263.                             at5p2.Orientation = head.Orientation + Vector3.new(180,90,0)
  1264.                             at5p2.Position = Vector3.new(0,-.5,0)
  1265.                    
  1266.                             local bis5 = Instance.new("BallSocketConstraint")
  1267.                             bis5.Parent = head
  1268.                             bis5.Attachment0 = at5p2
  1269.                             bis5.Attachment1 = at5
  1270.                             bis5.LimitsEnabled = true
  1271.                             bis5.UpperAngle = 75
  1272.                             bis5.Visible = vis2
  1273.                             bis5.TwistLimitsEnabled = true
  1274.                             bis5.UpperAngle = -45
  1275.                             bis5.TwistLowerAngle = -45
  1276.                         else
  1277.                             --head:BreakJoints()
  1278.                         end
  1279.                     end
  1280.             else
  1281.                 hum.Died:Connect(function()
  1282.                 if hum.RigType==Enum.HumanoidRigType.R6 then
  1283.                     for _,v in pairs(torso:GetDescendants()) do
  1284.                         if v:IsA('Motor6D') --[[or v:IsA('BallSocketConstraint') or v:IsA('Attachment')]] then
  1285.                             v:Destroy()
  1286.                         end
  1287.                     end
  1288.                     --pc:BreakJoints()
  1289.                    local vis = false
  1290.                    local vis2 = false
  1291.                     if not LArm:FindFirstChild('Dismembered') then
  1292.                        local at1 = Instance.new("Attachment")
  1293.                        at1.Parent = torso
  1294.                        at1.Visible = vis
  1295.                        at1.Orientation = torso.Orientation + Vector3.new(0,180,0)
  1296.                        at1.Position = Vector3.new(-1,1,0)
  1297.                                        
  1298.                        local at1p2 = Instance.new("Attachment")
  1299.                        at1p2.Parent = LArm
  1300.                        at1p2.Visible = vis
  1301.                        at1p2.Orientation = LArm.Orientation + Vector3.new(0,180,0)
  1302.                        at1p2.Position = Vector3.new(.5,1,0)
  1303.                            
  1304.                        local bis = Instance.new("BallSocketConstraint")
  1305.                        bis.Parent = LArm
  1306.                        bis.Attachment0 = at1
  1307.                        bis.Attachment1 = at1p2
  1308.                        bis.LimitsEnabled = true
  1309.                        bis.UpperAngle = 15
  1310.                        bis.Visible = vis2
  1311.                        bis.TwistLimitsEnabled = true
  1312.                        bis.UpperAngle = -45
  1313.                        bis.TwistLowerAngle = -45
  1314.                     end
  1315.                     if not RArm:FindFirstChild('Dismembered') then    
  1316.                         local at2 = Instance.new("Attachment")
  1317.                         at2.Parent = torso
  1318.                         at2.Visible = vis
  1319.                         at2.Orientation = torso.Orientation + Vector3.new(0,0,0)
  1320.                         at2.Position = Vector3.new(1,1,0)
  1321.                                
  1322.                         local at2p2 = Instance.new("Attachment")
  1323.                         at2p2.Parent = RArm
  1324.                         at2p2.Visible = vis
  1325.                         at2p2.Orientation = RArm.Orientation + Vector3.new(0,0,0)
  1326.                         at2p2.Position = Vector3.new(-.5,1,0)
  1327.                        
  1328.                         local bis2 = Instance.new("BallSocketConstraint")
  1329.                         bis2.Parent = RArm
  1330.                         bis2.Attachment0 = at2
  1331.                         bis2.Attachment1 = at2p2
  1332.                         bis2.LimitsEnabled = true
  1333.                         bis2.UpperAngle = 15
  1334.                         bis2.Visible = vis2
  1335.                         bis2.TwistLimitsEnabled = true
  1336.                         bis2.UpperAngle = -45
  1337.                         bis2.TwistLowerAngle = -45
  1338.                     end
  1339.                      if not RLeg:FindFirstChild('Dismembered') then
  1340.                         local at3 = Instance.new("Attachment")
  1341.                         at3.Parent = torso
  1342.                         at3.Visible = vis
  1343.                         at3.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  1344.                         at3.Position = Vector3.new(.5,-1,0)
  1345.                                
  1346.                         local at3p2 = Instance.new("Attachment")
  1347.                         at3p2.Parent = RLeg
  1348.                         at3p2.Visible = vis
  1349.                         at3p2.Orientation = RLeg.Orientation + Vector3.new(90,0,-90)
  1350.                         at3p2.Position = Vector3.new(0,1,0)
  1351.                        
  1352.                         local bis3 = Instance.new("BallSocketConstraint")
  1353.                         bis3.Parent = RLeg
  1354.                         bis3.Attachment0 = at3
  1355.                         bis3.Attachment1 = at3p2
  1356.                         bis3.LimitsEnabled = true
  1357.                         bis3.UpperAngle = 180-15
  1358.                         bis3.Visible = vis2
  1359.                     end
  1360.                          
  1361.                     if not LLeg:FindFirstChild('Dismembered') then  
  1362.                         local at4 = Instance.new("Attachment")
  1363.                         at4.Parent = torso
  1364.                         at4.Visible = vis
  1365.                         at4.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  1366.                         at4.Position = Vector3.new(-.5,-1,0)
  1367.                                
  1368.                         local at4p2 = Instance.new("Attachment")
  1369.                         at4p2.Parent = LLeg
  1370.                         at4p2.Visible = vis
  1371.                         at4p2.Orientation = LLeg.Orientation + Vector3.new(90,0,-90)
  1372.                         at4p2.Position = Vector3.new(0,1,0)
  1373.                    
  1374.                         local bis4 = Instance.new("BallSocketConstraint")
  1375.                         bis4.Parent = LLeg
  1376.                         bis4.Attachment0 = at4
  1377.                         bis4.Attachment1 = at4p2
  1378.                         bis4.LimitsEnabled = true
  1379.                         bis4.UpperAngle = 180-15
  1380.                         bis4.Visible = vis2
  1381.                     end
  1382.                    
  1383.                     if not headless and not head:FindFirstChild('Dismembered') then  
  1384.                             local at5 = Instance.new("Attachment")
  1385.                             at5.Parent = torso
  1386.                             at5.Visible = vis
  1387.                             at5.Orientation = torso.Orientation + Vector3.new(180,90,0)
  1388.                             at5.Position = Vector3.new(0,1,0)
  1389.                          
  1390.                             local at5p2 = Instance.new("Attachment")
  1391.                             at5p2.Parent = head
  1392.                             at5p2.Visible = vis
  1393.                             at5p2.Orientation = head.Orientation + Vector3.new(180,90,0)
  1394.                             at5p2.Position = Vector3.new(0,-.5,0)
  1395.                    
  1396.                             local bis5 = Instance.new("BallSocketConstraint")
  1397.                             bis5.Parent = head
  1398.                             bis5.Attachment0 = at5p2
  1399.                             bis5.Attachment1 = at5
  1400.                             bis5.LimitsEnabled = true
  1401.                             bis5.UpperAngle = 75
  1402.                             bis5.Visible = vis2
  1403.                             bis5.TwistLimitsEnabled = true
  1404.                             bis5.UpperAngle = -45
  1405.                             bis5.TwistLowerAngle = -45
  1406.                         else
  1407.                             --head:BreakJoints()
  1408.                         end
  1409.                     end
  1410.                 end)
  1411.             end
  1412.         elseif head and hum then
  1413.             pc_torso = pc:FindFirstChild("HumanoidRootPart")
  1414.             hum.BreakJointsOnDeath = false
  1415.             if insta then
  1416.                 if hum.RigType==Enum.HumanoidRigType.R15 then
  1417.                     for _,v in pairs(pc:GetDescendants()) do
  1418.                         if v:IsA('Motor6D') --[[or v:IsA('BallSocketConstraint') or v:IsA('Attachment')]] then
  1419.                             v:Destroy()
  1420.                         end
  1421.                     end
  1422.                     --pc:BreakJoints()
  1423.                     local vis = false
  1424.                     local vis2 = false
  1425.                    
  1426.                 if not LF:FindFirstChild('Dismembered') then  
  1427.                     local bsc1 = Instance.new("BallSocketConstraint",LF)
  1428.                     bsc1.Attachment0 = LF.LeftAnkleRigAttachment
  1429.                     bsc1.Attachment1 = LLL.LeftAnkleRigAttachment
  1430.                 end
  1431.                 if not LLL:FindFirstChild('Dismembered') then  
  1432.                     local bsc2 = Instance.new("BallSocketConstraint",LLL)
  1433.                     bsc2.Attachment0 = LLL.LeftKneeRigAttachment
  1434.                     bsc2.Attachment1 = LUL.LeftKneeRigAttachment
  1435.                 end
  1436.                 if not LUL:FindFirstChild('Dismembered') then  
  1437.                     local bsc3 = Instance.new("BallSocketConstraint",LUL)
  1438.                     bsc3.Attachment0 = LUL.LeftHipRigAttachment
  1439.                     bsc3.Attachment1 = LT.LeftHipRigAttachment
  1440.                 end
  1441.                 if not RF:FindFirstChild('Dismembered') then  
  1442.                     local bsc4 = Instance.new("BallSocketConstraint",RF)
  1443.                     bsc4.Attachment0 = RF.RightAnkleRigAttachment
  1444.                     bsc4.Attachment1 = RLL.RightAnkleRigAttachment
  1445.                 end
  1446.                 if not RLL:FindFirstChild('Dismembered') then  
  1447.                     local bsc5 = Instance.new("BallSocketConstraint",RLL)
  1448.                     bsc5.Attachment0 = RLL.RightKneeRigAttachment
  1449.                     bsc5.Attachment1 = RUL.RightKneeRigAttachment
  1450.                 end
  1451.                 if not RUL:FindFirstChild('Dismembered') then  
  1452.                     local bsc6 = Instance.new("BallSocketConstraint",RUL)
  1453.                     bsc6.Attachment0 = RUL.RightHipRigAttachment
  1454.                     bsc6.Attachment1 = LT.RightHipRigAttachment
  1455.                 end
  1456.                 if not LH:FindFirstChild('Dismembered') then  
  1457.                     local bsc7 = Instance.new("BallSocketConstraint",LH)
  1458.                     bsc7.Attachment0 = LH.LeftWristRigAttachment
  1459.                     bsc7.Attachment1 = LLA.LeftWristRigAttachment
  1460.                 end
  1461.                 if not LLA:FindFirstChild('Dismembered') then  
  1462.                     local bsc8 = Instance.new("BallSocketConstraint",LLA)
  1463.                     bsc8.Attachment0 = LLA.LeftElbowRigAttachment
  1464.                     bsc8.Attachment1 = LUA.LeftElbowRigAttachment
  1465.                 end
  1466.                 if not LUA:FindFirstChild('Dismembered') then  
  1467.                     local bsc9 = Instance.new("BallSocketConstraint",LUA)
  1468.                     bsc9.Attachment0 = LUA.LeftShoulderAttachment
  1469.                     bsc9.Attachment1 = UT.LeftCollarAttachment
  1470.                 end
  1471.                 if not RH:FindFirstChild('Dismembered') then  
  1472.                     local bsc10 = Instance.new("BallSocketConstraint",RH)
  1473.                     bsc10.Attachment0 = RH.RightWristRigAttachment
  1474.                     bsc10.Attachment1 = RLA.RightWristRigAttachment
  1475.                 end
  1476.                 if not RLA:FindFirstChild('Dismembered') then  
  1477.                     local bsc11 = Instance.new("BallSocketConstraint",RLA)
  1478.                     bsc11.Attachment0 = RLA.RightElbowRigAttachment
  1479.                     bsc11.Attachment1 = RUA.RightElbowRigAttachment
  1480.                 end
  1481.                 if not RUA:FindFirstChild('Dismembered') then  
  1482.                     local bsc12 = Instance.new("BallSocketConstraint",RUA)
  1483.                     bsc12.Attachment0 = RUA.RightShoulderAttachment
  1484.                     bsc12.Attachment1 = UT.RightCollarAttachment
  1485.                 end
  1486.                 if not LT:FindFirstChild('Dismembered') then  
  1487.                     local bsc13 = Instance.new("BallSocketConstraint",LT)
  1488.                     bsc13.Attachment0 = LT.WaistRigAttachment
  1489.                     bsc13.Attachment1 = UT.WaistRigAttachment
  1490.                 end
  1491.                     if not headless and not head:FindFirstChild('Dismembered')  then
  1492.                         local bsc14 = Instance.new("BallSocketConstraint",head)
  1493.                         bsc14.Attachment0 = UT.NeckRigAttachment
  1494.                         bsc14.Attachment1 = head.NeckRigAttachment
  1495.                         bsc14.LimitsEnabled = true
  1496.                         bsc14.UpperAngle = -75
  1497.                         bsc14.TwistLimitsEnabled = true
  1498.                         bsc14.UpperAngle = -45
  1499.                         bsc14.TwistLowerAngle = -45
  1500.                     else
  1501.                         --head:BreakJoints()
  1502.                     end
  1503.                 end
  1504.             else
  1505.                 hum.Died:Connect(function()
  1506.                     if hum.RigType==Enum.HumanoidRigType.R15 then
  1507.                         for _,v in pairs(pc:GetDescendants()) do
  1508.                             if v:IsA('Motor6D') --[[or v:IsA('BallSocketConstraint') or v:IsA('Attachment')]] then
  1509.                                 v:Destroy()
  1510.                             end
  1511.                         end
  1512.                         --pc:BreakJoints()
  1513.                         local vis = false
  1514.                         local vis2 = false
  1515.                        
  1516.                     if not LF:FindFirstChild('Dismembered') then  
  1517.                         local bsc1 = Instance.new("BallSocketConstraint",LF)
  1518.                         bsc1.Attachment0 = LF.LeftAnkleRigAttachment
  1519.                         bsc1.Attachment1 = LLL.LeftAnkleRigAttachment
  1520.                     end
  1521.                     if not LLL:FindFirstChild('Dismembered') then  
  1522.                         local bsc2 = Instance.new("BallSocketConstraint",LLL)
  1523.                         bsc2.Attachment0 = LLL.LeftKneeRigAttachment
  1524.                         bsc2.Attachment1 = LUL.LeftKneeRigAttachment
  1525.                     end
  1526.                     if not LUL:FindFirstChild('Dismembered') then  
  1527.                         local bsc3 = Instance.new("BallSocketConstraint",LUL)
  1528.                         bsc3.Attachment0 = LUL.LeftHipRigAttachment
  1529.                         bsc3.Attachment1 = LT.LeftHipRigAttachment
  1530.                     end
  1531.                     if not RF:FindFirstChild('Dismembered') then  
  1532.                         local bsc4 = Instance.new("BallSocketConstraint",RF)
  1533.                         bsc4.Attachment0 = RF.RightAnkleRigAttachment
  1534.                         bsc4.Attachment1 = RLL.RightAnkleRigAttachment
  1535.                     end
  1536.                     if not RLL:FindFirstChild('Dismembered') then  
  1537.                         local bsc5 = Instance.new("BallSocketConstraint",RLL)
  1538.                         bsc5.Attachment0 = RLL.RightKneeRigAttachment
  1539.                         bsc5.Attachment1 = RUL.RightKneeRigAttachment
  1540.                     end
  1541.                     if not RUL:FindFirstChild('Dismembered') then  
  1542.                         local bsc6 = Instance.new("BallSocketConstraint",RUL)
  1543.                         bsc6.Attachment0 = RUL.RightHipRigAttachment
  1544.                         bsc6.Attachment1 = LT.RightHipRigAttachment
  1545.                     end
  1546.                     if not LH:FindFirstChild('Dismembered') then  
  1547.                         local bsc7 = Instance.new("BallSocketConstraint",LH)
  1548.                         bsc7.Attachment0 = LH.LeftWristRigAttachment
  1549.                         bsc7.Attachment1 = LLA.LeftWristRigAttachment
  1550.                     end
  1551.                     if not LLA:FindFirstChild('Dismembered') then  
  1552.                         local bsc8 = Instance.new("BallSocketConstraint",LLA)
  1553.                         bsc8.Attachment0 = LLA.LeftElbowRigAttachment
  1554.                         bsc8.Attachment1 = LUA.LeftElbowRigAttachment
  1555.                     end
  1556.                     if not LUA:FindFirstChild('Dismembered') then  
  1557.                         local bsc9 = Instance.new("BallSocketConstraint",LUA)
  1558.                         bsc9.Attachment0 = LUA.LeftShoulderAttachment
  1559.                         bsc9.Attachment1 = UT.LeftCollarAttachment
  1560.                     end
  1561.                     if not RH:FindFirstChild('Dismembered') then  
  1562.                         local bsc10 = Instance.new("BallSocketConstraint",RH)
  1563.                         bsc10.Attachment0 = RH.RightWristRigAttachment
  1564.                         bsc10.Attachment1 = RLA.RightWristRigAttachment
  1565.                     end
  1566.                     if not RLA:FindFirstChild('Dismembered') then  
  1567.                         local bsc11 = Instance.new("BallSocketConstraint",RLA)
  1568.                         bsc11.Attachment0 = RLA.RightElbowRigAttachment
  1569.                         bsc11.Attachment1 = RUA.RightElbowRigAttachment
  1570.                     end
  1571.                     if not RUA:FindFirstChild('Dismembered') then  
  1572.                         local bsc12 = Instance.new("BallSocketConstraint",RUA)
  1573.                         bsc12.Attachment0 = RUA.RightShoulderAttachment
  1574.                         bsc12.Attachment1 = UT.RightCollarAttachment
  1575.                     end
  1576.                     if not LT:FindFirstChild('Dismembered') then  
  1577.                         local bsc13 = Instance.new("BallSocketConstraint",LT)
  1578.                         bsc13.Attachment0 = LT.WaistRigAttachment
  1579.                         bsc13.Attachment1 = UT.WaistRigAttachment
  1580.                     end
  1581.                         if not headless and not head:FindFirstChild('Dismembered')  then
  1582.                             local bsc14 = Instance.new("BallSocketConstraint",head)
  1583.                             bsc14.Attachment0 = UT.NeckRigAttachment
  1584.                             bsc14.Attachment1 = head.NeckRigAttachment
  1585.                             bsc14.LimitsEnabled = true
  1586.                             bsc14.UpperAngle = -75
  1587.                             bsc14.TwistLimitsEnabled = true
  1588.                             bsc14.UpperAngle = -45
  1589.                             bsc14.TwistLowerAngle = -45
  1590.                         else
  1591.                             --head:BreakJoints()
  1592.                         end
  1593.                     end
  1594.                 end)
  1595.             end
  1596.         end
  1597.     end
  1598.     return pc,pc_torso
  1599. end
  1600. local function bleed2(frick,targhum,can_hurt,t,splat)
  1601.     spawn(function()
  1602.     if not frick:FindFirstChild("bleeding from kry's " .. gun.Name) then else return end
  1603.     local tempbleedval = Instance.new("ObjectValue")
  1604.     tempbleedval.Name = "bleeding from kry's " .. gun.Name
  1605.     tempbleedval.Parent = frick
  1606.     local bleeding = true
  1607.     local rig = targhum.RigType
  1608.     local limbs = {'Head','Left Arm','Right Arm','Left Leg','Right Leg','RightUpperLeg','LeftUpperLeg','RightUpperArm','LeftUpperArm','RightLowerLeg','LeftLowerLeg','RightLowerArm','LeftLowerArm','RightFoot','LeftFoot','RightHand','LeftHand'}
  1609.     spawn(function()
  1610.         wait(t)
  1611.         bleeding = false
  1612.         tempbleedval:Destroy()
  1613.     end)
  1614.     while bleeding and frick and frick.Parent do
  1615.         if --[[(targhum and targhum.Parent and targhum.Health > 0) or]] (not frick or not frick.Parent or not targhum or not targhum.Parent) then
  1616.             break
  1617.         end
  1618.         local max_limbs = 0
  1619.         local current_limbs = 0
  1620.         local gone_limbs = 0
  1621.         local targchar = targhum.Parent
  1622.         if rig == Enum.HumanoidRigType.R6 then
  1623.             max_limbs = 5
  1624.         elseif rig == Enum.HumanoidRigType.R15 then
  1625.             max_limbs = 13
  1626.         end
  1627.         for i,v in pairs(targchar:GetChildren()) do
  1628.             local found = false
  1629.             for i,n in pairs(limbs) do if n == v.Name then found = true; end; end;
  1630.             if found and not v:FindFirstChild("Dismembered") then
  1631.                 current_limbs = current_limbs + 1
  1632.             end
  1633.         end
  1634.         gone_limbs = (max_limbs-current_limbs)
  1635.         if targhum and can_hurt then
  1636.             if gone_limbs >= 1 then
  1637.                 targhum:TakeDamage(0.5*gone_limbs)
  1638.             else
  1639.                 targhum:TakeDamage(0.5)
  1640.             end
  1641.         end
  1642.         spawn(function()
  1643.             local thing = Instance.new('Part')
  1644.             thing.Parent = workspace
  1645.             thing.Size = Vector3.new(0.1,0.1,0.1)
  1646.             thing.CFrame = frick.CFrame
  1647.             if splat then
  1648.                 thing.Transparency = 0
  1649.             elseif not splat then
  1650.                 thing.Transparency = 1
  1651.             end
  1652.             thing.Color = Color3.fromRGB(75, 0, 0)
  1653.             thing.Material = Enum.Material.Glass
  1654.             thing.Name = "Blood"
  1655.             thing.CanCollide =false
  1656.             thing:BreakJoints()
  1657.             local mesh = Instance.new('SpecialMesh')
  1658.             mesh.MeshType = Enum.MeshType.Sphere
  1659.             mesh.Parent = thing
  1660.             --game:GetService("Debris"):AddItem(thing,5)
  1661.             local att1,att2 = Instance.new("Attachment"),Instance.new("Attachment")
  1662.             att1.Parent = thing
  1663.             att1.Position = Vector3.new(0,-(thing.Size.Y/2),0)
  1664.             att2.Parent = thing
  1665.             att2.Position = Vector3.new(0,(thing.Size.Y/2),0)
  1666.             if splat then
  1667.                 local trail_drop = Instance.new("Trail")
  1668.                 trail_drop.Parent = thing
  1669.                 trail_drop.Attachment0 = att1
  1670.                 trail_drop.Attachment1 = att2
  1671.                 trail_drop.Color = ColorSequence.new(Color3.new(0.294118, 0, 0),Color3.new(0.294118, 0, 0))
  1672.                 trail_drop.FaceCamera = true
  1673.                 trail_drop.LightInfluence = 1
  1674.                 trail_drop.Transparency = NumberSequence.new(0.1,1)
  1675.                 trail_drop.Lifetime = 1
  1676.                 trail_drop.MinLength = 0
  1677.             end
  1678.             local rawrxd = Instance.new('BodyForce')
  1679.             rawrxd.Parent = thing
  1680.             if splat then
  1681.                 rawrxd.Force = frick.CFrame.upVector+Vector3.new(math.random(-5, 5)/10,3,math.random(-5, 5)/10)
  1682.             elseif not splat then
  1683.                 rawrxd.Force = frick.CFrame.upVector*(math.random()*2)+Vector3.new(math.random(-5, 5)/10,1.5,0)
  1684.             end
  1685.             game:GetService("Debris"):AddItem(rawrxd,0.01)
  1686.             thing.Touched:connect(function(tou)
  1687.                 if tou.Parent and tou.Parent:IsA('Tool') == false and tou.Parent.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.name ~= "mini_blood" and tou.Name ~= "Blood" and tou.Parent ~= char and tou.Parent.ClassName ~= "Accessory" and tou.Parent.Name ~= 'mini_blood' then
  1688.                     local pos = Vector3.new(thing.Position.X,(tou.Position.Y+(tou.Size.Y/2))+(0.02/2),thing.Position.Z)
  1689.                     local Point1 = pos-Vector3.new(0.01,0.01,0.01)
  1690.                     local Point2 = pos+Vector3.new(0.01,0.01,0.01)
  1691.                     local Region = Region3.new(Point1,Point2)
  1692.                     for _,Part in pairs(game.Workspace:FindPartsInRegion3(Region,nil,math.huge)) do
  1693.                         if Part.Name == "blood" then
  1694.                             tou = Part
  1695.                         end
  1696.                     end
  1697.                     thing:Destroy()
  1698.                     if tou.Name == "blood" then
  1699.                         local reee = tou.CFrame
  1700.                         if tou.Transparency > -0.2 then
  1701.                             tou.Transparency = tou.Transparency - 0.1
  1702.                         end
  1703.                         if tou.Size.X < 5 then
  1704.                             tou.Size = tou.Size+Vector3.new(0.4,0,0.4)
  1705.                             tou.CFrame = reee
  1706.                         elseif tou.Size.X < 7.5 then
  1707.                             tou.Size = tou.Size+Vector3.new(0.3,0,0.3)
  1708.                             tou.CFrame = reee
  1709.                         elseif tou.Size.X < 10 then
  1710.                             tou.Size = tou.Size+Vector3.new(0.2,0,0.2)
  1711.                             tou.CFrame = reee
  1712.                         end
  1713.                     elseif tou.CanCollide == true then
  1714.                         local bloodlol = Instance.new('Part')
  1715.                         if gone_limbs >= 1 then
  1716.                             bloodlol.Size = Vector3.new(1*gone_limbs,0.2,1*gone_limbs)
  1717.                         else
  1718.                             bloodlol.Size = Vector3.new(1,0.2,1)
  1719.                         end
  1720.                         bloodlol.Name = "blood"
  1721.                         bloodlol.Anchored = true
  1722.                         bloodlol.CanCollide = false
  1723.                         bloodlol.Material = Enum.Material.Glass
  1724.                         bloodlol.Color = Color3.fromRGB(75, 0, 0)
  1725.                         local mesh = Instance.new('SpecialMesh')
  1726.                         mesh.MeshType = Enum.MeshType.Sphere
  1727.                         mesh.Parent = bloodlol
  1728.                         bloodlol.Parent = workspace
  1729.                         bloodlol.CFrame = CFrame.new(pos)
  1730.                         while bloodlol and bloodlol.Parent ~= nil do
  1731.                             if bloodlol.Transparency < 1 then
  1732.                                 bloodlol.Transparency = bloodlol.Transparency + 0.05
  1733.                             else
  1734.                                 bloodlol:Destroy()
  1735.                             end
  1736.                             wait(0.1)
  1737.                         end
  1738.                     end
  1739.                 end
  1740.             end)
  1741.         end)
  1742.         wait(0.1)
  1743.     end
  1744.     tempbleedval:Destroy()
  1745.     end)
  1746. end
  1747. local function kill(obj,headshot,lookVector)
  1748.     local targchar,targhead,targtorso,targhum,killval,hitval
  1749.     pcall(function()
  1750.         targchar = obj.Parent
  1751.     end)
  1752.     for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  1753.         if v and v.Character and obj:IsDescendantOf(v.Character) then
  1754.             targchar = v.Character
  1755.         end
  1756.     end
  1757.     pcall(function()
  1758.         targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("UpperTorso") or targchar:FindFirstChild("HumanoidRootPart")
  1759.     end)
  1760.     pcall(function()
  1761.         targhead = targchar:FindFirstChild("Head")
  1762.     end)
  1763.     pcall(function()
  1764.         targhum = targchar:FindFirstChildOfClass("Humanoid")
  1765.     end)
  1766.     pcall(function()
  1767.         killval = targhum:FindFirstChild("killer")
  1768.     end)
  1769.     pcall(function()
  1770.         decapval = targhum:FindFirstChild("decapped " .. targchar.Name)
  1771.     end)
  1772.     pcall(function()
  1773.         hitval = targhum:FindFirstChild("hit " .. targchar.Name .. " with famas g2 by " .. plr.Name)
  1774.     end)
  1775.     if targchar and targhead and targtorso and targhum and targhum ~= hum --[[and not hitval]] and using then
  1776.         targhum:TakeDamage(1/0)
  1777.         if 0 >= targhum.Health then
  1778.             if (not decapval and headshot) or not killval then
  1779.                 if not killval then
  1780.                     local tempkillval = Instance.new("ObjectValue",targhum)
  1781.                     tempkillval.Name = "killer"
  1782.                     tempkillval.Value = plr
  1783.                 end
  1784.                 spawn(function()
  1785.                     local kb = 30
  1786.                     local b = Instance.new("BodyVelocity")
  1787.                     b.Parent = targtorso
  1788.                     b.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1789.                     b.Velocity = lookVector*kb + Vector3.new(0,2,0)
  1790.                     game:GetService("Debris"):AddItem(b,0.15)
  1791.                 end)
  1792.                 pcall(function()
  1793.                     Ragdoll(targchar,headshot,true)
  1794.                 end)
  1795.                 bleed2(targtorso,targhum,true,5,true)
  1796.             end
  1797.             if headshot and not decapval then
  1798.                 local tempdecapval = Instance.new("ObjectValue",targhum)
  1799.                 tempdecapval.Name = ("decapped " .. targchar.Name)
  1800.                 local decap_bleed = Instance.new("Sound")
  1801.                 decap_bleed.SoundId = 'rbxassetid://244502094'
  1802.                 decap_bleed.Volume = 0.5
  1803.                 decap_bleed.Parent = targtorso
  1804.                 decap_bleed:Play()
  1805.                 local decap_head = Instance.new("Sound")
  1806.                 decap_head.SoundId = 'rbxassetid://1255040462' --222406108
  1807.                 decap_head.Volume = 1
  1808.                 decap_head.Parent = targtorso
  1809.                 decap_head:Play()
  1810.                 local att = Instance.new("Attachment")
  1811.                 att.Parent = targtorso
  1812.                 att.Position = Vector3.new(0,targtorso.Size.Y/2,0)
  1813.                 local blood_emitter = Instance.new("ParticleEmitter")
  1814.                 blood_emitter.Name = "Blood2"
  1815.                 blood_emitter.Parent = att
  1816.                 blood_emitter.Speed = NumberRange.new(5, 14)
  1817.                 blood_emitter.Color = ColorSequence.new(Color3.new(0.45098, 0, 0),Color3.new(0.45098, 0, 0))
  1818.                 blood_emitter.LightEmission = 0.20000000298023
  1819.                 blood_emitter.LightInfluence = 1
  1820.                 blood_emitter.Texture = "http://www.roblox.com/asset/?id=134531274"
  1821.                 blood_emitter.Transparency = NumberSequence.new(0.30000001192093,0.30000001192093)
  1822.                 blood_emitter.ZOffset = 1
  1823.                 blood_emitter.Size = NumberSequence.new(0.12499988079071,0)
  1824.                 blood_emitter.Acceleration = Vector3.new(0, -20, 0)
  1825.                 blood_emitter.Lifetime = NumberRange.new(0.5, 1.5)
  1826.                 blood_emitter.Rate = 100000
  1827.                 blood_emitter.SpreadAngle = Vector2.new(90, 90)
  1828.                 blood_emitter.VelocitySpread = 90
  1829.                 blood_emitter.Enabled = true
  1830.             end
  1831.         end
  1832.     end
  1833. end
  1834.  
  1835. local function Reload()
  1836.     if max_ammo > ammo then else return end
  1837.     using = true
  1838.     reload_s:Play()
  1839.     local mag = Instance.new("Part")
  1840.     mag.Size = Vector3.new(0.47, 0.86, 0.16)
  1841.     mag.Color = han.Color
  1842.     mag.Parent = workspace
  1843.     mag.CFrame = han.CFrame * CFrame.new(1.2,-0.5,0)
  1844.     --debris:AddItem(mag,3)
  1845.     wait(reload_s.TimeLength)
  1846.     ammo = max_ammo
  1847.     game:GetService("Debris"):AddItem(mag,10)
  1848.     using = false
  1849. end
  1850.  
  1851. local function breakwindow(hit)
  1852.     if hit and hit.Name:lower() ~= "window shatter" and hit.Name:lower() ~= "blood" and hit.Name:lower() ~= "mini_blood" then else return end
  1853.     local wbreakc = wbreak:Clone()
  1854.     wbreakc.Parent = hit
  1855.     wbreakc:Play()
  1856.     local sx,sy,sz=hit.Size.x,hit.Size.y,hit.Size.z
  1857.     hit.Name = "window shatter"
  1858.     for x=1,4 do
  1859.         for y=1,4 do
  1860.             local part=hit:Clone()
  1861.             local position=Vector3.new(x-2.1,y-2.1,0)*Vector3.new(sx/4,sy/4,sz)
  1862.             part.Size=Vector3.new(sx/4,sy/4,sz)
  1863.             part.CFrame=hit.CFrame*(CFrame.new(part.Size/8)-hit.Size/8+position)           
  1864.             part.Velocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1865.             part.Name="window shatter"
  1866.             part.Parent=hit.Parent
  1867.             debris:AddItem(part,2)
  1868.             spawn(function()
  1869.                 wait(0.5)
  1870.                 for i=1,10 do
  1871.                     part.Transparency=part.Transparency+0.05
  1872.                     wait(0.05)
  1873.                 end
  1874.                 part:Destroy()
  1875.             end)
  1876.             part.Anchored=false
  1877.         end
  1878.     end
  1879.     hit:Destroy()
  1880. end
  1881.  
  1882. local function raycast(Pos,Dir,Max,Ignore)
  1883.     return workspace:FindPartOnRayWithIgnoreList(Ray.new(Pos, Dir * (Max or 999.999)), (Ignore or {}), false, true)
  1884. end
  1885.  
  1886. local objhit = {}
  1887. local oldobjhit = {}
  1888.  
  1889. local function make_hole(pos,obj,col)
  1890.     local BulletHolePart = Instance.new("Part")
  1891.     BulletHolePart.Massless = true
  1892.     BulletHolePart.Anchored = false
  1893.     BulletHolePart.CanCollide = false
  1894.     BulletHolePart.Locked = true
  1895.     BulletHolePart.FormFactor = "Custom"
  1896.     BulletHolePart.TopSurface, BulletHolePart.BottomSurface, BulletHolePart.RightSurface, BulletHolePart.LeftSurface, BulletHolePart.FrontSurface, BulletHolePart.BackSurface = "SmoothNoOutlines", "SmoothNoOutlines", "SmoothNoOutlines", "SmoothNoOutlines", "SmoothNoOutlines", "SmoothNoOutlines"
  1897.     BulletHolePart.Name = "Bullet Hole"
  1898.     BulletHolePart.Material = "Plastic"
  1899.     BulletHolePart.Reflectance = 0
  1900.     BulletHolePart.Transparency = 1
  1901.     BulletHolePart.BrickColor = BrickColor.new("Medium stone grey")
  1902.     BulletHolePart.Size = Vector3.new(0.3, 0, 0.3)
  1903.     BulletHolePart:BreakJoints()
  1904.     BulletHolePart.CFrame = pos
  1905.     BulletHolePart.Parent = script
  1906.     local weld = Instance.new("WeldConstraint")
  1907.     weld.Part0 = obj
  1908.     weld.Part1 = BulletHolePart
  1909.     weld.Parent = obj
  1910.    -- game:GetService("Debris"):AddItem(BulletHolePart, 5)
  1911.     local BulletHoleDecal = Instance.new("Decal")
  1912.     BulletHoleDecal.Color3 = Color3.new(col.r, col.g, col.b)
  1913.     BulletHoleDecal.Face = "Top"
  1914.     BulletHoleDecal.Texture = "rbxassetid://359667865"
  1915.     BulletHoleDecal.Transparency = 0
  1916.     BulletHoleDecal.Parent = BulletHolePart
  1917.     return BulletHolePart
  1918. end
  1919.  
  1920. local blood_images = {931617584,1663434319,1391189545,4533673847,3236192667,2565888666,612591729,120362139,116830967,122022304,131339257,247766282,121678640,176677800,120361912,176678070,176678086,176677869} --305296807,256293532,148713503,176678030
  1921.  
  1922. local e_s = 1
  1923.  
  1924. local function add_decal(f,t,obj)
  1925.     spawn(function()
  1926.     local texture = Instance.new("Texture")
  1927.     texture.Parent = obj
  1928.     texture.Face = f
  1929.     texture.Texture = 'rbxassetid://' .. t
  1930.     if f == 'Left' or f == 'Right' then
  1931.         texture.StudsPerTileV = obj.Size.Y + e_s
  1932.         if (obj.Size.X > obj.Size.Z) then
  1933.             texture.StudsPerTileV = obj.Size.Z + e_s
  1934.         elseif (obj.Size.Z > obj.Size.X) then
  1935.             texture.StudsPerTileU = obj.Size.X + e_s
  1936.         else
  1937.             texture.StudsPerTileU = obj.Size.X + e_s
  1938.         end
  1939.     elseif f == 'Front' or f == 'Back' then
  1940.         texture.StudsPerTileV = obj.Size.Y + e_s
  1941.         if (obj.Size.X > obj.Size.Z) then
  1942.             texture.StudsPerTileV = obj.Size.X + e_s
  1943.         elseif (obj.Size.Z > obj.Size.X) then
  1944.             texture.StudsPerTileU = obj.Size.Z + e_s
  1945.         else
  1946.             texture.StudsPerTileU = obj.Size.X + e_s
  1947.         end
  1948.     elseif f == 'Top' or f == 'Bottom' then
  1949.         texture.StudsPerTileV = obj.Size.X + e_s
  1950.         texture.StudsPerTileU = obj.Size.Z + e_s
  1951.     end
  1952.     end)
  1953. end
  1954.  
  1955. local function add_blood(obj)
  1956.     local t1,t2,t3,t4,t5,t6 = blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)]
  1957.     add_decal('Top',t1,obj)
  1958.     add_decal('Bottom',t2,obj)
  1959.     add_decal('Left',t3,obj)
  1960.     add_decal('Right',t4,obj)
  1961.     add_decal('Front',t5,obj)
  1962.     add_decal('Back',t6,obj)
  1963. end
  1964.  
  1965. local function make_bone(obj,targtorso)
  1966.     if obj.Name == 'Left Arm' or obj.Name == 'LeftUpperArm' then
  1967.         local bone = Instance.new("Part")
  1968.         bone.CanCollide = false
  1969.         bone.Anchored = false
  1970.         bone.CFrame = targtorso.CFrame
  1971.         bone.Size = targtorso.Size
  1972.         bone.Massless = true
  1973.         bone.Locked = true
  1974.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  1975.         if not exists then
  1976.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  1977.         end
  1978.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  1979.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  1980.         game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
  1981.         local weld = Instance.new("Weld")
  1982.         weld.Part0 = bone
  1983.         weld.Part1 = targtorso
  1984.         weld.C1 = CFrame.new(-0.61,0.77,0.03)*CFrame.Angles(math.rad(90),0,math.rad(90))
  1985.         weld.Parent = bone
  1986.         targtorso.Anchored = false
  1987.         bone.Parent = script
  1988.         local mesh = Instance.new("SpecialMesh")
  1989.         mesh.MeshId = 'rbxassetid://1076136382'
  1990.         mesh.TextureId = 'rbxassetid://1076137938'
  1991.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  1992.         mesh.Parent = bone
  1993.         --
  1994.         local bone = Instance.new("Part")
  1995.         bone.CanCollide = false
  1996.         bone.Anchored = false
  1997.         bone.CFrame = obj.CFrame
  1998.         bone.Size = obj.Size
  1999.         bone.Massless = true
  2000.         bone.Locked = true
  2001.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  2002.         if not exists then
  2003.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  2004.         end
  2005.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  2006.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  2007.         game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  2008.         local weld = Instance.new("Weld")
  2009.         weld.Part0 = bone
  2010.         weld.Part1 = obj
  2011.         weld.C1 = CFrame.new(0.13,0.26,0)
  2012.         weld.Parent = bone
  2013.         obj.Anchored = false
  2014.         bone.Parent = script
  2015.         local mesh = Instance.new("SpecialMesh")
  2016.         mesh.MeshId = 'rbxassetid://36780032'
  2017.         mesh.TextureId = 'rbxassetid://36780292'
  2018.         mesh.Parent = bone
  2019.     elseif obj.Name == 'Right Arm' or obj.Name == 'RightUpperArm' then
  2020.         local bone = Instance.new("Part")
  2021.         bone.CanCollide = false
  2022.         bone.Anchored = false
  2023.         bone.CFrame = targtorso.CFrame
  2024.         bone.Size = targtorso.Size
  2025.         bone.Massless = true
  2026.         bone.Locked = true
  2027.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  2028.         if not exists then
  2029.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  2030.         end
  2031.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  2032.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  2033.         game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
  2034.         local weld = Instance.new("Weld")
  2035.         weld.Part0 = bone
  2036.         weld.Part1 = targtorso
  2037.         weld.C1 = CFrame.new(0.61,0.77,0.03)*CFrame.Angles(math.rad(90),0,math.rad(-90))
  2038.         weld.Parent = bone
  2039.         targtorso.Anchored = false
  2040.         bone.Parent = script
  2041.         local mesh = Instance.new("SpecialMesh")
  2042.         mesh.MeshId = 'rbxassetid://1076136382'
  2043.         mesh.TextureId = 'rbxassetid://1076137938'
  2044.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  2045.         mesh.Parent = bone
  2046.         --
  2047.         local bone = Instance.new("Part")
  2048.         bone.CanCollide = false
  2049.         bone.Anchored = false
  2050.         bone.CFrame = obj.CFrame
  2051.         bone.Size = obj.Size
  2052.         bone.Massless = true
  2053.         bone.Locked = true
  2054.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  2055.         if not exists then
  2056.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  2057.         end
  2058.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  2059.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  2060.         game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  2061.         local weld = Instance.new("Weld")
  2062.         weld.Part0 = bone
  2063.         weld.Part1 = obj
  2064.         weld.C1 = CFrame.new(-0.13,0.26,0)
  2065.         weld.Parent = bone
  2066.         obj.Anchored = false
  2067.         bone.Parent = script
  2068.         local mesh = Instance.new("SpecialMesh")
  2069.         mesh.MeshId = 'rbxassetid://36780156'
  2070.         mesh.TextureId = 'rbxassetid://36780292'
  2071.         mesh.Parent = bone
  2072.     elseif obj.Name == 'Left Leg' or obj.Name == 'LeftUpperLeg' then
  2073.         local bone = Instance.new("Part")
  2074.         bone.CanCollide = false
  2075.         bone.Anchored = false
  2076.         bone.CFrame = targtorso.CFrame
  2077.         bone.Size = targtorso.Size
  2078.         bone.Massless = true
  2079.         bone.Locked = true
  2080.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  2081.         if not exists then
  2082.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  2083.         end
  2084.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  2085.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  2086.         game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
  2087.         local weld = Instance.new("Weld")
  2088.         weld.Part0 = bone
  2089.         weld.Part1 = targtorso
  2090.         weld.C1 = CFrame.new(-0.6,-0.64,0.11)*CFrame.Angles(0,0,math.rad(180))
  2091.         weld.Parent = bone
  2092.         targtorso.Anchored = false
  2093.         bone.Parent = script
  2094.         local mesh = Instance.new("SpecialMesh")
  2095.         mesh.MeshId = 'rbxassetid://1076136382'
  2096.         mesh.TextureId = 'rbxassetid://1076137938'
  2097.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  2098.         mesh.Parent = bone
  2099.         --
  2100.         local bone = Instance.new("Part")
  2101.         bone.CanCollide = false
  2102.         bone.Anchored = false
  2103.         bone.CFrame = obj.CFrame
  2104.         bone.Size = obj.Size
  2105.         bone.Massless = true
  2106.         bone.Locked = true
  2107.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  2108.         if not exists then
  2109.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  2110.         end
  2111.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  2112.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  2113.         game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  2114.         local weld = Instance.new("Weld")
  2115.         weld.Part0 = bone
  2116.         weld.Part1 = obj
  2117.         weld.C1 = CFrame.new(0,0.09,0.13)
  2118.         weld.Parent = bone
  2119.         obj.Anchored = false
  2120.         bone.Parent = script
  2121.         local mesh = Instance.new("SpecialMesh")
  2122.         mesh.MeshId = 'rbxassetid://36780156'
  2123.         mesh.TextureId = 'rbxassetid://36780292'
  2124.         mesh.Parent = bone
  2125.     elseif obj.Name == 'Right Leg' or obj.Name == 'RightUpperLeg' then
  2126.         local bone = Instance.new("Part")
  2127.         bone.CanCollide = false
  2128.         bone.Anchored = false
  2129.         bone.CFrame = targtorso.CFrame
  2130.         bone.Size = targtorso.Size
  2131.         bone.Massless = true
  2132.         bone.Locked = true
  2133.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  2134.         if not exists then
  2135.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  2136.         end
  2137.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  2138.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  2139.         game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
  2140.         local weld = Instance.new("Weld")
  2141.         weld.Part0 = bone
  2142.         weld.Part1 = targtorso
  2143.         weld.C1 = CFrame.new(0.6,-0.64,0.11)*CFrame.Angles(0,0,math.rad(180))
  2144.         weld.Parent = bone
  2145.         targtorso.Anchored = false
  2146.         bone.Parent = script
  2147.         local mesh = Instance.new("SpecialMesh")
  2148.         mesh.MeshId = 'rbxassetid://1076136382'
  2149.         mesh.TextureId = 'rbxassetid://1076137938'
  2150.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  2151.         mesh.Parent = bone
  2152.         --
  2153.         local bone = Instance.new("Part")
  2154.         bone.CanCollide = false
  2155.         bone.Anchored = false
  2156.         bone.CFrame = obj.CFrame
  2157.         bone.Size = obj.Size
  2158.         bone.Massless = true
  2159.         bone.Locked = true
  2160.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  2161.         if not exists then
  2162.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  2163.         end
  2164.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  2165.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  2166.         game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  2167.         local weld = Instance.new("Weld")
  2168.         weld.Part0 = bone
  2169.         weld.Part1 = obj
  2170.         weld.C1 = CFrame.new(0,0.09,0.13)
  2171.         weld.Parent = bone
  2172.         obj.Anchored = false
  2173.         bone.Parent = script
  2174.         local mesh = Instance.new("SpecialMesh")
  2175.         mesh.MeshId = 'rbxassetid://36780195'
  2176.         mesh.TextureId = 'rbxassetid://36780292'
  2177.         mesh.Parent = bone
  2178.     elseif obj.Name == 'Head' then
  2179.         local bone = Instance.new("Part")
  2180.         bone.CanCollide = false
  2181.         bone.Anchored = false
  2182.         bone.CFrame = targtorso.CFrame
  2183.         bone.Size = targtorso.Size
  2184.         bone.Massless = true
  2185.         bone.Locked = true
  2186.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  2187.         if not exists then
  2188.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  2189.         end
  2190.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  2191.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  2192.         game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
  2193.         local weld = Instance.new("Weld")
  2194.         weld.Part0 = bone
  2195.         weld.Part1 = targtorso
  2196.         weld.C1 = CFrame.new(0,0.66,0)
  2197.         weld.Parent = bone
  2198.         targtorso.Anchored = false
  2199.         bone.Parent = script
  2200.         local mesh = Instance.new("SpecialMesh")
  2201.         mesh.MeshId = 'rbxassetid://1076136382'
  2202.         mesh.TextureId = 'rbxassetid://1076137938'
  2203.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  2204.         mesh.Parent = bone
  2205.         --
  2206.         local bone = Instance.new("Part")
  2207.         bone.CanCollide = false
  2208.         bone.Anchored = false
  2209.         bone.CFrame = obj.CFrame
  2210.         bone.Size = obj.Size
  2211.         bone.Massless = true
  2212.         bone.Locked = true
  2213.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  2214.         if not exists then
  2215.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  2216.         end
  2217.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  2218.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  2219.         game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  2220.         local weld = Instance.new("Weld")
  2221.         weld.Part0 = bone
  2222.         weld.Part1 = obj
  2223.         weld.C1 = CFrame.new(0,-0.23,0)*CFrame.Angles(0,math.rad(-90),0)
  2224.         weld.Parent = bone
  2225.         obj.Anchored = false
  2226.         bone.Parent = script
  2227.         local mesh = Instance.new("SpecialMesh")
  2228.         mesh.MeshId = 'rbxassetid://1076136382'
  2229.         mesh.TextureId = 'rbxassetid://1076137938'
  2230.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  2231.         mesh.Parent = bone
  2232.     end
  2233. end
  2234.  
  2235. local function break_limb(obj,rig,targtorso,targhum)
  2236.     if not obj:FindFirstChild('Dismembered') and obj.Name ~= 'Torso' and obj.Name ~= 'HumanoidRootPart' and obj.Name ~= 'UpperTorso' and obj.Name ~= 'LowerTorso' then else return end
  2237.     local confirm = Instance.new("ObjectValue")
  2238.     confirm.Name = 'Dismembered'
  2239.     confirm.Parent = obj
  2240.     local bsc = obj:FindFirstChildOfClass("BallSocketConstraint")
  2241.     if bsc then
  2242.         bsc:Destroy()
  2243.     end
  2244.     bleed2(obj,targhum,false,5,false)
  2245.     make_bone(obj,targtorso)
  2246.     local kb = 10
  2247.     local b = Instance.new("BodyVelocity")
  2248.     b.Parent = targtorso
  2249.     b.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  2250.     b.Velocity = han.CFrame.lookVector*kb + Vector3.new(0,2,0)
  2251.     game:GetService("Debris"):AddItem(b,0.1)
  2252.     if rig == Enum.HumanoidRigType.R6 then
  2253.         local bsc = obj:FindFirstChildOfClass("BallSocketConstraint")
  2254.         if bsc then
  2255.             bsc:Destroy()
  2256.         end
  2257.         for i,v in pairs(targtorso:GetChildren()) do
  2258.             if v:IsA("Motor6D") then
  2259.                 if obj.Name == 'Head' and v.Name == 'Neck' then
  2260.                     v:Destroy()
  2261.                 elseif obj.Name == 'Left Arm' and v.Name == 'Left Shouldver' then
  2262.                     v:Destroy()
  2263.                 elseif obj.Name == 'Right Arm' and v.Name == 'Right Shoulder' then
  2264.                     v:Destroy()
  2265.                 elseif obj.Name == 'Left Leg' and v.Name == 'Left Hip' then
  2266.                     if obj.Parent:FindFirstChild("Right Leg") then
  2267.                         targhum.WalkSpeed = targhum.WalkSpeed/2
  2268.                     else
  2269.                         targhum.WalkSpeed = 0
  2270.                     end
  2271.                     v:Destroy()
  2272.                 elseif obj.Name == 'Right Leg' and v.Name == 'Right Hip' then
  2273.                     if obj.Parent:FindFirstChild("Left Leg") then
  2274.                         targhum.WalkSpeed = targhum.WalkSpeed/2
  2275.                     else
  2276.                         targhum.WalkSpeed = 0
  2277.                     end
  2278.                     v:Destroy()
  2279.                 end
  2280.             end
  2281.         end
  2282.     elseif rig == Enum.HumanoidRigType.R15 then
  2283.         for i,v in pairs(obj:GetChildren()) do
  2284.             if v:IsA("Motor6D") then
  2285.                 if (obj.Name == 'LeftUpperLeg' and obj.Parent:FindFirstChild("RightUpperLeg")) or (obj.Name == 'RightUpperLeg' and obj.Parent:FindFirstChild("LeftUpperLeg")) then
  2286.                     targhum.WalkSpeed = targhum.WalkSpeed/2
  2287.                 elseif obj.Name == 'RightUpperLeg' or obj.Name == 'LeftUpperLeg' then
  2288.                     targhum.WalkSpeed = 0
  2289.                 end
  2290.                 v:Destroy()
  2291.             end
  2292.         end
  2293.     end
  2294.     local cb = Instance.new("Part")
  2295.     cb.Transparency = 1
  2296.     cb.CanCollide = true
  2297.     cb.Anchored = false
  2298.     cb.CFrame = obj.CFrame
  2299.     cb.Size = obj.Size
  2300.     cb.Massless = true
  2301.     cb.Locked = true
  2302.     local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  2303.     if not exists then
  2304.         game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  2305.     end
  2306.     game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  2307.     game:GetService("PhysicsService"):SetPartCollisionGroup(cb,'Limb Collide')
  2308.     game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  2309.     local weld = Instance.new("Weld")
  2310.     weld.Part0 = cb
  2311.     weld.Part1 = obj
  2312.     weld.Parent = cb
  2313.     obj.Massless = true
  2314.     obj.Anchored = false
  2315.     cb.Parent = script
  2316. end
  2317.  
  2318. local function check(toughness,obj,objpos,p,rays,rot)
  2319.     local plrhit = false
  2320.     if obj and not obj:FindFirstChild('Dismembered') then else return; end;
  2321.     local targchar,targtorso,targhum,targhead
  2322.     pcall(function()
  2323.         targchar = obj.Parent
  2324.     end)
  2325.     for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  2326.         if v and v.Character and obj:IsDescendantOf(v.Character) then
  2327.             targchar = v.Character
  2328.         end
  2329.     end
  2330.     pcall(function()
  2331.         targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("UpperTorso") or targchar:FindFirstChild("HumanoidRootPart")
  2332.     end)
  2333.     pcall(function()
  2334.         targhum = targchar:FindFirstChildOfClass("Humanoid")
  2335.     end)
  2336.     pcall(function()
  2337.         targhead = targchar:FindFirstChild("Head")
  2338.     end)
  2339.     if targchar and targchar.Parent and targtorso and targtorso.Parent and targhum and targhum.Parent and targhum ~= hum and targhead and targhead.Parent and not targhum:FindFirstChild("hit " .. targchar.Name .. " with " .. gun.Name .. " by " .. plr.Name) then
  2340.         plrhit = true
  2341.         local confirm = Instance.new("IntValue")
  2342.         confirm.Parent = targhum
  2343.         confirm.Name = ("hit " .. targchar.Name .. " with " .. gun.Name .. " by " .. plr.Name)
  2344.         debris:AddItem(confirm,shootwait)
  2345.         local dmg = math.random(30,40)
  2346.         if obj == targhead then
  2347.             dmg = math.random(50,60)
  2348.             targhum:TakeDamage(dmg)
  2349.         elseif not op then
  2350.             dmg = math.random(30,40)
  2351.             targhum:TakeDamage(dmg)
  2352.         elseif op then
  2353.             targhum.MaxHealth = 0
  2354.             targhum.Health = 0
  2355.             targhum.Parent:BreakJoints()
  2356.         end
  2357.         if math.random(1,3) == 1 then
  2358.             break_limb(obj,targhum.RigType,targtorso,targhum)
  2359.         end
  2360.         add_blood(obj)
  2361.         local bleeding = Instance.new("Sound")
  2362.         bleeding.SoundId = 'rbxassetid://360007673'
  2363.         bleeding.Volume = 1
  2364.         bleeding.Parent = targtorso
  2365.         bleeding:Play()
  2366.         if 0 >= targhum.Health and obj == targhead then
  2367.             kill(obj,true,p.CFrame.lookVector)
  2368.         elseif 0 >= targhum.Health then
  2369.             kill(obj,false,p.CFrame.lookVector)
  2370.         elseif targhum.Health > 0 then
  2371.             bleed2(targtorso,targhum,true,5,false)
  2372.         end
  2373.     else
  2374.         table.insert(objhit,1,obj)
  2375.         local mat = obj.Material
  2376.         local mathit = obj:FindFirstChild('material hit ' .. plr.Name)
  2377.         if not mathit and toughness > 0 and 1 > obj.Transparency then
  2378.             --print('old: ' .. toughness)
  2379.             if (mat == Enum.Material.Glass or mat == Enum.Material.Ice) then
  2380.                 breakwindow(obj)
  2381.             elseif (mat == Enum.Material.Wood or mat == Enum.Material.WoodPlanks) then
  2382.                 toughness = toughness - 1.5
  2383.             elseif (mat == Enum.Material.Metal or mat == Enum.Material.DiamondPlate or mat == Enum.Material.CorrodedMetal) then
  2384.                 toughness = toughness - 5
  2385.             elseif (mat == Enum.Material.Brick or mat == Enum.Material.Concrete or mat == Enum.Material.Cobblestone or mat == Enum.Material.Granite or mat == Enum.Material.Slate or mat == Enum.Material.Pebble) then
  2386.                 toughness = toughness - 3
  2387.             else
  2388.                 toughness = toughness - 1
  2389.             end
  2390.             --print('new: ' .. toughness)
  2391.             local libruary = {
  2392.                 ['wizz'] = {342190005, 342190012, 342190017, 342190024},
  2393.                 ['crackSmall'] = {873119768, 873119788, 873119811, 873119845, 873119886, 873119904},
  2394.                 ['crackBig'] = {873119597, 873119653, 873119679, 873119703, 873119724, 873119744},
  2395.                 ['whizz'] = {873121840, 873121858, 873121876, 873121896, 873121913, 873121936},
  2396.                 ['woodhit'] = {342204157, 342204164, 342204170, 342204175, 871705143, 871705174}, --871705195, 871705217, 871705237, 871705264
  2397.                 ['stonehit'] = {871701076, 871701134, 871701190, 871701241, 871701297, 871701346},
  2398.                 ['metalhit'] = {871704182, 871704259, 871704297, 871704329, 871704362, 871704395},
  2399.                 ['grasshit'] = {871709869, 871709832, 871709789, 871709755, 871709708, 871709643},
  2400.                 ['impact'] = {525720625},
  2401.             }
  2402.             local soundfont=({
  2403.                 Brick="stonehit";
  2404.                 Cobblestone="stonehit";
  2405.                 Concrete="stonehit";
  2406.                 CorrodedMetal="metalhit";
  2407.                 DiamondPlate="metalhit";
  2408.                 Fabric=nil;
  2409.                 Foil="metalhit";
  2410.                 Granite="stonehit";
  2411.                 Grass="grasshit";
  2412.                 Ice="stonehit";
  2413.                 Marble="stonehit";
  2414.                 Metal="metalhit";
  2415.                 Neon=nil;
  2416.                 Pebble="stonehit";
  2417.                 Plastic="metalhit";
  2418.                 Sand=nil;
  2419.                 Slate="stonehit";
  2420.                 SmoothPlastic="metalhit";
  2421.                 Wood="woodhit";
  2422.                 WoodPlanks="woodhit";
  2423.             })[mat.Name]
  2424.             local part = make_hole(CFrame.new(objpos, objpos - rot) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) * CFrame.Angles(math.rad(0), math.rad(math.random(-360, 360)), math.rad(0)), obj, obj.BrickColor)
  2425.             local BulletHoleSound = Instance.new("Sound")
  2426.             BulletHoleSound.Volume = 0.5
  2427.             BulletHoleSound.Pitch = math.random(9,11)/10
  2428.             if soundfont ~= nil then
  2429.                 BulletHoleSound.SoundId = "rbxassetid://"..libruary[soundfont][math.random(1,6)]
  2430.             else
  2431.                 BulletHoleSound.SoundId = "rbxassetid://"..libruary['impact'][1]
  2432.             end
  2433.             BulletHoleSound.Parent = part
  2434.             BulletHoleSound:Play()
  2435.             local tempmathit = Instance.new("ObjectValue")
  2436.             tempmathit.Name = ('material hit ' .. plr.Name)
  2437.             tempmathit.Parent = obj
  2438.             game:GetService("Debris"):AddItem(tempmathit,shootwait)
  2439.         end
  2440.     end
  2441.     if toughness > 0 and rays > 0 then
  2442.         local found = false
  2443.         for i,v in pairs(oldobjhit) do if v and obj:IsDescendantOf(v) then found = true; end; end;
  2444.         oldobjhit = objhit
  2445.         if not plrhit and not found then
  2446.             rays = rays - 1
  2447.             wait()
  2448.         end
  2449.         local ig = {char,gun,script,unpack(objhit)}
  2450.         local _obj,_vec,_rot = raycast(objpos,(hitpos-objpos).Unit, nil, ig)
  2451.         check(toughness,_obj,_vec,p,rays,_rot)
  2452.     else
  2453.         p:Destroy()
  2454.     end
  2455. end
  2456.  
  2457. local function drop_shell()
  2458.     local Shell = Instance.new("Part")
  2459.     Shell.Color = Color3.new(1, 1, 0)
  2460.     Shell.Size = Vector3.new(0.530001819, 0.132500455, 0.132500455)
  2461.     Shell.BottomSurface = Enum.SurfaceType.Smooth
  2462.     Shell.BrickColor = BrickColor.new("New Yeller")
  2463.     Shell.Material = Enum.Material.Metal
  2464.     Shell.Shape = Enum.PartType.Cylinder
  2465.     Shell.CFrame = han.CFrame
  2466.     Shell.Parent = script
  2467.     local bvs = Instance.new("BodyVelocity")
  2468.     bvs.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  2469.     bvs.Velocity = han.CFrame.lookVector+Vector3.new(0,10,-5)
  2470.     bvs.Parent = Shell
  2471.     game:GetService("Debris"):AddItem(bvs,0.1)
  2472.     game:GetService("Debris"):AddItem(Shell,10)
  2473. end
  2474.  
  2475. local function Shoot()
  2476.     if not using and CheckIfAlive() and ammo > 0 then
  2477.         using = true
  2478.         wait()
  2479.         ammo = ammo - 1
  2480.         tween:Create(gun,TweenInfo.new(0.1),({Grip = CFrame.new(0.364753544, -0.169386029, -0.00732704997, -4.3651621e-08, -0.0522755384, 0.998632669, -2.2850366e-09, 0.99863261, 0.0522755422, -1, 0, -4.37113883e-08)})):Play()
  2481.         spawn(function()
  2482.             flash.Enabled = true
  2483.             light.Enabled = true
  2484.             smoke.Enabled = true
  2485.             wait()
  2486.             flash.Enabled = false
  2487.             light.Enabled = false
  2488.             smoke.Enabled = false
  2489.         end)
  2490.         for i = 1,bulletfire do
  2491.             drop_shell()
  2492.             local mrd = math.random(1,3)
  2493.             if mrd == 1 then
  2494.                 shoot_s:Play()
  2495.             elseif mrd == 2 then
  2496.                 shoot_s2:Play()
  2497.             elseif mrd == 3 then
  2498.                 shoot_s3:Play()
  2499.             end
  2500.             for i,v in ipairs(objhit) do table.remove(objhit,i); end;
  2501.             for i,v in ipairs(objhit) do table.remove(oldobjhit,i); end;
  2502.             spawn(function()
  2503.                 local p = Instance.new("Part")
  2504.                 p.Name = "bullet"
  2505.                 p.Massless = true
  2506.                 p.Anchored = false
  2507.                 p.CanCollide = false
  2508.                 p.Color = Color3.fromRGB(255, 255, 0)
  2509.                 p.Size = Vector3.new(0.5,0.5,1)
  2510.                 p.Transparency = 0
  2511.                 p.Position = han.Position
  2512.                 p.CFrame = CFrame.new(han.Position,hitpos)
  2513.                 p.Velocity = p.CFrame.lookVector * 1000
  2514.                 p.Material = Enum.Material.Neon
  2515.                 p.Parent = script
  2516.                 local mesh = Instance.new("SpecialMesh")
  2517.                 mesh.MeshType = Enum.MeshType.Sphere
  2518.                 mesh.Parent = p
  2519.                 --tween:Create(p,TweenInfo.new(((hitpos)-han.Position).Magnitude/10000),{Position = p.Position + ((hitpos)-han.Position).Unit*1000}):Play()
  2520.                 local body_vel = Instance.new("BodyVelocity")
  2521.                 body_vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  2522.                 body_vel.Velocity = p.CFrame.lookVector * 1000
  2523.                 body_vel.Parent = p
  2524.                 debris:AddItem(p,3)
  2525.                 local toughness = 5
  2526.                 local rays = 5
  2527.                 local ig = {char,gun,script}
  2528.                 local obj,vec,rot = raycast(han.Position,(hitpos-han.Position).Unit, nil, ig)
  2529.                 check(toughness,obj,vec,p,rays,rot)
  2530.             end)
  2531.         end
  2532.         spawn(function()
  2533.             wait(0.1)
  2534.             tween:Create(gun,TweenInfo.new(0.1),({Grip = CFrame.new(0.355400085, -0.188222155, -0.00732704997, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)})):Play()
  2535.         end)
  2536.         wait(shootwait)
  2537.         using = false
  2538.     end
  2539. end
  2540.  
  2541. gun.Activated:Connect(function()
  2542.     if not using and CheckIfAlive() and 0 >= ammo then
  2543.         Reload()
  2544.     end
  2545. end)
  2546.  
  2547. gun.Equipped:Connect(function()
  2548.     equipped = true
  2549.     pcall(function()
  2550.         char = gun.Parent
  2551.         plr = game:GetService("Players"):GetPlayerFromCharacter(char)
  2552.         hum = char:FindFirstChildOfClass("Humanoid")
  2553.         torso = char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso")
  2554.         rootpart = char:FindFirstChild("HumanoidRootPart")
  2555.         if not CheckIfAlive() then gun.Parent = nil return end
  2556.     end)
  2557. end)
  2558.  
  2559. gun.Unequipped:Connect(function()
  2560.     equipped = false
  2561. end)
  2562.  
  2563. local remote = Instance.new("RemoteEvent")
  2564. remote.Name = 'famasg2_remote'
  2565. remote.Parent = gun
  2566.  
  2567. remote.OnServerEvent:Connect(function(player,mode,data,data2)
  2568.     if equipped then else return end
  2569.     if plr == player and mode == 1 then
  2570.         if data ~= nil then
  2571.             hitpos = data
  2572.         end
  2573.         if data2 ~= nil then
  2574.             shooting = data2
  2575.         end
  2576.         if shooting then
  2577.             Shoot()
  2578.         end
  2579.     elseif not shooting and not using and CheckIfAlive() and plr == player and mode == 2 and data == 'reload' then
  2580.         Reload()
  2581.     end
  2582. end)
  2583.  
  2584. local ls = [[
  2585.     local plr = game:GetService("Players").LocalPlayer
  2586.     local mouse = plr:GetMouse()
  2587.     local char = plr.Character
  2588.     local remote = script.Parent
  2589.     local tool = remote.Parent
  2590.     tool.Equipped:Connect(function()
  2591.         pcall(function()
  2592.             char = tool.Parent
  2593.         end)
  2594.         pcall(function()
  2595.             plr = game:GetService("Players"):GetPlayerFromCharacter(char)
  2596.         end)
  2597.         pcall(function()
  2598.             mouse = plr:GetMouse()
  2599.         end)
  2600.         if mouse then
  2601.             mouse.KeyDown:Connect(function(key)
  2602.                 if key == 'r' then
  2603.                     remote:FireServer(2,'reload')
  2604.                 end
  2605.             end)
  2606.             mouse.Button1Down:Connect(function()
  2607.                 local pos
  2608.                 pcall(function()
  2609.                     pos = mouse.Hit.p
  2610.                 end)
  2611.                 remote:FireServer(1,pos,true)
  2612.                 wait(0.2)
  2613.                 remote:FireServer(1,nil,false)
  2614.             end)
  2615.         end
  2616.     end)
  2617. ]]
  2618.  
  2619. NLS(ls,remote)
  2620. end)
  2621. spawn(function()
  2622. local char = plr.Character
  2623. local hum = char:FindFirstChildOfClass("Humanoid")
  2624. local torso = char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso")
  2625. local rootpart = char:FindFirstChild("HumanoidRootPart")
  2626.  
  2627. local debris = game:GetService("Debris")
  2628. local tween = game:GetService("TweenService")
  2629.  
  2630. local gun = Instance.new("Tool")
  2631. local han = Instance.new("Part")
  2632. local SpecialMesh2 = Instance.new("SpecialMesh")
  2633. gun.Name = "AUG A2"
  2634. gun.Parent = plr['Backpack']
  2635. gun.Grip = CFrame.new(0.355400085, -0.188222155, -0.00732704997, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  2636. han.Name = "Handle"
  2637. han.Parent = gun
  2638. han.CFrame = CFrame.new(-12.4460001, 1.07099998, -5.64400005, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2639. han.Position = Vector3.new(-12.4460001, 1.07099998, -5.64400005)
  2640. han.Size = Vector3.new(3.46399999, 2.14199996, 0.529999971)
  2641. han.Color = Color3.fromRGB(75, 151, 75)
  2642. han.BottomSurface = Enum.SurfaceType.Smooth
  2643. han.TopSurface = Enum.SurfaceType.Smooth
  2644. SpecialMesh2.Parent = han
  2645. SpecialMesh2.MeshId = "rbxassetid://1877851197"
  2646. SpecialMesh2.Scale = Vector3.new(0.006, 0.006, 0.006)
  2647. SpecialMesh2.TextureId = ""
  2648. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  2649.  
  2650. local effect_part = Instance.new("Part")
  2651. local smoke = Instance.new("ParticleEmitter")
  2652. local flash = Instance.new("ParticleEmitter")
  2653. local light = Instance.new("PointLight")
  2654. effect_part.Name = "effect"
  2655. effect_part.Parent = gun
  2656. effect_part.CFrame = CFrame.new(-14.3099976, 2.64201403, -6.57999992, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2657. effect_part.Position = Vector3.new(-14.3099976, 2.64201403, -6.57999992)
  2658. effect_part.Transparency = 1
  2659. effect_part.Size = Vector3.new(0.100000001, 0.100000001, 0.100000001)
  2660. effect_part.BottomSurface = Enum.SurfaceType.Smooth
  2661. effect_part.CanCollide = false
  2662. effect_part.TopSurface = Enum.SurfaceType.Smooth
  2663. smoke.Name = "smoke"
  2664. smoke.Parent = effect_part
  2665. smoke.Speed = NumberRange.new(5, 7)
  2666. smoke.Rotation = NumberRange.new(0, 360)
  2667. smoke.Color = ColorSequence.new(Color3.new(0.27451, 0.27451, 0.27451),Color3.new(0.27451, 0.27451, 0.27451))
  2668. smoke.Enabled = false
  2669. smoke.LightEmission = 0.10000000149012
  2670. smoke.Texture = "http://www.roblox.com/asset/?id=244514423"
  2671. smoke.Transparency = NumberSequence.new(0.60000002384186,1)
  2672. smoke.Size = NumberSequence.new(0.99999964237213,3)
  2673. smoke.Lifetime = NumberRange.new(1.25, 1.5)
  2674. smoke.Rate = 100
  2675. smoke.RotSpeed = NumberRange.new(10, 10)
  2676. smoke.SpreadAngle = Vector2.new(15, 15)
  2677. smoke.VelocitySpread = 15
  2678. flash.Name = "flash"
  2679. flash.Parent = effect_part
  2680. flash.Speed = NumberRange.new(0, 0)
  2681. flash.Rotation = NumberRange.new(0, 90)
  2682. flash.Color = ColorSequence.new(Color3.new(1, 1, 0.498039),Color3.new(1, 1, 0.498039))
  2683. flash.Enabled = false
  2684. flash.LightEmission = 1
  2685. flash.Texture = "http://www.roblox.com/asset/?id=3419963"
  2686. flash.Transparency = NumberSequence.new(0.75,1)
  2687. flash.Size = NumberSequence.new(0.20000000298023,0.20000000298023)
  2688. flash.Lifetime = NumberRange.new(0.050000000745058, 0.075000002980232)
  2689. flash.Rate = 1000
  2690. light.Name = "light"
  2691. light.Parent = effect_part
  2692. light.Color = Color3.new(1, 1, 0.498039)
  2693. light.Enabled = false
  2694. light.Range = 6
  2695. light.Brightness = 10
  2696. light.Shadows = true
  2697.  
  2698. local weld = Instance.new("Weld")
  2699. weld.Part0 = han
  2700. weld.Part1 = effect_part
  2701. weld.C1 = weld.C1 * CFrame.new(han.Size.X-0.7,-0.3,0)
  2702. weld.Parent = effect_part
  2703.  
  2704. local cols = {BrickColor.new("Neon orange"),BrickColor.new("Really red"),BrickColor.new("Bright red"),BrickColor.new("Br. yellowish orange"),BrickColor.new("Bright yellow")}
  2705. local taunts = {298689061,2743459732,2852509470,1018518369}
  2706. local using = false
  2707. local op = false
  2708. local bulletfire = 1
  2709. local shootwait = 0.0833333333*bulletfire
  2710. local max_ammo = 30
  2711. local ammo = max_ammo
  2712. local hitpos = nil
  2713. local shooting = false
  2714. local equipped = false
  2715.  
  2716. local equip = Instance.new("Sound")
  2717. equip.SoundId = 'rbxassetid://3667098999'
  2718. equip.Volume = 0.8
  2719. equip.Parent = han
  2720.  
  2721. local shoot_s = Instance.new("Sound")
  2722. shoot_s.SoundId = 'rbxassetid://336413490'
  2723. shoot_s.Volume = 3
  2724. shoot_s.Parent = han
  2725.  
  2726. local reload_s = Instance.new("Sound")
  2727. reload_s.SoundId = 'rbxassetid://3667100111'
  2728. reload_s.Volume = 0.7
  2729. reload_s.Parent = han
  2730.  
  2731. local wbreak = Instance.new("Sound")
  2732. wbreak.Parent = han
  2733. wbreak.SoundId = "rbxassetid://627558611"
  2734. wbreak.TimePosition = .1
  2735. wbreak.Volume = 0.7
  2736.  
  2737. local function CheckIfAlive()
  2738.     local alive = false
  2739.     if plr and char and char.Parent and torso and torso.Parent and hum and hum.Parent and hum.Health > 0 then
  2740.         alive = true
  2741.     end
  2742.     return alive
  2743. end
  2744.  
  2745. local function Ragdoll(targchar,headless,insta)
  2746.     local pc = targchar
  2747.     pc.Archivable = true
  2748.     local pc_torso
  2749.     for _,obj in pairs(pc:GetDescendants()) do
  2750.         obj.Archivable = true
  2751.         if obj:IsA("BasePart") or obj:IsA("UnionOperation") then
  2752.             obj.Massless = true
  2753.             obj.Locked = true
  2754.             obj.CanCollide = true
  2755.         end
  2756.     end
  2757.     if pc ~= nil then
  2758.         local hum = pc:FindFirstChild'Humanoid'
  2759.         local LArm = pc:FindFirstChild'Left Arm'
  2760.         local RArm = pc:FindFirstChild'Right Arm'
  2761.         local LLeg = pc:FindFirstChild'Left Leg'
  2762.         local RLeg = pc:FindFirstChild'Right Leg'
  2763.         local torso = pc:FindFirstChild'Torso'
  2764.         local head = pc:FindFirstChild'Head'
  2765.        
  2766.        
  2767.         local LUA = pc:FindFirstChild'LeftUpperArm'
  2768.         local LLA = pc:FindFirstChild'LeftLowerArm'
  2769.         local LH = pc:FindFirstChild'LeftHand'
  2770.        
  2771.         local RUA = pc:FindFirstChild'RightUpperArm'
  2772.         local RLA = pc:FindFirstChild'RightLowerArm'
  2773.         local RH = pc:FindFirstChild'RightHand'
  2774.        
  2775.         local LUL = pc:FindFirstChild'LeftUpperLeg'
  2776.         local LLL = pc:FindFirstChild'LeftLowerLeg'
  2777.         local LF = pc:FindFirstChild'LeftFoot'
  2778.        
  2779.         local RUL = pc:FindFirstChild'RightUpperLeg'
  2780.         local RLL = pc:FindFirstChild'RightLowerLeg'
  2781.         local RF = pc:FindFirstChild'RightFoot'
  2782.        
  2783.         local UT = pc:FindFirstChild'UpperTorso'
  2784.         local LT = pc:FindFirstChild'LowerTorso'
  2785.        
  2786.         if hum and LArm and RArm and LLeg and RLeg and head then
  2787.             pc_torso = torso
  2788.             hum.BreakJointsOnDeath = false
  2789.             if insta then
  2790.                 if hum.RigType==Enum.HumanoidRigType.R6 then
  2791.                     for _,v in pairs(torso:GetDescendants()) do
  2792.                         if v:IsA('Motor6D') --[[or v:IsA('BallSocketConstraint') or v:IsA('Attachment')]] then
  2793.                             v:Destroy()
  2794.                         end
  2795.                     end
  2796.                     --pc:BreakJoints()
  2797.                    local vis = false
  2798.                    local vis2 = false
  2799.                     if not LArm:FindFirstChild('Dismembered') then
  2800.                        local at1 = Instance.new("Attachment")
  2801.                        at1.Parent = torso
  2802.                        at1.Visible = vis
  2803.                        at1.Orientation = torso.Orientation + Vector3.new(0,180,0)
  2804.                        at1.Position = Vector3.new(-1,1,0)
  2805.                                        
  2806.                        local at1p2 = Instance.new("Attachment")
  2807.                        at1p2.Parent = LArm
  2808.                        at1p2.Visible = vis
  2809.                        at1p2.Orientation = LArm.Orientation + Vector3.new(0,180,0)
  2810.                        at1p2.Position = Vector3.new(.5,1,0)
  2811.                            
  2812.                        local bis = Instance.new("BallSocketConstraint")
  2813.                        bis.Parent = LArm
  2814.                        bis.Attachment0 = at1
  2815.                        bis.Attachment1 = at1p2
  2816.                        bis.LimitsEnabled = true
  2817.                        bis.UpperAngle = 15
  2818.                        bis.Visible = vis2
  2819.                        bis.TwistLimitsEnabled = true
  2820.                        bis.UpperAngle = -45
  2821.                        bis.TwistLowerAngle = -45
  2822.                     end
  2823.                     if not RArm:FindFirstChild('Dismembered') then    
  2824.                         local at2 = Instance.new("Attachment")
  2825.                         at2.Parent = torso
  2826.                         at2.Visible = vis
  2827.                         at2.Orientation = torso.Orientation + Vector3.new(0,0,0)
  2828.                         at2.Position = Vector3.new(1,1,0)
  2829.                                
  2830.                         local at2p2 = Instance.new("Attachment")
  2831.                         at2p2.Parent = RArm
  2832.                         at2p2.Visible = vis
  2833.                         at2p2.Orientation = RArm.Orientation + Vector3.new(0,0,0)
  2834.                         at2p2.Position = Vector3.new(-.5,1,0)
  2835.                        
  2836.                         local bis2 = Instance.new("BallSocketConstraint")
  2837.                         bis2.Parent = RArm
  2838.                         bis2.Attachment0 = at2
  2839.                         bis2.Attachment1 = at2p2
  2840.                         bis2.LimitsEnabled = true
  2841.                         bis2.UpperAngle = 15
  2842.                         bis2.Visible = vis2
  2843.                         bis2.TwistLimitsEnabled = true
  2844.                         bis2.UpperAngle = -45
  2845.                         bis2.TwistLowerAngle = -45
  2846.                     end
  2847.                      if not RLeg:FindFirstChild('Dismembered') then
  2848.                         local at3 = Instance.new("Attachment")
  2849.                         at3.Parent = torso
  2850.                         at3.Visible = vis
  2851.                         at3.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  2852.                         at3.Position = Vector3.new(.5,-1,0)
  2853.                                
  2854.                         local at3p2 = Instance.new("Attachment")
  2855.                         at3p2.Parent = RLeg
  2856.                         at3p2.Visible = vis
  2857.                         at3p2.Orientation = RLeg.Orientation + Vector3.new(90,0,-90)
  2858.                         at3p2.Position = Vector3.new(0,1,0)
  2859.                        
  2860.                         local bis3 = Instance.new("BallSocketConstraint")
  2861.                         bis3.Parent = RLeg
  2862.                         bis3.Attachment0 = at3
  2863.                         bis3.Attachment1 = at3p2
  2864.                         bis3.LimitsEnabled = true
  2865.                         bis3.UpperAngle = 180-15
  2866.                         bis3.Visible = vis2
  2867.                     end
  2868.                          
  2869.                     if not LLeg:FindFirstChild('Dismembered') then  
  2870.                         local at4 = Instance.new("Attachment")
  2871.                         at4.Parent = torso
  2872.                         at4.Visible = vis
  2873.                         at4.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  2874.                         at4.Position = Vector3.new(-.5,-1,0)
  2875.                                
  2876.                         local at4p2 = Instance.new("Attachment")
  2877.                         at4p2.Parent = LLeg
  2878.                         at4p2.Visible = vis
  2879.                         at4p2.Orientation = LLeg.Orientation + Vector3.new(90,0,-90)
  2880.                         at4p2.Position = Vector3.new(0,1,0)
  2881.                    
  2882.                         local bis4 = Instance.new("BallSocketConstraint")
  2883.                         bis4.Parent = LLeg
  2884.                         bis4.Attachment0 = at4
  2885.                         bis4.Attachment1 = at4p2
  2886.                         bis4.LimitsEnabled = true
  2887.                         bis4.UpperAngle = 180-15
  2888.                         bis4.Visible = vis2
  2889.                     end
  2890.                    
  2891.                     if not headless and not head:FindFirstChild('Dismembered') then  
  2892.                             local at5 = Instance.new("Attachment")
  2893.                             at5.Parent = torso
  2894.                             at5.Visible = vis
  2895.                             at5.Orientation = torso.Orientation + Vector3.new(180,90,0)
  2896.                             at5.Position = Vector3.new(0,1,0)
  2897.                          
  2898.                             local at5p2 = Instance.new("Attachment")
  2899.                             at5p2.Parent = head
  2900.                             at5p2.Visible = vis
  2901.                             at5p2.Orientation = head.Orientation + Vector3.new(180,90,0)
  2902.                             at5p2.Position = Vector3.new(0,-.5,0)
  2903.                    
  2904.                             local bis5 = Instance.new("BallSocketConstraint")
  2905.                             bis5.Parent = head
  2906.                             bis5.Attachment0 = at5p2
  2907.                             bis5.Attachment1 = at5
  2908.                             bis5.LimitsEnabled = true
  2909.                             bis5.UpperAngle = 75
  2910.                             bis5.Visible = vis2
  2911.                             bis5.TwistLimitsEnabled = true
  2912.                             bis5.UpperAngle = -45
  2913.                             bis5.TwistLowerAngle = -45
  2914.                         else
  2915.                             --head:BreakJoints()
  2916.                         end
  2917.                     end
  2918.             else
  2919.                 hum.Died:Connect(function()
  2920.                 if hum.RigType==Enum.HumanoidRigType.R6 then
  2921.                     for _,v in pairs(torso:GetDescendants()) do
  2922.                         if v:IsA('Motor6D') --[[or v:IsA('BallSocketConstraint') or v:IsA('Attachment')]] then
  2923.                             v:Destroy()
  2924.                         end
  2925.                     end
  2926.                     --pc:BreakJoints()
  2927.                    local vis = false
  2928.                    local vis2 = false
  2929.                     if not LArm:FindFirstChild('Dismembered') then
  2930.                        local at1 = Instance.new("Attachment")
  2931.                        at1.Parent = torso
  2932.                        at1.Visible = vis
  2933.                        at1.Orientation = torso.Orientation + Vector3.new(0,180,0)
  2934.                        at1.Position = Vector3.new(-1,1,0)
  2935.                                        
  2936.                        local at1p2 = Instance.new("Attachment")
  2937.                        at1p2.Parent = LArm
  2938.                        at1p2.Visible = vis
  2939.                        at1p2.Orientation = LArm.Orientation + Vector3.new(0,180,0)
  2940.                        at1p2.Position = Vector3.new(.5,1,0)
  2941.                            
  2942.                        local bis = Instance.new("BallSocketConstraint")
  2943.                        bis.Parent = LArm
  2944.                        bis.Attachment0 = at1
  2945.                        bis.Attachment1 = at1p2
  2946.                        bis.LimitsEnabled = true
  2947.                        bis.UpperAngle = 15
  2948.                        bis.Visible = vis2
  2949.                        bis.TwistLimitsEnabled = true
  2950.                        bis.UpperAngle = -45
  2951.                        bis.TwistLowerAngle = -45
  2952.                     end
  2953.                     if not RArm:FindFirstChild('Dismembered') then    
  2954.                         local at2 = Instance.new("Attachment")
  2955.                         at2.Parent = torso
  2956.                         at2.Visible = vis
  2957.                         at2.Orientation = torso.Orientation + Vector3.new(0,0,0)
  2958.                         at2.Position = Vector3.new(1,1,0)
  2959.                                
  2960.                         local at2p2 = Instance.new("Attachment")
  2961.                         at2p2.Parent = RArm
  2962.                         at2p2.Visible = vis
  2963.                         at2p2.Orientation = RArm.Orientation + Vector3.new(0,0,0)
  2964.                         at2p2.Position = Vector3.new(-.5,1,0)
  2965.                        
  2966.                         local bis2 = Instance.new("BallSocketConstraint")
  2967.                         bis2.Parent = RArm
  2968.                         bis2.Attachment0 = at2
  2969.                         bis2.Attachment1 = at2p2
  2970.                         bis2.LimitsEnabled = true
  2971.                         bis2.UpperAngle = 15
  2972.                         bis2.Visible = vis2
  2973.                         bis2.TwistLimitsEnabled = true
  2974.                         bis2.UpperAngle = -45
  2975.                         bis2.TwistLowerAngle = -45
  2976.                     end
  2977.                      if not RLeg:FindFirstChild('Dismembered') then
  2978.                         local at3 = Instance.new("Attachment")
  2979.                         at3.Parent = torso
  2980.                         at3.Visible = vis
  2981.                         at3.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  2982.                         at3.Position = Vector3.new(.5,-1,0)
  2983.                                
  2984.                         local at3p2 = Instance.new("Attachment")
  2985.                         at3p2.Parent = RLeg
  2986.                         at3p2.Visible = vis
  2987.                         at3p2.Orientation = RLeg.Orientation + Vector3.new(90,0,-90)
  2988.                         at3p2.Position = Vector3.new(0,1,0)
  2989.                        
  2990.                         local bis3 = Instance.new("BallSocketConstraint")
  2991.                         bis3.Parent = RLeg
  2992.                         bis3.Attachment0 = at3
  2993.                         bis3.Attachment1 = at3p2
  2994.                         bis3.LimitsEnabled = true
  2995.                         bis3.UpperAngle = 180-15
  2996.                         bis3.Visible = vis2
  2997.                     end
  2998.                          
  2999.                     if not LLeg:FindFirstChild('Dismembered') then  
  3000.                         local at4 = Instance.new("Attachment")
  3001.                         at4.Parent = torso
  3002.                         at4.Visible = vis
  3003.                         at4.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  3004.                         at4.Position = Vector3.new(-.5,-1,0)
  3005.                                
  3006.                         local at4p2 = Instance.new("Attachment")
  3007.                         at4p2.Parent = LLeg
  3008.                         at4p2.Visible = vis
  3009.                         at4p2.Orientation = LLeg.Orientation + Vector3.new(90,0,-90)
  3010.                         at4p2.Position = Vector3.new(0,1,0)
  3011.                    
  3012.                         local bis4 = Instance.new("BallSocketConstraint")
  3013.                         bis4.Parent = LLeg
  3014.                         bis4.Attachment0 = at4
  3015.                         bis4.Attachment1 = at4p2
  3016.                         bis4.LimitsEnabled = true
  3017.                         bis4.UpperAngle = 180-15
  3018.                         bis4.Visible = vis2
  3019.                     end
  3020.                    
  3021.                     if not headless and not head:FindFirstChild('Dismembered') then  
  3022.                             local at5 = Instance.new("Attachment")
  3023.                             at5.Parent = torso
  3024.                             at5.Visible = vis
  3025.                             at5.Orientation = torso.Orientation + Vector3.new(180,90,0)
  3026.                             at5.Position = Vector3.new(0,1,0)
  3027.                          
  3028.                             local at5p2 = Instance.new("Attachment")
  3029.                             at5p2.Parent = head
  3030.                             at5p2.Visible = vis
  3031.                             at5p2.Orientation = head.Orientation + Vector3.new(180,90,0)
  3032.                             at5p2.Position = Vector3.new(0,-.5,0)
  3033.                    
  3034.                             local bis5 = Instance.new("BallSocketConstraint")
  3035.                             bis5.Parent = head
  3036.                             bis5.Attachment0 = at5p2
  3037.                             bis5.Attachment1 = at5
  3038.                             bis5.LimitsEnabled = true
  3039.                             bis5.UpperAngle = 75
  3040.                             bis5.Visible = vis2
  3041.                             bis5.TwistLimitsEnabled = true
  3042.                             bis5.UpperAngle = -45
  3043.                             bis5.TwistLowerAngle = -45
  3044.                         else
  3045.                             --head:BreakJoints()
  3046.                         end
  3047.                     end
  3048.                 end)
  3049.             end
  3050.         elseif head and hum then
  3051.             pc_torso = pc:FindFirstChild("HumanoidRootPart")
  3052.             hum.BreakJointsOnDeath = false
  3053.             if insta then
  3054.                 if hum.RigType==Enum.HumanoidRigType.R15 then
  3055.                     for _,v in pairs(pc:GetDescendants()) do
  3056.                         if v:IsA('Motor6D') --[[or v:IsA('BallSocketConstraint') or v:IsA('Attachment')]] then
  3057.                             v:Destroy()
  3058.                         end
  3059.                     end
  3060.                     --pc:BreakJoints()
  3061.                     local vis = false
  3062.                     local vis2 = false
  3063.                    
  3064.                 if not LF:FindFirstChild('Dismembered') then  
  3065.                     local bsc1 = Instance.new("BallSocketConstraint",LF)
  3066.                     bsc1.Attachment0 = LF.LeftAnkleRigAttachment
  3067.                     bsc1.Attachment1 = LLL.LeftAnkleRigAttachment
  3068.                 end
  3069.                 if not LLL:FindFirstChild('Dismembered') then  
  3070.                     local bsc2 = Instance.new("BallSocketConstraint",LLL)
  3071.                     bsc2.Attachment0 = LLL.LeftKneeRigAttachment
  3072.                     bsc2.Attachment1 = LUL.LeftKneeRigAttachment
  3073.                 end
  3074.                 if not LUL:FindFirstChild('Dismembered') then  
  3075.                     local bsc3 = Instance.new("BallSocketConstraint",LUL)
  3076.                     bsc3.Attachment0 = LUL.LeftHipRigAttachment
  3077.                     bsc3.Attachment1 = LT.LeftHipRigAttachment
  3078.                 end
  3079.                 if not RF:FindFirstChild('Dismembered') then  
  3080.                     local bsc4 = Instance.new("BallSocketConstraint",RF)
  3081.                     bsc4.Attachment0 = RF.RightAnkleRigAttachment
  3082.                     bsc4.Attachment1 = RLL.RightAnkleRigAttachment
  3083.                 end
  3084.                 if not RLL:FindFirstChild('Dismembered') then  
  3085.                     local bsc5 = Instance.new("BallSocketConstraint",RLL)
  3086.                     bsc5.Attachment0 = RLL.RightKneeRigAttachment
  3087.                     bsc5.Attachment1 = RUL.RightKneeRigAttachment
  3088.                 end
  3089.                 if not RUL:FindFirstChild('Dismembered') then  
  3090.                     local bsc6 = Instance.new("BallSocketConstraint",RUL)
  3091.                     bsc6.Attachment0 = RUL.RightHipRigAttachment
  3092.                     bsc6.Attachment1 = LT.RightHipRigAttachment
  3093.                 end
  3094.                 if not LH:FindFirstChild('Dismembered') then  
  3095.                     local bsc7 = Instance.new("BallSocketConstraint",LH)
  3096.                     bsc7.Attachment0 = LH.LeftWristRigAttachment
  3097.                     bsc7.Attachment1 = LLA.LeftWristRigAttachment
  3098.                 end
  3099.                 if not LLA:FindFirstChild('Dismembered') then  
  3100.                     local bsc8 = Instance.new("BallSocketConstraint",LLA)
  3101.                     bsc8.Attachment0 = LLA.LeftElbowRigAttachment
  3102.                     bsc8.Attachment1 = LUA.LeftElbowRigAttachment
  3103.                 end
  3104.                 if not LUA:FindFirstChild('Dismembered') then  
  3105.                     local bsc9 = Instance.new("BallSocketConstraint",LUA)
  3106.                     bsc9.Attachment0 = LUA.LeftShoulderAttachment
  3107.                     bsc9.Attachment1 = UT.LeftCollarAttachment
  3108.                 end
  3109.                 if not RH:FindFirstChild('Dismembered') then  
  3110.                     local bsc10 = Instance.new("BallSocketConstraint",RH)
  3111.                     bsc10.Attachment0 = RH.RightWristRigAttachment
  3112.                     bsc10.Attachment1 = RLA.RightWristRigAttachment
  3113.                 end
  3114.                 if not RLA:FindFirstChild('Dismembered') then  
  3115.                     local bsc11 = Instance.new("BallSocketConstraint",RLA)
  3116.                     bsc11.Attachment0 = RLA.RightElbowRigAttachment
  3117.                     bsc11.Attachment1 = RUA.RightElbowRigAttachment
  3118.                 end
  3119.                 if not RUA:FindFirstChild('Dismembered') then  
  3120.                     local bsc12 = Instance.new("BallSocketConstraint",RUA)
  3121.                     bsc12.Attachment0 = RUA.RightShoulderAttachment
  3122.                     bsc12.Attachment1 = UT.RightCollarAttachment
  3123.                 end
  3124.                 if not LT:FindFirstChild('Dismembered') then  
  3125.                     local bsc13 = Instance.new("BallSocketConstraint",LT)
  3126.                     bsc13.Attachment0 = LT.WaistRigAttachment
  3127.                     bsc13.Attachment1 = UT.WaistRigAttachment
  3128.                 end
  3129.                     if not headless and not head:FindFirstChild('Dismembered')  then
  3130.                         local bsc14 = Instance.new("BallSocketConstraint",head)
  3131.                         bsc14.Attachment0 = UT.NeckRigAttachment
  3132.                         bsc14.Attachment1 = head.NeckRigAttachment
  3133.                         bsc14.LimitsEnabled = true
  3134.                         bsc14.UpperAngle = -75
  3135.                         bsc14.TwistLimitsEnabled = true
  3136.                         bsc14.UpperAngle = -45
  3137.                         bsc14.TwistLowerAngle = -45
  3138.                     else
  3139.                         --head:BreakJoints()
  3140.                     end
  3141.                 end
  3142.             else
  3143.                 hum.Died:Connect(function()
  3144.                     if hum.RigType==Enum.HumanoidRigType.R15 then
  3145.                         for _,v in pairs(pc:GetDescendants()) do
  3146.                             if v:IsA('Motor6D') --[[or v:IsA('BallSocketConstraint') or v:IsA('Attachment')]] then
  3147.                                 v:Destroy()
  3148.                             end
  3149.                         end
  3150.                         --pc:BreakJoints()
  3151.                         local vis = false
  3152.                         local vis2 = false
  3153.                        
  3154.                     if not LF:FindFirstChild('Dismembered') then  
  3155.                         local bsc1 = Instance.new("BallSocketConstraint",LF)
  3156.                         bsc1.Attachment0 = LF.LeftAnkleRigAttachment
  3157.                         bsc1.Attachment1 = LLL.LeftAnkleRigAttachment
  3158.                     end
  3159.                     if not LLL:FindFirstChild('Dismembered') then  
  3160.                         local bsc2 = Instance.new("BallSocketConstraint",LLL)
  3161.                         bsc2.Attachment0 = LLL.LeftKneeRigAttachment
  3162.                         bsc2.Attachment1 = LUL.LeftKneeRigAttachment
  3163.                     end
  3164.                     if not LUL:FindFirstChild('Dismembered') then  
  3165.                         local bsc3 = Instance.new("BallSocketConstraint",LUL)
  3166.                         bsc3.Attachment0 = LUL.LeftHipRigAttachment
  3167.                         bsc3.Attachment1 = LT.LeftHipRigAttachment
  3168.                     end
  3169.                     if not RF:FindFirstChild('Dismembered') then  
  3170.                         local bsc4 = Instance.new("BallSocketConstraint",RF)
  3171.                         bsc4.Attachment0 = RF.RightAnkleRigAttachment
  3172.                         bsc4.Attachment1 = RLL.RightAnkleRigAttachment
  3173.                     end
  3174.                     if not RLL:FindFirstChild('Dismembered') then  
  3175.                         local bsc5 = Instance.new("BallSocketConstraint",RLL)
  3176.                         bsc5.Attachment0 = RLL.RightKneeRigAttachment
  3177.                         bsc5.Attachment1 = RUL.RightKneeRigAttachment
  3178.                     end
  3179.                     if not RUL:FindFirstChild('Dismembered') then  
  3180.                         local bsc6 = Instance.new("BallSocketConstraint",RUL)
  3181.                         bsc6.Attachment0 = RUL.RightHipRigAttachment
  3182.                         bsc6.Attachment1 = LT.RightHipRigAttachment
  3183.                     end
  3184.                     if not LH:FindFirstChild('Dismembered') then  
  3185.                         local bsc7 = Instance.new("BallSocketConstraint",LH)
  3186.                         bsc7.Attachment0 = LH.LeftWristRigAttachment
  3187.                         bsc7.Attachment1 = LLA.LeftWristRigAttachment
  3188.                     end
  3189.                     if not LLA:FindFirstChild('Dismembered') then  
  3190.                         local bsc8 = Instance.new("BallSocketConstraint",LLA)
  3191.                         bsc8.Attachment0 = LLA.LeftElbowRigAttachment
  3192.                         bsc8.Attachment1 = LUA.LeftElbowRigAttachment
  3193.                     end
  3194.                     if not LUA:FindFirstChild('Dismembered') then  
  3195.                         local bsc9 = Instance.new("BallSocketConstraint",LUA)
  3196.                         bsc9.Attachment0 = LUA.LeftShoulderAttachment
  3197.                         bsc9.Attachment1 = UT.LeftCollarAttachment
  3198.                     end
  3199.                     if not RH:FindFirstChild('Dismembered') then  
  3200.                         local bsc10 = Instance.new("BallSocketConstraint",RH)
  3201.                         bsc10.Attachment0 = RH.RightWristRigAttachment
  3202.                         bsc10.Attachment1 = RLA.RightWristRigAttachment
  3203.                     end
  3204.                     if not RLA:FindFirstChild('Dismembered') then  
  3205.                         local bsc11 = Instance.new("BallSocketConstraint",RLA)
  3206.                         bsc11.Attachment0 = RLA.RightElbowRigAttachment
  3207.                         bsc11.Attachment1 = RUA.RightElbowRigAttachment
  3208.                     end
  3209.                     if not RUA:FindFirstChild('Dismembered') then  
  3210.                         local bsc12 = Instance.new("BallSocketConstraint",RUA)
  3211.                         bsc12.Attachment0 = RUA.RightShoulderAttachment
  3212.                         bsc12.Attachment1 = UT.RightCollarAttachment
  3213.                     end
  3214.                     if not LT:FindFirstChild('Dismembered') then  
  3215.                         local bsc13 = Instance.new("BallSocketConstraint",LT)
  3216.                         bsc13.Attachment0 = LT.WaistRigAttachment
  3217.                         bsc13.Attachment1 = UT.WaistRigAttachment
  3218.                     end
  3219.                         if not headless and not head:FindFirstChild('Dismembered')  then
  3220.                             local bsc14 = Instance.new("BallSocketConstraint",head)
  3221.                             bsc14.Attachment0 = UT.NeckRigAttachment
  3222.                             bsc14.Attachment1 = head.NeckRigAttachment
  3223.                             bsc14.LimitsEnabled = true
  3224.                             bsc14.UpperAngle = -75
  3225.                             bsc14.TwistLimitsEnabled = true
  3226.                             bsc14.UpperAngle = -45
  3227.                             bsc14.TwistLowerAngle = -45
  3228.                         else
  3229.                             --head:BreakJoints()
  3230.                         end
  3231.                     end
  3232.                 end)
  3233.             end
  3234.         end
  3235.     end
  3236.     return pc,pc_torso
  3237. end
  3238. local function bleed2(frick,targhum,can_hurt,t,splat)
  3239.     spawn(function()
  3240.     if not frick:FindFirstChild("bleeding from kry's " .. gun.Name) then else return end
  3241.     local tempbleedval = Instance.new("ObjectValue")
  3242.     tempbleedval.Name = "bleeding from kry's " .. gun.Name
  3243.     tempbleedval.Parent = frick
  3244.     local bleeding = true
  3245.     local rig = targhum.RigType
  3246.     local limbs = {'Head','Left Arm','Right Arm','Left Leg','Right Leg','RightUpperLeg','LeftUpperLeg','RightUpperArm','LeftUpperArm','RightLowerLeg','LeftLowerLeg','RightLowerArm','LeftLowerArm','RightFoot','LeftFoot','RightHand','LeftHand'}
  3247.     spawn(function()
  3248.         wait(t)
  3249.         bleeding = false
  3250.         tempbleedval:Destroy()
  3251.     end)
  3252.     while bleeding and frick and frick.Parent do
  3253.         if --[[(targhum and targhum.Parent and targhum.Health > 0) or]] (not frick or not frick.Parent or not targhum or not targhum.Parent) then
  3254.             break
  3255.         end
  3256.         local max_limbs = 0
  3257.         local current_limbs = 0
  3258.         local gone_limbs = 0
  3259.         local targchar = targhum.Parent
  3260.         if rig == Enum.HumanoidRigType.R6 then
  3261.             max_limbs = 5
  3262.         elseif rig == Enum.HumanoidRigType.R15 then
  3263.             max_limbs = 13
  3264.         end
  3265.         for i,v in pairs(targchar:GetChildren()) do
  3266.             local found = false
  3267.             for i,n in pairs(limbs) do if n == v.Name then found = true; end; end;
  3268.             if found and not v:FindFirstChild("Dismembered") then
  3269.                 current_limbs = current_limbs + 1
  3270.             end
  3271.         end
  3272.         gone_limbs = (max_limbs-current_limbs)
  3273.         if targhum and can_hurt then
  3274.             if gone_limbs >= 1 then
  3275.                 targhum:TakeDamage(0.5*gone_limbs)
  3276.             else
  3277.                 targhum:TakeDamage(0.5)
  3278.             end
  3279.         end
  3280.         spawn(function()
  3281.             local thing = Instance.new('Part')
  3282.             thing.Parent = workspace
  3283.             thing.Size = Vector3.new(0.1,0.1,0.1)
  3284.             thing.CFrame = frick.CFrame
  3285.             if splat then
  3286.                 thing.Transparency = 0
  3287.             elseif not splat then
  3288.                 thing.Transparency = 1
  3289.             end
  3290.             thing.Color = Color3.fromRGB(75, 0, 0)
  3291.             thing.Material = Enum.Material.Glass
  3292.             thing.Name = "Blood"
  3293.             thing.CanCollide =false
  3294.             thing:BreakJoints()
  3295.             local mesh = Instance.new('SpecialMesh')
  3296.             mesh.MeshType = Enum.MeshType.Sphere
  3297.             mesh.Parent = thing
  3298.             --game:GetService("Debris"):AddItem(thing,5)
  3299.             local att1,att2 = Instance.new("Attachment"),Instance.new("Attachment")
  3300.             att1.Parent = thing
  3301.             att1.Position = Vector3.new(0,-(thing.Size.Y/2),0)
  3302.             att2.Parent = thing
  3303.             att2.Position = Vector3.new(0,(thing.Size.Y/2),0)
  3304.             if splat then
  3305.                 local trail_drop = Instance.new("Trail")
  3306.                 trail_drop.Parent = thing
  3307.                 trail_drop.Attachment0 = att1
  3308.                 trail_drop.Attachment1 = att2
  3309.                 trail_drop.Color = ColorSequence.new(Color3.new(0.294118, 0, 0),Color3.new(0.294118, 0, 0))
  3310.                 trail_drop.FaceCamera = true
  3311.                 trail_drop.LightInfluence = 1
  3312.                 trail_drop.Transparency = NumberSequence.new(0.1,1)
  3313.                 trail_drop.Lifetime = 1
  3314.                 trail_drop.MinLength = 0
  3315.             end
  3316.             local rawrxd = Instance.new('BodyForce')
  3317.             rawrxd.Parent = thing
  3318.             if splat then
  3319.                 rawrxd.Force = frick.CFrame.upVector+Vector3.new(math.random(-5, 5)/10,3,math.random(-5, 5)/10)
  3320.             elseif not splat then
  3321.                 rawrxd.Force = frick.CFrame.upVector*(math.random()*2)+Vector3.new(math.random(-5, 5)/10,1.5,0)
  3322.             end
  3323.             game:GetService("Debris"):AddItem(rawrxd,0.01)
  3324.             thing.Touched:connect(function(tou)
  3325.                 if tou.Parent and tou.Parent:IsA('Tool') == false and tou.Parent.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.name ~= "mini_blood" and tou.Name ~= "Blood" and tou.Parent ~= char and tou.Parent.ClassName ~= "Accessory" and tou.Parent.Name ~= 'mini_blood' then
  3326.                     local pos = Vector3.new(thing.Position.X,(tou.Position.Y+(tou.Size.Y/2))+(0.02/2),thing.Position.Z)
  3327.                     local Point1 = pos-Vector3.new(0.01,0.01,0.01)
  3328.                     local Point2 = pos+Vector3.new(0.01,0.01,0.01)
  3329.                     local Region = Region3.new(Point1,Point2)
  3330.                     for _,Part in pairs(game.Workspace:FindPartsInRegion3(Region,nil,math.huge)) do
  3331.                         if Part.Name == "blood" then
  3332.                             tou = Part
  3333.                         end
  3334.                     end
  3335.                     thing:Destroy()
  3336.                     if tou.Name == "blood" then
  3337.                         local reee = tou.CFrame
  3338.                         if tou.Transparency > -0.2 then
  3339.                             tou.Transparency = tou.Transparency - 0.1
  3340.                         end
  3341.                         if tou.Size.X < 5 then
  3342.                             tou.Size = tou.Size+Vector3.new(0.4,0,0.4)
  3343.                             tou.CFrame = reee
  3344.                         elseif tou.Size.X < 7.5 then
  3345.                             tou.Size = tou.Size+Vector3.new(0.3,0,0.3)
  3346.                             tou.CFrame = reee
  3347.                         elseif tou.Size.X < 10 then
  3348.                             tou.Size = tou.Size+Vector3.new(0.2,0,0.2)
  3349.                             tou.CFrame = reee
  3350.                         end
  3351.                     elseif tou.CanCollide == true then
  3352.                         local bloodlol = Instance.new('Part')
  3353.                         if gone_limbs >= 1 then
  3354.                             bloodlol.Size = Vector3.new(1*gone_limbs,0.2,1*gone_limbs)
  3355.                         else
  3356.                             bloodlol.Size = Vector3.new(1,0.2,1)
  3357.                         end
  3358.                         bloodlol.Name = "blood"
  3359.                         bloodlol.Anchored = true
  3360.                         bloodlol.CanCollide = false
  3361.                         bloodlol.Material = Enum.Material.Glass
  3362.                         bloodlol.Color = Color3.fromRGB(75, 0, 0)
  3363.                         local mesh = Instance.new('SpecialMesh')
  3364.                         mesh.MeshType = Enum.MeshType.Sphere
  3365.                         mesh.Parent = bloodlol
  3366.                         bloodlol.Parent = workspace
  3367.                         bloodlol.CFrame = CFrame.new(pos)
  3368.                         while bloodlol and bloodlol.Parent ~= nil do
  3369.                             if bloodlol.Transparency < 1 then
  3370.                                 bloodlol.Transparency = bloodlol.Transparency + 0.05
  3371.                             else
  3372.                                 bloodlol:Destroy()
  3373.                             end
  3374.                             wait(0.1)
  3375.                         end
  3376.                     end
  3377.                 end
  3378.             end)
  3379.         end)
  3380.         wait(0.1)
  3381.     end
  3382.     tempbleedval:Destroy()
  3383.     end)
  3384. end
  3385. local function kill(obj,headshot,lookVector)
  3386.     local targchar,targhead,targtorso,targhum,killval,hitval
  3387.     pcall(function()
  3388.         targchar = obj.Parent
  3389.     end)
  3390.     for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  3391.         if v and v.Character and obj:IsDescendantOf(v.Character) then
  3392.             targchar = v.Character
  3393.         end
  3394.     end
  3395.     pcall(function()
  3396.         targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("UpperTorso") or targchar:FindFirstChild("HumanoidRootPart")
  3397.     end)
  3398.     pcall(function()
  3399.         targhead = targchar:FindFirstChild("Head")
  3400.     end)
  3401.     pcall(function()
  3402.         targhum = targchar:FindFirstChildOfClass("Humanoid")
  3403.     end)
  3404.     pcall(function()
  3405.         killval = targhum:FindFirstChild("killer")
  3406.     end)
  3407.     pcall(function()
  3408.         decapval = targhum:FindFirstChild("decapped " .. targchar.Name)
  3409.     end)
  3410.     pcall(function()
  3411.         hitval = targhum:FindFirstChild("hit " .. targchar.Name .. " with aug a2 by " .. plr.Name)
  3412.     end)
  3413.     if targchar and targhead and targtorso and targhum and targhum ~= hum --[[and not hitval]] and using then
  3414.         targhum:TakeDamage(1/0)
  3415.         if 0 >= targhum.Health then
  3416.             if (not decapval and headshot) or not killval then
  3417.                 if not killval then
  3418.                     local tempkillval = Instance.new("ObjectValue",targhum)
  3419.                     tempkillval.Name = "killer"
  3420.                     tempkillval.Value = plr
  3421.                 end
  3422.                 spawn(function()
  3423.                     local kb = 30
  3424.                     local b = Instance.new("BodyVelocity")
  3425.                     b.Parent = targtorso
  3426.                     b.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  3427.                     b.Velocity = lookVector*kb + Vector3.new(0,2,0)
  3428.                     game:GetService("Debris"):AddItem(b,0.15)
  3429.                 end)
  3430.                 pcall(function()
  3431.                     Ragdoll(targchar,headshot,true)
  3432.                 end)
  3433.                 bleed2(targtorso,targhum,true,5,true)
  3434.             end
  3435.             if headshot and not decapval then
  3436.                 local tempdecapval = Instance.new("ObjectValue",targhum)
  3437.                 tempdecapval.Name = ("decapped " .. targchar.Name)
  3438.                 local decap_bleed = Instance.new("Sound")
  3439.                 decap_bleed.SoundId = 'rbxassetid://244502094'
  3440.                 decap_bleed.Volume = 0.5
  3441.                 decap_bleed.Parent = targtorso
  3442.                 decap_bleed:Play()
  3443.                 local decap_head = Instance.new("Sound")
  3444.                 decap_head.SoundId = 'rbxassetid://1255040462' --222406108
  3445.                 decap_head.Volume = 1
  3446.                 decap_head.Parent = targtorso
  3447.                 decap_head:Play()
  3448.                 local att = Instance.new("Attachment")
  3449.                 att.Parent = targtorso
  3450.                 att.Position = Vector3.new(0,targtorso.Size.Y/2,0)
  3451.                 local blood_emitter = Instance.new("ParticleEmitter")
  3452.                 blood_emitter.Name = "Blood2"
  3453.                 blood_emitter.Parent = att
  3454.                 blood_emitter.Speed = NumberRange.new(5, 14)
  3455.                 blood_emitter.Color = ColorSequence.new(Color3.new(0.45098, 0, 0),Color3.new(0.45098, 0, 0))
  3456.                 blood_emitter.LightEmission = 0.20000000298023
  3457.                 blood_emitter.LightInfluence = 1
  3458.                 blood_emitter.Texture = "http://www.roblox.com/asset/?id=134531274"
  3459.                 blood_emitter.Transparency = NumberSequence.new(0.30000001192093,0.30000001192093)
  3460.                 blood_emitter.ZOffset = 1
  3461.                 blood_emitter.Size = NumberSequence.new(0.12499988079071,0)
  3462.                 blood_emitter.Acceleration = Vector3.new(0, -20, 0)
  3463.                 blood_emitter.Lifetime = NumberRange.new(0.5, 1.5)
  3464.                 blood_emitter.Rate = 100000
  3465.                 blood_emitter.SpreadAngle = Vector2.new(90, 90)
  3466.                 blood_emitter.VelocitySpread = 90
  3467.                 blood_emitter.Enabled = true
  3468.             end
  3469.         end
  3470.     end
  3471. end
  3472.  
  3473. local function Reload()
  3474.     if max_ammo > ammo then else return end
  3475.     using = true
  3476.     reload_s:Play()
  3477.     local mag = Instance.new("Part")
  3478.     mag.Size = Vector3.new(0.48, 0.79, 0.14)
  3479.     mag.Color = han.Color
  3480.     mag.Parent = workspace
  3481.     mag.CFrame = han.CFrame * CFrame.new(1.2,-0.5,0)
  3482.     --debris:AddItem(mag,3)
  3483.     wait(reload_s.TimeLength)
  3484.     ammo = max_ammo
  3485.     game:GetService("Debris"):AddItem(mag,10)
  3486.     using = false
  3487. end
  3488.  
  3489. local function breakwindow(hit)
  3490.     if hit and hit.Name:lower() ~= "window shatter" and hit.Name:lower() ~= "blood" and hit.Name:lower() ~= "mini_blood" then else return end
  3491.     local wbreakc = wbreak:Clone()
  3492.     wbreakc.Parent = hit
  3493.     wbreakc:Play()
  3494.     local sx,sy,sz=hit.Size.x,hit.Size.y,hit.Size.z
  3495.     hit.Name = "window shatter"
  3496.     for x=1,4 do
  3497.         for y=1,4 do
  3498.             local part=hit:Clone()
  3499.             local position=Vector3.new(x-2.1,y-2.1,0)*Vector3.new(sx/4,sy/4,sz)
  3500.             part.Size=Vector3.new(sx/4,sy/4,sz)
  3501.             part.CFrame=hit.CFrame*(CFrame.new(part.Size/8)-hit.Size/8+position)           
  3502.             part.Velocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  3503.             part.Name="window shatter"
  3504.             part.Parent=hit.Parent
  3505.             debris:AddItem(part,2)
  3506.             spawn(function()
  3507.                 wait(0.5)
  3508.                 for i=1,10 do
  3509.                     part.Transparency=part.Transparency+0.05
  3510.                     wait(0.05)
  3511.                 end
  3512.                 part:Destroy()
  3513.             end)
  3514.             part.Anchored=false
  3515.         end
  3516.     end
  3517.     hit:Destroy()
  3518. end
  3519.  
  3520. local function raycast(Pos,Dir,Max,Ignore)
  3521.     return workspace:FindPartOnRayWithIgnoreList(Ray.new(Pos, Dir * (Max or 999.999)), (Ignore or {}), false, true)
  3522. end
  3523.  
  3524. local objhit = {}
  3525. local oldobjhit = {}
  3526.  
  3527. local function make_hole(pos,obj,col)
  3528.     local BulletHolePart = Instance.new("Part")
  3529.     BulletHolePart.Massless = true
  3530.     BulletHolePart.Anchored = false
  3531.     BulletHolePart.CanCollide = false
  3532.     BulletHolePart.Locked = true
  3533.     BulletHolePart.FormFactor = "Custom"
  3534.     BulletHolePart.TopSurface, BulletHolePart.BottomSurface, BulletHolePart.RightSurface, BulletHolePart.LeftSurface, BulletHolePart.FrontSurface, BulletHolePart.BackSurface = "SmoothNoOutlines", "SmoothNoOutlines", "SmoothNoOutlines", "SmoothNoOutlines", "SmoothNoOutlines", "SmoothNoOutlines"
  3535.     BulletHolePart.Name = "Bullet Hole"
  3536.     BulletHolePart.Material = "Plastic"
  3537.     BulletHolePart.Reflectance = 0
  3538.     BulletHolePart.Transparency = 1
  3539.     BulletHolePart.BrickColor = BrickColor.new("Medium stone grey")
  3540.     BulletHolePart.Size = Vector3.new(0.3, 0, 0.3)
  3541.     BulletHolePart:BreakJoints()
  3542.     BulletHolePart.CFrame = pos
  3543.     BulletHolePart.Parent = script
  3544.     local weld = Instance.new("WeldConstraint")
  3545.     weld.Part0 = obj
  3546.     weld.Part1 = BulletHolePart
  3547.     weld.Parent = obj
  3548.    -- game:GetService("Debris"):AddItem(BulletHolePart, 5)
  3549.     local BulletHoleDecal = Instance.new("Decal")
  3550.     BulletHoleDecal.Color3 = Color3.new(col.r, col.g, col.b)
  3551.     BulletHoleDecal.Face = "Top"
  3552.     BulletHoleDecal.Texture = "rbxassetid://359667865"
  3553.     BulletHoleDecal.Transparency = 0
  3554.     BulletHoleDecal.Parent = BulletHolePart
  3555.     return BulletHolePart
  3556. end
  3557.  
  3558. local blood_images = {931617584,1663434319,1391189545,4533673847,3236192667,2565888666,612591729,120362139,116830967,122022304,131339257,247766282,121678640,176677800,120361912,176678070,176678086,176677869} --305296807,256293532,148713503,176678030
  3559.  
  3560. local e_s = 1
  3561.  
  3562. local function add_decal(f,t,obj)
  3563.     spawn(function()
  3564.     local texture = Instance.new("Texture")
  3565.     texture.Parent = obj
  3566.     texture.Face = f
  3567.     texture.Texture = 'rbxassetid://' .. t
  3568.     if f == 'Left' or f == 'Right' then
  3569.         texture.StudsPerTileV = obj.Size.Y + e_s
  3570.         if (obj.Size.X > obj.Size.Z) then
  3571.             texture.StudsPerTileV = obj.Size.Z + e_s
  3572.         elseif (obj.Size.Z > obj.Size.X) then
  3573.             texture.StudsPerTileU = obj.Size.X + e_s
  3574.         else
  3575.             texture.StudsPerTileU = obj.Size.X + e_s
  3576.         end
  3577.     elseif f == 'Front' or f == 'Back' then
  3578.         texture.StudsPerTileV = obj.Size.Y + e_s
  3579.         if (obj.Size.X > obj.Size.Z) then
  3580.             texture.StudsPerTileV = obj.Size.X + e_s
  3581.         elseif (obj.Size.Z > obj.Size.X) then
  3582.             texture.StudsPerTileU = obj.Size.Z + e_s
  3583.         else
  3584.             texture.StudsPerTileU = obj.Size.X + e_s
  3585.         end
  3586.     elseif f == 'Top' or f == 'Bottom' then
  3587.         texture.StudsPerTileV = obj.Size.X + e_s
  3588.         texture.StudsPerTileU = obj.Size.Z + e_s
  3589.     end
  3590.     end)
  3591. end
  3592.  
  3593. local function add_blood(obj)
  3594.     local t1,t2,t3,t4,t5,t6 = blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)]
  3595.     add_decal('Top',t1,obj)
  3596.     add_decal('Bottom',t2,obj)
  3597.     add_decal('Left',t3,obj)
  3598.     add_decal('Right',t4,obj)
  3599.     add_decal('Front',t5,obj)
  3600.     add_decal('Back',t6,obj)
  3601. end
  3602.  
  3603. local function make_bone(obj,targtorso)
  3604.     if obj.Name == 'Left Arm' or obj.Name == 'LeftUpperArm' then
  3605.         local bone = Instance.new("Part")
  3606.         bone.CanCollide = false
  3607.         bone.Anchored = false
  3608.         bone.CFrame = targtorso.CFrame
  3609.         bone.Size = targtorso.Size
  3610.         bone.Massless = true
  3611.         bone.Locked = true
  3612.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  3613.         if not exists then
  3614.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  3615.         end
  3616.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  3617.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  3618.         game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
  3619.         local weld = Instance.new("Weld")
  3620.         weld.Part0 = bone
  3621.         weld.Part1 = targtorso
  3622.         weld.C1 = CFrame.new(-0.61,0.77,0.03)*CFrame.Angles(math.rad(90),0,math.rad(90))
  3623.         weld.Parent = bone
  3624.         targtorso.Anchored = false
  3625.         bone.Parent = script
  3626.         local mesh = Instance.new("SpecialMesh")
  3627.         mesh.MeshId = 'rbxassetid://1076136382'
  3628.         mesh.TextureId = 'rbxassetid://1076137938'
  3629.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  3630.         mesh.Parent = bone
  3631.         --
  3632.         local bone = Instance.new("Part")
  3633.         bone.CanCollide = false
  3634.         bone.Anchored = false
  3635.         bone.CFrame = obj.CFrame
  3636.         bone.Size = obj.Size
  3637.         bone.Massless = true
  3638.         bone.Locked = true
  3639.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  3640.         if not exists then
  3641.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  3642.         end
  3643.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  3644.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  3645.         game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  3646.         local weld = Instance.new("Weld")
  3647.         weld.Part0 = bone
  3648.         weld.Part1 = obj
  3649.         weld.C1 = CFrame.new(0.13,0.26,0)
  3650.         weld.Parent = bone
  3651.         obj.Anchored = false
  3652.         bone.Parent = script
  3653.         local mesh = Instance.new("SpecialMesh")
  3654.         mesh.MeshId = 'rbxassetid://36780032'
  3655.         mesh.TextureId = 'rbxassetid://36780292'
  3656.         mesh.Parent = bone
  3657.     elseif obj.Name == 'Right Arm' or obj.Name == 'RightUpperArm' then
  3658.         local bone = Instance.new("Part")
  3659.         bone.CanCollide = false
  3660.         bone.Anchored = false
  3661.         bone.CFrame = targtorso.CFrame
  3662.         bone.Size = targtorso.Size
  3663.         bone.Massless = true
  3664.         bone.Locked = true
  3665.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  3666.         if not exists then
  3667.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  3668.         end
  3669.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  3670.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  3671.         game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
  3672.         local weld = Instance.new("Weld")
  3673.         weld.Part0 = bone
  3674.         weld.Part1 = targtorso
  3675.         weld.C1 = CFrame.new(0.61,0.77,0.03)*CFrame.Angles(math.rad(90),0,math.rad(-90))
  3676.         weld.Parent = bone
  3677.         targtorso.Anchored = false
  3678.         bone.Parent = script
  3679.         local mesh = Instance.new("SpecialMesh")
  3680.         mesh.MeshId = 'rbxassetid://1076136382'
  3681.         mesh.TextureId = 'rbxassetid://1076137938'
  3682.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  3683.         mesh.Parent = bone
  3684.         --
  3685.         local bone = Instance.new("Part")
  3686.         bone.CanCollide = false
  3687.         bone.Anchored = false
  3688.         bone.CFrame = obj.CFrame
  3689.         bone.Size = obj.Size
  3690.         bone.Massless = true
  3691.         bone.Locked = true
  3692.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  3693.         if not exists then
  3694.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  3695.         end
  3696.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  3697.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  3698.         game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  3699.         local weld = Instance.new("Weld")
  3700.         weld.Part0 = bone
  3701.         weld.Part1 = obj
  3702.         weld.C1 = CFrame.new(-0.13,0.26,0)
  3703.         weld.Parent = bone
  3704.         obj.Anchored = false
  3705.         bone.Parent = script
  3706.         local mesh = Instance.new("SpecialMesh")
  3707.         mesh.MeshId = 'rbxassetid://36780156'
  3708.         mesh.TextureId = 'rbxassetid://36780292'
  3709.         mesh.Parent = bone
  3710.     elseif obj.Name == 'Left Leg' or obj.Name == 'LeftUpperLeg' then
  3711.         local bone = Instance.new("Part")
  3712.         bone.CanCollide = false
  3713.         bone.Anchored = false
  3714.         bone.CFrame = targtorso.CFrame
  3715.         bone.Size = targtorso.Size
  3716.         bone.Massless = true
  3717.         bone.Locked = true
  3718.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  3719.         if not exists then
  3720.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  3721.         end
  3722.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  3723.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  3724.         game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
  3725.         local weld = Instance.new("Weld")
  3726.         weld.Part0 = bone
  3727.         weld.Part1 = targtorso
  3728.         weld.C1 = CFrame.new(-0.6,-0.64,0.11)*CFrame.Angles(0,0,math.rad(180))
  3729.         weld.Parent = bone
  3730.         targtorso.Anchored = false
  3731.         bone.Parent = script
  3732.         local mesh = Instance.new("SpecialMesh")
  3733.         mesh.MeshId = 'rbxassetid://1076136382'
  3734.         mesh.TextureId = 'rbxassetid://1076137938'
  3735.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  3736.         mesh.Parent = bone
  3737.         --
  3738.         local bone = Instance.new("Part")
  3739.         bone.CanCollide = false
  3740.         bone.Anchored = false
  3741.         bone.CFrame = obj.CFrame
  3742.         bone.Size = obj.Size
  3743.         bone.Massless = true
  3744.         bone.Locked = true
  3745.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  3746.         if not exists then
  3747.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  3748.         end
  3749.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  3750.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  3751.         game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  3752.         local weld = Instance.new("Weld")
  3753.         weld.Part0 = bone
  3754.         weld.Part1 = obj
  3755.         weld.C1 = CFrame.new(0,0.09,0.13)
  3756.         weld.Parent = bone
  3757.         obj.Anchored = false
  3758.         bone.Parent = script
  3759.         local mesh = Instance.new("SpecialMesh")
  3760.         mesh.MeshId = 'rbxassetid://36780156'
  3761.         mesh.TextureId = 'rbxassetid://36780292'
  3762.         mesh.Parent = bone
  3763.     elseif obj.Name == 'Right Leg' or obj.Name == 'RightUpperLeg' then
  3764.         local bone = Instance.new("Part")
  3765.         bone.CanCollide = false
  3766.         bone.Anchored = false
  3767.         bone.CFrame = targtorso.CFrame
  3768.         bone.Size = targtorso.Size
  3769.         bone.Massless = true
  3770.         bone.Locked = true
  3771.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  3772.         if not exists then
  3773.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  3774.         end
  3775.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  3776.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  3777.         game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
  3778.         local weld = Instance.new("Weld")
  3779.         weld.Part0 = bone
  3780.         weld.Part1 = targtorso
  3781.         weld.C1 = CFrame.new(0.6,-0.64,0.11)*CFrame.Angles(0,0,math.rad(180))
  3782.         weld.Parent = bone
  3783.         targtorso.Anchored = false
  3784.         bone.Parent = script
  3785.         local mesh = Instance.new("SpecialMesh")
  3786.         mesh.MeshId = 'rbxassetid://1076136382'
  3787.         mesh.TextureId = 'rbxassetid://1076137938'
  3788.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  3789.         mesh.Parent = bone
  3790.         --
  3791.         local bone = Instance.new("Part")
  3792.         bone.CanCollide = false
  3793.         bone.Anchored = false
  3794.         bone.CFrame = obj.CFrame
  3795.         bone.Size = obj.Size
  3796.         bone.Massless = true
  3797.         bone.Locked = true
  3798.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  3799.         if not exists then
  3800.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  3801.         end
  3802.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  3803.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  3804.         game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  3805.         local weld = Instance.new("Weld")
  3806.         weld.Part0 = bone
  3807.         weld.Part1 = obj
  3808.         weld.C1 = CFrame.new(0,0.09,0.13)
  3809.         weld.Parent = bone
  3810.         obj.Anchored = false
  3811.         bone.Parent = script
  3812.         local mesh = Instance.new("SpecialMesh")
  3813.         mesh.MeshId = 'rbxassetid://36780195'
  3814.         mesh.TextureId = 'rbxassetid://36780292'
  3815.         mesh.Parent = bone
  3816.     elseif obj.Name == 'Head' then
  3817.         local bone = Instance.new("Part")
  3818.         bone.CanCollide = false
  3819.         bone.Anchored = false
  3820.         bone.CFrame = targtorso.CFrame
  3821.         bone.Size = targtorso.Size
  3822.         bone.Massless = true
  3823.         bone.Locked = true
  3824.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  3825.         if not exists then
  3826.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  3827.         end
  3828.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  3829.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  3830.         game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
  3831.         local weld = Instance.new("Weld")
  3832.         weld.Part0 = bone
  3833.         weld.Part1 = targtorso
  3834.         weld.C1 = CFrame.new(0,0.66,0)
  3835.         weld.Parent = bone
  3836.         targtorso.Anchored = false
  3837.         bone.Parent = script
  3838.         local mesh = Instance.new("SpecialMesh")
  3839.         mesh.MeshId = 'rbxassetid://1076136382'
  3840.         mesh.TextureId = 'rbxassetid://1076137938'
  3841.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  3842.         mesh.Parent = bone
  3843.         --
  3844.         local bone = Instance.new("Part")
  3845.         bone.CanCollide = false
  3846.         bone.Anchored = false
  3847.         bone.CFrame = obj.CFrame
  3848.         bone.Size = obj.Size
  3849.         bone.Massless = true
  3850.         bone.Locked = true
  3851.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  3852.         if not exists then
  3853.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  3854.         end
  3855.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  3856.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  3857.         game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  3858.         local weld = Instance.new("Weld")
  3859.         weld.Part0 = bone
  3860.         weld.Part1 = obj
  3861.         weld.C1 = CFrame.new(0,-0.23,0)*CFrame.Angles(0,math.rad(-90),0)
  3862.         weld.Parent = bone
  3863.         obj.Anchored = false
  3864.         bone.Parent = script
  3865.         local mesh = Instance.new("SpecialMesh")
  3866.         mesh.MeshId = 'rbxassetid://1076136382'
  3867.         mesh.TextureId = 'rbxassetid://1076137938'
  3868.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  3869.         mesh.Parent = bone
  3870.     end
  3871. end
  3872.  
  3873. local function break_limb(obj,rig,targtorso,targhum)
  3874.     if not obj:FindFirstChild('Dismembered') and obj.Name ~= 'Torso' and obj.Name ~= 'HumanoidRootPart' and obj.Name ~= 'UpperTorso' and obj.Name ~= 'LowerTorso' then else return end
  3875.     local confirm = Instance.new("ObjectValue")
  3876.     confirm.Name = 'Dismembered'
  3877.     confirm.Parent = obj
  3878.     local bsc = obj:FindFirstChildOfClass("BallSocketConstraint")
  3879.     if bsc then
  3880.         bsc:Destroy()
  3881.     end
  3882.     bleed2(obj,targhum,false,5,false)
  3883.     make_bone(obj,targtorso)
  3884.     local kb = 10
  3885.     local b = Instance.new("BodyVelocity")
  3886.     b.Parent = targtorso
  3887.     b.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  3888.     b.Velocity = han.CFrame.lookVector*kb + Vector3.new(0,2,0)
  3889.     game:GetService("Debris"):AddItem(b,0.1)
  3890.     if rig == Enum.HumanoidRigType.R6 then
  3891.         local bsc = obj:FindFirstChildOfClass("BallSocketConstraint")
  3892.         if bsc then
  3893.             bsc:Destroy()
  3894.         end
  3895.         for i,v in pairs(targtorso:GetChildren()) do
  3896.             if v:IsA("Motor6D") then
  3897.                 if obj.Name == 'Head' and v.Name == 'Neck' then
  3898.                     v:Destroy()
  3899.                 elseif obj.Name == 'Left Arm' and v.Name == 'Left Shouldver' then
  3900.                     v:Destroy()
  3901.                 elseif obj.Name == 'Right Arm' and v.Name == 'Right Shoulder' then
  3902.                     v:Destroy()
  3903.                 elseif obj.Name == 'Left Leg' and v.Name == 'Left Hip' then
  3904.                     if obj.Parent:FindFirstChild("Right Leg") then
  3905.                         targhum.WalkSpeed = targhum.WalkSpeed/2
  3906.                     else
  3907.                         targhum.WalkSpeed = 0
  3908.                     end
  3909.                     v:Destroy()
  3910.                 elseif obj.Name == 'Right Leg' and v.Name == 'Right Hip' then
  3911.                     if obj.Parent:FindFirstChild("Left Leg") then
  3912.                         targhum.WalkSpeed = targhum.WalkSpeed/2
  3913.                     else
  3914.                         targhum.WalkSpeed = 0
  3915.                     end
  3916.                     v:Destroy()
  3917.                 end
  3918.             end
  3919.         end
  3920.     elseif rig == Enum.HumanoidRigType.R15 then
  3921.         for i,v in pairs(obj:GetChildren()) do
  3922.             if v:IsA("Motor6D") then
  3923.                 if (obj.Name == 'LeftUpperLeg' and obj.Parent:FindFirstChild("RightUpperLeg")) or (obj.Name == 'RightUpperLeg' and obj.Parent:FindFirstChild("LeftUpperLeg")) then
  3924.                     targhum.WalkSpeed = targhum.WalkSpeed/2
  3925.                 elseif obj.Name == 'RightUpperLeg' or obj.Name == 'LeftUpperLeg' then
  3926.                     targhum.WalkSpeed = 0
  3927.                 end
  3928.                 v:Destroy()
  3929.             end
  3930.         end
  3931.     end
  3932.     local cb = Instance.new("Part")
  3933.     cb.Transparency = 1
  3934.     cb.CanCollide = true
  3935.     cb.Anchored = false
  3936.     cb.CFrame = obj.CFrame
  3937.     cb.Size = obj.Size
  3938.     cb.Massless = true
  3939.     cb.Locked = true
  3940.     local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  3941.     if not exists then
  3942.         game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  3943.     end
  3944.     game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  3945.     game:GetService("PhysicsService"):SetPartCollisionGroup(cb,'Limb Collide')
  3946.     game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  3947.     local weld = Instance.new("Weld")
  3948.     weld.Part0 = cb
  3949.     weld.Part1 = obj
  3950.     weld.Parent = cb
  3951.     obj.Massless = true
  3952.     obj.Anchored = false
  3953.     cb.Parent = script
  3954. end
  3955.  
  3956. local function check(toughness,obj,objpos,p,rays,rot)
  3957.     local plrhit = false
  3958.     if obj and not obj:FindFirstChild('Dismembered') then else return; end;
  3959.     local targchar,targtorso,targhum,targhead
  3960.     pcall(function()
  3961.         targchar = obj.Parent
  3962.     end)
  3963.     for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  3964.         if v and v.Character and obj:IsDescendantOf(v.Character) then
  3965.             targchar = v.Character
  3966.         end
  3967.     end
  3968.     pcall(function()
  3969.         targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("UpperTorso") or targchar:FindFirstChild("HumanoidRootPart")
  3970.     end)
  3971.     pcall(function()
  3972.         targhum = targchar:FindFirstChildOfClass("Humanoid")
  3973.     end)
  3974.     pcall(function()
  3975.         targhead = targchar:FindFirstChild("Head")
  3976.     end)
  3977.     if targchar and targchar.Parent and targtorso and targtorso.Parent and targhum and targhum.Parent and targhum ~= hum and targhead and targhead.Parent and not targhum:FindFirstChild("hit " .. targchar.Name .. " with " .. gun.Name .. " by " .. plr.Name) then
  3978.         plrhit = true
  3979.         local confirm = Instance.new("IntValue")
  3980.         confirm.Parent = targhum
  3981.         confirm.Name = ("hit " .. targchar.Name .. " with " .. gun.Name .. " by " .. plr.Name)
  3982.         debris:AddItem(confirm,shootwait)
  3983.         local dmg = math.random(40,50)
  3984.         if obj == targhead then
  3985.             dmg = math.random(65,75)
  3986.             targhum:TakeDamage(dmg)
  3987.         elseif not op then
  3988.             dmg = math.random(40,50)
  3989.             targhum:TakeDamage(dmg)
  3990.         elseif op then
  3991.             targhum.MaxHealth = 0
  3992.             targhum.Health = 0
  3993.             targhum.Parent:BreakJoints()
  3994.         end
  3995.         if math.random(1,4) == 1 then
  3996.             break_limb(obj,targhum.RigType,targtorso,targhum)
  3997.         end
  3998.         add_blood(obj)
  3999.         local bleeding = Instance.new("Sound")
  4000.         bleeding.SoundId = 'rbxassetid://360007673'
  4001.         bleeding.Volume = 1
  4002.         bleeding.Parent = targtorso
  4003.         bleeding:Play()
  4004.         if 0 >= targhum.Health and obj == targhead then
  4005.             kill(obj,true,p.CFrame.lookVector)
  4006.         elseif 0 >= targhum.Health then
  4007.             kill(obj,false,p.CFrame.lookVector)
  4008.         elseif targhum.Health > 0 then
  4009.             bleed2(targtorso,targhum,true,5,false)
  4010.         end
  4011.     else
  4012.         table.insert(objhit,1,obj)
  4013.         local mat = obj.Material
  4014.         local mathit = obj:FindFirstChild('material hit ' .. plr.Name)
  4015.         if not mathit and toughness > 0 and 1 > obj.Transparency then
  4016.             --print('old: ' .. toughness)
  4017.             if (mat == Enum.Material.Glass or mat == Enum.Material.Ice) then
  4018.                 breakwindow(obj)
  4019.             elseif (mat == Enum.Material.Wood or mat == Enum.Material.WoodPlanks) then
  4020.                 toughness = toughness - 1.5
  4021.             elseif (mat == Enum.Material.Metal or mat == Enum.Material.DiamondPlate or mat == Enum.Material.CorrodedMetal) then
  4022.                 toughness = toughness - 5
  4023.             elseif (mat == Enum.Material.Brick or mat == Enum.Material.Concrete or mat == Enum.Material.Cobblestone or mat == Enum.Material.Granite or mat == Enum.Material.Slate or mat == Enum.Material.Pebble) then
  4024.                 toughness = toughness - 3
  4025.             else
  4026.                 toughness = toughness - 1
  4027.             end
  4028.             --print('new: ' .. toughness)
  4029.             local libruary = {
  4030.                 ['wizz'] = {342190005, 342190012, 342190017, 342190024},
  4031.                 ['crackSmall'] = {873119768, 873119788, 873119811, 873119845, 873119886, 873119904},
  4032.                 ['crackBig'] = {873119597, 873119653, 873119679, 873119703, 873119724, 873119744},
  4033.                 ['whizz'] = {873121840, 873121858, 873121876, 873121896, 873121913, 873121936},
  4034.                 ['woodhit'] = {342204157, 342204164, 342204170, 342204175, 871705143, 871705174}, --871705195, 871705217, 871705237, 871705264
  4035.                 ['stonehit'] = {871701076, 871701134, 871701190, 871701241, 871701297, 871701346},
  4036.                 ['metalhit'] = {871704182, 871704259, 871704297, 871704329, 871704362, 871704395},
  4037.                 ['grasshit'] = {871709869, 871709832, 871709789, 871709755, 871709708, 871709643},
  4038.                 ['impact'] = {525720625},
  4039.             }
  4040.             local soundfont=({
  4041.                 Brick="stonehit";
  4042.                 Cobblestone="stonehit";
  4043.                 Concrete="stonehit";
  4044.                 CorrodedMetal="metalhit";
  4045.                 DiamondPlate="metalhit";
  4046.                 Fabric=nil;
  4047.                 Foil="metalhit";
  4048.                 Granite="stonehit";
  4049.                 Grass="grasshit";
  4050.                 Ice="stonehit";
  4051.                 Marble="stonehit";
  4052.                 Metal="metalhit";
  4053.                 Neon=nil;
  4054.                 Pebble="stonehit";
  4055.                 Plastic="metalhit";
  4056.                 Sand=nil;
  4057.                 Slate="stonehit";
  4058.                 SmoothPlastic="metalhit";
  4059.                 Wood="woodhit";
  4060.                 WoodPlanks="woodhit";
  4061.             })[mat.Name]
  4062.             local part = make_hole(CFrame.new(objpos, objpos - rot) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) * CFrame.Angles(math.rad(0), math.rad(math.random(-360, 360)), math.rad(0)), obj, obj.BrickColor)
  4063.             local BulletHoleSound = Instance.new("Sound")
  4064.             BulletHoleSound.Volume = 0.5
  4065.             BulletHoleSound.Pitch = math.random(9,11)/10
  4066.             if soundfont ~= nil then
  4067.                 BulletHoleSound.SoundId = "rbxassetid://"..libruary[soundfont][math.random(1,6)]
  4068.             else
  4069.                 BulletHoleSound.SoundId = "rbxassetid://"..libruary['impact'][1]
  4070.             end
  4071.             BulletHoleSound.Parent = part
  4072.             BulletHoleSound:Play()
  4073.             local tempmathit = Instance.new("ObjectValue")
  4074.             tempmathit.Name = ('material hit ' .. plr.Name)
  4075.             tempmathit.Parent = obj
  4076.             game:GetService("Debris"):AddItem(tempmathit,shootwait)
  4077.         end
  4078.     end
  4079.     if toughness > 0 and rays > 0 then
  4080.         local found = false
  4081.         for i,v in pairs(oldobjhit) do if v and obj:IsDescendantOf(v) then found = true; end; end;
  4082.         oldobjhit = objhit
  4083.         if not plrhit and not found then
  4084.             rays = rays - 1
  4085.             wait()
  4086.         end
  4087.         local ig = {char,gun,script,unpack(objhit)}
  4088.         local _obj,_vec,_rot = raycast(objpos,(hitpos-objpos).Unit, nil, ig)
  4089.         check(toughness,_obj,_vec,p,rays,_rot)
  4090.     else
  4091.         p:Destroy()
  4092.     end
  4093. end
  4094.  
  4095. local function drop_shell()
  4096.     local Shell = Instance.new("Part")
  4097.     Shell.Color = Color3.new(1, 1, 0)
  4098.     Shell.Size = Vector3.new(0.530001819, 0.132500455, 0.132500455)
  4099.     Shell.BottomSurface = Enum.SurfaceType.Smooth
  4100.     Shell.BrickColor = BrickColor.new("New Yeller")
  4101.     Shell.Material = Enum.Material.Metal
  4102.     Shell.Shape = Enum.PartType.Cylinder
  4103.     Shell.CFrame = han.CFrame
  4104.     Shell.Parent = script
  4105.     local bvs = Instance.new("BodyVelocity")
  4106.     bvs.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  4107.     bvs.Velocity = han.CFrame.lookVector+Vector3.new(0,10,-5)
  4108.     bvs.Parent = Shell
  4109.     game:GetService("Debris"):AddItem(bvs,0.1)
  4110.     game:GetService("Debris"):AddItem(Shell,10)
  4111. end
  4112.  
  4113. local function Shoot()
  4114.     if not using and CheckIfAlive() and ammo > 0 then
  4115.         using = true
  4116.         wait()
  4117.         ammo = ammo - 1
  4118.         shoot_s:Play()
  4119.         tween:Create(gun,TweenInfo.new(0.1),({Grip = CFrame.new(0.364753544, -0.169386029, -0.00732704997, -4.3651621e-08, -0.0522755384, 0.998632669, -2.2850366e-09, 0.99863261, 0.0522755422, -1, 0, -4.37113883e-08)})):Play()
  4120.         spawn(function()
  4121.             flash.Enabled = true
  4122.             light.Enabled = true
  4123.             smoke.Enabled = true
  4124.             wait()
  4125.             flash.Enabled = false
  4126.             light.Enabled = false
  4127.             smoke.Enabled = false
  4128.         end)
  4129.         for i = 1,bulletfire do
  4130.             drop_shell()
  4131.             for i,v in ipairs(objhit) do table.remove(objhit,i); end;
  4132.             for i,v in ipairs(objhit) do table.remove(oldobjhit,i); end;
  4133.             spawn(function()
  4134.                 local p = Instance.new("Part")
  4135.                 p.Name = "bullet"
  4136.                 p.Massless = true
  4137.                 p.Anchored = false
  4138.                 p.CanCollide = false
  4139.                 p.Color = Color3.fromRGB(255, 255, 0)
  4140.                 p.Size = Vector3.new(0.5,0.5,1)
  4141.                 p.Transparency = 0
  4142.                 p.Position = han.Position
  4143.                 p.CFrame = CFrame.new(han.Position,hitpos)
  4144.                 p.Velocity = p.CFrame.lookVector * 1000
  4145.                 p.Material = Enum.Material.Neon
  4146.                 p.Parent = script
  4147.                 local mesh = Instance.new("SpecialMesh")
  4148.                 mesh.MeshType = Enum.MeshType.Sphere
  4149.                 mesh.Parent = p
  4150.                 --tween:Create(p,TweenInfo.new(((hitpos)-han.Position).Magnitude/10000),{Position = p.Position + ((hitpos)-han.Position).Unit*1000}):Play()
  4151.                 local body_vel = Instance.new("BodyVelocity")
  4152.                 body_vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  4153.                 body_vel.Velocity = p.CFrame.lookVector * 1000
  4154.                 body_vel.Parent = p
  4155.                 debris:AddItem(p,3)
  4156.                 local toughness = 5
  4157.                 local rays = 5
  4158.                 local ig = {char,gun,script}
  4159.                 local obj,vec,rot = raycast(han.Position,(hitpos-han.Position).Unit, nil, ig)
  4160.                 check(toughness,obj,vec,p,rays,rot)
  4161.             end)
  4162.         end
  4163.         spawn(function()
  4164.             wait(0.1)
  4165.             tween:Create(gun,TweenInfo.new(0.1),({Grip = CFrame.new(0.355400085, -0.188222155, -0.00732704997, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)})):Play()
  4166.         end)
  4167.         wait(shootwait)
  4168.         using = false
  4169.     end
  4170. end
  4171.  
  4172. gun.Activated:Connect(function()
  4173.     if not using and CheckIfAlive() and 0 >= ammo then
  4174.         Reload()
  4175.     end
  4176. end)
  4177.  
  4178. gun.Equipped:Connect(function()
  4179.     equipped = true
  4180.     pcall(function()
  4181.         char = gun.Parent
  4182.         plr = game:GetService("Players"):GetPlayerFromCharacter(char)
  4183.         hum = char:FindFirstChildOfClass("Humanoid")
  4184.         torso = char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso")
  4185.         rootpart = char:FindFirstChild("HumanoidRootPart")
  4186.         if not CheckIfAlive() then gun.Parent = nil return end
  4187.     end)
  4188. end)
  4189.  
  4190. gun.Unequipped:Connect(function()
  4191.     equipped = false
  4192. end)
  4193.  
  4194. local remote = Instance.new("RemoteEvent")
  4195. remote.Name = 'auga2_remote'
  4196. remote.Parent = gun
  4197.  
  4198. remote.OnServerEvent:Connect(function(player,mode,data,data2)
  4199.     if equipped then else return end
  4200.     if plr == player and mode == 1 then
  4201.         if data ~= nil then
  4202.             hitpos = data
  4203.         end
  4204.         if data2 ~= nil then
  4205.             shooting = data2
  4206.         end
  4207.         if shooting then
  4208.             Shoot()
  4209.         end
  4210.     elseif not shooting and not using and CheckIfAlive() and plr == player and mode == 2 and data == 'reload' then
  4211.         Reload()
  4212.     end
  4213. end)
  4214.  
  4215. local ls = [[
  4216.     local plr = game:GetService("Players").LocalPlayer
  4217.     local mouse = plr:GetMouse()
  4218.     local char = plr.Character
  4219.     local remote = script.Parent
  4220.     local tool = remote.Parent
  4221.     local shooting = false
  4222.     tool.Equipped:Connect(function()
  4223.         pcall(function()
  4224.             char = tool.Parent
  4225.         end)
  4226.         pcall(function()
  4227.             plr = game:GetService("Players"):GetPlayerFromCharacter(char)
  4228.         end)
  4229.         pcall(function()
  4230.             mouse = plr:GetMouse()
  4231.         end)
  4232.         if mouse then
  4233.             mouse.KeyDown:Connect(function(key)
  4234.                 if key == 'r' then
  4235.                     remote:FireServer(2,'reload')
  4236.                 end
  4237.             end)
  4238.             mouse.Button1Down:Connect(function()
  4239.                 shooting = true
  4240.                 while shooting do
  4241.                     local pos
  4242.                     pcall(function()
  4243.                         pos = mouse.Hit.p
  4244.                     end)
  4245.                     remote:FireServer(1,pos,true)
  4246.                     wait(0.0833333333)
  4247.                 end
  4248.                 remote:FireServer(1,nil,false)
  4249.             end)
  4250.             mouse.Button1Up:Connect(function()
  4251.                 shooting = false
  4252.             end)
  4253.         end
  4254.     end)
  4255. ]]
  4256.  
  4257. NLS(ls,remote)
  4258. end)
  4259. spawn(function()
  4260. local char = plr.Character
  4261. local hum = char:FindFirstChildOfClass("Humanoid")
  4262. local torso = char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso")
  4263. local rootpart = char:FindFirstChild("HumanoidRootPart")
  4264.  
  4265. local debris = game:GetService("Debris")
  4266. local tween = game:GetService("TweenService")
  4267.  
  4268. local gun = Instance.new("Tool")
  4269. local han = Instance.new("Part")
  4270. local SpecialMesh2 = Instance.new("SpecialMesh")
  4271. gun.Name = "AK 47"
  4272. gun.Parent = plr['Backpack']
  4273. gun.Grip = CFrame.new(0.355400085, -0.188222155, -0.00732704997, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  4274. han.Name = "Handle"
  4275. han.Parent = gun
  4276. han.CFrame = CFrame.new(-12.4460001, 1.07099998, -5.64400005, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4277. han.Position = Vector3.new(-12.4460001, 1.07099998, -5.64400005)
  4278. han.Size = Vector3.new(5.579, 1.578, 0.256)
  4279. han.Color = Color3.fromRGB(91, 93, 105)
  4280. han.BottomSurface = Enum.SurfaceType.Smooth
  4281. han.TopSurface = Enum.SurfaceType.Smooth
  4282. SpecialMesh2.Parent = han
  4283. SpecialMesh2.MeshId = "rbxassetid://1877846291"
  4284. SpecialMesh2.Scale = Vector3.new(0.006, 0.006, 0.006)
  4285. SpecialMesh2.TextureId = ""
  4286. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  4287.  
  4288. local effect_part = Instance.new("Part")
  4289. local smoke = Instance.new("ParticleEmitter")
  4290. local flash = Instance.new("ParticleEmitter")
  4291. local light = Instance.new("PointLight")
  4292. effect_part.Name = "effect"
  4293. effect_part.Parent = gun
  4294. effect_part.CFrame = CFrame.new(-14.3099976, 2.64201403, -6.57999992, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4295. effect_part.Position = Vector3.new(-14.3099976, 2.64201403, -6.57999992)
  4296. effect_part.Transparency = 1
  4297. effect_part.Size = Vector3.new(0.100000001, 0.100000001, 0.100000001)
  4298. effect_part.BottomSurface = Enum.SurfaceType.Smooth
  4299. effect_part.CanCollide = false
  4300. effect_part.TopSurface = Enum.SurfaceType.Smooth
  4301. smoke.Name = "smoke"
  4302. smoke.Parent = effect_part
  4303. smoke.Speed = NumberRange.new(5, 7)
  4304. smoke.Rotation = NumberRange.new(0, 360)
  4305. smoke.Color = ColorSequence.new(Color3.new(0.27451, 0.27451, 0.27451),Color3.new(0.27451, 0.27451, 0.27451))
  4306. smoke.Enabled = false
  4307. smoke.LightEmission = 0.10000000149012
  4308. smoke.Texture = "http://www.roblox.com/asset/?id=244514423"
  4309. smoke.Transparency = NumberSequence.new(0.60000002384186,1)
  4310. smoke.Size = NumberSequence.new(0.99999964237213,3)
  4311. smoke.Lifetime = NumberRange.new(1.25, 1.5)
  4312. smoke.Rate = 100
  4313. smoke.RotSpeed = NumberRange.new(10, 10)
  4314. smoke.SpreadAngle = Vector2.new(15, 15)
  4315. smoke.VelocitySpread = 15
  4316. flash.Name = "flash"
  4317. flash.Parent = effect_part
  4318. flash.Speed = NumberRange.new(0, 0)
  4319. flash.Rotation = NumberRange.new(0, 90)
  4320. flash.Color = ColorSequence.new(Color3.new(1, 1, 0.498039),Color3.new(1, 1, 0.498039))
  4321. flash.Enabled = false
  4322. flash.LightEmission = 1
  4323. flash.Texture = "http://www.roblox.com/asset/?id=3419963"
  4324. flash.Transparency = NumberSequence.new(0.75,1)
  4325. flash.Size = NumberSequence.new(0.20000000298023,0.20000000298023)
  4326. flash.Lifetime = NumberRange.new(0.050000000745058, 0.075000002980232)
  4327. flash.Rate = 1000
  4328. light.Name = "light"
  4329. light.Parent = effect_part
  4330. light.Color = Color3.new(1, 1, 0.498039)
  4331. light.Enabled = false
  4332. light.Range = 6
  4333. light.Brightness = 10
  4334. light.Shadows = true
  4335.  
  4336. local weld = Instance.new("Weld")
  4337. weld.Part0 = han
  4338. weld.Part1 = effect_part
  4339. weld.C1 = weld.C1 * CFrame.new((han.Size.X/2)+0.2,-0.5,0)
  4340. weld.Parent = effect_part
  4341.  
  4342. local cols = {BrickColor.new("Neon orange"),BrickColor.new("Really red"),BrickColor.new("Bright red"),BrickColor.new("Br. yellowish orange"),BrickColor.new("Bright yellow")}
  4343. local taunts = {298689061,2743459732,2852509470,1018518369}
  4344. local shots = {2290994062,2290994834,2290995643,2291000298,2291001802}
  4345. local using = false
  4346. local op = false
  4347. local bulletfire = 1
  4348. local shootwait = 0.05*bulletfire
  4349. local max_ammo = 30
  4350. local ammo = max_ammo
  4351. local hitpos = nil
  4352. local shooting = false
  4353. local equipped = false
  4354.  
  4355. local equip = Instance.new("Sound")
  4356. equip.SoundId = 'rbxassetid://3667098999'
  4357. equip.Volume = 0.8
  4358. equip.Parent = han
  4359.  
  4360. local shoot_s = Instance.new("Sound")
  4361. shoot_s.SoundId = 'rbxassetid://336413490'
  4362. shoot_s.Volume = 5
  4363. shoot_s.Parent = han
  4364.  
  4365. local reload_s = Instance.new("Sound")
  4366. reload_s.SoundId = 'rbxassetid://3742928054'
  4367. reload_s.Volume = 0.7
  4368. reload_s.Parent = han
  4369.  
  4370. local wbreak = Instance.new("Sound")
  4371. wbreak.Parent = han
  4372. wbreak.SoundId = "rbxassetid://627558611"
  4373. wbreak.TimePosition = .1
  4374. wbreak.Volume = 0.7
  4375.  
  4376. local function CheckIfAlive()
  4377.     local alive = false
  4378.     if plr and char and char.Parent and torso and torso.Parent and hum and hum.Parent and hum.Health > 0 then
  4379.         alive = true
  4380.     end
  4381.     return alive
  4382. end
  4383.  
  4384. local function Ragdoll(targchar,headless,insta)
  4385.     local pc = targchar
  4386.     pc.Archivable = true
  4387.     local pc_torso
  4388.     for _,obj in pairs(pc:GetDescendants()) do
  4389.         obj.Archivable = true
  4390.         if obj:IsA("BasePart") or obj:IsA("UnionOperation") then
  4391.             obj.Massless = true
  4392.             obj.Locked = true
  4393.             obj.CanCollide = true
  4394.         end
  4395.     end
  4396.     if pc ~= nil then
  4397.         local hum = pc:FindFirstChild'Humanoid'
  4398.         local LArm = pc:FindFirstChild'Left Arm'
  4399.         local RArm = pc:FindFirstChild'Right Arm'
  4400.         local LLeg = pc:FindFirstChild'Left Leg'
  4401.         local RLeg = pc:FindFirstChild'Right Leg'
  4402.         local torso = pc:FindFirstChild'Torso'
  4403.         local head = pc:FindFirstChild'Head'
  4404.        
  4405.        
  4406.         local LUA = pc:FindFirstChild'LeftUpperArm'
  4407.         local LLA = pc:FindFirstChild'LeftLowerArm'
  4408.         local LH = pc:FindFirstChild'LeftHand'
  4409.        
  4410.         local RUA = pc:FindFirstChild'RightUpperArm'
  4411.         local RLA = pc:FindFirstChild'RightLowerArm'
  4412.         local RH = pc:FindFirstChild'RightHand'
  4413.        
  4414.         local LUL = pc:FindFirstChild'LeftUpperLeg'
  4415.         local LLL = pc:FindFirstChild'LeftLowerLeg'
  4416.         local LF = pc:FindFirstChild'LeftFoot'
  4417.        
  4418.         local RUL = pc:FindFirstChild'RightUpperLeg'
  4419.         local RLL = pc:FindFirstChild'RightLowerLeg'
  4420.         local RF = pc:FindFirstChild'RightFoot'
  4421.        
  4422.         local UT = pc:FindFirstChild'UpperTorso'
  4423.         local LT = pc:FindFirstChild'LowerTorso'
  4424.        
  4425.         if hum and LArm and RArm and LLeg and RLeg and head then
  4426.             pc_torso = torso
  4427.             hum.BreakJointsOnDeath = false
  4428.             if insta then
  4429.                 if hum.RigType==Enum.HumanoidRigType.R6 then
  4430.                     for _,v in pairs(torso:GetDescendants()) do
  4431.                         if v:IsA('Motor6D') --[[or v:IsA('BallSocketConstraint') or v:IsA('Attachment')]] then
  4432.                             v:Destroy()
  4433.                         end
  4434.                     end
  4435.                     --pc:BreakJoints()
  4436.                    local vis = false
  4437.                    local vis2 = false
  4438.                     if not LArm:FindFirstChild('Dismembered') then
  4439.                        local at1 = Instance.new("Attachment")
  4440.                        at1.Parent = torso
  4441.                        at1.Visible = vis
  4442.                        at1.Orientation = torso.Orientation + Vector3.new(0,180,0)
  4443.                        at1.Position = Vector3.new(-1,1,0)
  4444.                                        
  4445.                        local at1p2 = Instance.new("Attachment")
  4446.                        at1p2.Parent = LArm
  4447.                        at1p2.Visible = vis
  4448.                        at1p2.Orientation = LArm.Orientation + Vector3.new(0,180,0)
  4449.                        at1p2.Position = Vector3.new(.5,1,0)
  4450.                            
  4451.                        local bis = Instance.new("BallSocketConstraint")
  4452.                        bis.Parent = LArm
  4453.                        bis.Attachment0 = at1
  4454.                        bis.Attachment1 = at1p2
  4455.                        bis.LimitsEnabled = true
  4456.                        bis.UpperAngle = 15
  4457.                        bis.Visible = vis2
  4458.                        bis.TwistLimitsEnabled = true
  4459.                        bis.UpperAngle = -45
  4460.                        bis.TwistLowerAngle = -45
  4461.                     end
  4462.                     if not RArm:FindFirstChild('Dismembered') then    
  4463.                         local at2 = Instance.new("Attachment")
  4464.                         at2.Parent = torso
  4465.                         at2.Visible = vis
  4466.                         at2.Orientation = torso.Orientation + Vector3.new(0,0,0)
  4467.                         at2.Position = Vector3.new(1,1,0)
  4468.                                
  4469.                         local at2p2 = Instance.new("Attachment")
  4470.                         at2p2.Parent = RArm
  4471.                         at2p2.Visible = vis
  4472.                         at2p2.Orientation = RArm.Orientation + Vector3.new(0,0,0)
  4473.                         at2p2.Position = Vector3.new(-.5,1,0)
  4474.                        
  4475.                         local bis2 = Instance.new("BallSocketConstraint")
  4476.                         bis2.Parent = RArm
  4477.                         bis2.Attachment0 = at2
  4478.                         bis2.Attachment1 = at2p2
  4479.                         bis2.LimitsEnabled = true
  4480.                         bis2.UpperAngle = 15
  4481.                         bis2.Visible = vis2
  4482.                         bis2.TwistLimitsEnabled = true
  4483.                         bis2.UpperAngle = -45
  4484.                         bis2.TwistLowerAngle = -45
  4485.                     end
  4486.                      if not RLeg:FindFirstChild('Dismembered') then
  4487.                         local at3 = Instance.new("Attachment")
  4488.                         at3.Parent = torso
  4489.                         at3.Visible = vis
  4490.                         at3.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  4491.                         at3.Position = Vector3.new(.5,-1,0)
  4492.                                
  4493.                         local at3p2 = Instance.new("Attachment")
  4494.                         at3p2.Parent = RLeg
  4495.                         at3p2.Visible = vis
  4496.                         at3p2.Orientation = RLeg.Orientation + Vector3.new(90,0,-90)
  4497.                         at3p2.Position = Vector3.new(0,1,0)
  4498.                        
  4499.                         local bis3 = Instance.new("BallSocketConstraint")
  4500.                         bis3.Parent = RLeg
  4501.                         bis3.Attachment0 = at3
  4502.                         bis3.Attachment1 = at3p2
  4503.                         bis3.LimitsEnabled = true
  4504.                         bis3.UpperAngle = 180-15
  4505.                         bis3.Visible = vis2
  4506.                     end
  4507.                          
  4508.                     if not LLeg:FindFirstChild('Dismembered') then  
  4509.                         local at4 = Instance.new("Attachment")
  4510.                         at4.Parent = torso
  4511.                         at4.Visible = vis
  4512.                         at4.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  4513.                         at4.Position = Vector3.new(-.5,-1,0)
  4514.                                
  4515.                         local at4p2 = Instance.new("Attachment")
  4516.                         at4p2.Parent = LLeg
  4517.                         at4p2.Visible = vis
  4518.                         at4p2.Orientation = LLeg.Orientation + Vector3.new(90,0,-90)
  4519.                         at4p2.Position = Vector3.new(0,1,0)
  4520.                    
  4521.                         local bis4 = Instance.new("BallSocketConstraint")
  4522.                         bis4.Parent = LLeg
  4523.                         bis4.Attachment0 = at4
  4524.                         bis4.Attachment1 = at4p2
  4525.                         bis4.LimitsEnabled = true
  4526.                         bis4.UpperAngle = 180-15
  4527.                         bis4.Visible = vis2
  4528.                     end
  4529.                    
  4530.                     if not headless and not head:FindFirstChild('Dismembered') then  
  4531.                             local at5 = Instance.new("Attachment")
  4532.                             at5.Parent = torso
  4533.                             at5.Visible = vis
  4534.                             at5.Orientation = torso.Orientation + Vector3.new(180,90,0)
  4535.                             at5.Position = Vector3.new(0,1,0)
  4536.                          
  4537.                             local at5p2 = Instance.new("Attachment")
  4538.                             at5p2.Parent = head
  4539.                             at5p2.Visible = vis
  4540.                             at5p2.Orientation = head.Orientation + Vector3.new(180,90,0)
  4541.                             at5p2.Position = Vector3.new(0,-.5,0)
  4542.                    
  4543.                             local bis5 = Instance.new("BallSocketConstraint")
  4544.                             bis5.Parent = head
  4545.                             bis5.Attachment0 = at5p2
  4546.                             bis5.Attachment1 = at5
  4547.                             bis5.LimitsEnabled = true
  4548.                             bis5.UpperAngle = 75
  4549.                             bis5.Visible = vis2
  4550.                             bis5.TwistLimitsEnabled = true
  4551.                             bis5.UpperAngle = -45
  4552.                             bis5.TwistLowerAngle = -45
  4553.                         else
  4554.                             --head:BreakJoints()
  4555.                         end
  4556.                     end
  4557.             else
  4558.                 hum.Died:Connect(function()
  4559.                 if hum.RigType==Enum.HumanoidRigType.R6 then
  4560.                     for _,v in pairs(torso:GetDescendants()) do
  4561.                         if v:IsA('Motor6D') --[[or v:IsA('BallSocketConstraint') or v:IsA('Attachment')]] then
  4562.                             v:Destroy()
  4563.                         end
  4564.                     end
  4565.                     --pc:BreakJoints()
  4566.                    local vis = false
  4567.                    local vis2 = false
  4568.                     if not LArm:FindFirstChild('Dismembered') then
  4569.                        local at1 = Instance.new("Attachment")
  4570.                        at1.Parent = torso
  4571.                        at1.Visible = vis
  4572.                        at1.Orientation = torso.Orientation + Vector3.new(0,180,0)
  4573.                        at1.Position = Vector3.new(-1,1,0)
  4574.                                        
  4575.                        local at1p2 = Instance.new("Attachment")
  4576.                        at1p2.Parent = LArm
  4577.                        at1p2.Visible = vis
  4578.                        at1p2.Orientation = LArm.Orientation + Vector3.new(0,180,0)
  4579.                        at1p2.Position = Vector3.new(.5,1,0)
  4580.                            
  4581.                        local bis = Instance.new("BallSocketConstraint")
  4582.                        bis.Parent = LArm
  4583.                        bis.Attachment0 = at1
  4584.                        bis.Attachment1 = at1p2
  4585.                        bis.LimitsEnabled = true
  4586.                        bis.UpperAngle = 15
  4587.                        bis.Visible = vis2
  4588.                        bis.TwistLimitsEnabled = true
  4589.                        bis.UpperAngle = -45
  4590.                        bis.TwistLowerAngle = -45
  4591.                     end
  4592.                     if not RArm:FindFirstChild('Dismembered') then    
  4593.                         local at2 = Instance.new("Attachment")
  4594.                         at2.Parent = torso
  4595.                         at2.Visible = vis
  4596.                         at2.Orientation = torso.Orientation + Vector3.new(0,0,0)
  4597.                         at2.Position = Vector3.new(1,1,0)
  4598.                                
  4599.                         local at2p2 = Instance.new("Attachment")
  4600.                         at2p2.Parent = RArm
  4601.                         at2p2.Visible = vis
  4602.                         at2p2.Orientation = RArm.Orientation + Vector3.new(0,0,0)
  4603.                         at2p2.Position = Vector3.new(-.5,1,0)
  4604.                        
  4605.                         local bis2 = Instance.new("BallSocketConstraint")
  4606.                         bis2.Parent = RArm
  4607.                         bis2.Attachment0 = at2
  4608.                         bis2.Attachment1 = at2p2
  4609.                         bis2.LimitsEnabled = true
  4610.                         bis2.UpperAngle = 15
  4611.                         bis2.Visible = vis2
  4612.                         bis2.TwistLimitsEnabled = true
  4613.                         bis2.UpperAngle = -45
  4614.                         bis2.TwistLowerAngle = -45
  4615.                     end
  4616.                      if not RLeg:FindFirstChild('Dismembered') then
  4617.                         local at3 = Instance.new("Attachment")
  4618.                         at3.Parent = torso
  4619.                         at3.Visible = vis
  4620.                         at3.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  4621.                         at3.Position = Vector3.new(.5,-1,0)
  4622.                                
  4623.                         local at3p2 = Instance.new("Attachment")
  4624.                         at3p2.Parent = RLeg
  4625.                         at3p2.Visible = vis
  4626.                         at3p2.Orientation = RLeg.Orientation + Vector3.new(90,0,-90)
  4627.                         at3p2.Position = Vector3.new(0,1,0)
  4628.                        
  4629.                         local bis3 = Instance.new("BallSocketConstraint")
  4630.                         bis3.Parent = RLeg
  4631.                         bis3.Attachment0 = at3
  4632.                         bis3.Attachment1 = at3p2
  4633.                         bis3.LimitsEnabled = true
  4634.                         bis3.UpperAngle = 180-15
  4635.                         bis3.Visible = vis2
  4636.                     end
  4637.                          
  4638.                     if not LLeg:FindFirstChild('Dismembered') then  
  4639.                         local at4 = Instance.new("Attachment")
  4640.                         at4.Parent = torso
  4641.                         at4.Visible = vis
  4642.                         at4.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  4643.                         at4.Position = Vector3.new(-.5,-1,0)
  4644.                                
  4645.                         local at4p2 = Instance.new("Attachment")
  4646.                         at4p2.Parent = LLeg
  4647.                         at4p2.Visible = vis
  4648.                         at4p2.Orientation = LLeg.Orientation + Vector3.new(90,0,-90)
  4649.                         at4p2.Position = Vector3.new(0,1,0)
  4650.                    
  4651.                         local bis4 = Instance.new("BallSocketConstraint")
  4652.                         bis4.Parent = LLeg
  4653.                         bis4.Attachment0 = at4
  4654.                         bis4.Attachment1 = at4p2
  4655.                         bis4.LimitsEnabled = true
  4656.                         bis4.UpperAngle = 180-15
  4657.                         bis4.Visible = vis2
  4658.                     end
  4659.                    
  4660.                     if not headless and not head:FindFirstChild('Dismembered') then  
  4661.                             local at5 = Instance.new("Attachment")
  4662.                             at5.Parent = torso
  4663.                             at5.Visible = vis
  4664.                             at5.Orientation = torso.Orientation + Vector3.new(180,90,0)
  4665.                             at5.Position = Vector3.new(0,1,0)
  4666.                          
  4667.                             local at5p2 = Instance.new("Attachment")
  4668.                             at5p2.Parent = head
  4669.                             at5p2.Visible = vis
  4670.                             at5p2.Orientation = head.Orientation + Vector3.new(180,90,0)
  4671.                             at5p2.Position = Vector3.new(0,-.5,0)
  4672.                    
  4673.                             local bis5 = Instance.new("BallSocketConstraint")
  4674.                             bis5.Parent = head
  4675.                             bis5.Attachment0 = at5p2
  4676.                             bis5.Attachment1 = at5
  4677.                             bis5.LimitsEnabled = true
  4678.                             bis5.UpperAngle = 75
  4679.                             bis5.Visible = vis2
  4680.                             bis5.TwistLimitsEnabled = true
  4681.                             bis5.UpperAngle = -45
  4682.                             bis5.TwistLowerAngle = -45
  4683.                         else
  4684.                             --head:BreakJoints()
  4685.                         end
  4686.                     end
  4687.                 end)
  4688.             end
  4689.         elseif head and hum then
  4690.             pc_torso = pc:FindFirstChild("HumanoidRootPart")
  4691.             hum.BreakJointsOnDeath = false
  4692.             if insta then
  4693.                 if hum.RigType==Enum.HumanoidRigType.R15 then
  4694.                     for _,v in pairs(pc:GetDescendants()) do
  4695.                         if v:IsA('Motor6D') --[[or v:IsA('BallSocketConstraint') or v:IsA('Attachment')]] then
  4696.                             v:Destroy()
  4697.                         end
  4698.                     end
  4699.                     --pc:BreakJoints()
  4700.                     local vis = false
  4701.                     local vis2 = false
  4702.                    
  4703.                 if not LF:FindFirstChild('Dismembered') then  
  4704.                     local bsc1 = Instance.new("BallSocketConstraint",LF)
  4705.                     bsc1.Attachment0 = LF.LeftAnkleRigAttachment
  4706.                     bsc1.Attachment1 = LLL.LeftAnkleRigAttachment
  4707.                 end
  4708.                 if not LLL:FindFirstChild('Dismembered') then  
  4709.                     local bsc2 = Instance.new("BallSocketConstraint",LLL)
  4710.                     bsc2.Attachment0 = LLL.LeftKneeRigAttachment
  4711.                     bsc2.Attachment1 = LUL.LeftKneeRigAttachment
  4712.                 end
  4713.                 if not LUL:FindFirstChild('Dismembered') then  
  4714.                     local bsc3 = Instance.new("BallSocketConstraint",LUL)
  4715.                     bsc3.Attachment0 = LUL.LeftHipRigAttachment
  4716.                     bsc3.Attachment1 = LT.LeftHipRigAttachment
  4717.                 end
  4718.                 if not RF:FindFirstChild('Dismembered') then  
  4719.                     local bsc4 = Instance.new("BallSocketConstraint",RF)
  4720.                     bsc4.Attachment0 = RF.RightAnkleRigAttachment
  4721.                     bsc4.Attachment1 = RLL.RightAnkleRigAttachment
  4722.                 end
  4723.                 if not RLL:FindFirstChild('Dismembered') then  
  4724.                     local bsc5 = Instance.new("BallSocketConstraint",RLL)
  4725.                     bsc5.Attachment0 = RLL.RightKneeRigAttachment
  4726.                     bsc5.Attachment1 = RUL.RightKneeRigAttachment
  4727.                 end
  4728.                 if not RUL:FindFirstChild('Dismembered') then  
  4729.                     local bsc6 = Instance.new("BallSocketConstraint",RUL)
  4730.                     bsc6.Attachment0 = RUL.RightHipRigAttachment
  4731.                     bsc6.Attachment1 = LT.RightHipRigAttachment
  4732.                 end
  4733.                 if not LH:FindFirstChild('Dismembered') then  
  4734.                     local bsc7 = Instance.new("BallSocketConstraint",LH)
  4735.                     bsc7.Attachment0 = LH.LeftWristRigAttachment
  4736.                     bsc7.Attachment1 = LLA.LeftWristRigAttachment
  4737.                 end
  4738.                 if not LLA:FindFirstChild('Dismembered') then  
  4739.                     local bsc8 = Instance.new("BallSocketConstraint",LLA)
  4740.                     bsc8.Attachment0 = LLA.LeftElbowRigAttachment
  4741.                     bsc8.Attachment1 = LUA.LeftElbowRigAttachment
  4742.                 end
  4743.                 if not LUA:FindFirstChild('Dismembered') then  
  4744.                     local bsc9 = Instance.new("BallSocketConstraint",LUA)
  4745.                     bsc9.Attachment0 = LUA.LeftShoulderAttachment
  4746.                     bsc9.Attachment1 = UT.LeftCollarAttachment
  4747.                 end
  4748.                 if not RH:FindFirstChild('Dismembered') then  
  4749.                     local bsc10 = Instance.new("BallSocketConstraint",RH)
  4750.                     bsc10.Attachment0 = RH.RightWristRigAttachment
  4751.                     bsc10.Attachment1 = RLA.RightWristRigAttachment
  4752.                 end
  4753.                 if not RLA:FindFirstChild('Dismembered') then  
  4754.                     local bsc11 = Instance.new("BallSocketConstraint",RLA)
  4755.                     bsc11.Attachment0 = RLA.RightElbowRigAttachment
  4756.                     bsc11.Attachment1 = RUA.RightElbowRigAttachment
  4757.                 end
  4758.                 if not RUA:FindFirstChild('Dismembered') then  
  4759.                     local bsc12 = Instance.new("BallSocketConstraint",RUA)
  4760.                     bsc12.Attachment0 = RUA.RightShoulderAttachment
  4761.                     bsc12.Attachment1 = UT.RightCollarAttachment
  4762.                 end
  4763.                 if not LT:FindFirstChild('Dismembered') then  
  4764.                     local bsc13 = Instance.new("BallSocketConstraint",LT)
  4765.                     bsc13.Attachment0 = LT.WaistRigAttachment
  4766.                     bsc13.Attachment1 = UT.WaistRigAttachment
  4767.                 end
  4768.                     if not headless and not head:FindFirstChild('Dismembered')  then
  4769.                         local bsc14 = Instance.new("BallSocketConstraint",head)
  4770.                         bsc14.Attachment0 = UT.NeckRigAttachment
  4771.                         bsc14.Attachment1 = head.NeckRigAttachment
  4772.                         bsc14.LimitsEnabled = true
  4773.                         bsc14.UpperAngle = -75
  4774.                         bsc14.TwistLimitsEnabled = true
  4775.                         bsc14.UpperAngle = -45
  4776.                         bsc14.TwistLowerAngle = -45
  4777.                     else
  4778.                         --head:BreakJoints()
  4779.                     end
  4780.                 end
  4781.             else
  4782.                 hum.Died:Connect(function()
  4783.                     if hum.RigType==Enum.HumanoidRigType.R15 then
  4784.                         for _,v in pairs(pc:GetDescendants()) do
  4785.                             if v:IsA('Motor6D') --[[or v:IsA('BallSocketConstraint') or v:IsA('Attachment')]] then
  4786.                                 v:Destroy()
  4787.                             end
  4788.                         end
  4789.                         --pc:BreakJoints()
  4790.                         local vis = false
  4791.                         local vis2 = false
  4792.                        
  4793.                     if not LF:FindFirstChild('Dismembered') then  
  4794.                         local bsc1 = Instance.new("BallSocketConstraint",LF)
  4795.                         bsc1.Attachment0 = LF.LeftAnkleRigAttachment
  4796.                         bsc1.Attachment1 = LLL.LeftAnkleRigAttachment
  4797.                     end
  4798.                     if not LLL:FindFirstChild('Dismembered') then  
  4799.                         local bsc2 = Instance.new("BallSocketConstraint",LLL)
  4800.                         bsc2.Attachment0 = LLL.LeftKneeRigAttachment
  4801.                         bsc2.Attachment1 = LUL.LeftKneeRigAttachment
  4802.                     end
  4803.                     if not LUL:FindFirstChild('Dismembered') then  
  4804.                         local bsc3 = Instance.new("BallSocketConstraint",LUL)
  4805.                         bsc3.Attachment0 = LUL.LeftHipRigAttachment
  4806.                         bsc3.Attachment1 = LT.LeftHipRigAttachment
  4807.                     end
  4808.                     if not RF:FindFirstChild('Dismembered') then  
  4809.                         local bsc4 = Instance.new("BallSocketConstraint",RF)
  4810.                         bsc4.Attachment0 = RF.RightAnkleRigAttachment
  4811.                         bsc4.Attachment1 = RLL.RightAnkleRigAttachment
  4812.                     end
  4813.                     if not RLL:FindFirstChild('Dismembered') then  
  4814.                         local bsc5 = Instance.new("BallSocketConstraint",RLL)
  4815.                         bsc5.Attachment0 = RLL.RightKneeRigAttachment
  4816.                         bsc5.Attachment1 = RUL.RightKneeRigAttachment
  4817.                     end
  4818.                     if not RUL:FindFirstChild('Dismembered') then  
  4819.                         local bsc6 = Instance.new("BallSocketConstraint",RUL)
  4820.                         bsc6.Attachment0 = RUL.RightHipRigAttachment
  4821.                         bsc6.Attachment1 = LT.RightHipRigAttachment
  4822.                     end
  4823.                     if not LH:FindFirstChild('Dismembered') then  
  4824.                         local bsc7 = Instance.new("BallSocketConstraint",LH)
  4825.                         bsc7.Attachment0 = LH.LeftWristRigAttachment
  4826.                         bsc7.Attachment1 = LLA.LeftWristRigAttachment
  4827.                     end
  4828.                     if not LLA:FindFirstChild('Dismembered') then  
  4829.                         local bsc8 = Instance.new("BallSocketConstraint",LLA)
  4830.                         bsc8.Attachment0 = LLA.LeftElbowRigAttachment
  4831.                         bsc8.Attachment1 = LUA.LeftElbowRigAttachment
  4832.                     end
  4833.                     if not LUA:FindFirstChild('Dismembered') then  
  4834.                         local bsc9 = Instance.new("BallSocketConstraint",LUA)
  4835.                         bsc9.Attachment0 = LUA.LeftShoulderAttachment
  4836.                         bsc9.Attachment1 = UT.LeftCollarAttachment
  4837.                     end
  4838.                     if not RH:FindFirstChild('Dismembered') then  
  4839.                         local bsc10 = Instance.new("BallSocketConstraint",RH)
  4840.                         bsc10.Attachment0 = RH.RightWristRigAttachment
  4841.                         bsc10.Attachment1 = RLA.RightWristRigAttachment
  4842.                     end
  4843.                     if not RLA:FindFirstChild('Dismembered') then  
  4844.                         local bsc11 = Instance.new("BallSocketConstraint",RLA)
  4845.                         bsc11.Attachment0 = RLA.RightElbowRigAttachment
  4846.                         bsc11.Attachment1 = RUA.RightElbowRigAttachment
  4847.                     end
  4848.                     if not RUA:FindFirstChild('Dismembered') then  
  4849.                         local bsc12 = Instance.new("BallSocketConstraint",RUA)
  4850.                         bsc12.Attachment0 = RUA.RightShoulderAttachment
  4851.                         bsc12.Attachment1 = UT.RightCollarAttachment
  4852.                     end
  4853.                     if not LT:FindFirstChild('Dismembered') then  
  4854.                         local bsc13 = Instance.new("BallSocketConstraint",LT)
  4855.                         bsc13.Attachment0 = LT.WaistRigAttachment
  4856.                         bsc13.Attachment1 = UT.WaistRigAttachment
  4857.                     end
  4858.                         if not headless and not head:FindFirstChild('Dismembered')  then
  4859.                             local bsc14 = Instance.new("BallSocketConstraint",head)
  4860.                             bsc14.Attachment0 = UT.NeckRigAttachment
  4861.                             bsc14.Attachment1 = head.NeckRigAttachment
  4862.                             bsc14.LimitsEnabled = true
  4863.                             bsc14.UpperAngle = -75
  4864.                             bsc14.TwistLimitsEnabled = true
  4865.                             bsc14.UpperAngle = -45
  4866.                             bsc14.TwistLowerAngle = -45
  4867.                         else
  4868.                             --head:BreakJoints()
  4869.                         end
  4870.                     end
  4871.                 end)
  4872.             end
  4873.         end
  4874.     end
  4875.     return pc,pc_torso
  4876. end
  4877. local function bleed2(frick,targhum,can_hurt,t,splat)
  4878.     spawn(function()
  4879.     if not frick:FindFirstChild("bleeding from kry's " .. gun.Name) then else return end
  4880.     local tempbleedval = Instance.new("ObjectValue")
  4881.     tempbleedval.Name = "bleeding from kry's " .. gun.Name
  4882.     tempbleedval.Parent = frick
  4883.     local bleeding = true
  4884.     local rig = targhum.RigType
  4885.     local limbs = {'Head','Left Arm','Right Arm','Left Leg','Right Leg','RightUpperLeg','LeftUpperLeg','RightUpperArm','LeftUpperArm','RightLowerLeg','LeftLowerLeg','RightLowerArm','LeftLowerArm','RightFoot','LeftFoot','RightHand','LeftHand'}
  4886.     spawn(function()
  4887.         wait(t)
  4888.         bleeding = false
  4889.         tempbleedval:Destroy()
  4890.     end)
  4891.     while bleeding and frick and frick.Parent do
  4892.         if --[[(targhum and targhum.Parent and targhum.Health > 0) or]] (not frick or not frick.Parent or not targhum or not targhum.Parent) then
  4893.             break
  4894.         end
  4895.         local max_limbs = 0
  4896.         local current_limbs = 0
  4897.         local gone_limbs = 0
  4898.         local targchar = targhum.Parent
  4899.         if rig == Enum.HumanoidRigType.R6 then
  4900.             max_limbs = 5
  4901.         elseif rig == Enum.HumanoidRigType.R15 then
  4902.             max_limbs = 13
  4903.         end
  4904.         for i,v in pairs(targchar:GetChildren()) do
  4905.             local found = false
  4906.             for i,n in pairs(limbs) do if n == v.Name then found = true; end; end;
  4907.             if found and not v:FindFirstChild("Dismembered") then
  4908.                 current_limbs = current_limbs + 1
  4909.             end
  4910.         end
  4911.         gone_limbs = (max_limbs-current_limbs)
  4912.         if targhum and can_hurt then
  4913.             if gone_limbs >= 1 then
  4914.                 targhum:TakeDamage(0.5*gone_limbs)
  4915.             else
  4916.                 targhum:TakeDamage(0.5)
  4917.             end
  4918.         end
  4919.         spawn(function()
  4920.             local thing = Instance.new('Part')
  4921.             thing.Parent = workspace
  4922.             thing.Size = Vector3.new(0.1,0.1,0.1)
  4923.             thing.CFrame = frick.CFrame
  4924.             if splat then
  4925.                 thing.Transparency = 0
  4926.             elseif not splat then
  4927.                 thing.Transparency = 1
  4928.             end
  4929.             thing.Color = Color3.fromRGB(75, 0, 0)
  4930.             thing.Material = Enum.Material.Glass
  4931.             thing.Name = "Blood"
  4932.             thing.CanCollide =false
  4933.             thing:BreakJoints()
  4934.             local mesh = Instance.new('SpecialMesh')
  4935.             mesh.MeshType = Enum.MeshType.Sphere
  4936.             mesh.Parent = thing
  4937.             --game:GetService("Debris"):AddItem(thing,5)
  4938.             local att1,att2 = Instance.new("Attachment"),Instance.new("Attachment")
  4939.             att1.Parent = thing
  4940.             att1.Position = Vector3.new(0,-(thing.Size.Y/2),0)
  4941.             att2.Parent = thing
  4942.             att2.Position = Vector3.new(0,(thing.Size.Y/2),0)
  4943.             if splat then
  4944.                 local trail_drop = Instance.new("Trail")
  4945.                 trail_drop.Parent = thing
  4946.                 trail_drop.Attachment0 = att1
  4947.                 trail_drop.Attachment1 = att2
  4948.                 trail_drop.Color = ColorSequence.new(Color3.new(0.294118, 0, 0),Color3.new(0.294118, 0, 0))
  4949.                 trail_drop.FaceCamera = true
  4950.                 trail_drop.LightInfluence = 1
  4951.                 trail_drop.Transparency = NumberSequence.new(0.1,1)
  4952.                 trail_drop.Lifetime = 1
  4953.                 trail_drop.MinLength = 0
  4954.             end
  4955.             local rawrxd = Instance.new('BodyForce')
  4956.             rawrxd.Parent = thing
  4957.             if splat then
  4958.                 rawrxd.Force = frick.CFrame.upVector+Vector3.new(math.random(-5, 5)/10,3,math.random(-5, 5)/10)
  4959.             elseif not splat then
  4960.                 rawrxd.Force = frick.CFrame.upVector*(math.random()*2)+Vector3.new(math.random(-5, 5)/10,1.5,0)
  4961.             end
  4962.             game:GetService("Debris"):AddItem(rawrxd,0.01)
  4963.             thing.Touched:connect(function(tou)
  4964.                 if tou.Parent and tou.Parent:IsA('Tool') == false and tou.Parent.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.name ~= "mini_blood" and tou.Name ~= "Blood" and tou.Parent ~= char and tou.Parent.ClassName ~= "Accessory" and tou.Parent.Name ~= 'mini_blood' then
  4965.                     local pos = Vector3.new(thing.Position.X,(tou.Position.Y+(tou.Size.Y/2))+(0.02/2),thing.Position.Z)
  4966.                     local Point1 = pos-Vector3.new(0.01,0.01,0.01)
  4967.                     local Point2 = pos+Vector3.new(0.01,0.01,0.01)
  4968.                     local Region = Region3.new(Point1,Point2)
  4969.                     for _,Part in pairs(game.Workspace:FindPartsInRegion3(Region,nil,math.huge)) do
  4970.                         if Part.Name == "blood" then
  4971.                             tou = Part
  4972.                         end
  4973.                     end
  4974.                     thing:Destroy()
  4975.                     if tou.Name == "blood" then
  4976.                         local reee = tou.CFrame
  4977.                         if tou.Transparency > -0.2 then
  4978.                             tou.Transparency = tou.Transparency - 0.1
  4979.                         end
  4980.                         if tou.Size.X < 5 then
  4981.                             tou.Size = tou.Size+Vector3.new(0.4,0,0.4)
  4982.                             tou.CFrame = reee
  4983.                         elseif tou.Size.X < 7.5 then
  4984.                             tou.Size = tou.Size+Vector3.new(0.3,0,0.3)
  4985.                             tou.CFrame = reee
  4986.                         elseif tou.Size.X < 10 then
  4987.                             tou.Size = tou.Size+Vector3.new(0.2,0,0.2)
  4988.                             tou.CFrame = reee
  4989.                         end
  4990.                     elseif tou.CanCollide == true then
  4991.                         local bloodlol = Instance.new('Part')
  4992.                         if gone_limbs >= 1 then
  4993.                             bloodlol.Size = Vector3.new(1*gone_limbs,0.2,1*gone_limbs)
  4994.                         else
  4995.                             bloodlol.Size = Vector3.new(1,0.2,1)
  4996.                         end
  4997.                         bloodlol.Name = "blood"
  4998.                         bloodlol.Anchored = true
  4999.                         bloodlol.CanCollide = false
  5000.                         bloodlol.Material = Enum.Material.Glass
  5001.                         bloodlol.Color = Color3.fromRGB(75, 0, 0)
  5002.                         local mesh = Instance.new('SpecialMesh')
  5003.                         mesh.MeshType = Enum.MeshType.Sphere
  5004.                         mesh.Parent = bloodlol
  5005.                         bloodlol.Parent = workspace
  5006.                         bloodlol.CFrame = CFrame.new(pos)
  5007.                         while bloodlol and bloodlol.Parent ~= nil do
  5008.                             if bloodlol.Transparency < 1 then
  5009.                                 bloodlol.Transparency = bloodlol.Transparency + 0.05
  5010.                             else
  5011.                                 bloodlol:Destroy()
  5012.                             end
  5013.                             wait(0.1)
  5014.                         end
  5015.                     end
  5016.                 end
  5017.             end)
  5018.         end)
  5019.         wait(0.1)
  5020.     end
  5021.     tempbleedval:Destroy()
  5022.     end)
  5023. end
  5024. local function kill(obj,headshot,lookVector)
  5025.     local targchar,targhead,targtorso,targhum,killval,hitval
  5026.     pcall(function()
  5027.         targchar = obj.Parent
  5028.     end)
  5029.     for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  5030.         if v and v.Character and obj:IsDescendantOf(v.Character) then
  5031.             targchar = v.Character
  5032.         end
  5033.     end
  5034.     pcall(function()
  5035.         targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("HumanoidRootPart")
  5036.     end)
  5037.     pcall(function()
  5038.         targhead = targchar:FindFirstChild("Head")
  5039.     end)
  5040.     pcall(function()
  5041.         targhum = targchar:FindFirstChildOfClass("Humanoid")
  5042.     end)
  5043.     pcall(function()
  5044.         killval = targhum:FindFirstChild("killer")
  5045.     end)
  5046.     pcall(function()
  5047.         decapval = targhum:FindFirstChild("decapped " .. targchar.Name)
  5048.     end)
  5049.     pcall(function()
  5050.         hitval = targhum:FindFirstChild("hit " .. targchar.Name .. " with ak 47 by " .. plr.Name)
  5051.     end)
  5052.     if targchar and targhead and targtorso and targhum and targhum ~= hum --[[and not hitval]] and using then
  5053.         targhum:TakeDamage(1/0)
  5054.         if 0 >= targhum.Health then
  5055.             if (not decapval and headshot) or not killval then
  5056.                 if not killval then
  5057.                     local tempkillval = Instance.new("ObjectValue",targhum)
  5058.                     tempkillval.Name = "killer"
  5059.                     tempkillval.Value = plr
  5060.                 end
  5061.                 spawn(function()
  5062.                     local kb = 30
  5063.                     local b = Instance.new("BodyVelocity")
  5064.                     b.Parent = targtorso
  5065.                     b.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  5066.                     b.Velocity = lookVector*kb + Vector3.new(0,2,0)
  5067.                     game:GetService("Debris"):AddItem(b,0.15)
  5068.                 end)
  5069.                 pcall(function()
  5070.                     Ragdoll(targchar,headshot,true)
  5071.                 end)
  5072.                 bleed2(targtorso,targhum,true,5,true)
  5073.             end
  5074.             if headshot and not decapval then
  5075.                 local tempdecapval = Instance.new("ObjectValue",targhum)
  5076.                 tempdecapval.Name = ("decapped " .. targchar.Name)
  5077.                 local decap_bleed = Instance.new("Sound")
  5078.                 decap_bleed.SoundId = 'rbxassetid://244502094'
  5079.                 decap_bleed.Volume = 0.5
  5080.                 decap_bleed.Parent = targtorso
  5081.                 decap_bleed:Play()
  5082.                 local decap_head = Instance.new("Sound")
  5083.                 decap_head.SoundId = 'rbxassetid://1255040462' --222406108
  5084.                 decap_head.Volume = 1
  5085.                 decap_head.Parent = targtorso
  5086.                 decap_head:Play()
  5087.                 local att = Instance.new("Attachment")
  5088.                 att.Parent = targtorso
  5089.                 att.Position = Vector3.new(0,targtorso.Size.Y/2,0)
  5090.                 local blood_emitter = Instance.new("ParticleEmitter")
  5091.                 blood_emitter.Name = "Blood2"
  5092.                 blood_emitter.Parent = att
  5093.                 blood_emitter.Speed = NumberRange.new(5, 14)
  5094.                 blood_emitter.Color = ColorSequence.new(Color3.new(0.45098, 0, 0),Color3.new(0.45098, 0, 0))
  5095.                 blood_emitter.LightEmission = 0.20000000298023
  5096.                 blood_emitter.LightInfluence = 1
  5097.                 blood_emitter.Texture = "http://www.roblox.com/asset/?id=134531274"
  5098.                 blood_emitter.Transparency = NumberSequence.new(0.30000001192093,0.30000001192093)
  5099.                 blood_emitter.ZOffset = 1
  5100.                 blood_emitter.Size = NumberSequence.new(0.12499988079071,0)
  5101.                 blood_emitter.Acceleration = Vector3.new(0, -20, 0)
  5102.                 blood_emitter.Lifetime = NumberRange.new(0.5, 1.5)
  5103.                 blood_emitter.Rate = 100000
  5104.                 blood_emitter.SpreadAngle = Vector2.new(90, 90)
  5105.                 blood_emitter.VelocitySpread = 90
  5106.                 blood_emitter.Enabled = true
  5107.             end
  5108.         end
  5109.     end
  5110. end
  5111.  
  5112. local function Reload()
  5113.     if max_ammo > ammo then else return end
  5114.     using = true
  5115.     reload_s:Play()
  5116.     local mag = Instance.new("Part")
  5117.     mag.Size = Vector3.new(0.48, 1.23, 0.14)
  5118.     mag.Color = han.Color
  5119.     mag.Parent = workspace
  5120.     mag.CFrame = han.CFrame * CFrame.new(0.1,-0.1,0)
  5121.     --debris:AddItem(mag,3)
  5122.     wait(reload_s.TimeLength)
  5123.     ammo = max_ammo
  5124.     game:GetService("Debris"):AddItem(mag,10)
  5125.     using = false
  5126. end
  5127.  
  5128. local function breakwindow(hit)
  5129.     if hit and hit.Name:lower() ~= "window shatter" and hit.Name:lower() ~= "blood" and hit.Name:lower() ~= "mini_blood" then else return end
  5130.     local wbreakc = wbreak:Clone()
  5131.     wbreakc.Parent = hit
  5132.     wbreakc:Play()
  5133.     local sx,sy,sz=hit.Size.x,hit.Size.y,hit.Size.z
  5134.     hit.Name = "window shatter"
  5135.     for x=1,4 do
  5136.         for y=1,4 do
  5137.             local part=hit:Clone()
  5138.             local position=Vector3.new(x-2.1,y-2.1,0)*Vector3.new(sx/4,sy/4,sz)
  5139.             part.Size=Vector3.new(sx/4,sy/4,sz)
  5140.             part.CFrame=hit.CFrame*(CFrame.new(part.Size/8)-hit.Size/8+position)           
  5141.             part.Velocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  5142.             part.Name="window shatter"
  5143.             part.Parent=hit.Parent
  5144.             debris:AddItem(part,2)
  5145.             spawn(function()
  5146.                 wait(0.5)
  5147.                 for i=1,10 do
  5148.                     part.Transparency=part.Transparency+0.05
  5149.                     wait(0.05)
  5150.                 end
  5151.                 part:Destroy()
  5152.             end)
  5153.             part.Anchored=false
  5154.         end
  5155.     end
  5156.     hit:Destroy()
  5157. end
  5158.  
  5159. local function raycast(Pos,Dir,Max,Ignore)
  5160.     return workspace:FindPartOnRayWithIgnoreList(Ray.new(Pos, Dir * (Max or 999.999)), (Ignore or {}), false, true)
  5161. end
  5162.  
  5163. local objhit = {}
  5164. local oldobjhit = {}
  5165.  
  5166. local function make_hole(pos,obj,col)
  5167.     local BulletHolePart = Instance.new("Part")
  5168.     BulletHolePart.Massless = true
  5169.     BulletHolePart.Anchored = false
  5170.     BulletHolePart.CanCollide = false
  5171.     BulletHolePart.Locked = true
  5172.     BulletHolePart.FormFactor = "Custom"
  5173.     BulletHolePart.TopSurface, BulletHolePart.BottomSurface, BulletHolePart.RightSurface, BulletHolePart.LeftSurface, BulletHolePart.FrontSurface, BulletHolePart.BackSurface = "SmoothNoOutlines", "SmoothNoOutlines", "SmoothNoOutlines", "SmoothNoOutlines", "SmoothNoOutlines", "SmoothNoOutlines"
  5174.     BulletHolePart.Name = "Bullet Hole"
  5175.     BulletHolePart.Material = "Plastic"
  5176.     BulletHolePart.Reflectance = 0
  5177.     BulletHolePart.Transparency = 1
  5178.     BulletHolePart.BrickColor = BrickColor.new("Medium stone grey")
  5179.     BulletHolePart.Size = Vector3.new(0.3, 0, 0.3)
  5180.     BulletHolePart:BreakJoints()
  5181.     BulletHolePart.CFrame = pos
  5182.     BulletHolePart.Parent = script
  5183.     local weld = Instance.new("WeldConstraint")
  5184.     weld.Part0 = obj
  5185.     weld.Part1 = BulletHolePart
  5186.     weld.Parent = obj
  5187.    -- game:GetService("Debris"):AddItem(BulletHolePart, 5)
  5188.     local BulletHoleDecal = Instance.new("Decal")
  5189.     BulletHoleDecal.Color3 = Color3.new(col.r, col.g, col.b)
  5190.     BulletHoleDecal.Face = "Top"
  5191.     BulletHoleDecal.Texture = "rbxassetid://359667865"
  5192.     BulletHoleDecal.Transparency = 0
  5193.     BulletHoleDecal.Parent = BulletHolePart
  5194.     return BulletHolePart
  5195. end
  5196.  
  5197. local blood_images = {931617584,1663434319,1391189545,4533673847,3236192667,2565888666,612591729,120362139,116830967,122022304,131339257,247766282,121678640,176677800,120361912,176678070,176678086,176677869} --305296807,256293532,148713503,176678030
  5198.  
  5199. local e_s = 1
  5200.  
  5201. local function add_decal(f,t,obj)
  5202.     spawn(function()
  5203.     local texture = Instance.new("Texture")
  5204.     texture.Parent = obj
  5205.     texture.Face = f
  5206.     texture.Texture = 'rbxassetid://' .. t
  5207.     if f == 'Left' or f == 'Right' then
  5208.         texture.StudsPerTileV = obj.Size.Y + e_s
  5209.         if (obj.Size.X > obj.Size.Z) then
  5210.             texture.StudsPerTileV = obj.Size.Z + e_s
  5211.         elseif (obj.Size.Z > obj.Size.X) then
  5212.             texture.StudsPerTileU = obj.Size.X + e_s
  5213.         else
  5214.             texture.StudsPerTileU = obj.Size.X + e_s
  5215.         end
  5216.     elseif f == 'Front' or f == 'Back' then
  5217.         texture.StudsPerTileV = obj.Size.Y + e_s
  5218.         if (obj.Size.X > obj.Size.Z) then
  5219.             texture.StudsPerTileV = obj.Size.X + e_s
  5220.         elseif (obj.Size.Z > obj.Size.X) then
  5221.             texture.StudsPerTileU = obj.Size.Z + e_s
  5222.         else
  5223.             texture.StudsPerTileU = obj.Size.X + e_s
  5224.         end
  5225.     elseif f == 'Top' or f == 'Bottom' then
  5226.         texture.StudsPerTileV = obj.Size.X + e_s
  5227.         texture.StudsPerTileU = obj.Size.Z + e_s
  5228.     end
  5229.     end)
  5230. end
  5231.  
  5232. local function add_blood(obj)
  5233.     local t1,t2,t3,t4,t5,t6 = blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)]
  5234.     add_decal('Top',t1,obj)
  5235.     add_decal('Bottom',t2,obj)
  5236.     add_decal('Left',t3,obj)
  5237.     add_decal('Right',t4,obj)
  5238.     add_decal('Front',t5,obj)
  5239.     add_decal('Back',t6,obj)
  5240. end
  5241.  
  5242. local function make_bone(obj,targtorso)
  5243.     if obj.Name == 'Left Arm' or obj.Name == 'LeftUpperArm' then
  5244.         local bone = Instance.new("Part")
  5245.         bone.CanCollide = false
  5246.         bone.Anchored = false
  5247.         bone.CFrame = targtorso.CFrame
  5248.         bone.Size = targtorso.Size
  5249.         bone.Massless = true
  5250.         bone.Locked = true
  5251.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  5252.         if not exists then
  5253.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  5254.         end
  5255.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  5256.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  5257.         game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
  5258.         local weld = Instance.new("Weld")
  5259.         weld.Part0 = bone
  5260.         weld.Part1 = targtorso
  5261.         weld.C1 = CFrame.new(-0.61,0.77,0.03)*CFrame.Angles(math.rad(90),0,math.rad(90))
  5262.         weld.Parent = bone
  5263.         targtorso.Anchored = false
  5264.         bone.Parent = script
  5265.         local mesh = Instance.new("SpecialMesh")
  5266.         mesh.MeshId = 'rbxassetid://1076136382'
  5267.         mesh.TextureId = 'rbxassetid://1076137938'
  5268.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  5269.         mesh.Parent = bone
  5270.         --
  5271.         local bone = Instance.new("Part")
  5272.         bone.CanCollide = false
  5273.         bone.Anchored = false
  5274.         bone.CFrame = obj.CFrame
  5275.         bone.Size = obj.Size
  5276.         bone.Massless = true
  5277.         bone.Locked = true
  5278.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  5279.         if not exists then
  5280.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  5281.         end
  5282.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  5283.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  5284.         game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  5285.         local weld = Instance.new("Weld")
  5286.         weld.Part0 = bone
  5287.         weld.Part1 = obj
  5288.         weld.C1 = CFrame.new(0.13,0.26,0)
  5289.         weld.Parent = bone
  5290.         obj.Anchored = false
  5291.         bone.Parent = script
  5292.         local mesh = Instance.new("SpecialMesh")
  5293.         mesh.MeshId = 'rbxassetid://36780032'
  5294.         mesh.TextureId = 'rbxassetid://36780292'
  5295.         mesh.Parent = bone
  5296.     elseif obj.Name == 'Right Arm' or obj.Name == 'RightUpperArm' then
  5297.         local bone = Instance.new("Part")
  5298.         bone.CanCollide = false
  5299.         bone.Anchored = false
  5300.         bone.CFrame = targtorso.CFrame
  5301.         bone.Size = targtorso.Size
  5302.         bone.Massless = true
  5303.         bone.Locked = true
  5304.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  5305.         if not exists then
  5306.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  5307.         end
  5308.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  5309.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  5310.         game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
  5311.         local weld = Instance.new("Weld")
  5312.         weld.Part0 = bone
  5313.         weld.Part1 = targtorso
  5314.         weld.C1 = CFrame.new(0.61,0.77,0.03)*CFrame.Angles(math.rad(90),0,math.rad(-90))
  5315.         weld.Parent = bone
  5316.         targtorso.Anchored = false
  5317.         bone.Parent = script
  5318.         local mesh = Instance.new("SpecialMesh")
  5319.         mesh.MeshId = 'rbxassetid://1076136382'
  5320.         mesh.TextureId = 'rbxassetid://1076137938'
  5321.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  5322.         mesh.Parent = bone
  5323.         --
  5324.         local bone = Instance.new("Part")
  5325.         bone.CanCollide = false
  5326.         bone.Anchored = false
  5327.         bone.CFrame = obj.CFrame
  5328.         bone.Size = obj.Size
  5329.         bone.Massless = true
  5330.         bone.Locked = true
  5331.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  5332.         if not exists then
  5333.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  5334.         end
  5335.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  5336.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  5337.         game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  5338.         local weld = Instance.new("Weld")
  5339.         weld.Part0 = bone
  5340.         weld.Part1 = obj
  5341.         weld.C1 = CFrame.new(-0.13,0.26,0)
  5342.         weld.Parent = bone
  5343.         obj.Anchored = false
  5344.         bone.Parent = script
  5345.         local mesh = Instance.new("SpecialMesh")
  5346.         mesh.MeshId = 'rbxassetid://36780156'
  5347.         mesh.TextureId = 'rbxassetid://36780292'
  5348.         mesh.Parent = bone
  5349.     elseif obj.Name == 'Left Leg' or obj.Name == 'LeftUpperLeg' then
  5350.         local bone = Instance.new("Part")
  5351.         bone.CanCollide = false
  5352.         bone.Anchored = false
  5353.         bone.CFrame = targtorso.CFrame
  5354.         bone.Size = targtorso.Size
  5355.         bone.Massless = true
  5356.         bone.Locked = true
  5357.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  5358.         if not exists then
  5359.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  5360.         end
  5361.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  5362.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  5363.         game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
  5364.         local weld = Instance.new("Weld")
  5365.         weld.Part0 = bone
  5366.         weld.Part1 = targtorso
  5367.         weld.C1 = CFrame.new(-0.6,-0.64,0.11)*CFrame.Angles(0,0,math.rad(180))
  5368.         weld.Parent = bone
  5369.         targtorso.Anchored = false
  5370.         bone.Parent = script
  5371.         local mesh = Instance.new("SpecialMesh")
  5372.         mesh.MeshId = 'rbxassetid://1076136382'
  5373.         mesh.TextureId = 'rbxassetid://1076137938'
  5374.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  5375.         mesh.Parent = bone
  5376.         --
  5377.         local bone = Instance.new("Part")
  5378.         bone.CanCollide = false
  5379.         bone.Anchored = false
  5380.         bone.CFrame = obj.CFrame
  5381.         bone.Size = obj.Size
  5382.         bone.Massless = true
  5383.         bone.Locked = true
  5384.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  5385.         if not exists then
  5386.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  5387.         end
  5388.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  5389.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  5390.         game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  5391.         local weld = Instance.new("Weld")
  5392.         weld.Part0 = bone
  5393.         weld.Part1 = obj
  5394.         weld.C1 = CFrame.new(0,0.09,0.13)
  5395.         weld.Parent = bone
  5396.         obj.Anchored = false
  5397.         bone.Parent = script
  5398.         local mesh = Instance.new("SpecialMesh")
  5399.         mesh.MeshId = 'rbxassetid://36780156'
  5400.         mesh.TextureId = 'rbxassetid://36780292'
  5401.         mesh.Parent = bone
  5402.     elseif obj.Name == 'Right Leg' or obj.Name == 'RightUpperLeg' then
  5403.         local bone = Instance.new("Part")
  5404.         bone.CanCollide = false
  5405.         bone.Anchored = false
  5406.         bone.CFrame = targtorso.CFrame
  5407.         bone.Size = targtorso.Size
  5408.         bone.Massless = true
  5409.         bone.Locked = true
  5410.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  5411.         if not exists then
  5412.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  5413.         end
  5414.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  5415.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  5416.         game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
  5417.         local weld = Instance.new("Weld")
  5418.         weld.Part0 = bone
  5419.         weld.Part1 = targtorso
  5420.         weld.C1 = CFrame.new(0.6,-0.64,0.11)*CFrame.Angles(0,0,math.rad(180))
  5421.         weld.Parent = bone
  5422.         targtorso.Anchored = false
  5423.         bone.Parent = script
  5424.         local mesh = Instance.new("SpecialMesh")
  5425.         mesh.MeshId = 'rbxassetid://1076136382'
  5426.         mesh.TextureId = 'rbxassetid://1076137938'
  5427.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  5428.         mesh.Parent = bone
  5429.         --
  5430.         local bone = Instance.new("Part")
  5431.         bone.CanCollide = false
  5432.         bone.Anchored = false
  5433.         bone.CFrame = obj.CFrame
  5434.         bone.Size = obj.Size
  5435.         bone.Massless = true
  5436.         bone.Locked = true
  5437.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  5438.         if not exists then
  5439.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  5440.         end
  5441.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  5442.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  5443.         game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  5444.         local weld = Instance.new("Weld")
  5445.         weld.Part0 = bone
  5446.         weld.Part1 = obj
  5447.         weld.C1 = CFrame.new(0,0.09,0.13)
  5448.         weld.Parent = bone
  5449.         obj.Anchored = false
  5450.         bone.Parent = script
  5451.         local mesh = Instance.new("SpecialMesh")
  5452.         mesh.MeshId = 'rbxassetid://36780195'
  5453.         mesh.TextureId = 'rbxassetid://36780292'
  5454.         mesh.Parent = bone
  5455.     elseif obj.Name == 'Head' then
  5456.         local bone = Instance.new("Part")
  5457.         bone.CanCollide = false
  5458.         bone.Anchored = false
  5459.         bone.CFrame = targtorso.CFrame
  5460.         bone.Size = targtorso.Size
  5461.         bone.Massless = true
  5462.         bone.Locked = true
  5463.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  5464.         if not exists then
  5465.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  5466.         end
  5467.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  5468.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  5469.         game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
  5470.         local weld = Instance.new("Weld")
  5471.         weld.Part0 = bone
  5472.         weld.Part1 = targtorso
  5473.         weld.C1 = CFrame.new(0,0.66,0)
  5474.         weld.Parent = bone
  5475.         targtorso.Anchored = false
  5476.         bone.Parent = script
  5477.         local mesh = Instance.new("SpecialMesh")
  5478.         mesh.MeshId = 'rbxassetid://1076136382'
  5479.         mesh.TextureId = 'rbxassetid://1076137938'
  5480.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  5481.         mesh.Parent = bone
  5482.         --
  5483.         local bone = Instance.new("Part")
  5484.         bone.CanCollide = false
  5485.         bone.Anchored = false
  5486.         bone.CFrame = obj.CFrame
  5487.         bone.Size = obj.Size
  5488.         bone.Massless = true
  5489.         bone.Locked = true
  5490.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  5491.         if not exists then
  5492.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  5493.         end
  5494.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  5495.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  5496.         game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  5497.         local weld = Instance.new("Weld")
  5498.         weld.Part0 = bone
  5499.         weld.Part1 = obj
  5500.         weld.C1 = CFrame.new(0,-0.23,0)*CFrame.Angles(0,math.rad(-90),0)
  5501.         weld.Parent = bone
  5502.         obj.Anchored = false
  5503.         bone.Parent = script
  5504.         local mesh = Instance.new("SpecialMesh")
  5505.         mesh.MeshId = 'rbxassetid://1076136382'
  5506.         mesh.TextureId = 'rbxassetid://1076137938'
  5507.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  5508.         mesh.Parent = bone
  5509.     end
  5510. end
  5511.  
  5512. local function break_limb(obj,rig,targtorso,targhum)
  5513.     if not obj:FindFirstChild('Dismembered') and obj.Name ~= 'Torso' and obj.Name ~= 'HumanoidRootPart' and obj.Name ~= 'UpperTorso' and obj.Name ~= 'LowerTorso' then else return end
  5514.     local confirm = Instance.new("ObjectValue")
  5515.     confirm.Name = 'Dismembered'
  5516.     confirm.Parent = obj
  5517.     local bsc = obj:FindFirstChildOfClass("BallSocketConstraint")
  5518.     if bsc then
  5519.         bsc:Destroy()
  5520.     end
  5521.     bleed2(obj,targhum,false,5,false)
  5522.     make_bone(obj,targtorso)
  5523.     local kb = 10
  5524.     local b = Instance.new("BodyVelocity")
  5525.     b.Parent = targtorso
  5526.     b.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  5527.     b.Velocity = han.CFrame.lookVector*kb + Vector3.new(0,2,0)
  5528.     game:GetService("Debris"):AddItem(b,0.1)
  5529.     if rig == Enum.HumanoidRigType.R6 then
  5530.         local bsc = obj:FindFirstChildOfClass("BallSocketConstraint")
  5531.         if bsc then
  5532.             bsc:Destroy()
  5533.         end
  5534.         for i,v in pairs(targtorso:GetChildren()) do
  5535.             if v:IsA("Motor6D") then
  5536.                 if obj.Name == 'Head' and v.Name == 'Neck' then
  5537.                     v:Destroy()
  5538.                 elseif obj.Name == 'Left Arm' and v.Name == 'Left Shouldver' then
  5539.                     v:Destroy()
  5540.                 elseif obj.Name == 'Right Arm' and v.Name == 'Right Shoulder' then
  5541.                     v:Destroy()
  5542.                 elseif obj.Name == 'Left Leg' and v.Name == 'Left Hip' then
  5543.                     if obj.Parent:FindFirstChild("Right Leg") then
  5544.                         targhum.WalkSpeed = targhum.WalkSpeed/2
  5545.                     else
  5546.                         targhum.WalkSpeed = 0
  5547.                     end
  5548.                     v:Destroy()
  5549.                 elseif obj.Name == 'Right Leg' and v.Name == 'Right Hip' then
  5550.                     if obj.Parent:FindFirstChild("Left Leg") then
  5551.                         targhum.WalkSpeed = targhum.WalkSpeed/2
  5552.                     else
  5553.                         targhum.WalkSpeed = 0
  5554.                     end
  5555.                     v:Destroy()
  5556.                 end
  5557.             end
  5558.         end
  5559.     elseif rig == Enum.HumanoidRigType.R15 then
  5560.         for i,v in pairs(obj:GetChildren()) do
  5561.             if v:IsA("Motor6D") then
  5562.                 if (obj.Name == 'LeftUpperLeg' and obj.Parent:FindFirstChild("RightUpperLeg")) or (obj.Name == 'RightUpperLeg' and obj.Parent:FindFirstChild("LeftUpperLeg")) then
  5563.                     targhum.WalkSpeed = targhum.WalkSpeed/2
  5564.                 elseif obj.Name == 'RightUpperLeg' or obj.Name == 'LeftUpperLeg' then
  5565.                     targhum.WalkSpeed = 0
  5566.                 end
  5567.                 v:Destroy()
  5568.             end
  5569.         end
  5570.     end
  5571.     local cb = Instance.new("Part")
  5572.     cb.Transparency = 1
  5573.     cb.CanCollide = true
  5574.     cb.Anchored = false
  5575.     cb.CFrame = obj.CFrame
  5576.     cb.Size = obj.Size
  5577.     cb.Massless = true
  5578.     cb.Locked = true
  5579.     local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  5580.     if not exists then
  5581.         game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  5582.     end
  5583.     game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  5584.     game:GetService("PhysicsService"):SetPartCollisionGroup(cb,'Limb Collide')
  5585.     game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  5586.     local weld = Instance.new("Weld")
  5587.     weld.Part0 = cb
  5588.     weld.Part1 = obj
  5589.     weld.Parent = cb
  5590.     obj.Massless = true
  5591.     obj.Anchored = false
  5592.     cb.Parent = script
  5593. end
  5594.  
  5595. local function check(toughness,obj,objpos,p,rays,rot)
  5596.     local plrhit = false
  5597.     if obj and not obj:FindFirstChild('Dismembered') then else return; end;
  5598.     local targchar,targtorso,targhum,targhead
  5599.     pcall(function()
  5600.         targchar = obj.Parent
  5601.     end)
  5602.     for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  5603.         if v and v.Character and obj:IsDescendantOf(v.Character) then
  5604.             targchar = v.Character
  5605.         end
  5606.     end
  5607.     pcall(function()
  5608.         targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("UpperTorso") or targchar:FindFirstChild("HumanoidRootPart")
  5609.     end)
  5610.     pcall(function()
  5611.         targhum = targchar:FindFirstChildOfClass("Humanoid")
  5612.     end)
  5613.     pcall(function()
  5614.         targhead = targchar:FindFirstChild("Head")
  5615.     end)
  5616.     if targchar and targchar.Parent and targtorso and targtorso.Parent and targhum and targhum.Parent and targhum ~= hum and targhead and targhead.Parent and not targhum:FindFirstChild("hit " .. targchar.Name .. " with " .. gun.Name .. " by " .. plr.Name) then
  5617.         plrhit = true
  5618.         local confirm = Instance.new("IntValue")
  5619.         confirm.Parent = targhum
  5620.         confirm.Name = ("hit " .. targchar.Name .. " with " .. gun.Name .. " by " .. plr.Name)
  5621.         debris:AddItem(confirm,shootwait)
  5622.         local dmg = math.random(35,45)
  5623.         if obj == targhead then
  5624.             dmg = math.random(55,65)
  5625.             targhum:TakeDamage(dmg)
  5626.         elseif not op then
  5627.             dmg = math.random(35,45)
  5628.             targhum:TakeDamage(dmg)
  5629.         elseif op then
  5630.             targhum.MaxHealth = 0
  5631.             targhum.Health = 0
  5632.             targhum.Parent:BreakJoints()
  5633.         end
  5634.         if math.random(1,5) == 1 then
  5635.             break_limb(obj,targhum.RigType,targtorso,targhum)
  5636.         end
  5637.         add_blood(obj)
  5638.         local bleeding = Instance.new("Sound")
  5639.         bleeding.SoundId = 'rbxassetid://360007673'
  5640.         bleeding.Volume = 1
  5641.         bleeding.Parent = targtorso
  5642.         bleeding:Play()
  5643.         if 0 >= targhum.Health and obj == targhead then
  5644.             kill(obj,true,p.CFrame.lookVector)
  5645.         elseif 0 >= targhum.Health then
  5646.             kill(obj,false,p.CFrame.lookVector)
  5647.         elseif targhum.Health > 0 then
  5648.             bleed2(targtorso,targhum,true,5,false)
  5649.         end
  5650.     else
  5651.         table.insert(objhit,1,obj)
  5652.         local mat = obj.Material
  5653.         local mathit = obj:FindFirstChild('material hit ' .. plr.Name)
  5654.         if not mathit and toughness > 0 and 1 > obj.Transparency then
  5655.             --print('old: ' .. toughness)
  5656.             if (mat == Enum.Material.Glass or mat == Enum.Material.Ice) then
  5657.                 breakwindow(obj)
  5658.             elseif (mat == Enum.Material.Wood or mat == Enum.Material.WoodPlanks) then
  5659.                 toughness = toughness - 1.5
  5660.             elseif (mat == Enum.Material.Metal or mat == Enum.Material.DiamondPlate or mat == Enum.Material.CorrodedMetal) then
  5661.                 toughness = toughness - 5
  5662.             elseif (mat == Enum.Material.Brick or mat == Enum.Material.Concrete or mat == Enum.Material.Cobblestone or mat == Enum.Material.Granite or mat == Enum.Material.Slate or mat == Enum.Material.Pebble) then
  5663.                 toughness = toughness - 3
  5664.             else
  5665.                 toughness = toughness - 1
  5666.             end
  5667.             --print('new: ' .. toughness)
  5668.             local libruary = {
  5669.                 ['wizz'] = {342190005, 342190012, 342190017, 342190024},
  5670.                 ['crackSmall'] = {873119768, 873119788, 873119811, 873119845, 873119886, 873119904},
  5671.                 ['crackBig'] = {873119597, 873119653, 873119679, 873119703, 873119724, 873119744},
  5672.                 ['whizz'] = {873121840, 873121858, 873121876, 873121896, 873121913, 873121936},
  5673.                 ['woodhit'] = {342204157, 342204164, 342204170, 342204175, 871705143, 871705174}, --871705195, 871705217, 871705237, 871705264
  5674.                 ['stonehit'] = {871701076, 871701134, 871701190, 871701241, 871701297, 871701346},
  5675.                 ['metalhit'] = {871704182, 871704259, 871704297, 871704329, 871704362, 871704395},
  5676.                 ['grasshit'] = {871709869, 871709832, 871709789, 871709755, 871709708, 871709643},
  5677.                 ['impact'] = {525720625},
  5678.             }
  5679.             local soundfont=({
  5680.                 Brick="stonehit";
  5681.                 Cobblestone="stonehit";
  5682.                 Concrete="stonehit";
  5683.                 CorrodedMetal="metalhit";
  5684.                 DiamondPlate="metalhit";
  5685.                 Fabric=nil;
  5686.                 Foil="metalhit";
  5687.                 Granite="stonehit";
  5688.                 Grass="grasshit";
  5689.                 Ice="stonehit";
  5690.                 Marble="stonehit";
  5691.                 Metal="metalhit";
  5692.                 Neon=nil;
  5693.                 Pebble="stonehit";
  5694.                 Plastic="metalhit";
  5695.                 Sand=nil;
  5696.                 Slate="stonehit";
  5697.                 SmoothPlastic="metalhit";
  5698.                 Wood="woodhit";
  5699.                 WoodPlanks="woodhit";
  5700.             })[mat.Name]
  5701.             local part = make_hole(CFrame.new(objpos, objpos - rot) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) * CFrame.Angles(math.rad(0), math.rad(math.random(-360, 360)), math.rad(0)), obj, obj.BrickColor)
  5702.             local BulletHoleSound = Instance.new("Sound")
  5703.             BulletHoleSound.Volume = 0.5
  5704.             BulletHoleSound.Pitch = math.random(9,11)/10
  5705.             if soundfont ~= nil then
  5706.                 BulletHoleSound.SoundId = "rbxassetid://"..libruary[soundfont][math.random(1,6)]
  5707.             else
  5708.                 BulletHoleSound.SoundId = "rbxassetid://"..libruary['impact'][1]
  5709.             end
  5710.             BulletHoleSound.Parent = part
  5711.             BulletHoleSound:Play()
  5712.             local tempmathit = Instance.new("ObjectValue")
  5713.             tempmathit.Name = ('material hit ' .. plr.Name)
  5714.             tempmathit.Parent = obj
  5715.             game:GetService("Debris"):AddItem(tempmathit,shootwait)
  5716.         end
  5717.     end
  5718.     if toughness > 0 and rays > 0 then
  5719.         local found = false
  5720.         for i,v in pairs(oldobjhit) do if v and obj:IsDescendantOf(v) then found = true; end; end;
  5721.         oldobjhit = objhit
  5722.         if not plrhit and not found then
  5723.             rays = rays - 1
  5724.             wait()
  5725.         end
  5726.         local ig = {char,gun,script,unpack(objhit)}
  5727.         local _obj,_vec,_rot = raycast(objpos,(hitpos-objpos).Unit, nil, ig)
  5728.         check(toughness,_obj,_vec,p,rays,_rot)
  5729.     else
  5730.         p:Destroy()
  5731.     end
  5732. end
  5733.  
  5734. local function drop_shell()
  5735.     local Shell = Instance.new("Part")
  5736.     Shell.Color = Color3.new(1, 1, 0)
  5737.     Shell.Size = Vector3.new(0.530001819, 0.132500455, 0.132500455)
  5738.     Shell.BottomSurface = Enum.SurfaceType.Smooth
  5739.     Shell.BrickColor = BrickColor.new("New Yeller")
  5740.     Shell.Material = Enum.Material.Metal
  5741.     Shell.Shape = Enum.PartType.Cylinder
  5742.     Shell.CFrame = han.CFrame
  5743.     Shell.Parent = script
  5744.     local bvs = Instance.new("BodyVelocity")
  5745.     bvs.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  5746.     bvs.Velocity = han.CFrame.lookVector+Vector3.new(0,10,-5)
  5747.     bvs.Parent = Shell
  5748.     game:GetService("Debris"):AddItem(bvs,0.1)
  5749.     game:GetService("Debris"):AddItem(Shell,10)
  5750. end
  5751.  
  5752. local function Shoot()
  5753.     if not using and CheckIfAlive() and ammo > 0 then
  5754.         using = true
  5755.         wait()
  5756.         ammo = ammo - 1
  5757.         shoot_s.SoundId = 'rbxassetid://' .. shots[math.random(1,#shots)]
  5758.         shoot_s:Play()
  5759.         tween:Create(gun,TweenInfo.new(0.1),({Grip = CFrame.new(0.364753544, -0.169386029, -0.00732704997, -4.3651621e-08, -0.0522755384, 0.998632669, -2.2850366e-09, 0.99863261, 0.0522755422, -1, 0, -4.37113883e-08)})):Play()
  5760.         spawn(function()
  5761.             flash.Enabled = true
  5762.             light.Enabled = true
  5763.             smoke.Enabled = true
  5764.             wait()
  5765.             flash.Enabled = false
  5766.             light.Enabled = false
  5767.             smoke.Enabled = false
  5768.         end)
  5769.         for i = 1,bulletfire do
  5770.             drop_shell()
  5771.             for i,v in ipairs(objhit) do table.remove(objhit,i); end;
  5772.             for i,v in ipairs(objhit) do table.remove(oldobjhit,i); end;
  5773.             spawn(function()
  5774.                 local p = Instance.new("Part")
  5775.                 p.Name = "bullet"
  5776.                 p.Massless = true
  5777.                 p.Anchored = false
  5778.                 p.CanCollide = false
  5779.                 p.Color = Color3.fromRGB(255, 255, 0)
  5780.                 p.Size = Vector3.new(0.5,0.5,1)
  5781.                 p.Transparency = 0
  5782.                 p.Position = han.Position
  5783.                 p.CFrame = CFrame.new(han.Position,hitpos)
  5784.                 p.Velocity = p.CFrame.lookVector * 1000
  5785.                 p.Material = Enum.Material.Neon
  5786.                 p.Parent = script
  5787.                 local mesh = Instance.new("SpecialMesh")
  5788.                 mesh.MeshType = Enum.MeshType.Sphere
  5789.                 mesh.Parent = p
  5790.                 --tween:Create(p,TweenInfo.new(((hitpos)-han.Position).Magnitude/10000),{Position = p.Position + ((hitpos)-han.Position).Unit*1000}):Play()
  5791.                 local body_vel = Instance.new("BodyVelocity")
  5792.                 body_vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  5793.                 body_vel.Velocity = p.CFrame.lookVector * 1000
  5794.                 body_vel.Parent = p
  5795.                 debris:AddItem(p,3)
  5796.                 local toughness = 5
  5797.                 local rays = 5
  5798.                 local ig = {char,gun,script}
  5799.                 local obj,vec,rot = raycast(han.Position,(hitpos-han.Position).Unit, nil, ig)
  5800.                 check(toughness,obj,vec,p,rays,rot)
  5801.             end)
  5802.         end
  5803.         spawn(function()
  5804.             wait(0.1)
  5805.             tween:Create(gun,TweenInfo.new(0.1),({Grip = CFrame.new(0.355400085, -0.188222155, -0.00732704997, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)})):Play()
  5806.         end)
  5807.         wait(shootwait)
  5808.         using = false
  5809.     end
  5810. end
  5811.  
  5812. gun.Activated:Connect(function()
  5813.     if not using and CheckIfAlive() and 0 >= ammo then
  5814.         Reload()
  5815.     end
  5816. end)
  5817.  
  5818. gun.Equipped:Connect(function()
  5819.     equipped = true
  5820.     pcall(function()
  5821.         char = gun.Parent
  5822.         plr = game:GetService("Players"):GetPlayerFromCharacter(char)
  5823.         hum = char:FindFirstChildOfClass("Humanoid")
  5824.         torso = char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso")
  5825.         rootpart = char:FindFirstChild("HumanoidRootPart")
  5826.         if not CheckIfAlive() then gun.Parent = nil return end
  5827.     end)
  5828. end)
  5829.  
  5830. gun.Unequipped:Connect(function()
  5831.     equipped = false
  5832. end)
  5833.  
  5834. local remote = Instance.new("RemoteEvent")
  5835. remote.Name = 'ak47_remote'
  5836. remote.Parent = gun
  5837.  
  5838. remote.OnServerEvent:Connect(function(player,mode,data,data2)
  5839.     if equipped then else return end
  5840.     if plr == player and mode == 1 then
  5841.         if data ~= nil then
  5842.             hitpos = data
  5843.         end
  5844.         if data2 ~= nil then
  5845.             shooting = data2
  5846.         end
  5847.         if shooting then
  5848.             Shoot()
  5849.         end
  5850.     elseif not shooting and not using and CheckIfAlive() and plr == player and mode == 2 and data == 'reload' then
  5851.         Reload()
  5852.     end
  5853. end)
  5854.  
  5855. local ls = [[
  5856.     local plr = game:GetService("Players").LocalPlayer
  5857.     local mouse = plr:GetMouse()
  5858.     local char = plr.Character
  5859.     local remote = script.Parent
  5860.     local tool = remote.Parent
  5861.     local shooting = false
  5862.     tool.Equipped:Connect(function()
  5863.         pcall(function()
  5864.             char = tool.Parent
  5865.         end)
  5866.         pcall(function()
  5867.             plr = game:GetService("Players"):GetPlayerFromCharacter(char)
  5868.         end)
  5869.         pcall(function()
  5870.             mouse = plr:GetMouse()
  5871.         end)
  5872.         if mouse then
  5873.             mouse.KeyDown:Connect(function(key)
  5874.                 if key == 'r' then
  5875.                     remote:FireServer(2,'reload')
  5876.                 end
  5877.             end)
  5878.             mouse.Button1Down:Connect(function()
  5879.                 shooting = true
  5880.                 while shooting do
  5881.                     local pos
  5882.                     pcall(function()
  5883.                         pos = mouse.Hit.p
  5884.                     end)
  5885.                     remote:FireServer(1,pos,true)
  5886.                     wait(0.05)
  5887.                 end
  5888.                 remote:FireServer(1,nil,false)
  5889.             end)
  5890.             mouse.Button1Up:Connect(function()
  5891.                 shooting = false
  5892.             end)
  5893.         end
  5894.     end)
  5895. ]]
  5896.  
  5897. NLS(ls,remote)
  5898. end)
  5899. spawn(function()
  5900. local char = plr.Character
  5901. local hum = char:FindFirstChildOfClass("Humanoid")
  5902. local torso = char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso")
  5903. local rootpart = char:FindFirstChild("HumanoidRootPart")
  5904.  
  5905. local debris = game:GetService("Debris")
  5906. local tween = game:GetService("TweenService")
  5907.  
  5908. local gun = Instance.new("Tool")
  5909. local han = Instance.new("Part")
  5910. local SpecialMesh2 = Instance.new("SpecialMesh")
  5911. gun.Name = "Deagle"
  5912. gun.Parent = plr['Backpack']
  5913. gun.Grip = CFrame.new(0.751871109, -0.285601854, -0.0327377282, 1.19248806e-08, 0, 1, 0, 1, 0, -1, 0, 1.19248806e-08)
  5914. han.Name = "Handle"
  5915. han.Parent = gun
  5916. han.CFrame = CFrame.new(-12.4460001, 1.07099998, -5.64400005, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  5917. han.Position = Vector3.new(-12.4460001, 1.07099998, -5.64400005)
  5918. han.Size = Vector3.new(3.46399999, 2.14199996, 0.529999971)
  5919. han.BottomSurface = Enum.SurfaceType.Smooth
  5920. han.TopSurface = Enum.SurfaceType.Smooth
  5921. SpecialMesh2.Parent = han
  5922. SpecialMesh2.MeshId = "rbxassetid://464797091"
  5923. SpecialMesh2.Scale = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  5924. SpecialMesh2.TextureId = "rbxassetid://464797118"
  5925. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  5926.  
  5927. local effect_part = Instance.new("Part")
  5928. local smoke = Instance.new("ParticleEmitter")
  5929. local flash = Instance.new("ParticleEmitter")
  5930. local light = Instance.new("PointLight")
  5931. effect_part.Name = "effect"
  5932. effect_part.Parent = gun
  5933. effect_part.CFrame = CFrame.new(-14.3099976, 2.64201403, -6.57999992, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  5934. effect_part.Position = Vector3.new(-14.3099976, 2.64201403, -6.57999992)
  5935. effect_part.Transparency = 1
  5936. effect_part.Size = Vector3.new(0.100000001, 0.100000001, 0.100000001)
  5937. effect_part.BottomSurface = Enum.SurfaceType.Smooth
  5938. effect_part.CanCollide = false
  5939. effect_part.TopSurface = Enum.SurfaceType.Smooth
  5940. smoke.Name = "smoke"
  5941. smoke.Parent = effect_part
  5942. smoke.Speed = NumberRange.new(5, 7)
  5943. smoke.Rotation = NumberRange.new(0, 360)
  5944. smoke.Color = ColorSequence.new(Color3.new(0.27451, 0.27451, 0.27451),Color3.new(0.27451, 0.27451, 0.27451))
  5945. smoke.Enabled = false
  5946. smoke.LightEmission = 0.10000000149012
  5947. smoke.Texture = "http://www.roblox.com/asset/?id=244514423"
  5948. smoke.Transparency = NumberSequence.new(0.60000002384186,1)
  5949. smoke.Size = NumberSequence.new(0.99999964237213,3)
  5950. smoke.Lifetime = NumberRange.new(1.25, 1.5)
  5951. smoke.Rate = 100
  5952. smoke.RotSpeed = NumberRange.new(10, 10)
  5953. smoke.SpreadAngle = Vector2.new(15, 15)
  5954. smoke.VelocitySpread = 15
  5955. flash.Name = "flash"
  5956. flash.Parent = effect_part
  5957. flash.Speed = NumberRange.new(0, 0)
  5958. flash.Rotation = NumberRange.new(0, 90)
  5959. flash.Color = ColorSequence.new(Color3.new(1, 1, 0.498039),Color3.new(1, 1, 0.498039))
  5960. flash.Enabled = false
  5961. flash.LightEmission = 1
  5962. flash.Texture = "http://www.roblox.com/asset/?id=3419963"
  5963. flash.Transparency = NumberSequence.new(0.75,1)
  5964. flash.Size = NumberSequence.new(0.20000000298023,0.20000000298023)
  5965. flash.Lifetime = NumberRange.new(0.050000000745058, 0.075000002980232)
  5966. flash.Rate = 1000
  5967. light.Name = "light"
  5968. light.Parent = effect_part
  5969. light.Color = Color3.new(1, 1, 0.498039)
  5970. light.Enabled = false
  5971. light.Range = 6
  5972. light.Brightness = 10
  5973. light.Shadows = true
  5974.  
  5975. local weld = Instance.new("Weld")
  5976. weld.Part0 = han
  5977. weld.Part1 = effect_part
  5978. weld.C1 = weld.C1 * CFrame.new((han.Size.X/2)-0.45,-0.5,0)
  5979. weld.Parent = effect_part
  5980.  
  5981. local cols = {BrickColor.new("Neon orange"),BrickColor.new("Really red"),BrickColor.new("Bright red"),BrickColor.new("Br. yellowish orange"),BrickColor.new("Bright yellow")}
  5982. local taunts = {298689061,2743459732,2852509470,1018518369}
  5983. local using = false
  5984. local op = false
  5985. local bulletfire = 1
  5986. local shootwait = 0.2*bulletfire
  5987. local max_ammo = 9
  5988. local ammo = max_ammo
  5989. local hitpos = nil
  5990. local shooting = false
  5991. local equipped = false
  5992.  
  5993. local shoot_s = Instance.new("Sound")
  5994. shoot_s.SoundId = 'rbxassetid://2691732518'
  5995. shoot_s.Volume = 4
  5996. shoot_s.Parent = han
  5997.  
  5998. local reload_s = Instance.new("Sound")
  5999. reload_s.SoundId = 'rbxassetid://3449328664'
  6000. reload_s.Volume = 0.7
  6001. reload_s.Parent = han
  6002.  
  6003. local wbreak = Instance.new("Sound")
  6004. wbreak.Parent = han
  6005. wbreak.SoundId = "rbxassetid://627558611"
  6006. wbreak.TimePosition = .1
  6007. wbreak.Volume = 0.7
  6008.  
  6009. local function CheckIfAlive()
  6010.     local alive = false
  6011.     if plr and char and char.Parent and torso and torso.Parent and hum and hum.Parent and hum.Health > 0 then
  6012.         alive = true
  6013.     end
  6014.     return alive
  6015. end
  6016.  
  6017. local function Ragdoll(targchar,headless,insta)
  6018.     local pc = targchar
  6019.     pc.Archivable = true
  6020.     local pc_torso
  6021.     for _,obj in pairs(pc:GetDescendants()) do
  6022.         obj.Archivable = true
  6023.         if obj:IsA("BasePart") or obj:IsA("UnionOperation") then
  6024.             obj.Massless = true
  6025.             obj.Locked = true
  6026.             obj.CanCollide = true
  6027.         end
  6028.     end
  6029.     if pc ~= nil then
  6030.         local hum = pc:FindFirstChild'Humanoid'
  6031.         local LArm = pc:FindFirstChild'Left Arm'
  6032.         local RArm = pc:FindFirstChild'Right Arm'
  6033.         local LLeg = pc:FindFirstChild'Left Leg'
  6034.         local RLeg = pc:FindFirstChild'Right Leg'
  6035.         local torso = pc:FindFirstChild'Torso'
  6036.         local head = pc:FindFirstChild'Head'
  6037.        
  6038.        
  6039.         local LUA = pc:FindFirstChild'LeftUpperArm'
  6040.         local LLA = pc:FindFirstChild'LeftLowerArm'
  6041.         local LH = pc:FindFirstChild'LeftHand'
  6042.        
  6043.         local RUA = pc:FindFirstChild'RightUpperArm'
  6044.         local RLA = pc:FindFirstChild'RightLowerArm'
  6045.         local RH = pc:FindFirstChild'RightHand'
  6046.        
  6047.         local LUL = pc:FindFirstChild'LeftUpperLeg'
  6048.         local LLL = pc:FindFirstChild'LeftLowerLeg'
  6049.         local LF = pc:FindFirstChild'LeftFoot'
  6050.        
  6051.         local RUL = pc:FindFirstChild'RightUpperLeg'
  6052.         local RLL = pc:FindFirstChild'RightLowerLeg'
  6053.         local RF = pc:FindFirstChild'RightFoot'
  6054.        
  6055.         local UT = pc:FindFirstChild'UpperTorso'
  6056.         local LT = pc:FindFirstChild'LowerTorso'
  6057.        
  6058.         if hum and LArm and RArm and LLeg and RLeg and head then
  6059.             pc_torso = torso
  6060.             hum.BreakJointsOnDeath = false
  6061.             if insta then
  6062.                 if hum.RigType==Enum.HumanoidRigType.R6 then
  6063.                     for _,v in pairs(torso:GetDescendants()) do
  6064.                         if v:IsA('Motor6D') --[[or v:IsA('BallSocketConstraint') or v:IsA('Attachment')]] then
  6065.                             v:Destroy()
  6066.                         end
  6067.                     end
  6068.                     --pc:BreakJoints()
  6069.                    local vis = false
  6070.                    local vis2 = false
  6071.                     if not LArm:FindFirstChild('Dismembered') then
  6072.                        local at1 = Instance.new("Attachment")
  6073.                        at1.Parent = torso
  6074.                        at1.Visible = vis
  6075.                        at1.Orientation = torso.Orientation + Vector3.new(0,180,0)
  6076.                        at1.Position = Vector3.new(-1,1,0)
  6077.                                        
  6078.                        local at1p2 = Instance.new("Attachment")
  6079.                        at1p2.Parent = LArm
  6080.                        at1p2.Visible = vis
  6081.                        at1p2.Orientation = LArm.Orientation + Vector3.new(0,180,0)
  6082.                        at1p2.Position = Vector3.new(.5,1,0)
  6083.                            
  6084.                        local bis = Instance.new("BallSocketConstraint")
  6085.                        bis.Parent = LArm
  6086.                        bis.Attachment0 = at1
  6087.                        bis.Attachment1 = at1p2
  6088.                        bis.LimitsEnabled = true
  6089.                        bis.UpperAngle = 15
  6090.                        bis.Visible = vis2
  6091.                        bis.TwistLimitsEnabled = true
  6092.                        bis.UpperAngle = -45
  6093.                        bis.TwistLowerAngle = -45
  6094.                     end
  6095.                     if not RArm:FindFirstChild('Dismembered') then    
  6096.                         local at2 = Instance.new("Attachment")
  6097.                         at2.Parent = torso
  6098.                         at2.Visible = vis
  6099.                         at2.Orientation = torso.Orientation + Vector3.new(0,0,0)
  6100.                         at2.Position = Vector3.new(1,1,0)
  6101.                                
  6102.                         local at2p2 = Instance.new("Attachment")
  6103.                         at2p2.Parent = RArm
  6104.                         at2p2.Visible = vis
  6105.                         at2p2.Orientation = RArm.Orientation + Vector3.new(0,0,0)
  6106.                         at2p2.Position = Vector3.new(-.5,1,0)
  6107.                        
  6108.                         local bis2 = Instance.new("BallSocketConstraint")
  6109.                         bis2.Parent = RArm
  6110.                         bis2.Attachment0 = at2
  6111.                         bis2.Attachment1 = at2p2
  6112.                         bis2.LimitsEnabled = true
  6113.                         bis2.UpperAngle = 15
  6114.                         bis2.Visible = vis2
  6115.                         bis2.TwistLimitsEnabled = true
  6116.                         bis2.UpperAngle = -45
  6117.                         bis2.TwistLowerAngle = -45
  6118.                     end
  6119.                      if not RLeg:FindFirstChild('Dismembered') then
  6120.                         local at3 = Instance.new("Attachment")
  6121.                         at3.Parent = torso
  6122.                         at3.Visible = vis
  6123.                         at3.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  6124.                         at3.Position = Vector3.new(.5,-1,0)
  6125.                                
  6126.                         local at3p2 = Instance.new("Attachment")
  6127.                         at3p2.Parent = RLeg
  6128.                         at3p2.Visible = vis
  6129.                         at3p2.Orientation = RLeg.Orientation + Vector3.new(90,0,-90)
  6130.                         at3p2.Position = Vector3.new(0,1,0)
  6131.                        
  6132.                         local bis3 = Instance.new("BallSocketConstraint")
  6133.                         bis3.Parent = RLeg
  6134.                         bis3.Attachment0 = at3
  6135.                         bis3.Attachment1 = at3p2
  6136.                         bis3.LimitsEnabled = true
  6137.                         bis3.UpperAngle = 180-15
  6138.                         bis3.Visible = vis2
  6139.                     end
  6140.                          
  6141.                     if not LLeg:FindFirstChild('Dismembered') then  
  6142.                         local at4 = Instance.new("Attachment")
  6143.                         at4.Parent = torso
  6144.                         at4.Visible = vis
  6145.                         at4.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  6146.                         at4.Position = Vector3.new(-.5,-1,0)
  6147.                                
  6148.                         local at4p2 = Instance.new("Attachment")
  6149.                         at4p2.Parent = LLeg
  6150.                         at4p2.Visible = vis
  6151.                         at4p2.Orientation = LLeg.Orientation + Vector3.new(90,0,-90)
  6152.                         at4p2.Position = Vector3.new(0,1,0)
  6153.                    
  6154.                         local bis4 = Instance.new("BallSocketConstraint")
  6155.                         bis4.Parent = LLeg
  6156.                         bis4.Attachment0 = at4
  6157.                         bis4.Attachment1 = at4p2
  6158.                         bis4.LimitsEnabled = true
  6159.                         bis4.UpperAngle = 180-15
  6160.                         bis4.Visible = vis2
  6161.                     end
  6162.                    
  6163.                     if not headless and not head:FindFirstChild('Dismembered') then  
  6164.                             local at5 = Instance.new("Attachment")
  6165.                             at5.Parent = torso
  6166.                             at5.Visible = vis
  6167.                             at5.Orientation = torso.Orientation + Vector3.new(180,90,0)
  6168.                             at5.Position = Vector3.new(0,1,0)
  6169.                          
  6170.                             local at5p2 = Instance.new("Attachment")
  6171.                             at5p2.Parent = head
  6172.                             at5p2.Visible = vis
  6173.                             at5p2.Orientation = head.Orientation + Vector3.new(180,90,0)
  6174.                             at5p2.Position = Vector3.new(0,-.5,0)
  6175.                    
  6176.                             local bis5 = Instance.new("BallSocketConstraint")
  6177.                             bis5.Parent = head
  6178.                             bis5.Attachment0 = at5p2
  6179.                             bis5.Attachment1 = at5
  6180.                             bis5.LimitsEnabled = true
  6181.                             bis5.UpperAngle = 75
  6182.                             bis5.Visible = vis2
  6183.                             bis5.TwistLimitsEnabled = true
  6184.                             bis5.UpperAngle = -45
  6185.                             bis5.TwistLowerAngle = -45
  6186.                         else
  6187.                             --head:BreakJoints()
  6188.                         end
  6189.                     end
  6190.             else
  6191.                 hum.Died:Connect(function()
  6192.                 if hum.RigType==Enum.HumanoidRigType.R6 then
  6193.                     for _,v in pairs(torso:GetDescendants()) do
  6194.                         if v:IsA('Motor6D') --[[or v:IsA('BallSocketConstraint') or v:IsA('Attachment')]] then
  6195.                             v:Destroy()
  6196.                         end
  6197.                     end
  6198.                     --pc:BreakJoints()
  6199.                    local vis = false
  6200.                    local vis2 = false
  6201.                     if not LArm:FindFirstChild('Dismembered') then
  6202.                        local at1 = Instance.new("Attachment")
  6203.                        at1.Parent = torso
  6204.                        at1.Visible = vis
  6205.                        at1.Orientation = torso.Orientation + Vector3.new(0,180,0)
  6206.                        at1.Position = Vector3.new(-1,1,0)
  6207.                                        
  6208.                        local at1p2 = Instance.new("Attachment")
  6209.                        at1p2.Parent = LArm
  6210.                        at1p2.Visible = vis
  6211.                        at1p2.Orientation = LArm.Orientation + Vector3.new(0,180,0)
  6212.                        at1p2.Position = Vector3.new(.5,1,0)
  6213.                            
  6214.                        local bis = Instance.new("BallSocketConstraint")
  6215.                        bis.Parent = LArm
  6216.                        bis.Attachment0 = at1
  6217.                        bis.Attachment1 = at1p2
  6218.                        bis.LimitsEnabled = true
  6219.                        bis.UpperAngle = 15
  6220.                        bis.Visible = vis2
  6221.                        bis.TwistLimitsEnabled = true
  6222.                        bis.UpperAngle = -45
  6223.                        bis.TwistLowerAngle = -45
  6224.                     end
  6225.                     if not RArm:FindFirstChild('Dismembered') then    
  6226.                         local at2 = Instance.new("Attachment")
  6227.                         at2.Parent = torso
  6228.                         at2.Visible = vis
  6229.                         at2.Orientation = torso.Orientation + Vector3.new(0,0,0)
  6230.                         at2.Position = Vector3.new(1,1,0)
  6231.                                
  6232.                         local at2p2 = Instance.new("Attachment")
  6233.                         at2p2.Parent = RArm
  6234.                         at2p2.Visible = vis
  6235.                         at2p2.Orientation = RArm.Orientation + Vector3.new(0,0,0)
  6236.                         at2p2.Position = Vector3.new(-.5,1,0)
  6237.                        
  6238.                         local bis2 = Instance.new("BallSocketConstraint")
  6239.                         bis2.Parent = RArm
  6240.                         bis2.Attachment0 = at2
  6241.                         bis2.Attachment1 = at2p2
  6242.                         bis2.LimitsEnabled = true
  6243.                         bis2.UpperAngle = 15
  6244.                         bis2.Visible = vis2
  6245.                         bis2.TwistLimitsEnabled = true
  6246.                         bis2.UpperAngle = -45
  6247.                         bis2.TwistLowerAngle = -45
  6248.                     end
  6249.                      if not RLeg:FindFirstChild('Dismembered') then
  6250.                         local at3 = Instance.new("Attachment")
  6251.                         at3.Parent = torso
  6252.                         at3.Visible = vis
  6253.                         at3.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  6254.                         at3.Position = Vector3.new(.5,-1,0)
  6255.                                
  6256.                         local at3p2 = Instance.new("Attachment")
  6257.                         at3p2.Parent = RLeg
  6258.                         at3p2.Visible = vis
  6259.                         at3p2.Orientation = RLeg.Orientation + Vector3.new(90,0,-90)
  6260.                         at3p2.Position = Vector3.new(0,1,0)
  6261.                        
  6262.                         local bis3 = Instance.new("BallSocketConstraint")
  6263.                         bis3.Parent = RLeg
  6264.                         bis3.Attachment0 = at3
  6265.                         bis3.Attachment1 = at3p2
  6266.                         bis3.LimitsEnabled = true
  6267.                         bis3.UpperAngle = 180-15
  6268.                         bis3.Visible = vis2
  6269.                     end
  6270.                          
  6271.                     if not LLeg:FindFirstChild('Dismembered') then  
  6272.                         local at4 = Instance.new("Attachment")
  6273.                         at4.Parent = torso
  6274.                         at4.Visible = vis
  6275.                         at4.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  6276.                         at4.Position = Vector3.new(-.5,-1,0)
  6277.                                
  6278.                         local at4p2 = Instance.new("Attachment")
  6279.                         at4p2.Parent = LLeg
  6280.                         at4p2.Visible = vis
  6281.                         at4p2.Orientation = LLeg.Orientation + Vector3.new(90,0,-90)
  6282.                         at4p2.Position = Vector3.new(0,1,0)
  6283.                    
  6284.                         local bis4 = Instance.new("BallSocketConstraint")
  6285.                         bis4.Parent = LLeg
  6286.                         bis4.Attachment0 = at4
  6287.                         bis4.Attachment1 = at4p2
  6288.                         bis4.LimitsEnabled = true
  6289.                         bis4.UpperAngle = 180-15
  6290.                         bis4.Visible = vis2
  6291.                     end
  6292.                    
  6293.                     if not headless and not head:FindFirstChild('Dismembered') then  
  6294.                             local at5 = Instance.new("Attachment")
  6295.                             at5.Parent = torso
  6296.                             at5.Visible = vis
  6297.                             at5.Orientation = torso.Orientation + Vector3.new(180,90,0)
  6298.                             at5.Position = Vector3.new(0,1,0)
  6299.                          
  6300.                             local at5p2 = Instance.new("Attachment")
  6301.                             at5p2.Parent = head
  6302.                             at5p2.Visible = vis
  6303.                             at5p2.Orientation = head.Orientation + Vector3.new(180,90,0)
  6304.                             at5p2.Position = Vector3.new(0,-.5,0)
  6305.                    
  6306.                             local bis5 = Instance.new("BallSocketConstraint")
  6307.                             bis5.Parent = head
  6308.                             bis5.Attachment0 = at5p2
  6309.                             bis5.Attachment1 = at5
  6310.                             bis5.LimitsEnabled = true
  6311.                             bis5.UpperAngle = 75
  6312.                             bis5.Visible = vis2
  6313.                             bis5.TwistLimitsEnabled = true
  6314.                             bis5.UpperAngle = -45
  6315.                             bis5.TwistLowerAngle = -45
  6316.                         else
  6317.                             --head:BreakJoints()
  6318.                         end
  6319.                     end
  6320.                 end)
  6321.             end
  6322.         elseif head and hum then
  6323.             pc_torso = pc:FindFirstChild("HumanoidRootPart")
  6324.             hum.BreakJointsOnDeath = false
  6325.             if insta then
  6326.                 if hum.RigType==Enum.HumanoidRigType.R15 then
  6327.                     for _,v in pairs(pc:GetDescendants()) do
  6328.                         if v:IsA('Motor6D') --[[or v:IsA('BallSocketConstraint') or v:IsA('Attachment')]] then
  6329.                             v:Destroy()
  6330.                         end
  6331.                     end
  6332.                     --pc:BreakJoints()
  6333.                     local vis = false
  6334.                     local vis2 = false
  6335.                    
  6336.                 if not LF:FindFirstChild('Dismembered') then  
  6337.                     local bsc1 = Instance.new("BallSocketConstraint",LF)
  6338.                     bsc1.Attachment0 = LF.LeftAnkleRigAttachment
  6339.                     bsc1.Attachment1 = LLL.LeftAnkleRigAttachment
  6340.                 end
  6341.                 if not LLL:FindFirstChild('Dismembered') then  
  6342.                     local bsc2 = Instance.new("BallSocketConstraint",LLL)
  6343.                     bsc2.Attachment0 = LLL.LeftKneeRigAttachment
  6344.                     bsc2.Attachment1 = LUL.LeftKneeRigAttachment
  6345.                 end
  6346.                 if not LUL:FindFirstChild('Dismembered') then  
  6347.                     local bsc3 = Instance.new("BallSocketConstraint",LUL)
  6348.                     bsc3.Attachment0 = LUL.LeftHipRigAttachment
  6349.                     bsc3.Attachment1 = LT.LeftHipRigAttachment
  6350.                 end
  6351.                 if not RF:FindFirstChild('Dismembered') then  
  6352.                     local bsc4 = Instance.new("BallSocketConstraint",RF)
  6353.                     bsc4.Attachment0 = RF.RightAnkleRigAttachment
  6354.                     bsc4.Attachment1 = RLL.RightAnkleRigAttachment
  6355.                 end
  6356.                 if not RLL:FindFirstChild('Dismembered') then  
  6357.                     local bsc5 = Instance.new("BallSocketConstraint",RLL)
  6358.                     bsc5.Attachment0 = RLL.RightKneeRigAttachment
  6359.                     bsc5.Attachment1 = RUL.RightKneeRigAttachment
  6360.                 end
  6361.                 if not RUL:FindFirstChild('Dismembered') then  
  6362.                     local bsc6 = Instance.new("BallSocketConstraint",RUL)
  6363.                     bsc6.Attachment0 = RUL.RightHipRigAttachment
  6364.                     bsc6.Attachment1 = LT.RightHipRigAttachment
  6365.                 end
  6366.                 if not LH:FindFirstChild('Dismembered') then  
  6367.                     local bsc7 = Instance.new("BallSocketConstraint",LH)
  6368.                     bsc7.Attachment0 = LH.LeftWristRigAttachment
  6369.                     bsc7.Attachment1 = LLA.LeftWristRigAttachment
  6370.                 end
  6371.                 if not LLA:FindFirstChild('Dismembered') then  
  6372.                     local bsc8 = Instance.new("BallSocketConstraint",LLA)
  6373.                     bsc8.Attachment0 = LLA.LeftElbowRigAttachment
  6374.                     bsc8.Attachment1 = LUA.LeftElbowRigAttachment
  6375.                 end
  6376.                 if not LUA:FindFirstChild('Dismembered') then  
  6377.                     local bsc9 = Instance.new("BallSocketConstraint",LUA)
  6378.                     bsc9.Attachment0 = LUA.LeftShoulderAttachment
  6379.                     bsc9.Attachment1 = UT.LeftCollarAttachment
  6380.                 end
  6381.                 if not RH:FindFirstChild('Dismembered') then  
  6382.                     local bsc10 = Instance.new("BallSocketConstraint",RH)
  6383.                     bsc10.Attachment0 = RH.RightWristRigAttachment
  6384.                     bsc10.Attachment1 = RLA.RightWristRigAttachment
  6385.                 end
  6386.                 if not RLA:FindFirstChild('Dismembered') then  
  6387.                     local bsc11 = Instance.new("BallSocketConstraint",RLA)
  6388.                     bsc11.Attachment0 = RLA.RightElbowRigAttachment
  6389.                     bsc11.Attachment1 = RUA.RightElbowRigAttachment
  6390.                 end
  6391.                 if not RUA:FindFirstChild('Dismembered') then  
  6392.                     local bsc12 = Instance.new("BallSocketConstraint",RUA)
  6393.                     bsc12.Attachment0 = RUA.RightShoulderAttachment
  6394.                     bsc12.Attachment1 = UT.RightCollarAttachment
  6395.                 end
  6396.                 if not LT:FindFirstChild('Dismembered') then  
  6397.                     local bsc13 = Instance.new("BallSocketConstraint",LT)
  6398.                     bsc13.Attachment0 = LT.WaistRigAttachment
  6399.                     bsc13.Attachment1 = UT.WaistRigAttachment
  6400.                 end
  6401.                     if not headless and not head:FindFirstChild('Dismembered')  then
  6402.                         local bsc14 = Instance.new("BallSocketConstraint",head)
  6403.                         bsc14.Attachment0 = UT.NeckRigAttachment
  6404.                         bsc14.Attachment1 = head.NeckRigAttachment
  6405.                         bsc14.LimitsEnabled = true
  6406.                         bsc14.UpperAngle = -75
  6407.                         bsc14.TwistLimitsEnabled = true
  6408.                         bsc14.UpperAngle = -45
  6409.                         bsc14.TwistLowerAngle = -45
  6410.                     else
  6411.                         --head:BreakJoints()
  6412.                     end
  6413.                 end
  6414.             else
  6415.                 hum.Died:Connect(function()
  6416.                     if hum.RigType==Enum.HumanoidRigType.R15 then
  6417.                         for _,v in pairs(pc:GetDescendants()) do
  6418.                             if v:IsA('Motor6D') --[[or v:IsA('BallSocketConstraint') or v:IsA('Attachment')]] then
  6419.                                 v:Destroy()
  6420.                             end
  6421.                         end
  6422.                         --pc:BreakJoints()
  6423.                         local vis = false
  6424.                         local vis2 = false
  6425.                        
  6426.                     if not LF:FindFirstChild('Dismembered') then  
  6427.                         local bsc1 = Instance.new("BallSocketConstraint",LF)
  6428.                         bsc1.Attachment0 = LF.LeftAnkleRigAttachment
  6429.                         bsc1.Attachment1 = LLL.LeftAnkleRigAttachment
  6430.                     end
  6431.                     if not LLL:FindFirstChild('Dismembered') then  
  6432.                         local bsc2 = Instance.new("BallSocketConstraint",LLL)
  6433.                         bsc2.Attachment0 = LLL.LeftKneeRigAttachment
  6434.                         bsc2.Attachment1 = LUL.LeftKneeRigAttachment
  6435.                     end
  6436.                     if not LUL:FindFirstChild('Dismembered') then  
  6437.                         local bsc3 = Instance.new("BallSocketConstraint",LUL)
  6438.                         bsc3.Attachment0 = LUL.LeftHipRigAttachment
  6439.                         bsc3.Attachment1 = LT.LeftHipRigAttachment
  6440.                     end
  6441.                     if not RF:FindFirstChild('Dismembered') then  
  6442.                         local bsc4 = Instance.new("BallSocketConstraint",RF)
  6443.                         bsc4.Attachment0 = RF.RightAnkleRigAttachment
  6444.                         bsc4.Attachment1 = RLL.RightAnkleRigAttachment
  6445.                     end
  6446.                     if not RLL:FindFirstChild('Dismembered') then  
  6447.                         local bsc5 = Instance.new("BallSocketConstraint",RLL)
  6448.                         bsc5.Attachment0 = RLL.RightKneeRigAttachment
  6449.                         bsc5.Attachment1 = RUL.RightKneeRigAttachment
  6450.                     end
  6451.                     if not RUL:FindFirstChild('Dismembered') then  
  6452.                         local bsc6 = Instance.new("BallSocketConstraint",RUL)
  6453.                         bsc6.Attachment0 = RUL.RightHipRigAttachment
  6454.                         bsc6.Attachment1 = LT.RightHipRigAttachment
  6455.                     end
  6456.                     if not LH:FindFirstChild('Dismembered') then  
  6457.                         local bsc7 = Instance.new("BallSocketConstraint",LH)
  6458.                         bsc7.Attachment0 = LH.LeftWristRigAttachment
  6459.                         bsc7.Attachment1 = LLA.LeftWristRigAttachment
  6460.                     end
  6461.                     if not LLA:FindFirstChild('Dismembered') then  
  6462.                         local bsc8 = Instance.new("BallSocketConstraint",LLA)
  6463.                         bsc8.Attachment0 = LLA.LeftElbowRigAttachment
  6464.                         bsc8.Attachment1 = LUA.LeftElbowRigAttachment
  6465.                     end
  6466.                     if not LUA:FindFirstChild('Dismembered') then  
  6467.                         local bsc9 = Instance.new("BallSocketConstraint",LUA)
  6468.                         bsc9.Attachment0 = LUA.LeftShoulderAttachment
  6469.                         bsc9.Attachment1 = UT.LeftCollarAttachment
  6470.                     end
  6471.                     if not RH:FindFirstChild('Dismembered') then  
  6472.                         local bsc10 = Instance.new("BallSocketConstraint",RH)
  6473.                         bsc10.Attachment0 = RH.RightWristRigAttachment
  6474.                         bsc10.Attachment1 = RLA.RightWristRigAttachment
  6475.                     end
  6476.                     if not RLA:FindFirstChild('Dismembered') then  
  6477.                         local bsc11 = Instance.new("BallSocketConstraint",RLA)
  6478.                         bsc11.Attachment0 = RLA.RightElbowRigAttachment
  6479.                         bsc11.Attachment1 = RUA.RightElbowRigAttachment
  6480.                     end
  6481.                     if not RUA:FindFirstChild('Dismembered') then  
  6482.                         local bsc12 = Instance.new("BallSocketConstraint",RUA)
  6483.                         bsc12.Attachment0 = RUA.RightShoulderAttachment
  6484.                         bsc12.Attachment1 = UT.RightCollarAttachment
  6485.                     end
  6486.                     if not LT:FindFirstChild('Dismembered') then  
  6487.                         local bsc13 = Instance.new("BallSocketConstraint",LT)
  6488.                         bsc13.Attachment0 = LT.WaistRigAttachment
  6489.                         bsc13.Attachment1 = UT.WaistRigAttachment
  6490.                     end
  6491.                         if not headless and not head:FindFirstChild('Dismembered')  then
  6492.                             local bsc14 = Instance.new("BallSocketConstraint",head)
  6493.                             bsc14.Attachment0 = UT.NeckRigAttachment
  6494.                             bsc14.Attachment1 = head.NeckRigAttachment
  6495.                             bsc14.LimitsEnabled = true
  6496.                             bsc14.UpperAngle = -75
  6497.                             bsc14.TwistLimitsEnabled = true
  6498.                             bsc14.UpperAngle = -45
  6499.                             bsc14.TwistLowerAngle = -45
  6500.                         else
  6501.                             --head:BreakJoints()
  6502.                         end
  6503.                     end
  6504.                 end)
  6505.             end
  6506.         end
  6507.     end
  6508.     return pc,pc_torso
  6509. end
  6510. local function bleed2(frick,targhum,can_hurt,t,splat)
  6511.     spawn(function()
  6512.     if not frick:FindFirstChild("bleeding from kry's " .. gun.Name) then else return end
  6513.     local tempbleedval = Instance.new("ObjectValue")
  6514.     tempbleedval.Name = "bleeding from kry's " .. gun.Name
  6515.     tempbleedval.Parent = frick
  6516.     local bleeding = true
  6517.     local rig = targhum.RigType
  6518.     local limbs = {'Head','Left Arm','Right Arm','Left Leg','Right Leg','RightUpperLeg','LeftUpperLeg','RightUpperArm','LeftUpperArm','RightLowerLeg','LeftLowerLeg','RightLowerArm','LeftLowerArm','RightFoot','LeftFoot','RightHand','LeftHand'}
  6519.     spawn(function()
  6520.         wait(t)
  6521.         bleeding = false
  6522.         tempbleedval:Destroy()
  6523.     end)
  6524.     while bleeding and frick and frick.Parent do
  6525.         if --[[(targhum and targhum.Parent and targhum.Health > 0) or]] (not frick or not frick.Parent or not targhum or not targhum.Parent) then
  6526.             break
  6527.         end
  6528.         local max_limbs = 0
  6529.         local current_limbs = 0
  6530.         local gone_limbs = 0
  6531.         local targchar = targhum.Parent
  6532.         if rig == Enum.HumanoidRigType.R6 then
  6533.             max_limbs = 5
  6534.         elseif rig == Enum.HumanoidRigType.R15 then
  6535.             max_limbs = 13
  6536.         end
  6537.         for i,v in pairs(targchar:GetChildren()) do
  6538.             local found = false
  6539.             for i,n in pairs(limbs) do if n == v.Name then found = true; end; end;
  6540.             if found and not v:FindFirstChild("Dismembered") then
  6541.                 current_limbs = current_limbs + 1
  6542.             end
  6543.         end
  6544.         gone_limbs = (max_limbs-current_limbs)
  6545.         if targhum and can_hurt then
  6546.             if gone_limbs >= 1 then
  6547.                 targhum:TakeDamage(0.5*gone_limbs)
  6548.             else
  6549.                 targhum:TakeDamage(0.5)
  6550.             end
  6551.         end
  6552.         spawn(function()
  6553.             local thing = Instance.new('Part')
  6554.             thing.Parent = workspace
  6555.             thing.Size = Vector3.new(0.1,0.1,0.1)
  6556.             thing.CFrame = frick.CFrame
  6557.             if splat then
  6558.                 thing.Transparency = 0
  6559.             elseif not splat then
  6560.                 thing.Transparency = 1
  6561.             end
  6562.             thing.Color = Color3.fromRGB(75, 0, 0)
  6563.             thing.Material = Enum.Material.Glass
  6564.             thing.Name = "Blood"
  6565.             thing.CanCollide =false
  6566.             thing:BreakJoints()
  6567.             local mesh = Instance.new('SpecialMesh')
  6568.             mesh.MeshType = Enum.MeshType.Sphere
  6569.             mesh.Parent = thing
  6570.             --game:GetService("Debris"):AddItem(thing,5)
  6571.             local att1,att2 = Instance.new("Attachment"),Instance.new("Attachment")
  6572.             att1.Parent = thing
  6573.             att1.Position = Vector3.new(0,-(thing.Size.Y/2),0)
  6574.             att2.Parent = thing
  6575.             att2.Position = Vector3.new(0,(thing.Size.Y/2),0)
  6576.             if splat then
  6577.                 local trail_drop = Instance.new("Trail")
  6578.                 trail_drop.Parent = thing
  6579.                 trail_drop.Attachment0 = att1
  6580.                 trail_drop.Attachment1 = att2
  6581.                 trail_drop.Color = ColorSequence.new(Color3.new(0.294118, 0, 0),Color3.new(0.294118, 0, 0))
  6582.                 trail_drop.FaceCamera = true
  6583.                 trail_drop.LightInfluence = 1
  6584.                 trail_drop.Transparency = NumberSequence.new(0.1,1)
  6585.                 trail_drop.Lifetime = 1
  6586.                 trail_drop.MinLength = 0
  6587.             end
  6588.             local rawrxd = Instance.new('BodyForce')
  6589.             rawrxd.Parent = thing
  6590.             if splat then
  6591.                 rawrxd.Force = frick.CFrame.upVector+Vector3.new(math.random(-5, 5)/10,3,math.random(-5, 5)/10)
  6592.             elseif not splat then
  6593.                 rawrxd.Force = frick.CFrame.upVector*(math.random()*2)+Vector3.new(math.random(-5, 5)/10,1.5,0)
  6594.             end
  6595.             game:GetService("Debris"):AddItem(rawrxd,0.01)
  6596.             thing.Touched:connect(function(tou)
  6597.                 if tou.Parent and tou.Parent:IsA('Tool') == false and tou.Parent.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.name ~= "mini_blood" and tou.Name ~= "Blood" and tou.Parent ~= char and tou.Parent.ClassName ~= "Accessory" and tou.Parent.Name ~= 'mini_blood' then
  6598.                     local pos = Vector3.new(thing.Position.X,(tou.Position.Y+(tou.Size.Y/2))+(0.02/2),thing.Position.Z)
  6599.                     local Point1 = pos-Vector3.new(0.01,0.01,0.01)
  6600.                     local Point2 = pos+Vector3.new(0.01,0.01,0.01)
  6601.                     local Region = Region3.new(Point1,Point2)
  6602.                     for _,Part in pairs(game.Workspace:FindPartsInRegion3(Region,nil,math.huge)) do
  6603.                         if Part.Name == "blood" then
  6604.                             tou = Part
  6605.                         end
  6606.                     end
  6607.                     thing:Destroy()
  6608.                     if tou.Name == "blood" then
  6609.                         local reee = tou.CFrame
  6610.                         if tou.Transparency > -0.2 then
  6611.                             tou.Transparency = tou.Transparency - 0.1
  6612.                         end
  6613.                         if tou.Size.X < 5 then
  6614.                             tou.Size = tou.Size+Vector3.new(0.4,0,0.4)
  6615.                             tou.CFrame = reee
  6616.                         elseif tou.Size.X < 7.5 then
  6617.                             tou.Size = tou.Size+Vector3.new(0.3,0,0.3)
  6618.                             tou.CFrame = reee
  6619.                         elseif tou.Size.X < 10 then
  6620.                             tou.Size = tou.Size+Vector3.new(0.2,0,0.2)
  6621.                             tou.CFrame = reee
  6622.                         end
  6623.                     elseif tou.CanCollide == true then
  6624.                         local bloodlol = Instance.new('Part')
  6625.                         if gone_limbs >= 1 then
  6626.                             bloodlol.Size = Vector3.new(1*gone_limbs,0.2,1*gone_limbs)
  6627.                         else
  6628.                             bloodlol.Size = Vector3.new(1,0.2,1)
  6629.                         end
  6630.                         bloodlol.Name = "blood"
  6631.                         bloodlol.Anchored = true
  6632.                         bloodlol.CanCollide = false
  6633.                         bloodlol.Material = Enum.Material.Glass
  6634.                         bloodlol.Color = Color3.fromRGB(75, 0, 0)
  6635.                         local mesh = Instance.new('SpecialMesh')
  6636.                         mesh.MeshType = Enum.MeshType.Sphere
  6637.                         mesh.Parent = bloodlol
  6638.                         bloodlol.Parent = workspace
  6639.                         bloodlol.CFrame = CFrame.new(pos)
  6640.                         while bloodlol and bloodlol.Parent ~= nil do
  6641.                             if bloodlol.Transparency < 1 then
  6642.                                 bloodlol.Transparency = bloodlol.Transparency + 0.05
  6643.                             else
  6644.                                 bloodlol:Destroy()
  6645.                             end
  6646.                             wait(0.1)
  6647.                         end
  6648.                     end
  6649.                 end
  6650.             end)
  6651.         end)
  6652.         wait(0.1)
  6653.     end
  6654.     tempbleedval:Destroy()
  6655.     end)
  6656. end
  6657. local function kill(obj,headshot,lookVector)
  6658.     local targchar,targhead,targtorso,targhum,killval,hitval
  6659.     pcall(function()
  6660.         targchar = obj.Parent
  6661.     end)
  6662.     for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  6663.         if v and v.Character and obj:IsDescendantOf(v.Character) then
  6664.             targchar = v.Character
  6665.         end
  6666.     end
  6667.     pcall(function()
  6668.         targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("UpperTorso") or targchar:FindFirstChild("HumanoidRootPart")
  6669.     end)
  6670.     pcall(function()
  6671.         targhead = targchar:FindFirstChild("Head")
  6672.     end)
  6673.     pcall(function()
  6674.         targhum = targchar:FindFirstChildOfClass("Humanoid")
  6675.     end)
  6676.     pcall(function()
  6677.         killval = targhum:FindFirstChild("killer")
  6678.     end)
  6679.     pcall(function()
  6680.         decapval = targhum:FindFirstChild("decapped " .. targchar.Name)
  6681.     end)
  6682.     pcall(function()
  6683.         hitval = targhum:FindFirstChild("hit " .. targchar.Name .. " with deagle by " .. plr.Name)
  6684.     end)
  6685.     if targchar and targhead and targtorso and targhum and targhum ~= hum --[[and not hitval]] and using then
  6686.         targhum:TakeDamage(1/0)
  6687.         if 0 >= targhum.Health then
  6688.             if (not decapval and headshot) or not killval then
  6689.                 if not killval then
  6690.                     local tempkillval = Instance.new("ObjectValue",targhum)
  6691.                     tempkillval.Name = "killer"
  6692.                     tempkillval.Value = plr
  6693.                 end
  6694.                 spawn(function()
  6695.                     local kb = 10
  6696.                     local b = Instance.new("BodyVelocity")
  6697.                     b.Parent = targtorso
  6698.                     b.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  6699.                     b.Velocity = lookVector*kb + Vector3.new(0,2,0)
  6700.                     game:GetService("Debris"):AddItem(b,0.15)
  6701.                 end)
  6702.                 pcall(function()
  6703.                     Ragdoll(targchar,headshot,true)
  6704.                 end)
  6705.                 bleed2(targtorso,targhum,true,5,true)
  6706.             end
  6707.             if headshot and not decapval then
  6708.                 local tempdecapval = Instance.new("ObjectValue",targhum)
  6709.                 tempdecapval.Name = ("decapped " .. targchar.Name)
  6710.                 local decap_bleed = Instance.new("Sound")
  6711.                 decap_bleed.SoundId = 'rbxassetid://244502094'
  6712.                 decap_bleed.Volume = 0.5
  6713.                 decap_bleed.Parent = targtorso
  6714.                 decap_bleed:Play()
  6715.                 local decap_head = Instance.new("Sound")
  6716.                 decap_head.SoundId = 'rbxassetid://1255040462' --222406108
  6717.                 decap_head.Volume = 1
  6718.                 decap_head.Parent = targtorso
  6719.                 decap_head:Play()
  6720.                 local att = Instance.new("Attachment")
  6721.                 att.Parent = targtorso
  6722.                 att.Position = Vector3.new(0,targtorso.Size.Y/2,0)
  6723.                 local blood_emitter = Instance.new("ParticleEmitter")
  6724.                 blood_emitter.Name = "Blood2"
  6725.                 blood_emitter.Parent = att
  6726.                 blood_emitter.Speed = NumberRange.new(5, 14)
  6727.                 blood_emitter.Color = ColorSequence.new(Color3.new(0.45098, 0, 0),Color3.new(0.45098, 0, 0))
  6728.                 blood_emitter.LightEmission = 0.20000000298023
  6729.                 blood_emitter.LightInfluence = 1
  6730.                 blood_emitter.Texture = "http://www.roblox.com/asset/?id=134531274"
  6731.                 blood_emitter.Transparency = NumberSequence.new(0.30000001192093,0.30000001192093)
  6732.                 blood_emitter.ZOffset = 1
  6733.                 blood_emitter.Size = NumberSequence.new(0.12499988079071,0)
  6734.                 blood_emitter.Acceleration = Vector3.new(0, -20, 0)
  6735.                 blood_emitter.Lifetime = NumberRange.new(0.5, 1.5)
  6736.                 blood_emitter.Rate = 100000
  6737.                 blood_emitter.SpreadAngle = Vector2.new(90, 90)
  6738.                 blood_emitter.VelocitySpread = 90
  6739.                 blood_emitter.Enabled = true
  6740.             end
  6741.         end
  6742.     end
  6743. end
  6744.  
  6745. local function Reload()
  6746.     if max_ammo > ammo then else return end
  6747.     using = true
  6748.     reload_s:Play()
  6749.     local mag = Instance.new("Part")
  6750.     mag.Size = Vector3.new(0.53, 0.94, 0.23)
  6751.     mag.Color = han.Color
  6752.     mag.Parent = workspace
  6753.     mag.CFrame = han.CFrame * CFrame.new(0.7,0,0)
  6754.     --debris:AddItem(mag,3)
  6755.     wait(1)
  6756.     ammo = max_ammo
  6757.     game:GetService("Debris"):AddItem(mag,10)
  6758.     using = false
  6759. end
  6760.  
  6761. local function breakwindow(hit)
  6762.     if hit and hit.Name:lower() ~= "window shatter" and hit.Name:lower() ~= "blood" and hit.Name:lower() ~= "mini_blood" then else return end
  6763.     local wbreakc = wbreak:Clone()
  6764.     wbreakc.Parent = hit
  6765.     wbreakc:Play()
  6766.     local sx,sy,sz=hit.Size.x,hit.Size.y,hit.Size.z
  6767.     hit.Name = "window shatter"
  6768.     for x=1,4 do
  6769.         for y=1,4 do
  6770.             local part=hit:Clone()
  6771.             local position=Vector3.new(x-2.1,y-2.1,0)*Vector3.new(sx/4,sy/4,sz)
  6772.             part.Size=Vector3.new(sx/4,sy/4,sz)
  6773.             part.CFrame=hit.CFrame*(CFrame.new(part.Size/8)-hit.Size/8+position)           
  6774.             part.Velocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  6775.             part.Name="window shatter"
  6776.             part.Parent=hit.Parent
  6777.             debris:AddItem(part,2)
  6778.             spawn(function()
  6779.                 wait(0.5)
  6780.                 for i=1,10 do
  6781.                     part.Transparency=part.Transparency+0.05
  6782.                     wait(0.05)
  6783.                 end
  6784.                 part:Destroy()
  6785.             end)
  6786.             part.Anchored=false
  6787.         end
  6788.     end
  6789.     hit:Destroy()
  6790. end
  6791.  
  6792. local function raycast(Pos,Dir,Max,Ignore)
  6793.     return workspace:FindPartOnRayWithIgnoreList(Ray.new(Pos, Dir * (Max or 999.999)), (Ignore or {}), false, true)
  6794. end
  6795.  
  6796. local objhit = {}
  6797. local oldobjhit = {}
  6798.  
  6799. local function make_hole(pos,obj,col)
  6800.     local BulletHolePart = Instance.new("Part")
  6801.     BulletHolePart.Massless = true
  6802.     BulletHolePart.Anchored = false
  6803.     BulletHolePart.CanCollide = false
  6804.     BulletHolePart.Locked = true
  6805.     BulletHolePart.FormFactor = "Custom"
  6806.     BulletHolePart.TopSurface, BulletHolePart.BottomSurface, BulletHolePart.RightSurface, BulletHolePart.LeftSurface, BulletHolePart.FrontSurface, BulletHolePart.BackSurface = "SmoothNoOutlines", "SmoothNoOutlines", "SmoothNoOutlines", "SmoothNoOutlines", "SmoothNoOutlines", "SmoothNoOutlines"
  6807.     BulletHolePart.Name = "Bullet Hole"
  6808.     BulletHolePart.Material = "Plastic"
  6809.     BulletHolePart.Reflectance = 0
  6810.     BulletHolePart.Transparency = 1
  6811.     BulletHolePart.BrickColor = BrickColor.new("Medium stone grey")
  6812.     BulletHolePart.Size = Vector3.new(0.3, 0, 0.3)
  6813.     BulletHolePart:BreakJoints()
  6814.     BulletHolePart.CFrame = pos
  6815.     BulletHolePart.Parent = script
  6816.     local weld = Instance.new("WeldConstraint")
  6817.     weld.Part0 = obj
  6818.     weld.Part1 = BulletHolePart
  6819.     weld.Parent = obj
  6820.    -- game:GetService("Debris"):AddItem(BulletHolePart, 5)
  6821.     local BulletHoleDecal = Instance.new("Decal")
  6822.     BulletHoleDecal.Color3 = Color3.new(col.r, col.g, col.b)
  6823.     BulletHoleDecal.Face = "Top"
  6824.     BulletHoleDecal.Texture = "rbxassetid://359667865"
  6825.     BulletHoleDecal.Transparency = 0
  6826.     BulletHoleDecal.Parent = BulletHolePart
  6827.     return BulletHolePart
  6828. end
  6829.  
  6830. local blood_images = {931617584,1663434319,1391189545,4533673847,3236192667,2565888666,612591729,120362139,116830967,122022304,131339257,247766282,121678640,176677800,120361912,176678070,176678086,176677869} --305296807,256293532,148713503,176678030
  6831.  
  6832. local e_s = 1
  6833.  
  6834. local function add_decal(f,t,obj)
  6835.     spawn(function()
  6836.     local texture = Instance.new("Texture")
  6837.     texture.Parent = obj
  6838.     texture.Face = f
  6839.     texture.Texture = 'rbxassetid://' .. t
  6840.     if f == 'Left' or f == 'Right' then
  6841.         texture.StudsPerTileV = obj.Size.Y + e_s
  6842.         if (obj.Size.X > obj.Size.Z) then
  6843.             texture.StudsPerTileV = obj.Size.Z + e_s
  6844.         elseif (obj.Size.Z > obj.Size.X) then
  6845.             texture.StudsPerTileU = obj.Size.X + e_s
  6846.         else
  6847.             texture.StudsPerTileU = obj.Size.X + e_s
  6848.         end
  6849.     elseif f == 'Front' or f == 'Back' then
  6850.         texture.StudsPerTileV = obj.Size.Y + e_s
  6851.         if (obj.Size.X > obj.Size.Z) then
  6852.             texture.StudsPerTileV = obj.Size.X + e_s
  6853.         elseif (obj.Size.Z > obj.Size.X) then
  6854.             texture.StudsPerTileU = obj.Size.Z + e_s
  6855.         else
  6856.             texture.StudsPerTileU = obj.Size.X + e_s
  6857.         end
  6858.     elseif f == 'Top' or f == 'Bottom' then
  6859.         texture.StudsPerTileV = obj.Size.X + e_s
  6860.         texture.StudsPerTileU = obj.Size.Z + e_s
  6861.     end
  6862.     end)
  6863. end
  6864.  
  6865. local function add_blood(obj)
  6866.     local t1,t2,t3,t4,t5,t6 = blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)]
  6867.     add_decal('Top',t1,obj)
  6868.     add_decal('Bottom',t2,obj)
  6869.     add_decal('Left',t3,obj)
  6870.     add_decal('Right',t4,obj)
  6871.     add_decal('Front',t5,obj)
  6872.     add_decal('Back',t6,obj)
  6873. end
  6874.  
  6875. local function make_bone(obj,targtorso)
  6876.     if obj.Name == 'Left Arm' or obj.Name == 'LeftUpperArm' then
  6877.         local bone = Instance.new("Part")
  6878.         bone.CanCollide = false
  6879.         bone.Anchored = false
  6880.         bone.CFrame = targtorso.CFrame
  6881.         bone.Size = targtorso.Size
  6882.         bone.Massless = true
  6883.         bone.Locked = true
  6884.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  6885.         if not exists then
  6886.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  6887.         end
  6888.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  6889.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  6890.         game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
  6891.         local weld = Instance.new("Weld")
  6892.         weld.Part0 = bone
  6893.         weld.Part1 = targtorso
  6894.         weld.C1 = CFrame.new(-0.61,0.77,0.03)*CFrame.Angles(math.rad(90),0,math.rad(90))
  6895.         weld.Parent = bone
  6896.         targtorso.Anchored = false
  6897.         bone.Parent = script
  6898.         local mesh = Instance.new("SpecialMesh")
  6899.         mesh.MeshId = 'rbxassetid://1076136382'
  6900.         mesh.TextureId = 'rbxassetid://1076137938'
  6901.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  6902.         mesh.Parent = bone
  6903.         --
  6904.         local bone = Instance.new("Part")
  6905.         bone.CanCollide = false
  6906.         bone.Anchored = false
  6907.         bone.CFrame = obj.CFrame
  6908.         bone.Size = obj.Size
  6909.         bone.Massless = true
  6910.         bone.Locked = true
  6911.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  6912.         if not exists then
  6913.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  6914.         end
  6915.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  6916.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  6917.         game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  6918.         local weld = Instance.new("Weld")
  6919.         weld.Part0 = bone
  6920.         weld.Part1 = obj
  6921.         weld.C1 = CFrame.new(0.13,0.26,0)
  6922.         weld.Parent = bone
  6923.         obj.Anchored = false
  6924.         bone.Parent = script
  6925.         local mesh = Instance.new("SpecialMesh")
  6926.         mesh.MeshId = 'rbxassetid://36780032'
  6927.         mesh.TextureId = 'rbxassetid://36780292'
  6928.         mesh.Parent = bone
  6929.     elseif obj.Name == 'Right Arm' or obj.Name == 'RightUpperArm' then
  6930.         local bone = Instance.new("Part")
  6931.         bone.CanCollide = false
  6932.         bone.Anchored = false
  6933.         bone.CFrame = targtorso.CFrame
  6934.         bone.Size = targtorso.Size
  6935.         bone.Massless = true
  6936.         bone.Locked = true
  6937.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  6938.         if not exists then
  6939.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  6940.         end
  6941.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  6942.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  6943.         game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
  6944.         local weld = Instance.new("Weld")
  6945.         weld.Part0 = bone
  6946.         weld.Part1 = targtorso
  6947.         weld.C1 = CFrame.new(0.61,0.77,0.03)*CFrame.Angles(math.rad(90),0,math.rad(-90))
  6948.         weld.Parent = bone
  6949.         targtorso.Anchored = false
  6950.         bone.Parent = script
  6951.         local mesh = Instance.new("SpecialMesh")
  6952.         mesh.MeshId = 'rbxassetid://1076136382'
  6953.         mesh.TextureId = 'rbxassetid://1076137938'
  6954.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  6955.         mesh.Parent = bone
  6956.         --
  6957.         local bone = Instance.new("Part")
  6958.         bone.CanCollide = false
  6959.         bone.Anchored = false
  6960.         bone.CFrame = obj.CFrame
  6961.         bone.Size = obj.Size
  6962.         bone.Massless = true
  6963.         bone.Locked = true
  6964.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  6965.         if not exists then
  6966.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  6967.         end
  6968.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  6969.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  6970.         game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  6971.         local weld = Instance.new("Weld")
  6972.         weld.Part0 = bone
  6973.         weld.Part1 = obj
  6974.         weld.C1 = CFrame.new(-0.13,0.26,0)
  6975.         weld.Parent = bone
  6976.         obj.Anchored = false
  6977.         bone.Parent = script
  6978.         local mesh = Instance.new("SpecialMesh")
  6979.         mesh.MeshId = 'rbxassetid://36780156'
  6980.         mesh.TextureId = 'rbxassetid://36780292'
  6981.         mesh.Parent = bone
  6982.     elseif obj.Name == 'Left Leg' or obj.Name == 'LeftUpperLeg' then
  6983.         local bone = Instance.new("Part")
  6984.         bone.CanCollide = false
  6985.         bone.Anchored = false
  6986.         bone.CFrame = targtorso.CFrame
  6987.         bone.Size = targtorso.Size
  6988.         bone.Massless = true
  6989.         bone.Locked = true
  6990.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  6991.         if not exists then
  6992.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  6993.         end
  6994.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  6995.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  6996.         game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
  6997.         local weld = Instance.new("Weld")
  6998.         weld.Part0 = bone
  6999.         weld.Part1 = targtorso
  7000.         weld.C1 = CFrame.new(-0.6,-0.64,0.11)*CFrame.Angles(0,0,math.rad(180))
  7001.         weld.Parent = bone
  7002.         targtorso.Anchored = false
  7003.         bone.Parent = script
  7004.         local mesh = Instance.new("SpecialMesh")
  7005.         mesh.MeshId = 'rbxassetid://1076136382'
  7006.         mesh.TextureId = 'rbxassetid://1076137938'
  7007.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  7008.         mesh.Parent = bone
  7009.         --
  7010.         local bone = Instance.new("Part")
  7011.         bone.CanCollide = false
  7012.         bone.Anchored = false
  7013.         bone.CFrame = obj.CFrame
  7014.         bone.Size = obj.Size
  7015.         bone.Massless = true
  7016.         bone.Locked = true
  7017.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  7018.         if not exists then
  7019.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  7020.         end
  7021.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  7022.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  7023.         game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  7024.         local weld = Instance.new("Weld")
  7025.         weld.Part0 = bone
  7026.         weld.Part1 = obj
  7027.         weld.C1 = CFrame.new(0,0.09,0.13)
  7028.         weld.Parent = bone
  7029.         obj.Anchored = false
  7030.         bone.Parent = script
  7031.         local mesh = Instance.new("SpecialMesh")
  7032.         mesh.MeshId = 'rbxassetid://36780156'
  7033.         mesh.TextureId = 'rbxassetid://36780292'
  7034.         mesh.Parent = bone
  7035.     elseif obj.Name == 'Right Leg' or obj.Name == 'RightUpperLeg' then
  7036.         local bone = Instance.new("Part")
  7037.         bone.CanCollide = false
  7038.         bone.Anchored = false
  7039.         bone.CFrame = targtorso.CFrame
  7040.         bone.Size = targtorso.Size
  7041.         bone.Massless = true
  7042.         bone.Locked = true
  7043.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  7044.         if not exists then
  7045.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  7046.         end
  7047.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  7048.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  7049.         game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
  7050.         local weld = Instance.new("Weld")
  7051.         weld.Part0 = bone
  7052.         weld.Part1 = targtorso
  7053.         weld.C1 = CFrame.new(0.6,-0.64,0.11)*CFrame.Angles(0,0,math.rad(180))
  7054.         weld.Parent = bone
  7055.         targtorso.Anchored = false
  7056.         bone.Parent = script
  7057.         local mesh = Instance.new("SpecialMesh")
  7058.         mesh.MeshId = 'rbxassetid://1076136382'
  7059.         mesh.TextureId = 'rbxassetid://1076137938'
  7060.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  7061.         mesh.Parent = bone
  7062.         --
  7063.         local bone = Instance.new("Part")
  7064.         bone.CanCollide = false
  7065.         bone.Anchored = false
  7066.         bone.CFrame = obj.CFrame
  7067.         bone.Size = obj.Size
  7068.         bone.Massless = true
  7069.         bone.Locked = true
  7070.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  7071.         if not exists then
  7072.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  7073.         end
  7074.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  7075.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  7076.         game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  7077.         local weld = Instance.new("Weld")
  7078.         weld.Part0 = bone
  7079.         weld.Part1 = obj
  7080.         weld.C1 = CFrame.new(0,0.09,0.13)
  7081.         weld.Parent = bone
  7082.         obj.Anchored = false
  7083.         bone.Parent = script
  7084.         local mesh = Instance.new("SpecialMesh")
  7085.         mesh.MeshId = 'rbxassetid://36780195'
  7086.         mesh.TextureId = 'rbxassetid://36780292'
  7087.         mesh.Parent = bone
  7088.     elseif obj.Name == 'Head' then
  7089.         local bone = Instance.new("Part")
  7090.         bone.CanCollide = false
  7091.         bone.Anchored = false
  7092.         bone.CFrame = targtorso.CFrame
  7093.         bone.Size = targtorso.Size
  7094.         bone.Massless = true
  7095.         bone.Locked = true
  7096.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  7097.         if not exists then
  7098.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  7099.         end
  7100.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  7101.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  7102.         game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
  7103.         local weld = Instance.new("Weld")
  7104.         weld.Part0 = bone
  7105.         weld.Part1 = targtorso
  7106.         weld.C1 = CFrame.new(0,0.66,0)
  7107.         weld.Parent = bone
  7108.         targtorso.Anchored = false
  7109.         bone.Parent = script
  7110.         local mesh = Instance.new("SpecialMesh")
  7111.         mesh.MeshId = 'rbxassetid://1076136382'
  7112.         mesh.TextureId = 'rbxassetid://1076137938'
  7113.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  7114.         mesh.Parent = bone
  7115.         --
  7116.         local bone = Instance.new("Part")
  7117.         bone.CanCollide = false
  7118.         bone.Anchored = false
  7119.         bone.CFrame = obj.CFrame
  7120.         bone.Size = obj.Size
  7121.         bone.Massless = true
  7122.         bone.Locked = true
  7123.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  7124.         if not exists then
  7125.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  7126.         end
  7127.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  7128.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  7129.         game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  7130.         local weld = Instance.new("Weld")
  7131.         weld.Part0 = bone
  7132.         weld.Part1 = obj
  7133.         weld.C1 = CFrame.new(0,-0.23,0)*CFrame.Angles(0,math.rad(-90),0)
  7134.         weld.Parent = bone
  7135.         obj.Anchored = false
  7136.         bone.Parent = script
  7137.         local mesh = Instance.new("SpecialMesh")
  7138.         mesh.MeshId = 'rbxassetid://1076136382'
  7139.         mesh.TextureId = 'rbxassetid://1076137938'
  7140.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  7141.         mesh.Parent = bone
  7142.     end
  7143. end
  7144.  
  7145. local function break_limb(obj,rig,targtorso,targhum)
  7146.     if not obj:FindFirstChild('Dismembered') and obj.Name ~= 'Torso' and obj.Name ~= 'HumanoidRootPart' and obj.Name ~= 'UpperTorso' and obj.Name ~= 'LowerTorso' then else return end
  7147.     local confirm = Instance.new("ObjectValue")
  7148.     confirm.Name = 'Dismembered'
  7149.     confirm.Parent = obj
  7150.     local bsc = obj:FindFirstChildOfClass("BallSocketConstraint")
  7151.     if bsc then
  7152.         bsc:Destroy()
  7153.     end
  7154.     bleed2(obj,targhum,false,5,false)
  7155.     make_bone(obj,targtorso)
  7156.     local kb = 10
  7157.     local b = Instance.new("BodyVelocity")
  7158.     b.Parent = targtorso
  7159.     b.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  7160.     b.Velocity = han.CFrame.lookVector*kb + Vector3.new(0,2,0)
  7161.     game:GetService("Debris"):AddItem(b,0.1)
  7162.     if rig == Enum.HumanoidRigType.R6 then
  7163.         local bsc = obj:FindFirstChildOfClass("BallSocketConstraint")
  7164.         if bsc then
  7165.             bsc:Destroy()
  7166.         end
  7167.         for i,v in pairs(targtorso:GetChildren()) do
  7168.             if v:IsA("Motor6D") then
  7169.                 if obj.Name == 'Head' and v.Name == 'Neck' then
  7170.                     v:Destroy()
  7171.                 elseif obj.Name == 'Left Arm' and v.Name == 'Left Shouldver' then
  7172.                     v:Destroy()
  7173.                 elseif obj.Name == 'Right Arm' and v.Name == 'Right Shoulder' then
  7174.                     v:Destroy()
  7175.                 elseif obj.Name == 'Left Leg' and v.Name == 'Left Hip' then
  7176.                     if obj.Parent:FindFirstChild("Right Leg") then
  7177.                         targhum.WalkSpeed = targhum.WalkSpeed/2
  7178.                     else
  7179.                         targhum.WalkSpeed = 0
  7180.                     end
  7181.                     v:Destroy()
  7182.                 elseif obj.Name == 'Right Leg' and v.Name == 'Right Hip' then
  7183.                     if obj.Parent:FindFirstChild("Left Leg") then
  7184.                         targhum.WalkSpeed = targhum.WalkSpeed/2
  7185.                     else
  7186.                         targhum.WalkSpeed = 0
  7187.                     end
  7188.                     v:Destroy()
  7189.                 end
  7190.             end
  7191.         end
  7192.     elseif rig == Enum.HumanoidRigType.R15 then
  7193.         for i,v in pairs(obj:GetChildren()) do
  7194.             if v:IsA("Motor6D") then
  7195.                 if (obj.Name == 'LeftUpperLeg' and obj.Parent:FindFirstChild("RightUpperLeg")) or (obj.Name == 'RightUpperLeg' and obj.Parent:FindFirstChild("LeftUpperLeg")) then
  7196.                     targhum.WalkSpeed = targhum.WalkSpeed/2
  7197.                 elseif obj.Name == 'RightUpperLeg' or obj.Name == 'LeftUpperLeg' then
  7198.                     targhum.WalkSpeed = 0
  7199.                 end
  7200.                 v:Destroy()
  7201.             end
  7202.         end
  7203.     end
  7204.     local cb = Instance.new("Part")
  7205.     cb.Transparency = 1
  7206.     cb.CanCollide = true
  7207.     cb.Anchored = false
  7208.     cb.CFrame = obj.CFrame
  7209.     cb.Size = obj.Size
  7210.     cb.Massless = true
  7211.     cb.Locked = true
  7212.     local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  7213.     if not exists then
  7214.         game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  7215.     end
  7216.     game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  7217.     game:GetService("PhysicsService"):SetPartCollisionGroup(cb,'Limb Collide')
  7218.     game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  7219.     local weld = Instance.new("Weld")
  7220.     weld.Part0 = cb
  7221.     weld.Part1 = obj
  7222.     weld.Parent = cb
  7223.     obj.Massless = true
  7224.     obj.Anchored = false
  7225.     cb.Parent = script
  7226. end
  7227.  
  7228. local function check(toughness,obj,objpos,p,rays,rot)
  7229.     local plrhit = false
  7230.     if obj and not obj:FindFirstChild('Dismembered') then else return; end;
  7231.     local targchar,targtorso,targhum,targhead
  7232.     pcall(function()
  7233.         targchar = obj.Parent
  7234.     end)
  7235.     for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  7236.         if v and v.Character and obj:IsDescendantOf(v.Character) then
  7237.             targchar = v.Character
  7238.         end
  7239.     end
  7240.     pcall(function()
  7241.         targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("UpperTorso") or targchar:FindFirstChild("HumanoidRootPart")
  7242.     end)
  7243.     pcall(function()
  7244.         targhum = targchar:FindFirstChildOfClass("Humanoid")
  7245.     end)
  7246.     pcall(function()
  7247.         targhead = targchar:FindFirstChild("Head")
  7248.     end)
  7249.     if targchar and targchar.Parent and targtorso and targtorso.Parent and targhum and targhum.Parent and targhum ~= hum and targhead and targhead.Parent and not targhum:FindFirstChild("hit " .. targchar.Name .. " with " .. gun.Name .. " by " .. plr.Name) then
  7250.         plrhit = true
  7251.         local confirm = Instance.new("IntValue")
  7252.         confirm.Parent = targhum
  7253.         confirm.Name = ("hit " .. targchar.Name .. " with " .. gun.Name .. " by " .. plr.Name)
  7254.         debris:AddItem(confirm,shootwait)
  7255.         local dmg = math.random(60,70)
  7256.         if obj == targhead then
  7257.             dmg = math.random(100,110)
  7258.             targhum:TakeDamage(dmg)
  7259.         elseif not op then
  7260.             dmg = math.random(60,70)
  7261.             targhum:TakeDamage(dmg)
  7262.         elseif op then
  7263.             targhum.MaxHealth = 0
  7264.             targhum.Health = 0
  7265.             targhum.Parent:BreakJoints()
  7266.         end
  7267.         if math.random(1,2) == 1 then
  7268.             break_limb(obj,targhum.RigType,targtorso,targhum)
  7269.         end
  7270.         add_blood(obj)
  7271.         local bleeding = Instance.new("Sound")
  7272.         bleeding.SoundId = 'rbxassetid://360007673'
  7273.         bleeding.Volume = 1
  7274.         bleeding.Parent = targtorso
  7275.         bleeding:Play()
  7276.         if 0 >= targhum.Health and obj == targhead then
  7277.             kill(obj,true,p.CFrame.lookVector)
  7278.         elseif 0 >= targhum.Health then
  7279.             kill(obj,false,p.CFrame.lookVector)
  7280.         elseif targhum.Health > 0 then
  7281.             bleed2(targtorso,targhum,true,5,false)
  7282.         end
  7283.     else
  7284.         table.insert(objhit,1,obj)
  7285.         local mat = obj.Material
  7286.         local mathit = obj:FindFirstChild('material hit ' .. plr.Name)
  7287.         if not mathit and toughness > 0 and 1 > obj.Transparency then
  7288.             --print('old: ' .. toughness)
  7289.             if (mat == Enum.Material.Glass or mat == Enum.Material.Ice) then
  7290.                 breakwindow(obj)
  7291.             elseif (mat == Enum.Material.Wood or mat == Enum.Material.WoodPlanks) then
  7292.                 toughness = toughness - 1.5
  7293.             elseif (mat == Enum.Material.Metal or mat == Enum.Material.DiamondPlate or mat == Enum.Material.CorrodedMetal) then
  7294.                 toughness = toughness - 5
  7295.             elseif (mat == Enum.Material.Brick or mat == Enum.Material.Concrete or mat == Enum.Material.Cobblestone or mat == Enum.Material.Granite or mat == Enum.Material.Slate or mat == Enum.Material.Pebble) then
  7296.                 toughness = toughness - 3
  7297.             else
  7298.                 toughness = toughness - 1
  7299.             end
  7300.             --print('new: ' .. toughness)
  7301.             local libruary = {
  7302.                 ['wizz'] = {342190005, 342190012, 342190017, 342190024},
  7303.                 ['crackSmall'] = {873119768, 873119788, 873119811, 873119845, 873119886, 873119904},
  7304.                 ['crackBig'] = {873119597, 873119653, 873119679, 873119703, 873119724, 873119744},
  7305.                 ['whizz'] = {873121840, 873121858, 873121876, 873121896, 873121913, 873121936},
  7306.                 ['woodhit'] = {342204157, 342204164, 342204170, 342204175, 871705143, 871705174}, --871705195, 871705217, 871705237, 871705264
  7307.                 ['stonehit'] = {871701076, 871701134, 871701190, 871701241, 871701297, 871701346},
  7308.                 ['metalhit'] = {871704182, 871704259, 871704297, 871704329, 871704362, 871704395},
  7309.                 ['grasshit'] = {871709869, 871709832, 871709789, 871709755, 871709708, 871709643},
  7310.                 ['impact'] = {525720625},
  7311.             }
  7312.             local soundfont=({
  7313.                 Brick="stonehit";
  7314.                 Cobblestone="stonehit";
  7315.                 Concrete="stonehit";
  7316.                 CorrodedMetal="metalhit";
  7317.                 DiamondPlate="metalhit";
  7318.                 Fabric=nil;
  7319.                 Foil="metalhit";
  7320.                 Granite="stonehit";
  7321.                 Grass="grasshit";
  7322.                 Ice="stonehit";
  7323.                 Marble="stonehit";
  7324.                 Metal="metalhit";
  7325.                 Neon=nil;
  7326.                 Pebble="stonehit";
  7327.                 Plastic="metalhit";
  7328.                 Sand=nil;
  7329.                 Slate="stonehit";
  7330.                 SmoothPlastic="metalhit";
  7331.                 Wood="woodhit";
  7332.                 WoodPlanks="woodhit";
  7333.             })[mat.Name]
  7334.             local part = make_hole(CFrame.new(objpos, objpos - rot) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) * CFrame.Angles(math.rad(0), math.rad(math.random(-360, 360)), math.rad(0)), obj, obj.BrickColor)
  7335.             local BulletHoleSound = Instance.new("Sound")
  7336.             BulletHoleSound.Volume = 0.5
  7337.             BulletHoleSound.Pitch = math.random(9,11)/10
  7338.             if soundfont ~= nil then
  7339.                 BulletHoleSound.SoundId = "rbxassetid://"..libruary[soundfont][math.random(1,6)]
  7340.             else
  7341.                 BulletHoleSound.SoundId = "rbxassetid://"..libruary['impact'][1]
  7342.             end
  7343.             BulletHoleSound.Parent = part
  7344.             BulletHoleSound:Play()
  7345.             local tempmathit = Instance.new("ObjectValue")
  7346.             tempmathit.Name = ('material hit ' .. plr.Name)
  7347.             tempmathit.Parent = obj
  7348.             game:GetService("Debris"):AddItem(tempmathit,shootwait)
  7349.         end
  7350.     end
  7351.     if toughness > 0 and rays > 0 then
  7352.         local found = false
  7353.         for i,v in pairs(oldobjhit) do if v and obj:IsDescendantOf(v) then found = true; end; end;
  7354.         oldobjhit = objhit
  7355.         if not plrhit and not found then
  7356.             rays = rays - 1
  7357.             wait()
  7358.         end
  7359.         local ig = {char,gun,script,unpack(objhit)}
  7360.         local _obj,_vec,_rot = raycast(objpos,(hitpos-objpos).Unit, nil, ig)
  7361.         check(toughness,_obj,_vec,p,rays,_rot)
  7362.     else
  7363.         p:Destroy()
  7364.     end
  7365. end
  7366.  
  7367. local function drop_shell()
  7368.     local Shell = Instance.new("Part")
  7369.     Shell.Color = Color3.new(1, 1, 0)
  7370.     Shell.Size = Vector3.new(0.530001819, 0.132500455, 0.132500455)
  7371.     Shell.BottomSurface = Enum.SurfaceType.Smooth
  7372.     Shell.BrickColor = BrickColor.new("New Yeller")
  7373.     Shell.Material = Enum.Material.Metal
  7374.     Shell.Shape = Enum.PartType.Cylinder
  7375.     Shell.CFrame = han.CFrame
  7376.     Shell.Parent = script
  7377.     local bvs = Instance.new("BodyVelocity")
  7378.     bvs.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  7379.     bvs.Velocity = han.CFrame.lookVector+Vector3.new(0,10,-5)
  7380.     bvs.Parent = Shell
  7381.     game:GetService("Debris"):AddItem(bvs,0.1)
  7382.     game:GetService("Debris"):AddItem(Shell,10)
  7383. end
  7384.  
  7385. local function Shoot()
  7386.     if not using and CheckIfAlive() and ammo > 0 then
  7387.         using = true
  7388.         wait()
  7389.         ammo = ammo - 1
  7390.         shoot_s:Play()
  7391.         tween:Create(gun,TweenInfo.new(0.1),({Grip = CFrame.new(0.799432933, 0.0882362723, -0.0327377282, 1.06158744e-08, -0.455513358, 0.890228987, 5.43194245e-09, 0.890228987, 0.455513358, -1, 0, 1.19248806e-08)})):Play()
  7392.         spawn(function()
  7393.             flash.Enabled = true
  7394.             light.Enabled = true
  7395.             smoke.Enabled = true
  7396.             wait()
  7397.             flash.Enabled = false
  7398.             light.Enabled = false
  7399.             smoke.Enabled = false
  7400.         end)
  7401.         for i = 1,bulletfire do
  7402.             drop_shell()
  7403.             for i,v in ipairs(objhit) do table.remove(objhit,i); end;
  7404.             for i,v in ipairs(objhit) do table.remove(oldobjhit,i); end;
  7405.             spawn(function()
  7406.                 local p = Instance.new("Part")
  7407.                 p.Name = "bullet"
  7408.                 p.Massless = true
  7409.                 p.Anchored = false
  7410.                 p.CanCollide = false
  7411.                 p.Color = Color3.fromRGB(255, 255, 0)
  7412.                 p.Size = Vector3.new(0.5,0.5,1)
  7413.                 p.Transparency = 0
  7414.                 p.Position = han.Position
  7415.                 p.CFrame = CFrame.new(han.Position,hitpos)
  7416.                 p.Velocity = p.CFrame.lookVector * 1000
  7417.                 p.Material = Enum.Material.Neon
  7418.                 p.Parent = script
  7419.                 local mesh = Instance.new("SpecialMesh")
  7420.                 mesh.MeshType = Enum.MeshType.Sphere
  7421.                 mesh.Parent = p
  7422.                 --tween:Create(p,TweenInfo.new(((hitpos)-han.Position).Magnitude/10000),{Position = p.Position + ((hitpos)-han.Position).Unit*1000}):Play()
  7423.                 local body_vel = Instance.new("BodyVelocity")
  7424.                 body_vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  7425.                 body_vel.Velocity = p.CFrame.lookVector * 1000
  7426.                 body_vel.Parent = p
  7427.                 debris:AddItem(p,3)
  7428.                 local toughness = 5
  7429.                 local rays = 5
  7430.                 local ig = {char,gun,script}
  7431.                 local obj,vec,rot = raycast(han.Position,(hitpos-han.Position).Unit, nil, ig)
  7432.                 check(toughness,obj,vec,p,rays,rot)
  7433.             end)
  7434.         end
  7435.         spawn(function()
  7436.             wait(0.1)
  7437.             tween:Create(gun,TweenInfo.new(0.1),({Grip = CFrame.new(0.751871109, -0.285601854, -0.0327377282, 1.19248806e-08, 0, 1, 0, 1, 0, -1, 0, 1.19248806e-08)})):Play()
  7438.         end)
  7439.         wait(shootwait)
  7440.         using = false
  7441.     end
  7442. end
  7443.  
  7444. gun.Activated:Connect(function()
  7445.     if not using and CheckIfAlive() and 0 >= ammo then
  7446.         Reload()
  7447.     end
  7448. end)
  7449.  
  7450. gun.Equipped:Connect(function()
  7451.     equipped = true
  7452.     pcall(function()
  7453.         char = gun.Parent
  7454.         plr = game:GetService("Players"):GetPlayerFromCharacter(char)
  7455.         hum = char:FindFirstChildOfClass("Humanoid")
  7456.         torso = char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso")
  7457.         rootpart = char:FindFirstChild("HumanoidRootPart")
  7458.         if not CheckIfAlive() then gun.Parent = nil return end
  7459.     end)
  7460. end)
  7461.  
  7462. gun.Unequipped:Connect(function()
  7463.     equipped = false
  7464. end)
  7465.  
  7466. local remote = Instance.new("RemoteEvent")
  7467. remote.Name = 'deagle_remote'
  7468. remote.Parent = gun
  7469.  
  7470. remote.OnServerEvent:Connect(function(player,mode,data,data2)
  7471.     if equipped then else return end
  7472.     if plr == player and mode == 1 then
  7473.         if data ~= nil then
  7474.             hitpos = data
  7475.         end
  7476.         if data2 ~= nil then
  7477.             shooting = data2
  7478.         end
  7479.         if shooting then
  7480.             Shoot()
  7481.         end
  7482.     elseif not shooting and not using and CheckIfAlive() and plr == player and mode == 2 and data == 'reload' then
  7483.         Reload()
  7484.     end
  7485. end)
  7486.  
  7487. local ls = [[
  7488.     local plr = game:GetService("Players").LocalPlayer
  7489.     local mouse = plr:GetMouse()
  7490.     local char = plr.Character
  7491.     local remote = script.Parent
  7492.     local tool = remote.Parent
  7493.     tool.Equipped:Connect(function()
  7494.         pcall(function()
  7495.             char = tool.Parent
  7496.         end)
  7497.         pcall(function()
  7498.             plr = game:GetService("Players"):GetPlayerFromCharacter(char)
  7499.         end)
  7500.         pcall(function()
  7501.             mouse = plr:GetMouse()
  7502.         end)
  7503.         if mouse then
  7504.             mouse.KeyDown:Connect(function(key)
  7505.                 if key == 'r' then
  7506.                     remote:FireServer(2,'reload')
  7507.                 end
  7508.             end)
  7509.             mouse.Button1Down:Connect(function()
  7510.                 local pos
  7511.                 pcall(function()
  7512.                     pos = mouse.Hit.p
  7513.                 end)
  7514.                 remote:FireServer(1,pos,true)
  7515.                 wait(0.2)
  7516.                 remote:FireServer(1,nil,false)
  7517.             end)
  7518.         end
  7519.     end)
  7520. ]]
  7521.  
  7522. NLS(ls,remote)
  7523. end)
  7524. end
  7525.  
  7526. local tc = BrickColor.new("Really red")
  7527. local spawns_m = Model66
  7528. local spawns = {}
  7529. for i,v in pairs(spawns_m:GetChildren()) do if v then table.insert(spawns,1,v) end end
  7530. local join = ClickDetector79
  7531. local leave = ClickDetector83
  7532.  
  7533. game:GetService("Players").PlayerAdded:Connect(function(plr)
  7534.     plr.Neutral = true
  7535.     plr.TeamColor = BrickColor.White()
  7536.     if plr then
  7537.         plr.CharacterAdded:Connect(function(char)
  7538.             if tostring(plr.TeamColor) == tostring(tc) then
  7539.                 spawn(function()
  7540.                     wait(0.1)
  7541.                     local pos = spawns[math.random(1,#spawns)].CFrame + Vector3.new(0,2,0)
  7542.                     local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart")
  7543.                     torso.CFrame = pos
  7544.                     give_weapons(plr)
  7545.                 end)
  7546.             end
  7547.         end)
  7548.     end
  7549. end)
  7550.  
  7551. for i,plr in pairs(game:GetService("Players"):GetPlayers()) do
  7552.     plr.Neutral = true
  7553.     plr.TeamColor = BrickColor.White()
  7554.     if plr then
  7555.         plr.CharacterAdded:Connect(function(char)
  7556.             if tostring(plr.TeamColor) == tostring(tc) then
  7557.                 spawn(function()
  7558.                     wait(0.1)
  7559.                     local pos = spawns[math.random(1,#spawns)].CFrame + Vector3.new(0,2,0)
  7560.                     local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart")
  7561.                     torso.CFrame = pos
  7562.                     give_weapons(plr)
  7563.                 end)
  7564.             end
  7565.         end)
  7566.     end
  7567. end
  7568.  
  7569. join.MouseClick:Connect(function(plr)
  7570.     if tostring(plr.TeamColor) ~= tostring(tc) then
  7571.         plr.Neutral = false
  7572.         plr.TeamColor = tc
  7573.         plr:LoadCharacter()
  7574.     end
  7575. end)
  7576.  
  7577. leave.MouseClick:Connect(function(plr)
  7578.     plr.Neutral = true
  7579.     plr.TeamColor = BrickColor.White()
  7580.     plr:LoadCharacter()
  7581. end)
Add Comment
Please, Sign In to add comment