Advertisement
Dark_EccentricYT

Untitled

Mar 23rd, 2018 (edited)
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 111.99 KB | None | 0 0
  1. -- made by 1ndrew
  2. function sandbox(var,func)
  3. local env = getfenv(func)
  4. local newenv = setmetatable({},{
  5. __index = function(self,k)
  6. if k=="script" then
  7. return var
  8. else
  9. return env[k]
  10. end
  11. end,
  12. })
  13. setfenv(func,newenv)
  14. return func
  15. end
  16. cors = {}
  17. mas = Instance.new("Model",game:GetService("Lighting"))
  18. Tool0 = Instance.new("Tool")
  19. Part1 = Instance.new("Part")
  20. SpecialMesh2 = Instance.new("SpecialMesh")
  21. Part3 = Instance.new("Part")
  22. Part4 = Instance.new("Part")
  23. SpecialMesh5 = Instance.new("SpecialMesh")
  24. Part6 = Instance.new("Part")
  25. SpecialMesh7 = Instance.new("SpecialMesh")
  26. Part8 = Instance.new("Part")
  27. SpecialMesh9 = Instance.new("SpecialMesh")
  28. ManualWeld10 = Instance.new("ManualWeld")
  29. Part11 = Instance.new("Part")
  30. SpecialMesh12 = Instance.new("SpecialMesh")
  31. Part13 = Instance.new("Part")
  32. SpecialMesh14 = Instance.new("SpecialMesh")
  33. Part15 = Instance.new("Part")
  34. SpecialMesh16 = Instance.new("SpecialMesh")
  35. Part17 = Instance.new("Part")
  36. SpecialMesh18 = Instance.new("SpecialMesh")
  37. Part19 = Instance.new("Part")
  38. SpecialMesh20 = Instance.new("SpecialMesh")
  39. Sound21 = Instance.new("Sound")
  40. Sound22 = Instance.new("Sound")
  41. Part23 = Instance.new("Part")
  42. Part24 = Instance.new("Part")
  43. BillboardGui25 = Instance.new("BillboardGui")
  44. ImageLabel26 = Instance.new("ImageLabel")
  45. PointLight27 = Instance.new("PointLight")
  46. Part28 = Instance.new("Part")
  47. Sound29 = Instance.new("Sound")
  48. Sound30 = Instance.new("Sound")
  49. Sound31 = Instance.new("Sound")
  50. Sound32 = Instance.new("Sound")
  51. Part33 = Instance.new("Part")
  52. CylinderMesh34 = Instance.new("CylinderMesh")
  53. Part35 = Instance.new("Part")
  54. LocalScript36 = Instance.new("LocalScript")
  55. NumberValue37 = Instance.new("NumberValue")
  56. NumberValue38 = Instance.new("NumberValue")
  57. Smoke39 = Instance.new("Smoke")
  58. Smoke40 = Instance.new("Smoke")
  59. Smoke41 = Instance.new("Smoke")
  60. ScreenGui42 = Instance.new("ScreenGui")
  61. Frame43 = Instance.new("Frame")
  62. TextLabel44 = Instance.new("TextLabel")
  63. TextLabel45 = Instance.new("TextLabel")
  64. TextLabel46 = Instance.new("TextLabel")
  65. TextLabel47 = Instance.new("TextLabel")
  66. TextLabel48 = Instance.new("TextLabel")
  67. TextLabel49 = Instance.new("TextLabel")
  68. TextLabel50 = Instance.new("TextLabel")
  69. TextLabel51 = Instance.new("TextLabel")
  70. TextLabel52 = Instance.new("TextLabel")
  71. TextLabel53 = Instance.new("TextLabel")
  72. TextLabel54 = Instance.new("TextLabel")
  73. Frame55 = Instance.new("Frame")
  74. TextLabel56 = Instance.new("TextLabel")
  75. Part57 = Instance.new("Part")
  76. CylinderMesh58 = Instance.new("CylinderMesh")
  77. Part59 = Instance.new("Part")
  78. SpecialMesh60 = Instance.new("SpecialMesh")
  79. Part61 = Instance.new("Part")
  80. BlockMesh62 = Instance.new("BlockMesh")
  81. Part63 = Instance.new("Part")
  82. Part64 = Instance.new("Part")
  83. Sound65 = Instance.new("Sound")
  84. Sound66 = Instance.new("Sound")
  85. Sound67 = Instance.new("Sound")
  86. Sound68 = Instance.new("Sound")
  87. Part69 = Instance.new("Part")
  88. SpecialMesh70 = Instance.new("SpecialMesh")
  89. Script71 = Instance.new("Script")
  90. Script72 = Instance.new("Script")
  91. Script73 = Instance.new("Script")
  92. Script74 = Instance.new("Script")
  93. Script75 = Instance.new("Script")
  94. Tool0.Name = "Galil"
  95. Tool0.Parent = mas
  96. Tool0.ToolTip = "Made in Germany"
  97. Part1.Name = "Stock"
  98. Part1.Parent = Tool0
  99. Part1.Material = Enum.Material.Concrete
  100. Part1.Rotation = Vector3.new(90, 0, 90)
  101. Part1.Anchored = true
  102. Part1.CanCollide = false
  103. Part1.Size = Vector3.new(1.37353814, 0.225373551, 0.677169979)
  104. Part1.CFrame = CFrame.new(-69.9016113, 0.827715993, -130.571457, 0, -1, 0, 0, 0, -1, 1, 0, 0)
  105. Part1.Position = Vector3.new(-69.9016113, 0.827715993, -130.571457)
  106. Part1.Orientation = Vector3.new(90, -90, 0)
  107. SpecialMesh2.Parent = Part1
  108. SpecialMesh2.MeshId = "rbxassetid://777168070"
  109. SpecialMesh2.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  110. SpecialMesh2.TextureId = "rbxassetid://777335465"
  111. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  112. SpecialMesh2.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  113. Part3.Name = "SightMark"
  114. Part3.Parent = Tool0
  115. Part3.Material = Enum.Material.SmoothPlastic
  116. Part3.BrickColor = BrickColor.new("New Yeller")
  117. Part3.Transparency = 1
  118. Part3.Anchored = true
  119. Part3.CanCollide = false
  120. Part3.FormFactor = Enum.FormFactor.Custom
  121. Part3.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  122. Part3.CFrame = CFrame.new(-69.9000015, 1.39999795, -133.649994, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  123. Part3.BottomSurface = Enum.SurfaceType.Smooth
  124. Part3.TopSurface = Enum.SurfaceType.Smooth
  125. Part3.Color = Color3.new(1, 1, 0)
  126. Part3.Position = Vector3.new(-69.9000015, 1.39999795, -133.649994)
  127. Part3.Color = Color3.new(1, 1, 0)
  128. Part4.Name = "PMag"
  129. Part4.Parent = Tool0
  130. Part4.Material = Enum.Material.Concrete
  131. Part4.Rotation = Vector3.new(90, 0, 90)
  132. Part4.Anchored = true
  133. Part4.CanCollide = false
  134. Part4.Size = Vector3.new(0.611639202, 0.225373551, 1.02088165)
  135. Part4.CFrame = CFrame.new(-69.9085007, 0.510469019, -132.243164, 0, -1, 0, 0, 0, -1, 1, 0, 0)
  136. Part4.Position = Vector3.new(-69.9085007, 0.510469019, -132.243164)
  137. Part4.Orientation = Vector3.new(90, -90, 0)
  138. SpecialMesh5.Parent = Part4
  139. SpecialMesh5.MeshId = "rbxassetid://777172237"
  140. SpecialMesh5.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  141. SpecialMesh5.TextureId = "rbxassetid://777384640"
  142. SpecialMesh5.MeshType = Enum.MeshType.FileMesh
  143. SpecialMesh5.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  144. Part6.Name = "Carry Handle and Bipod"
  145. Part6.Parent = Tool0
  146. Part6.Material = Enum.Material.Fabric
  147. Part6.Rotation = Vector3.new(90, 0, 90)
  148. Part6.Anchored = true
  149. Part6.CanCollide = false
  150. Part6.Size = Vector3.new(1.56262827, 0.330295652, 0.420204818)
  151. Part6.CFrame = CFrame.new(-69.9754944, 0.999993026, -133.226105, 0, -1, 0, 0, 0, -1, 1, 0, 0)
  152. Part6.Position = Vector3.new(-69.9754944, 0.999993026, -133.226105)
  153. Part6.Orientation = Vector3.new(90, -90, 0)
  154. SpecialMesh7.Parent = Part6
  155. SpecialMesh7.MeshId = "rbxassetid://777123880"
  156. SpecialMesh7.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  157. SpecialMesh7.TextureId = "rbxassetid://777364176"
  158. SpecialMesh7.MeshType = Enum.MeshType.FileMesh
  159. SpecialMesh7.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  160. Part8.Name = "Sights"
  161. Part8.Parent = Tool0
  162. Part8.Material = Enum.Material.Concrete
  163. Part8.Rotation = Vector3.new(90, 0, 90)
  164. Part8.Anchored = true
  165. Part8.CanCollide = false
  166. Part8.Size = Vector3.new(2.59750986, 0.225373551, 0.46276167)
  167. Part8.CFrame = CFrame.new(-69.9239273, 1.20390105, -132.700882, 0, -1, 0, 0, 0, -1, 1, 0, 0)
  168. Part8.Position = Vector3.new(-69.9239273, 1.20390105, -132.700882)
  169. Part8.Orientation = Vector3.new(90, -90, 0)
  170. SpecialMesh9.Parent = Part8
  171. SpecialMesh9.MeshId = "rbxassetid://777163506"
  172. SpecialMesh9.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  173. SpecialMesh9.TextureId = "rbxassetid://777369857"
  174. SpecialMesh9.MeshType = Enum.MeshType.FileMesh
  175. SpecialMesh9.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  176. ManualWeld10.Name = "Sights-to-Handle Strong Joint"
  177. ManualWeld10.Parent = Part8
  178. ManualWeld10.C0 = CFrame.new(-1.29875493, -0.112686776, 0.231380835, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  179. ManualWeld10.C1 = CFrame.new(0.150893211, 0.0998110771, -2.60734558, 1.29999999e-05, -1, 0, -0.00598000083, -7.77400047e-08, -0.999982119, 0.999982119, 1.29997679e-05, -0.0059800013)
  180. ManualWeld10.Part0 = Part8
  181. ManualWeld10.Part1 = Part64
  182. Part11.Name = "Lower receiver"
  183. Part11.Parent = Tool0
  184. Part11.Material = Enum.Material.Concrete
  185. Part11.Rotation = Vector3.new(90, 0, 90)
  186. Part11.Anchored = true
  187. Part11.CanCollide = false
  188. Part11.Size = Vector3.new(2.53263402, 0.225373551, 0.633969903)
  189. Part11.CFrame = CFrame.new(-69.8992004, 0.955765009, -132.50531, 0, -1, 0, 0, 0, -1, 1, 0, 0)
  190. Part11.Position = Vector3.new(-69.8992004, 0.955765009, -132.50531)
  191. Part11.Orientation = Vector3.new(90, -90, 0)
  192. SpecialMesh12.Parent = Part11
  193. SpecialMesh12.MeshId = "rbxassetid://777158802"
  194. SpecialMesh12.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  195. SpecialMesh12.TextureId = "rbxassetid://777342509"
  196. SpecialMesh12.MeshType = Enum.MeshType.FileMesh
  197. SpecialMesh12.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  198. Part13.Name = "Handguard"
  199. Part13.Parent = Tool0
  200. Part13.Material = Enum.Material.Concrete
  201. Part13.Rotation = Vector3.new(90, 0, 90)
  202. Part13.Anchored = true
  203. Part13.CanCollide = false
  204. Part13.Size = Vector3.new(0.91803354, 0.263795912, 0.339953363)
  205. Part13.CFrame = CFrame.new(-69.9229889, 1.040447, -133.015335, 0, -1, 0, 0, 0, -1, 1, 0, 0)
  206. Part13.Position = Vector3.new(-69.9229889, 1.040447, -133.015335)
  207. Part13.Orientation = Vector3.new(90, -90, 0)
  208. SpecialMesh14.Parent = Part13
  209. SpecialMesh14.MeshId = "rbxassetid://777126216"
  210. SpecialMesh14.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  211. SpecialMesh14.TextureId = "rbxassetid://777479988"
  212. SpecialMesh14.MeshType = Enum.MeshType.FileMesh
  213. SpecialMesh14.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  214. Part15.Name = "FakeGrip"
  215. Part15.Parent = Tool0
  216. Part15.Material = Enum.Material.Concrete
  217. Part15.Rotation = Vector3.new(90, 0, 90)
  218. Part15.Anchored = true
  219. Part15.CanCollide = false
  220. Part15.Size = Vector3.new(0.639974177, 0.225373551, 0.605908811)
  221. Part15.CFrame = CFrame.new(-69.9085007, 0.618148029, -131.535614, 0, -1, 0, 0, 0, -1, 1, 0, 0)
  222. Part15.Position = Vector3.new(-69.9085007, 0.618148029, -131.535614)
  223. Part15.Orientation = Vector3.new(90, -90, 0)
  224. SpecialMesh16.Parent = Part15
  225. SpecialMesh16.MeshId = "rbxassetid://777114867"
  226. SpecialMesh16.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  227. SpecialMesh16.TextureId = "rbxassetid://777375519"
  228. SpecialMesh16.MeshType = Enum.MeshType.FileMesh
  229. SpecialMesh16.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  230. Part17.Name = "Barrel"
  231. Part17.Parent = Tool0
  232. Part17.Material = Enum.Material.Concrete
  233. Part17.Rotation = Vector3.new(90, 0, 90)
  234. Part17.Anchored = true
  235. Part17.CanCollide = false
  236. Part17.Size = Vector3.new(2.24157023, 0.225373551, 0.225373551)
  237. Part17.CFrame = CFrame.new(-69.9085007, 1.06779695, -133.758286, 0, -1, 0, 0, 0, -1, 1, 0, 0)
  238. Part17.Position = Vector3.new(-69.9085007, 1.06779695, -133.758286)
  239. Part17.Orientation = Vector3.new(90, -90, 0)
  240. SpecialMesh18.Parent = Part17
  241. SpecialMesh18.MeshId = "rbxassetid://777120329"
  242. SpecialMesh18.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  243. SpecialMesh18.TextureId = "rbxassetid://777358188"
  244. SpecialMesh18.MeshType = Enum.MeshType.FileMesh
  245. SpecialMesh18.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  246. Part19.Name = "Barrier"
  247. Part19.Parent = Tool0
  248. Part19.Material = Enum.Material.Concrete
  249. Part19.Rotation = Vector3.new(90, 0, 90)
  250. Part19.Anchored = true
  251. Part19.CanCollide = false
  252. Part19.Size = Vector3.new(0.426093042, 0.225373551, 0.225373551)
  253. Part19.CFrame = CFrame.new(-69.8584976, 1.17568004, -132.267441, 0, -1, 0, 0, 0, -1, 1, 0, 0)
  254. Part19.Position = Vector3.new(-69.8584976, 1.17568004, -132.267441)
  255. Part19.Orientation = Vector3.new(90, -90, 0)
  256. SpecialMesh20.Parent = Part19
  257. SpecialMesh20.MeshId = "rbxassetid://777196460"
  258. SpecialMesh20.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  259. SpecialMesh20.TextureId = "rbxassetid://777328045"
  260. SpecialMesh20.MeshType = Enum.MeshType.FileMesh
  261. SpecialMesh20.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  262. Sound21.Name = "BoltForward"
  263. Sound21.Parent = Part19
  264. Sound21.SoundId = "rbxassetid://393678926"
  265. Sound21.Volume = 1
  266. Sound22.Name = "BoltBack"
  267. Sound22.Parent = Part19
  268. Sound22.SoundId = "rbxassetid://393678915"
  269. Sound22.Volume = 1
  270. Part23.Name = "AimPart"
  271. Part23.Parent = Tool0
  272. Part23.Material = Enum.Material.SmoothPlastic
  273. Part23.BrickColor = BrickColor.new("Electric blue")
  274. Part23.Transparency = 1
  275. Part23.Anchored = true
  276. Part23.CanCollide = false
  277. Part23.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
  278. Part23.CFrame = CFrame.new(-69.9064178, 1.38265896, -131.35582, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  279. Part23.BottomSurface = Enum.SurfaceType.Smooth
  280. Part23.TopSurface = Enum.SurfaceType.Smooth
  281. Part23.Color = Color3.new(0.0352941, 0.537255, 0.811765)
  282. Part23.Position = Vector3.new(-69.9064178, 1.38265896, -131.35582)
  283. Part23.Color = Color3.new(0.0352941, 0.537255, 0.811765)
  284. Part24.Name = "SmokePart"
  285. Part24.Parent = Tool0
  286. Part24.Material = Enum.Material.SmoothPlastic
  287. Part24.BrickColor = BrickColor.new("Really black")
  288. Part24.Reflectance = 0.30000001192093
  289. Part24.Transparency = 1
  290. Part24.Rotation = Vector3.new(-90.3399963, 90, 0)
  291. Part24.Anchored = true
  292. Part24.CanCollide = false
  293. Part24.FormFactor = Enum.FormFactor.Custom
  294. Part24.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  295. Part24.CFrame = CFrame.new(-69.9089966, 1.06799996, -134.843994, 0, -1.30000017e-05, 1, -0.999982119, -0.00597900152, -7.7727023e-08, 0.00597900106, -0.999982119, -1.29997698e-05)
  296. Part24.BottomSurface = Enum.SurfaceType.Smooth
  297. Part24.TopSurface = Enum.SurfaceType.Smooth
  298. Part24.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  299. Part24.Position = Vector3.new(-69.9089966, 1.06799996, -134.843994)
  300. Part24.Orientation = Vector3.new(0, 90, -90.3399963)
  301. Part24.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  302. BillboardGui25.Parent = Part24
  303. BillboardGui25.Size = UDim2.new(2, 0, 2, 0)
  304. BillboardGui25.Enabled = false
  305. ImageLabel26.Name = "Flash"
  306. ImageLabel26.Parent = BillboardGui25
  307. ImageLabel26.Transparency = 1
  308. ImageLabel26.Size = UDim2.new(1, 1, 1, 1)
  309. ImageLabel26.BackgroundTransparency = 1
  310. ImageLabel26.BorderSizePixel = 0
  311. ImageLabel26.ClipsDescendants = true
  312. ImageLabel26.Image = "http://www.roblox.com/asset/?id=131435802"
  313. PointLight27.Parent = Part24
  314. PointLight27.Color = Color3.new(1, 0.988235, 0.870588)
  315. PointLight27.Enabled = false
  316. PointLight27.Range = 30
  317. PointLight27.Shadows = true
  318. PointLight27.Color = Color3.new(1, 0.988235, 0.870588)
  319. Part28.Name = "Grip"
  320. Part28.Parent = Tool0
  321. Part28.Material = Enum.Material.SmoothPlastic
  322. Part28.BrickColor = BrickColor.new("Electric blue")
  323. Part28.Transparency = 1
  324. Part28.Anchored = true
  325. Part28.CanCollide = false
  326. Part28.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
  327. Part28.CFrame = CFrame.new(-69.8800049, 1.04155803, -131.814987, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  328. Part28.BottomSurface = Enum.SurfaceType.Smooth
  329. Part28.TopSurface = Enum.SurfaceType.Smooth
  330. Part28.Color = Color3.new(0.0352941, 0.537255, 0.811765)
  331. Part28.Position = Vector3.new(-69.8800049, 1.04155803, -131.814987)
  332. Part28.Color = Color3.new(0.0352941, 0.537255, 0.811765)
  333. Sound29.Name = "Click"
  334. Sound29.Parent = Part28
  335. Sound29.SoundId = "http://www.roblox.com/asset/?id=265275510"
  336. Sound29.Volume = 1
  337. Sound30.Name = "M3"
  338. Sound30.Parent = Part28
  339. Sound30.SoundId = "http://www.roblox.com/asset/?id=166238161"
  340. Sound31.Name = "MagIn"
  341. Sound31.Parent = Part28
  342. Sound31.SoundId = "http://roblox.com/asset/?id=166238223"
  343. Sound31.Volume = 0.20000000298023
  344. Sound32.Name = "MagOut"
  345. Sound32.Parent = Part28
  346. Sound32.SoundId = "http://roblox.com/asset/?id=166238177"
  347. Sound32.Volume = 0.20000000298023
  348. Part33.Name = "LaserLight"
  349. Part33.Parent = Tool0
  350. Part33.Material = Enum.Material.Neon
  351. Part33.BrickColor = BrickColor.new("Really red")
  352. Part33.Transparency = 1
  353. Part33.Rotation = Vector3.new(-90, -90, 0)
  354. Part33.CanCollide = false
  355. Part33.FormFactor = Enum.FormFactor.Custom
  356. Part33.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  357. Part33.CFrame = CFrame.new(-69.9198685, 0.979876995, -133.35849, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  358. Part33.Color = Color3.new(1, 0, 0)
  359. Part33.Position = Vector3.new(-69.9198685, 0.979876995, -133.35849)
  360. Part33.Orientation = Vector3.new(0, -90, 90)
  361. Part33.Color = Color3.new(1, 0, 0)
  362. CylinderMesh34.Parent = Part33
  363. CylinderMesh34.Offset = Vector3.new(0, 100, 0)
  364. CylinderMesh34.Scale = Vector3.new(0.0500000007, 1000, 0.0500000007)
  365. CylinderMesh34.Scale = Vector3.new(0.0500000007, 1000, 0.0500000007)
  366. Part35.Name = "LaserThing"
  367. Part35.Parent = Tool0
  368. Part35.Material = Enum.Material.Neon
  369. Part35.BrickColor = BrickColor.new("Really black")
  370. Part35.Transparency = 0.5
  371. Part35.Anchored = true
  372. Part35.CanCollide = false
  373. Part35.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
  374. Part35.CFrame = CFrame.new(-69.9133301, 0.977980971, -133.348953, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  375. Part35.BottomSurface = Enum.SurfaceType.Smooth
  376. Part35.TopSurface = Enum.SurfaceType.Smooth
  377. Part35.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  378. Part35.Position = Vector3.new(-69.9133301, 0.977980971, -133.348953)
  379. Part35.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  380. LocalScript36.Name = "DDM4"
  381. LocalScript36.Parent = Tool0
  382. table.insert(cors,sandbox(LocalScript36,function()
  383. sp = script.Parent
  384. if not _G.MouseSensitivity then
  385. _G.MouseSensitivity = 1
  386. end
  387. CamCon = nil
  388. local tool = script.Parent
  389.  
  390. local flashListBig = { -- List of image IDs for Muzzleflash -- big
  391. "131435802",
  392. "131435817",
  393. "131435825",
  394. }
  395.  
  396. script:WaitForChild("StoredAmmo").Value = math.huge
  397.  
  398. Mesh = false -- If true will load BC 2.0 Arm meshes as well.
  399. Shirt = true -- If true will load the user's shirt to the arms as well
  400.  
  401. function onEquipped(mouse)
  402. local Player = game:GetService("Players").LocalPlayer
  403. local Cam = game.Workspace.CurrentCamera
  404.  
  405. local Arms = Instance.new("Model")
  406. Arms.Name = "Arms"
  407. Arms.Parent = Cam
  408.  
  409. if Shirt == true then
  410. local Humanoid = Instance.new("Humanoid")
  411. Humanoid.MaxHealth = 0
  412. Humanoid.Health = 0
  413. Humanoid.Name = ""
  414. Humanoid.Parent = Arms
  415. local newShirt = Player.Character:FindFirstChild("Shirt")
  416. if newShirt then
  417. newShirt = newShirt:clone()
  418. newShirt.Parent = Arms
  419. end
  420. else end
  421.  
  422. local RightArm = Player.Character:FindFirstChild("Right Arm"):clone()
  423. RightArm.Name = "Right Arm"
  424. RightArm.Transparency = 0
  425.  
  426. local w = Instance.new("Weld")
  427. w.Part0 = RightArm
  428. w.Part1 = Player.Character:FindFirstChild("Right Arm")
  429. w.C0 = CFrame.new()
  430. w.C1 = CFrame.new()
  431. w.Parent = RightArm
  432. RightArm.Parent = Arms
  433.  
  434. local LeftArm = Player.Character:FindFirstChild("Left Arm"):clone()
  435. LeftArm.Name = "Left Arm"
  436. LeftArm.Transparency = 0
  437.  
  438. local w = Instance.new("Weld")
  439. w.Part0 = LeftArm
  440. w.Part1 = Player.Character:FindFirstChild("Left Arm")
  441. w.C0 = CFrame.new()
  442. w.C1 = CFrame.new()
  443. w.Parent = LeftArm
  444. LeftArm.Parent = Arms
  445.  
  446. if Mesh ~= false then
  447. local LeftArmMesh = script:FindFirstChild("LeftArm")
  448. LeftArmMesh.Parent = LeftArm
  449. local RightArmMesh = script:FindFirstChild("RightArm")
  450. RightArmMesh.Parent = RightArm
  451. else end
  452.  
  453. end
  454.  
  455. function onUnequipped(mouse)
  456. local Player = game:GetService("Players").LocalPlayer
  457. local Cam = game.Workspace.CurrentCamera
  458. for _, Model in pairs(Cam:GetChildren()) do
  459. if Model.Name == "Arms" then
  460. Model:remove()
  461. else end
  462. end
  463. end
  464.  
  465. sp.Equipped:connect(onEquipped)
  466. sp.Unequipped:connect(onUnequipped)
  467.  
  468. wait(0.5)
  469. --Made by YouTubes--
  470. --Edit settings below--
  471. local Tool = script.Parent
  472. local Settings = {
  473. Range = 1000
  474. ,Spread = 8
  475. ,Damage = {25, 40}
  476. ,HeadShotDamage = {70, 75}
  477. ,Bullets = 1
  478. ,FireRate = 0.12
  479. ,Automatic = true
  480. ,AntiTK = true
  481. ,ImpactDuration = 1
  482. --Reload
  483. ,ReloadKey = "R"
  484. ,ReloadTime = 1.83
  485. ,Ammo = 30
  486. ,IncludeChamberedBullet = true
  487. --Gui
  488. ,GuiPos = Vector2.new(script.Gui.Frame.Position.X.Scale, script.Gui.Frame.Position.Y.Scale)
  489. --Arms
  490. ,OneHanded = false
  491. ,FakeArms = false
  492. ,FakeArmTransparency = 1
  493. -- (+Left to -Right, +Fward to -Bward, +Up to -Down) (+Up to -Down, +Left to -Right, +Counter to -Clock)
  494. ,RightPos = CFrame.new(-0.75, -0.25, 0.45) * CFrame.Angles(math.rad(-90), 0, 0)
  495. ,LeftPos = CFrame.new(0.8, 1.01, 0.38) * CFrame.Angles(math.rad(-90), math.rad(27), math.rad(0), 0)
  496. ,AimPart = Tool.AimPart
  497. ,AimPartOffset = CFrame.new()
  498. ,AimGripOffset = Vector3.new(0, 0, 0)
  499. ,LeftAimPos = CFrame.new(1, 1.01, 0.4) * CFrame.Angles(math.rad(-95), math.rad(20), math.rad(0), 00)
  500. ,AimAnim = {
  501. Enabled = false
  502. ,Frames = 50
  503. ,Time = 0.1
  504. }
  505. ,ChangeFOV = {true, 45}
  506. ,SpreadReduction = 7.5
  507. --Weld
  508. ,Weld = true
  509. --Mouse
  510. ,Icons = {
  511. Idle = "rbxasset://textures/Blank.png"
  512. ,Fire1 = "rbxasset://textures/Blank.png"
  513. ,Fire2 = "rbxasset://textures/Blank.png"
  514. ,Fire3 = "rbxasset://textures/Blank.png"
  515. ,Reload = "rbxasset://textures/Blank.png"
  516. ,Aim = "rbxasset://textures/Blank.png"
  517. }
  518. ,FireMouseAnimTime = 0.15
  519. --Recoil
  520. ,Recoil = math.rad(.8)
  521. --Smoke
  522. ,Smoke = true
  523. ,SmokePart = Tool.SmokePart
  524. ,Smokes = {{script.Smoke, 6, 0.01}, {script.Smoke1, 0.01}, {script.Smoke2, 0.01}}
  525. --Sprint
  526. ,Sprint = true
  527. ,SprintSpeed = 20
  528. ,SprintKey = "0"
  529. ,SprintSpreadIncrease = 40
  530. ,SprintArmOffset = CFrame.new(0.25, -0.1, -0.25) * CFrame.Angles(math.rad(-25), math.rad(20), 0)
  531. --Other
  532. ,DropHats = true
  533.  
  534. }
  535.  
  536. -- Change how you want the shell casing to look here.
  537. local Shell = Instance.new("Part")
  538. Shell.BrickColor = BrickColor.new(24)
  539. Shell.Name = "Shell"
  540. Shell.Locked = true
  541. Shell.formFactor = 3
  542. Shell.CanCollide = true
  543. Shell.Size = Vector3.new(.2,.2,.2)
  544. --Shell.Parent = game.Workspace
  545. local ShellMesh = Instance.new("CylinderMesh")
  546. ShellMesh.Scale = Vector3.new(0.30, 1, 0.30)
  547.  
  548. --Do not edit below this lign--
  549.  
  550. local Orig_Spread = Settings.Spread
  551. local Orig_Grip = Tool.GripPos
  552.  
  553. local Player = game.Players.LocalPlayer
  554. repeat wait() until Player.Character and Player.Character.Parent and Player.Character.Parent == game.Workspace
  555. local Character = Player.Character
  556.  
  557. local Camera = Workspace.CurrentCamera
  558.  
  559. local Ammo, StoredAmmo = script.Ammo, script.StoredAmmo
  560.  
  561. local Gui, CanUpdateGui = nil, true
  562.  
  563. local Sprinting, Equipped
  564.  
  565. function Update_Gui()
  566. if Gui and CanUpdateGui then
  567. Gui.Frame.AmmoDisplay.Text = Ammo.Value
  568. Gui.Frame.StoredAmmoDisplay.Text = StoredAmmo.Value
  569. Gui.Frame.GunName.Text = Tool.Name
  570. Gui.Frame.GunTip3.Visible = true
  571. end
  572. end
  573.  
  574. local Welded
  575. if Settings.Weld then
  576. Delay(0, function()
  577. local weldC0s = {}
  578. for i, v in pairs(Tool:GetChildren()) do
  579. if v:IsA("BasePart") and v ~= Tool.Handle then
  580. table.insert(weldC0s, {v, Tool.Handle.CFrame:toObjectSpace(v.CFrame)})
  581. v.Anchored = false
  582. end
  583. end
  584. Tool.Handle.Anchored = false
  585. local welds = {}
  586. Tool.Equipped:connect(function()
  587. for i, v in ipairs(welds) do
  588. v.Part1 = nil
  589. v:Destroy()
  590. end
  591. for i, v in ipairs(weldC0s) do
  592. if v[1] and v[2] then
  593. local w = Instance.new("Weld", Tool.Handle)
  594. w.Part0 = Tool.Handle
  595. w.Part1 = v[1]
  596. w.C0 = v[2]
  597. table.insert(welds, w)
  598. end
  599. end
  600. end)
  601. wait()
  602. Welded = true
  603. end)
  604. end
  605.  
  606. local Left_Weld, Right_Weld
  607.  
  608. Ammo.Changed:connect(Update_Gui)
  609. StoredAmmo.Changed:connect(Update_Gui)
  610.  
  611. Settings.Range = math.min(Settings.Range, 999)
  612.  
  613. local Ignore_Model = Workspace:FindFirstChild("Ray_Ignore") or Instance.new("Model", Workspace)
  614. Ignore_Model.Name = "Ray_Ignore"
  615.  
  616. local Ray_Ignore = {Character, Ignore_Model, Camera}
  617.  
  618. Character.Humanoid.Died:connect(function()
  619. Tool.Parent = Player.Backpack
  620. end)
  621.  
  622. function convertToCFrameDegrees(xa, ya, za)
  623. return CFrame.Angles(math.rad(xa), math.rad(ya), math.rad(za))
  624. end
  625.  
  626.  
  627. function createShellCasing() -- Hooray for a bullet casing! ~~XAXA
  628. local ShellClone = Shell:Clone()
  629. ShellClone.Parent = Workspace
  630. ShellClone.CFrame = tool.E.CFrame * convertToCFrameDegrees(90,0,0)
  631. ShellClone.Velocity = Vector3.new(0,math.random(10,40),0) + (tool.E.CFrame * convertToCFrameDegrees(0,math.random(-140,-90),0)).lookVector * (math.random(5,25))
  632. ShellClone.RotVelocity = Vector3.new(0,0,(math.random(200,400) / 10))
  633. local ShellMeshClone = ShellMesh:Clone()
  634. ShellMeshClone.Parent = ShellClone
  635. game.Debris:AddItem(ShellClone, 0.3) --Add it to the debris. No script can match this one's reliability.
  636. end
  637.  
  638.  
  639. --FlightTheory_WAS_HERE--
  640. function GetHitInstDataTableFor(Target)
  641. local Target = Target
  642. local DataTable = {
  643. 0, --LightEmission
  644. NumberSequence.new(.5, 1), --Size
  645. 31727915, --Texture *STANDARD SMOKE*
  646. NumberSequence.new(0,0), --Transparency
  647. 0, --ZOffset
  648. Vector3.new(), --Acceleration *WIND EFFECT IDEA???
  649. NumberRange.new(.1,.2), --Lifetime
  650. 500, --Rate
  651. NumberRange.new(0,0), --RotSpeed
  652. NumberRange.new(1,2), --Speed
  653. 360, --VelocitySpread
  654. }
  655. --OriginPos--
  656. DataTable[6] = Character.Head.Position
  657. -------------
  658. if not Target or not Target.Parent then return DataTable end
  659. if Target.Material == Enum.Material.Metal then
  660. DataTable[1] = .25
  661. DataTable[2] = NumberSequence.new(.25, .5)
  662. DataTable[3] = "237909462"
  663. DataTable[10] = NumberRange.new(5,10)
  664. end
  665. if Target.Material == Enum.Material.DiamondPlate then
  666. DataTable[1] = .25
  667. DataTable[2] = NumberSequence.new(.25, .5)
  668. DataTable[3] = "237909462"
  669. DataTable[10] = NumberRange.new(5,10)
  670. end
  671. if Target.Material == Enum.Material.CorrodedMetal then
  672. DataTable[1] = .25
  673. DataTable[2] = NumberSequence.new(.25, .5)
  674. DataTable[3] = "237909462"
  675. DataTable[10] = NumberRange.new(5,10)
  676. end
  677. if Target.Material == Enum.Material.Grass then
  678. DataTable[1] = .25
  679. DataTable[2] = NumberSequence.new(.25, .5)
  680. DataTable[3] = "242493047"
  681. DataTable[10] = NumberRange.new(5,10)
  682. end
  683. if Target.Parent:FindFirstChild("Humanoid") then
  684. DataTable[2] = NumberSequence.new(.2, .4)
  685. DataTable[3] = "25161378"
  686. DataTable[10] = NumberRange.new(0,0)
  687. end
  688. DataTable[3] = "http://www.roblox.com/asset/?id="..DataTable[3]
  689. return DataTable
  690. end
  691. function HitInst(HitPos, Data, Effect)
  692. local HitPos, Data, Effect = HitPos, Data, Effect
  693. if Effect == nil then
  694. Effect = Instance.new("Part", Workspace["Ray_Ignore"])
  695. game.Debris:AddItem(Effect, .2)
  696. Effect.Name = "Effect"
  697. Effect.FormFactor = "Custom"
  698. Effect.Size = Vector3.new()
  699. Effect.Transparency = 1
  700. Effect.CanCollide = false
  701. Effect.Anchored = true
  702. Effect.CFrame = CFrame.new(HitPos)
  703. end
  704. local Emitter = Instance.new("ParticleEmitter", Effect)
  705. Emitter.LightEmission = Data[1]
  706. Emitter.Size = Data[2]
  707. Emitter.Texture = Data[3]
  708. Emitter.Transparency = Data[4]
  709. Emitter.ZOffset = Data[5]
  710. Emitter.Acceleration = Data[6]
  711. Emitter.Lifetime = Data[7]
  712. Emitter.Rate = Data[8]
  713. Emitter.Rotation = NumberRange.new(1,360) --START AT RANDOM ROTATION
  714. Emitter.RotSpeed = Data[9]
  715. Emitter.Speed = Data[10]
  716. Emitter.VelocitySpread = Data[11]
  717. delay(.1, function()
  718. if Emitter and Emitter.Parent then -- "JUST IN CASE" `GTA V Refference
  719. Emitter.Enabled = false
  720. end
  721. end)
  722. end
  723. -------------------------
  724.  
  725. function Fire(Mouse)
  726. local Spread = CFrame.Angles(math.rad(math.random(-Settings.Spread, Settings.Spread)/10), math.rad(math.random(-Settings.Spread, Settings.Spread)/10), math.rad(math.random(-Settings.Spread, Settings.Spread)/10))
  727. local Ray = Ray.new(Character.Head.Position, (CFrame.new(Character.Head.Position, Mouse.Hit.p) * Spread).lookVector.unit * Settings.Range)
  728. local Hit, Pos = Workspace:FindPartOnRayWithIgnoreList(Ray, Ray_Ignore)
  729. tool.SmokePart.PointLight.Enabled = true
  730. tool.SmokePart.BillboardGui.Flash.Image = "http://www.roblox.com/asset/?id="..flashListBig[math.random(1,#flashListBig)]
  731. tool.SmokePart.BillboardGui.Enabled = true
  732. wait()
  733. tool.SmokePart.PointLight.Enabled = false
  734. tool.SmokePart.BillboardGui.Enabled = false
  735. local Hit_Part
  736. if Hit and Hit.Parent:FindFirstChild("Humanoid") then
  737. local Hit_Player = game.Players:GetPlayerFromCharacter(Hit.Parent)
  738. if Settings.AntiTK and not Hit_Player.Neutral and Hit_Player.TeamColor == Player.TeamColor then
  739. return
  740. end
  741. local Humanoid = Hit.Parent.Humanoid
  742. local c = Instance.new("ObjectValue")
  743. c.Name = "creator"
  744. c.Value = Player
  745. game.Debris:AddItem(c, 3)
  746. c.Parent = Humanoid
  747. if Hit.Name == "Head" then
  748. Humanoid.Health = Humanoid.Health - math.random(Settings.HeadShotDamage[1], Settings.HeadShotDamage[2])
  749. else
  750. Humanoid.Health = Humanoid.Health - math.random(Settings.Damage[1], Settings.Damage[2])
  751. end
  752. elseif Hit and Hit.Parent and Hit.Parent.Parent and Hit.Parent.Parent:FindFirstChild("Humanoid") then
  753. local Hit_Player = game.Players:GetPlayerFromCharacter(Hit.Parent.Parent)
  754. if Settings.AntiTK and not Hit_Player.Neutral and Hit_Player.TeamColor == Player.TeamColor then
  755. return
  756. end
  757. local Humanoid = Hit.Parent.Parent.Humanoid
  758. local c = Instance.new("ObjectValue")
  759. c.Name = "creator"
  760. c.Value = Player
  761. game.Debris:AddItem(c, 3)
  762. c.Parent = Humanoid
  763. if Hit.Name == "Head" then
  764. Humanoid.Health = Humanoid.Health - math.random(Settings.HeadShotDamage[1], Settings.HeadShotDamage[2])
  765. else
  766. Humanoid.Health = Humanoid.Health - math.random(Settings.Damage[1], Settings.Damage[2])
  767. end
  768. elseif Hit then
  769. Hit_Part = Instance.new("Part", Ignore_Model)
  770. Hit_Part.FormFactor = "Custom"
  771. Hit_Part.TopSurface = 0
  772. Hit_Part.BottomSurface = 0
  773. Hit_Part.Anchored = true
  774. Hit_Part.CanCollide = false
  775. Hit_Part.Size = Vector3.new()
  776. Hit_Part.CFrame = CFrame.new(Pos) * CFrame.Angles(math.random(0, 360), math.random(0, 360), math.random(0, 360))
  777. Hit_Part.BrickColor = BrickColor.new("Really black")
  778. Hit_Part.Material = "Metal"
  779. local Holyy = Instance.new("Sound")
  780. Holyy.Name = "Cracks"
  781. Holyy.SoundId = "rbxassetid://151284431"
  782. Holyy.Volume = 0.3
  783. Holyy.Pitch = 2
  784. Holyy.Parent = Hit_Part
  785.  
  786. Holyy:play()
  787.  
  788. local Cur = Instance.new("SpecialMesh",Hit_Part)
  789. Cur.MeshType = "Sphere"
  790. Cur.Scale = Vector3.new(0.5,0.5,0.5)
  791.  
  792. createShellCasing()
  793.  
  794. game.Debris:AddItem(Hit_Part, Settings.ImpactDuration)
  795. if not Hit.Anchored then
  796. local w = Instance.new("Weld", Hit_Part)
  797. w.Part0 = Hit
  798. w.Part1 = Hit_Part
  799. w.C0 = Hit.CFrame:toObjectSpace(Hit_Part.CFrame)
  800. Hit_Part.Anchored = false
  801. end
  802. if Hit.Parent:IsA("Hat") and Settings.DropHats then
  803. Hit.Parent.Parent = workspace
  804. game.Debris:AddItem(Hit, 3)
  805.  
  806. end
  807. end
  808. --
  809. HitInst(Pos, GetHitInstDataTableFor(Hit), Hit_Part)
  810. --
  811. end
  812.  
  813. local Can_Shoot = true
  814. local Reloading = false
  815.  
  816. local First_Person = false
  817.  
  818. local DB = false
  819. local Mouse_Held
  820.  
  821. Tool.Equipped:connect(function(Mouse)
  822. local Mouse = Mouse
  823. Player.CameraMode = "LockFirstPerson"
  824. Equipped = true
  825. if Settings.Weld and not Welded then
  826. wait()
  827. Tool.Parent = Player.Backpack
  828. end
  829. Character = Player.Character
  830. if Gui then
  831. return
  832. end
  833. Ray_Ignore = {Character, Ignore_Model, Camera}
  834. Mouse.Icon = Settings.Icons.Idle
  835. Gui = script.Gui:Clone()
  836. Gui.Parent = Player.PlayerGui
  837. Gui.Frame.Position = UDim2.new(Settings.GuiPos.X, Gui.Frame.Position.X.Offset, 1.1, Gui.Frame.Position.Y.Offset)
  838. Gui.Frame:TweenPosition(UDim2.new(Settings.GuiPos.X, Gui.Frame.Position.X.Offset, Settings.GuiPos.Y, Gui.Frame.Position.Y.Offset), "Out", "Bounce", 1)
  839. CanUpdateGui = true
  840. Update_Gui()
  841. Mouse.Button1Down:connect(function()
  842. if DB then return end
  843. DB = true
  844. if Can_Shoot and Ammo.Value > 0 and Character.Humanoid.Health > 0 and not Reloading then
  845. Mouse_Held = true
  846. while true do
  847. if Tool.Parent ~= Character then break end
  848. if Character.Humanoid.Health <= 0 or Reloading then break end
  849. Can_Shoot = false
  850. Delay(0, function()
  851. local t = math.min(Settings.FireMouseAnimTime/3, Settings.FireRate/3)
  852. if not Aiming then
  853. Mouse.Icon = Settings.Icons.Fire1
  854. end
  855. wait(t)
  856. if not Aiming then
  857. if Reloading then return end
  858. Mouse.Icon = Settings.Icons.Fire2
  859. end
  860. wait(t)
  861. if not Aiming then
  862. if Reloading then return end
  863. Mouse.Icon = Settings.Icons.Fire3
  864. end
  865. wait(t)
  866. if not Aiming then
  867. if Reloading then return end
  868. Mouse.Icon = Settings.Icons.Idle
  869. end
  870. end)
  871. for _ = 1, Settings.Bullets do
  872. Delay(0, function()
  873. Fire(Mouse, RANGE, SPEED, DROP)
  874. end)
  875. end
  876.  
  877. Delay(0, function()
  878. local r = math.abs(Settings.Recoil)
  879. local ran = math.random(-1, 1)
  880. Camera.CoordinateFrame = CFrame.new(Camera.Focus.p) * (Camera.CoordinateFrame - Camera.CoordinateFrame.p) * CFrame.Angles(r, r*ran, 0) * CFrame.new(0, 0, (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude)
  881. local c = -r/20
  882. local cx = -(r*ran)/20
  883. for i = 1, math.random(15, 25) do
  884. if EquipId == curId then
  885. Camera.CoordinateFrame = CFrame.new(Camera.Focus.p) * (Camera.CoordinateFrame - Camera.CoordinateFrame.p) * CFrame.Angles(c, cx, 0) * CFrame.new(0, 0, (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude)
  886. wait()
  887. else
  888. break
  889. end
  890. end
  891. end)
  892. if Tool.Handle:FindFirstChild("Shoot") then
  893. Tool.Handle.Shoot:Play()
  894. end
  895. Ammo.Value = Ammo.Value - 1
  896. Tool.Bolt.Mesh.Offset = Vector3.new(0, 0.35, 0)
  897. wait(Settings.FireRate)
  898. Tool.Bolt.Mesh.Offset = Vector3.new(0, 0, 0)
  899. if not Settings.Automatic or Ammo.Value <= 0 or Character.Humanoid.Health <= 0 or not Mouse_Held then
  900. break
  901. end
  902. end
  903. Can_Shoot = true
  904. elseif Can_Shoot and Character.Humanoid.Health > 0 and Tool.Handle:FindFirstChild("Click") then
  905. Tool.Handle.Click:Play()
  906. end
  907. DB = false
  908. end)
  909. Mouse.Button1Up:connect(function()
  910. Mouse_Held = false
  911. end)
  912. Mouse.KeyDown:connect(function(Key)
  913. if Key:upper() == Settings.ReloadKey:upper() and Can_Shoot and StoredAmmo.Value > 0 and not Aiming then
  914. if Settings.IncludeChamberedBullet and Ammo.Value == Settings.Ammo + 1 or not Settings.IncludeChamberedBullet and Ammo.Value == Settings.Ammo then
  915. return
  916. end
  917. if Reloading then
  918. return
  919. end
  920. Can_Shoot = false
  921. Reloading = true
  922. local TextLabel = Gui.Frame.AmmoDisplay
  923. Delay(0, function()
  924. CanUpdateGui = false
  925. TextLabel.Text = "000"
  926. wait(Settings.ReloadTime/3)
  927. if TextLabel then
  928. TextLabel.Text = "000"
  929. end
  930. wait(Settings.ReloadTime/3)
  931. if TextLabel then
  932. TextLabel.Text = "000"
  933. end
  934. end)
  935. Mouse.Icon = Settings.Icons.Reload
  936. -- (+Left to -Right, +Fward to -Bward, +Up to -Down) (+Up to -Down, +Left to -Right, +Counter to -Clock)
  937. Right_Weld.C1 = CFrame.new(-0.75, -0.2, 0.5) * CFrame.Angles(math.rad(-90), 0, 0.1)
  938. Left_Weld.C1 = CFrame.new(1.2, 0.6, 0.45) * CFrame.Angles(math.rad(-90), math.rad(45), math.rad(0), 0)
  939. wait(.02)
  940. Right_Weld.C1 = CFrame.new(-0.75, -0.15, 0.55) * CFrame.Angles(math.rad(-90), 0, 0.15)
  941. Left_Weld.C1 = CFrame.new(1.2, 0.5, 0.45) * CFrame.Angles(math.rad(-90), math.rad(50), math.rad(0), 0)
  942. wait(.02)
  943. Right_Weld.C1 = CFrame.new(-0.75, -0.1, 0.6) * CFrame.Angles(math.rad(-90), 0, 0.2)
  944. Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.45) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(0), 0)
  945. wait(0.02)
  946.  
  947. Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.40) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(0), 0)
  948. Tool.Handle.MagOut:play()
  949. Tool.PMag.Transparency = 1
  950. Tool.PMag1.Transparency = 1
  951. wait(0.03)
  952. Left_Weld.C1 = CFrame.new(1.2, 0.35, 0.35) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(5), 0)
  953. wait(0.03)
  954. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.30) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(10), 0)
  955. wait(0.03)
  956. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.25) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(15), 0)
  957. wait(0.03)
  958. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.20) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(20), 0)
  959. wait(0.03)
  960. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.15) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(25), 0)
  961. wait(0.03)
  962. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.10) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(30), 0)
  963. wait(0.03)
  964. Left_Weld.C1 = CFrame.new(1.2, 0.25, 0.05) * CFrame.Angles(math.rad(-90), math.rad(60), math.rad(35), 0)
  965. wait(0.03)
  966. Left_Weld.C1 = CFrame.new(1.2, 0.2, 0) * CFrame.Angles(math.rad(-90), math.rad(65), math.rad(40), 0)
  967. wait(0.03)
  968. Left_Weld.C1 = CFrame.new(1.2, 0.15, 0) * CFrame.Angles(math.rad(-90), math.rad(70), math.rad(45), 0)
  969. wait(0.03)
  970. Left_Weld.C1 = CFrame.new(1.2, 0.1, 0) * CFrame.Angles(math.rad(-90), math.rad(75), math.rad(50), 0)
  971. wait(0.5)
  972.  
  973. Left_Weld.C1 = CFrame.new(1.2, 0.1, 0.0) * CFrame.Angles(math.rad(-90), math.rad(75), math.rad(40), 0)
  974. Tool.Handle.MagIn:play()
  975. Tool.PMag.Transparency = 0
  976. Tool.PMag1.Transparency = 0
  977. wait(0.03)
  978. Left_Weld.C1 = CFrame.new(1.2, 0.15, 0.05) * CFrame.Angles(math.rad(-90), math.rad(70), math.rad(35), 0)
  979. wait(0.03)
  980. Left_Weld.C1 = CFrame.new(1.2, 0.2, 0.10) * CFrame.Angles(math.rad(-90), math.rad(65), math.rad(30), 0)
  981. wait(0.03)
  982. Left_Weld.C1 = CFrame.new(1.2, 0.25, 0.15) * CFrame.Angles(math.rad(-90), math.rad(60), math.rad(25), 0)
  983. wait(0.03)
  984. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.20) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(20), 0)
  985. wait(0.03)
  986. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.25) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(15), 0)
  987. wait(0.03)
  988. Right_Weld.C1 = CFrame.new(-0.75, -0.1, 0.6) * CFrame.Angles(math.rad(-90), 0, 0.2)
  989. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.30) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(10), 0)
  990. wait(0.03)
  991. Right_Weld.C1 = CFrame.new(-0.75, -0.15, 0.55) * CFrame.Angles(math.rad(-90), 0, 0.15)
  992. Left_Weld.C1 = CFrame.new(1.2, 0.35, 0.35) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(05), 0)
  993. wait(0.03)
  994. Right_Weld.C1 = CFrame.new(-0.75, -0.2, 0.5) * CFrame.Angles(math.rad(-90), 0, 0.1)
  995. Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.40) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(0), 0)
  996. wait(0.03)
  997.  
  998. Right_Weld.C1 = CFrame.new(-0.75, -0.25, 0.45) * CFrame.Angles(math.rad(-90), 0, 0)
  999. Left_Weld.C1 = CFrame.new(0.8, 1.01, 0.38) * CFrame.Angles(math.rad(-90), math.rad(27), math.rad(0), 0)
  1000.  
  1001. Mouse.Icon = Settings.Icons.Idle
  1002. CanUpdateGui = true
  1003. local m = Settings.Ammo
  1004. if Ammo.Value > 0 and Settings.IncludeChamberedBullet then
  1005. m = m + 1
  1006. end
  1007. if (StoredAmmo.Value - (m - Ammo.Value)) <= 0 then
  1008. Ammo.Value = Ammo.Value + StoredAmmo.Value
  1009. StoredAmmo.Value = 0
  1010. else
  1011. StoredAmmo.Value = StoredAmmo.Value - (m - Ammo.Value)
  1012. Ammo.Value = m
  1013. end
  1014. Can_Shoot = true
  1015. Reloading = false
  1016. elseif Key:upper() == Settings.SprintKey:upper() and Settings.Sprint and not Aiming then
  1017. Sprinting = true
  1018. Character.Humanoid.WalkSpeed = Settings.SprintSpeed
  1019. Settings.Spread = Settings.Spread + Settings.SprintSpreadIncrease
  1020. end
  1021. end)
  1022. Mouse.KeyUp:connect(function(Key)
  1023. if Key:upper() == Settings.SprintKey:upper() and Sprinting then
  1024. Sprinting = false
  1025. Character.Humanoid.WalkSpeed = 16
  1026. Settings.Spread = Settings.Spread - Settings.SprintSpreadIncrease
  1027. Right_Weld.C0 = CFrame.new(0, -1.5, 0)
  1028. end
  1029. end)
  1030. Mouse.Button2Down:connect(function()
  1031. if not Reloading and not Sprinting and not Aiming and (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 then
  1032. Aiming = true
  1033. Player.CameraMode = "LockFirstPerson"
  1034. Mouse.WheelBackward:connect(function()
  1035. if _G.MouseSensitivity >= 0.1 then
  1036. _G.MouseSensitivity = _G.MouseSensitivity - 0.1
  1037. wait()
  1038. print(_G.MouseSensitivity)
  1039. end
  1040. end)
  1041. Mouse.WheelForward:connect(function()
  1042. if _G.MouseSensitivity < 2 then
  1043. _G.MouseSensitivity = _G.MouseSensitivity + 0.1
  1044. wait()
  1045. end
  1046. end)
  1047. Mouse.Icon = Settings.Icons.Aim
  1048. if Settings.AimAnim.Enabled then
  1049. Right_Weld.C1 = CFrame.new()
  1050. Right_Weld.C0 = CFrame.new()
  1051. Delay(0, function()
  1052. Tween_C0(Right_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Right_Weld.C0, Character.Head.CFrame:toObjectSpace(Settings.AimPart.CFrame))
  1053. end)
  1054. Delay(0, function()
  1055. Tween_C1(Left_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Left_Weld.C1, Settings.LeftAimPos)
  1056. end)
  1057. Delay(0, function()
  1058. if Settings.ChangeFOV[1] then
  1059. Camera.FieldOfView = 70
  1060. local Cam_Dif, T_F = 70 - Settings.ChangeFOV[2], Settings.AimAnim.Time * Settings.AimAnim.Frames
  1061. for i = 1, T_F do
  1062. local FOV = 70 - Cam_Dif/T_F * i
  1063. Camera.FieldOfView = FOV
  1064. wait(Settings.AimAnim.Time/Settings.AimAnim.Frames)
  1065. if not Aiming then
  1066. return
  1067. end
  1068. end
  1069. Camera.FieldOfView = Settings.ChangeFOV[2]
  1070. end
  1071. end)
  1072. else
  1073. Right_Weld.C1 = CFrame.new()
  1074. Right_Weld.C0 = CFrame.new()
  1075. Right_Weld.C1 = Character.Head.CFrame:toObjectSpace(Settings.AimPart.CFrame)
  1076. Left_Weld.C1 = Settings.LeftAimPos
  1077. if Settings.ChangeFOV[1] then
  1078. Camera.FieldOfView = Settings.ChangeFOV[2]
  1079. end
  1080. end
  1081. Tool.GripPos = Orig_Grip + Settings.AimGripOffset
  1082. Settings.Spread = Settings.Spread - Settings.SpreadReduction
  1083. end
  1084. end)
  1085. Mouse.Button2Up:connect(function()
  1086. if Aiming then
  1087. Player.CameraMode = "LockFirstPerson"
  1088. Mouse.Icon = Settings.Icons.Idle
  1089. Tool.GripPos = Orig_Grip
  1090. if Settings.AimAnim.Enabled then
  1091. Delay(0, function()
  1092. Tween_C0(Right_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Right_Weld.C0, CFrame.new(0, -1.5, 0))
  1093. end)
  1094. Delay(0, function()
  1095. Tween_C1(Left_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Left_Weld.C1, Settings.LeftPos)
  1096. end)
  1097. else
  1098. Right_Weld.C1 = Settings.RightPos
  1099. Right_Weld.C0 = CFrame.new(0, -1.5, 0)
  1100. Left_Weld.C1 = Settings.LeftPos
  1101. end
  1102. if Settings.ChangeFOV[1] then
  1103. Camera.FieldOfView = 70
  1104. end
  1105. Settings.Spread = Settings.Spread + Settings.SpreadReduction
  1106. Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1107. Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1108. wait(0.25)
  1109. Aiming = false
  1110. end
  1111. end)
  1112. wait()
  1113. CamCon = Camera.Changed:connect(function()
  1114. if Mouse and (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 and Equipped then
  1115. Mouse.TargetFilter = workspace
  1116. Character.Torso.Neck.C1 = CFrame.new()
  1117. Character.Torso.Neck.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.asin((Mouse.Hit.p - Mouse.Origin.p).unit.y), 0, 0)
  1118. end
  1119. end)
  1120. Mouse.Idle:connect(function()
  1121. if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 and Equipped then
  1122. Mouse.TargetFilter = workspace
  1123. Character.Torso.Neck.C1 = CFrame.new()
  1124. Character.Torso.Neck.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.asin((Mouse.Hit.p - Mouse.Origin.p).unit.y), 0, 0)
  1125. end
  1126. end)
  1127. while wait() and Equipped do
  1128. if Character.Humanoid.Health <= 0 then break end
  1129. if Sprinting then
  1130. Can_Shoot = false
  1131. Right_Weld.C0 = CFrame.new(0, -1.5, 0) * Settings.SprintArmOffset
  1132. Left_Weld.C0 = CFrame.new(0, -1.5, 0) * Settings.SprintArmOffset
  1133. elseif not Aiming and not Sprinting then
  1134. Can_Shoot = true
  1135. Left_Weld.C0 = CFrame.new(0, -1.5, 0)
  1136. end
  1137. if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude > 1 and Equipped then
  1138. Mouse.TargetFilter = nil
  1139. Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1140. Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1141. end
  1142. end
  1143. end)
  1144.  
  1145. local Arms_Made
  1146. local Fake_Arm_Right, Fake_Arm_Left, Fake_Arm_Model
  1147.  
  1148. Tool.Equipped:connect(function(Mouse)
  1149. if Character and not Arms_Made then
  1150. Arms_Made = true
  1151. local Torso = Character.Torso
  1152. Torso["Right Shoulder"].Part1 = nil
  1153. Left_Weld = Instance.new("Weld", Torso)
  1154. Left_Weld.Name = "Left_Weld"
  1155. Left_Weld.Part0 = Character.Head
  1156. Left_Weld.C0 = CFrame.new(0, -1.5, 0)
  1157. if not Settings.OneHanded then
  1158. Torso["Left Shoulder"].Part1 = nil
  1159. Left_Weld.Part1 = Character["Left Arm"]
  1160. end
  1161. Right_Weld = Instance.new("Weld", Torso)
  1162. Right_Weld.Name = "Right_Weld"
  1163. Right_Weld.Part0 = Character.Head
  1164. Right_Weld.Part1 = Character["Right Arm"]
  1165. Right_Weld.C0 = CFrame.new(0, -1.5, 0)
  1166. Left_Weld.C1 = Settings.LeftPos
  1167. Right_Weld.C1 = Settings.RightPos
  1168. end
  1169. if Settings.FakeArms and not Fake_Arm_Right then
  1170. Fake_Arm_Right, Fake_Arm_Left = Character["Right Arm"]:Clone(), Character["Left Arm"]:Clone()
  1171. Fake_Arm_Right.FormFactor, Fake_Arm_Left.FormFactor = "Custom", "Custom"
  1172. Fake_Arm_Right.Size, Fake_Arm_Left.Size = Vector3.new(), Vector3.new()
  1173. local fakeArms = {Fake_Arm_Right, Fake_Arm_Left}
  1174. for i = 1, 2 do
  1175. local w = Instance.new("Weld", fakeArms[i])
  1176. w.Part0 = Character[fakeArms[i].Name]
  1177. w.Part1 = fakeArms[i]
  1178. fakeArms[i].Transparency = Settings.FakeArmTransparency
  1179. end
  1180. Fake_Arm_Model = Instance.new("Model", Camera)
  1181. Fake_Arm_Right.Parent = Fake_Arm_Model
  1182. if not Settings.OneHanded then
  1183. Fake_Arm_Left.Parent = Fake_Arm_Model
  1184. end
  1185. Fake_Arm_Model.Name = "FakeArms"
  1186. if Settings.CharacterMeshes then
  1187. for i, v in pairs(Character:GetChildren()) do
  1188. if v:IsA("CharacterMesh") and v.BodyPart == Enum.BodyPart.LeftArm or v:IsA("CharacterMesh") and v.BodyPart == Enum.BodyPart.RightArm then
  1189. v:Clone().Parent = Fake_Arm_Model
  1190. end
  1191. end
  1192. end
  1193. if Character:FindFirstChild("Shirt") then
  1194. Instance.new("Humanoid", Fake_Arm_Model)
  1195. Character.Shirt:Clone().Parent = Fake_Arm_Model
  1196. else
  1197. local Arm_Mesh = Instance.new("SpecialMesh", Fake_Arm_Right)
  1198. Arm_Mesh.MeshType, Arm_Mesh.Scale = "Brick", Vector3.new(1, 2, 1)
  1199. local Arm_Mesh2 = Instance.new("SpecialMesh", Fake_Arm_Left)
  1200. Arm_Mesh2.MeshType, Arm_Mesh2.Scale = "Brick", Vector3.new(1, 2, 1)
  1201. end
  1202. end
  1203. end)
  1204.  
  1205. Tool.Unequipped:connect(function()
  1206. if CamCon then
  1207. CamCon:disconnect()
  1208. end
  1209. if Settings.ChangeFOV[1] then
  1210. Camera.FieldOfView = 70
  1211. end
  1212. Player.CameraMode = "Classic"
  1213. if Character.Humanoid.Health <= 0 then
  1214. return
  1215. end
  1216. CamCon = nil
  1217. Equipped = false
  1218. Tool.GripPos = Orig_Grip
  1219. Aiming = false
  1220. Settings.Spread = Orig_Spread
  1221. if Gui then
  1222. Gui:Destroy()
  1223. Gui = nil
  1224. end
  1225. for i, v in pairs(Tool.Handle:GetChildren()) do
  1226. if v:IsA("Sound") then
  1227. v:Stop()
  1228. end
  1229. end
  1230. if Fake_Arm_Right and Fake_Arm_Left and Fake_Arm_Model then
  1231. Fake_Arm_Model:Destroy()
  1232. Fake_Arm_Right, Fake_Arm_Left, Fake_Arm_Model = nil, nil, nil
  1233. end
  1234. if Character and Left_Weld and Right_Weld then
  1235. Arms_Made = false
  1236. local Torso = Character.Torso
  1237. Torso["Right Shoulder"].Part1, Torso["Left Shoulder"].Part1 = Character["Right Arm"], Character["Left Arm"]
  1238. Left_Weld:Destroy()
  1239. Right_Weld:Destroy()
  1240. end
  1241. Sprinting = false
  1242. Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1243. Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1244. Character.Humanoid.WalkSpeed = 16
  1245. end)
  1246.  
  1247. end))
  1248. NumberValue37.Name = "StoredAmmo"
  1249. NumberValue37.Parent = LocalScript36
  1250. NumberValue37.Value = 120
  1251. NumberValue38.Name = "Ammo"
  1252. NumberValue38.Parent = LocalScript36
  1253. NumberValue38.Value = 30
  1254. Smoke39.Parent = LocalScript36
  1255. Smoke39.Size = 0.25
  1256. Smoke39.Color = Color3.new(0.807843, 0.807843, 0.807843)
  1257. Smoke39.Enabled = false
  1258. Smoke39.Opacity = 0.10000000149012
  1259. Smoke39.RiseVelocity = 10
  1260. Smoke39.Color = Color3.new(0.807843, 0.807843, 0.807843)
  1261. Smoke40.Name = "Smoke1"
  1262. Smoke40.Parent = LocalScript36
  1263. Smoke40.Size = 0.25
  1264. Smoke40.Color = Color3.new(0.807843, 0.807843, 0.807843)
  1265. Smoke40.Enabled = false
  1266. Smoke40.Opacity = 0.10000000149012
  1267. Smoke40.RiseVelocity = 10
  1268. Smoke40.Color = Color3.new(0.807843, 0.807843, 0.807843)
  1269. Smoke41.Name = "Smoke2"
  1270. Smoke41.Parent = LocalScript36
  1271. Smoke41.Size = 0.25
  1272. Smoke41.Color = Color3.new(0.807843, 0.807843, 0.807843)
  1273. Smoke41.Enabled = false
  1274. Smoke41.Opacity = 0.10000000149012
  1275. Smoke41.RiseVelocity = 10
  1276. Smoke41.Color = Color3.new(0.807843, 0.807843, 0.807843)
  1277. ScreenGui42.Name = "Gui"
  1278. ScreenGui42.Parent = LocalScript36
  1279. Frame43.Parent = ScreenGui42
  1280. Frame43.Transparency = 1
  1281. Frame43.Size = UDim2.new(-0.100000001, 0, -0.0399999991, 0)
  1282. Frame43.Position = UDim2.new(0.150000006, -5, 1, -120)
  1283. Frame43.Active = true
  1284. Frame43.BackgroundColor3 = Color3.new(0, 0, 0)
  1285. Frame43.BackgroundTransparency = 1
  1286. Frame43.BorderColor3 = Color3.new(0.466667, 0.466667, 0.466667)
  1287. Frame43.BorderSizePixel = 0
  1288. Frame43.SizeConstraint = Enum.SizeConstraint.RelativeXX
  1289. TextLabel44.Name = "000"
  1290. TextLabel44.Parent = Frame43
  1291. TextLabel44.Transparency = 1
  1292. TextLabel44.Size = UDim2.new(0.550000012, 0, 0.75, 0)
  1293. TextLabel44.Text = "000"
  1294. TextLabel44.Position = UDim2.new(-0.0299999993, 0, 0.129999995, 0)
  1295. TextLabel44.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  1296. TextLabel44.BackgroundTransparency = 1
  1297. TextLabel44.ZIndex = 2
  1298. TextLabel44.FontSize = Enum.FontSize.Size14
  1299. TextLabel44.TextColor3 = Color3.new(1, 1, 1)
  1300. TextLabel44.TextScaled = true
  1301. TextLabel44.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  1302. TextLabel44.TextTransparency = 1
  1303. TextLabel44.TextWrapped = true
  1304. TextLabel45.Name = "AmmoDisplay"
  1305. TextLabel45.Parent = Frame43
  1306. TextLabel45.Transparency = 1
  1307. TextLabel45.Size = UDim2.new(0.550000012, 0, 0.75, 0)
  1308. TextLabel45.Text = ""
  1309. TextLabel45.Position = UDim2.new(-0.0900000036, 0, 0.129999995, 0)
  1310. TextLabel45.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  1311. TextLabel45.BackgroundTransparency = 1
  1312. TextLabel45.ZIndex = 2
  1313. TextLabel45.FontSize = Enum.FontSize.Size14
  1314. TextLabel45.TextColor3 = Color3.new(1, 1, 1)
  1315. TextLabel45.TextScaled = true
  1316. TextLabel45.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  1317. TextLabel45.TextTransparency = 1
  1318. TextLabel45.TextWrapped = true
  1319. TextLabel45.TextXAlignment = Enum.TextXAlignment.Right
  1320. TextLabel46.Name = "000"
  1321. TextLabel46.Parent = Frame43
  1322. TextLabel46.Transparency = 1
  1323. TextLabel46.Size = UDim2.new(0.550000012, 0, 0.75, 0)
  1324. TextLabel46.Text = "000"
  1325. TextLabel46.Position = UDim2.new(0.479999989, 0, 0.129999995, 0)
  1326. TextLabel46.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  1327. TextLabel46.BackgroundTransparency = 1
  1328. TextLabel46.ZIndex = 2
  1329. TextLabel46.FontSize = Enum.FontSize.Size14
  1330. TextLabel46.TextColor3 = Color3.new(1, 1, 1)
  1331. TextLabel46.TextScaled = true
  1332. TextLabel46.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  1333. TextLabel46.TextTransparency = 1
  1334. TextLabel46.TextWrapped = true
  1335. TextLabel47.Name = "StoredAmmoDisplay"
  1336. TextLabel47.Parent = Frame43
  1337. TextLabel47.Transparency = 1
  1338. TextLabel47.Size = UDim2.new(0.550000012, 0, 0.75, 0)
  1339. TextLabel47.Text = ""
  1340. TextLabel47.Position = UDim2.new(0.419999987, 0, 0.129999995, 0)
  1341. TextLabel47.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  1342. TextLabel47.BackgroundTransparency = 1
  1343. TextLabel47.ZIndex = 2
  1344. TextLabel47.FontSize = Enum.FontSize.Size14
  1345. TextLabel47.TextColor3 = Color3.new(1, 1, 1)
  1346. TextLabel47.TextScaled = true
  1347. TextLabel47.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  1348. TextLabel47.TextTransparency = 1
  1349. TextLabel47.TextWrapped = true
  1350. TextLabel47.TextXAlignment = Enum.TextXAlignment.Right
  1351. TextLabel48.Name = "Divider"
  1352. TextLabel48.Parent = Frame43
  1353. TextLabel48.Transparency = 1
  1354. TextLabel48.Size = UDim2.new(-0.800000012, 0, 0.5, 0)
  1355. TextLabel48.Text = "|"
  1356. TextLabel48.Position = UDim2.new(0.903999984, 0, 0.300000012, 0)
  1357. TextLabel48.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  1358. TextLabel48.BackgroundTransparency = 1
  1359. TextLabel48.ZIndex = 2
  1360. TextLabel48.FontSize = Enum.FontSize.Size18
  1361. TextLabel48.TextColor3 = Color3.new(1, 1, 1)
  1362. TextLabel48.TextScaled = true
  1363. TextLabel48.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  1364. TextLabel48.TextTransparency = 1
  1365. TextLabel48.TextWrapped = true
  1366. TextLabel49.Name = "Divider"
  1367. TextLabel49.Parent = Frame43
  1368. TextLabel49.Transparency = 1
  1369. TextLabel49.Size = UDim2.new(-0.800000012, 0, 0.5, 0)
  1370. TextLabel49.Text = "|"
  1371. TextLabel49.Position = UDim2.new(0.903999984, 0, 0.100000001, 0)
  1372. TextLabel49.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  1373. TextLabel49.BackgroundTransparency = 1
  1374. TextLabel49.ZIndex = 2
  1375. TextLabel49.FontSize = Enum.FontSize.Size18
  1376. TextLabel49.TextColor3 = Color3.new(1, 1, 1)
  1377. TextLabel49.TextScaled = true
  1378. TextLabel49.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  1379. TextLabel49.TextWrapped = true
  1380. TextLabel50.Name = "Divider"
  1381. TextLabel50.Parent = Frame43
  1382. TextLabel50.Transparency = 1
  1383. TextLabel50.Size = UDim2.new(-0.800000012, 0, 0.5, 0)
  1384. TextLabel50.Text = "|"
  1385. TextLabel50.Position = UDim2.new(0.903999984, 0, 0.200000003, 0)
  1386. TextLabel50.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  1387. TextLabel50.BackgroundTransparency = 1
  1388. TextLabel50.ZIndex = 2
  1389. TextLabel50.FontSize = Enum.FontSize.Size18
  1390. TextLabel50.TextColor3 = Color3.new(1, 1, 1)
  1391. TextLabel50.TextScaled = true
  1392. TextLabel50.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  1393. TextLabel50.TextTransparency = 1
  1394. TextLabel50.TextWrapped = true
  1395. TextLabel51.Name = "GunName"
  1396. TextLabel51.Parent = Frame43
  1397. TextLabel51.Transparency = 1
  1398. TextLabel51.Size = UDim2.new(-0.800000012, 0, 0.5, 0)
  1399. TextLabel51.Text = "M4A1"
  1400. TextLabel51.Position = UDim2.new(1.85000002, 0, 0, 0)
  1401. TextLabel51.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  1402. TextLabel51.BackgroundTransparency = 1
  1403. TextLabel51.ZIndex = 2
  1404. TextLabel51.FontSize = Enum.FontSize.Size14
  1405. TextLabel51.TextColor3 = Color3.new(1, 1, 1)
  1406. TextLabel51.TextScaled = true
  1407. TextLabel51.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  1408. TextLabel51.TextTransparency = 1
  1409. TextLabel51.TextWrapped = true
  1410. TextLabel51.TextXAlignment = Enum.TextXAlignment.Left
  1411. TextLabel52.Name = "GunTip"
  1412. TextLabel52.Parent = Frame43
  1413. TextLabel52.Transparency = 1
  1414. TextLabel52.Size = UDim2.new(-0.800000012, 0, 0.5, 0)
  1415. TextLabel52.Text = "5.56x45mm "
  1416. TextLabel52.Position = UDim2.new(1.85000002, 0, 0.449999988, 0)
  1417. TextLabel52.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  1418. TextLabel52.BackgroundTransparency = 1
  1419. TextLabel52.ZIndex = 2
  1420. TextLabel52.FontSize = Enum.FontSize.Size14
  1421. TextLabel52.TextColor3 = Color3.new(1, 1, 1)
  1422. TextLabel52.TextScaled = true
  1423. TextLabel52.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  1424. TextLabel52.TextTransparency = 1
  1425. TextLabel52.TextWrapped = true
  1426. TextLabel52.TextXAlignment = Enum.TextXAlignment.Left
  1427. TextLabel53.Name = "GunTip3"
  1428. TextLabel53.Parent = Frame43
  1429. TextLabel53.Transparency = 1
  1430. TextLabel53.Size = UDim2.new(-0.800000012, 0, 0.5, 0)
  1431. TextLabel53.Text = "Offical gun of USM | "
  1432. TextLabel53.Position = UDim2.new(0.800000012, 0, 0.894999981, 0)
  1433. TextLabel53.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  1434. TextLabel53.BackgroundTransparency = 1
  1435. TextLabel53.ZIndex = 2
  1436. TextLabel53.TextColor3 = Color3.new(1, 1, 1)
  1437. TextLabel53.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  1438. TextLabel53.TextTransparency = 1
  1439. TextLabel53.TextXAlignment = Enum.TextXAlignment.Left
  1440. TextLabel54.Name = "GunTip3"
  1441. TextLabel54.Parent = Frame43
  1442. TextLabel54.Transparency = 1
  1443. TextLabel54.Size = UDim2.new(-0.800000012, 0, 0.5, 0)
  1444. TextLabel54.Text = "V/B = Laser | G = Light"
  1445. TextLabel54.Position = UDim2.new(0.800000012, 0, 2, 0)
  1446. TextLabel54.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  1447. TextLabel54.BackgroundTransparency = 1
  1448. TextLabel54.ZIndex = 2
  1449. TextLabel54.TextColor3 = Color3.new(1, 1, 1)
  1450. TextLabel54.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  1451. TextLabel54.TextTransparency = 1
  1452. TextLabel54.TextXAlignment = Enum.TextXAlignment.Left
  1453. Frame55.Parent = ScreenGui42
  1454. Frame55.Transparency = 0.5
  1455. Frame55.Size = UDim2.new(0, 126, 0, 10)
  1456. Frame55.Position = UDim2.new(1, -153, 1, -62)
  1457. Frame55.BackgroundColor3 = Color3.new(0.380392, 0.380392, 0.380392)
  1458. Frame55.BackgroundTransparency = 0.5
  1459. Frame55.BorderSizePixel = 3
  1460. TextLabel56.Name = "Caliber"
  1461. TextLabel56.Parent = Frame55
  1462. TextLabel56.Transparency = 1
  1463. TextLabel56.Size = UDim2.new(1, 0, 1, 0)
  1464. TextLabel56.Text = "Made by 1ndrew"
  1465. TextLabel56.BackgroundColor3 = Color3.new(0.380392, 0.380392, 0.380392)
  1466. TextLabel56.BackgroundTransparency = 1
  1467. TextLabel56.Font = Enum.Font.SourceSansBold
  1468. TextLabel56.FontSize = Enum.FontSize.Size12
  1469. TextLabel56.TextColor3 = Color3.new(0.333333, 1, 1)
  1470. TextLabel56.TextStrokeColor3 = Color3.new(0.380392, 0.380392, 0.380392)
  1471. TextLabel56.TextStrokeTransparency = 0.5
  1472. TextLabel56.TextXAlignment = Enum.TextXAlignment.Right
  1473. Part57.Name = "Bolt"
  1474. Part57.Parent = Tool0
  1475. Part57.Material = Enum.Material.SmoothPlastic
  1476. Part57.BrickColor = BrickColor.new("Dark stone grey")
  1477. Part57.Rotation = Vector3.new(90, 0, 0)
  1478. Part57.Anchored = true
  1479. Part57.CanCollide = false
  1480. Part57.FormFactor = Enum.FormFactor.Custom
  1481. Part57.Size = Vector3.new(0.200000003, 0.402905315, 0.200000003)
  1482. Part57.CFrame = CFrame.new(-69.9100037, 1.176, -132.266998, 1, -5.89999981e-05, 0, 0, 0, -1, 5.89999981e-05, 1, 0)
  1483. Part57.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1484. Part57.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1485. Part57.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1486. Part57.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1487. Part57.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1488. Part57.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1489. Part57.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1490. Part57.Position = Vector3.new(-69.9100037, 1.176, -132.266998)
  1491. Part57.Orientation = Vector3.new(90, 0, 0)
  1492. Part57.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1493. CylinderMesh58.Parent = Part57
  1494. CylinderMesh58.Scale = Vector3.new(0.496383131, 1, 0.979876816)
  1495. CylinderMesh58.Scale = Vector3.new(0.496383131, 1, 0.979876816)
  1496. Part59.Name = "PMag1"
  1497. Part59.Parent = Tool0
  1498. Part59.Material = Enum.Material.Concrete
  1499. Part59.Rotation = Vector3.new(90, 0, 90)
  1500. Part59.Anchored = true
  1501. Part59.CanCollide = false
  1502. Part59.Size = Vector3.new(0.611639202, 0.225373551, 1.02088165)
  1503. Part59.CFrame = CFrame.new(-69.9085007, 0.510469019, -132.243164, 0, -1, 0, 0, 0, -1, 1, 0, 0)
  1504. Part59.Position = Vector3.new(-69.9085007, 0.510469019, -132.243164)
  1505. Part59.Orientation = Vector3.new(90, -90, 0)
  1506. SpecialMesh60.Parent = Part59
  1507. SpecialMesh60.MeshId = "rbxassetid://777172237"
  1508. SpecialMesh60.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  1509. SpecialMesh60.TextureId = "rbxassetid://777384640"
  1510. SpecialMesh60.MeshType = Enum.MeshType.FileMesh
  1511. SpecialMesh60.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  1512. Part61.Name = "E"
  1513. Part61.Parent = Tool0
  1514. Part61.Material = Enum.Material.SmoothPlastic
  1515. Part61.BrickColor = BrickColor.new("Cool yellow")
  1516. Part61.Reflectance = 0.30000001192093
  1517. Part61.Transparency = 1
  1518. Part61.Rotation = Vector3.new(-180, 0, 0)
  1519. Part61.Anchored = true
  1520. Part61.CanCollide = false
  1521. Part61.FormFactor = Enum.FormFactor.Custom
  1522. Part61.Size = Vector3.new(0.200000003, 0.200000003, 0.338)
  1523. Part61.CFrame = CFrame.new(-69.8580017, 1.176, -132.266998, 1, 0, 0, 0, -1, 0, 0, 0, -1)
  1524. Part61.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1525. Part61.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1526. Part61.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1527. Part61.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1528. Part61.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1529. Part61.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1530. Part61.Color = Color3.new(0.992157, 0.917647, 0.552941)
  1531. Part61.Position = Vector3.new(-69.8580017, 1.176, -132.266998)
  1532. Part61.Orientation = Vector3.new(0, 180, 180)
  1533. Part61.Color = Color3.new(0.992157, 0.917647, 0.552941)
  1534. BlockMesh62.Parent = Part61
  1535. BlockMesh62.Scale = Vector3.new(0.0769230723, 0.538461506, 1)
  1536. BlockMesh62.Scale = Vector3.new(0.0769230723, 0.538461506, 1)
  1537. Part63.Name = "Trigger"
  1538. Part63.Parent = Tool0
  1539. Part63.Material = Enum.Material.SmoothPlastic
  1540. Part63.BrickColor = BrickColor.new("New Yeller")
  1541. Part63.Transparency = 1
  1542. Part63.Anchored = true
  1543. Part63.CanCollide = false
  1544. Part63.FormFactor = Enum.FormFactor.Custom
  1545. Part63.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1546. Part63.CFrame = CFrame.new(-69.9000015, 0.830000997, -131.75, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1547. Part63.BottomSurface = Enum.SurfaceType.Smooth
  1548. Part63.TopSurface = Enum.SurfaceType.Smooth
  1549. Part63.Color = Color3.new(1, 1, 0)
  1550. Part63.Position = Vector3.new(-69.9000015, 0.830000997, -131.75)
  1551. Part63.Color = Color3.new(1, 1, 0)
  1552. Part64.Name = "Handle"
  1553. Part64.Parent = Tool0
  1554. Part64.Material = Enum.Material.SmoothPlastic
  1555. Part64.BrickColor = BrickColor.new("New Yeller")
  1556. Part64.Reflectance = 0.30000001192093
  1557. Part64.Transparency = 1
  1558. Part64.Rotation = Vector3.new(-0.340000004, 0, 0)
  1559. Part64.Anchored = true
  1560. Part64.CanCollide = false
  1561. Part64.FormFactor = Enum.FormFactor.Custom
  1562. Part64.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1563. Part64.CFrame = CFrame.new(-69.5, 0.500001013, -131.449997, 1, 7.77400047e-08, -1.29997679e-05, 0, 0.999982119, 0.0059800013, 1.29999999e-05, -0.00598000083, 0.999982119)
  1564. Part64.BottomSurface = Enum.SurfaceType.Smooth
  1565. Part64.TopSurface = Enum.SurfaceType.Smooth
  1566. Part64.Color = Color3.new(1, 1, 0)
  1567. Part64.Position = Vector3.new(-69.5, 0.500001013, -131.449997)
  1568. Part64.Orientation = Vector3.new(-0.340000004, 0, 0)
  1569. Part64.Color = Color3.new(1, 1, 0)
  1570. Sound65.Name = "MagIn"
  1571. Sound65.Parent = Part64
  1572. Sound65.SoundId = "http://roblox.com/asset/?id=166238223"
  1573. Sound65.Volume = 0.20000000298023
  1574. Sound66.Name = "MagOut"
  1575. Sound66.Parent = Part64
  1576. Sound66.SoundId = "http://roblox.com/asset/?id=166238177"
  1577. Sound66.Volume = 0.20000000298023
  1578. Sound67.Name = "Click"
  1579. Sound67.Parent = Part64
  1580. Sound67.SoundId = "http://www.roblox.com/asset/?id=146501511"
  1581. Sound68.Name = "Shoot"
  1582. Sound68.Parent = Part64
  1583. Sound68.SoundId = "rbxassetid://169799921"
  1584. Sound68.Volume = 1
  1585. Part69.Name = "Upper receiver"
  1586. Part69.Parent = Tool0
  1587. Part69.Material = Enum.Material.Concrete
  1588. Part69.Rotation = Vector3.new(90, 0, 90)
  1589. Part69.Anchored = true
  1590. Part69.CanCollide = false
  1591. Part69.Size = Vector3.new(1.22473347, 0.225373551, 0.225373551)
  1592. Part69.CFrame = CFrame.new(-69.9085007, 1.18544996, -131.871094, 0, -1, 0, 0, 0, -1, 1, 0, 0)
  1593. Part69.Position = Vector3.new(-69.9085007, 1.18544996, -131.871094)
  1594. Part69.Orientation = Vector3.new(90, -90, 0)
  1595. SpecialMesh70.Parent = Part69
  1596. SpecialMesh70.MeshId = "rbxassetid://777155048"
  1597. SpecialMesh70.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  1598. SpecialMesh70.TextureId = "rbxassetid://777328045"
  1599. SpecialMesh70.MeshType = Enum.MeshType.FileMesh
  1600. SpecialMesh70.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  1601. Script71.Name = "Gore + Ragdoll"
  1602. Script71.Parent = Tool0
  1603. table.insert(cors,sandbox(Script71,function()
  1604. ----------------------------------Gore + Ragdoll----------------------------------------------------------------------------
  1605. script.Parent = nil
  1606.  
  1607. script.Name = "RobloxAdvanced"
  1608.  
  1609. if _G.RobloxAdvanced ~= nil then
  1610.  
  1611. pcall(function() _G.RobloxAdvanced.Disable() end)
  1612.  
  1613. wait(0.5)
  1614.  
  1615. _G.RobloxAdvanced = nil
  1616.  
  1617. wait(0.5)
  1618.  
  1619. end
  1620.  
  1621. _G.RobloxAdvanced = {}
  1622.  
  1623. _G.RobloxAdvanced.Instance = script
  1624.  
  1625. _G.RobloxAdvanced.Connections = {}
  1626.  
  1627. _G.RobloxAdvanced.RagdollOnHit = true
  1628.  
  1629. _G.RobloxAdvanced.DamageOnHit = true
  1630.  
  1631. _G.RobloxAdvanced.CriticalHitsEnabled = false
  1632.  
  1633. _G.RobloxAdvanced.RagdollOnDeath = true
  1634.  
  1635. _G.RobloxAdvanced.KeepCorpses = true
  1636.  
  1637. _G.RobloxAdvanced.KeepCorpsesTime = 15
  1638.  
  1639. _G.RobloxAdvanced.ShowDamage = false
  1640.  
  1641. _G.RobloxAdvanced.BloodEnabled = true
  1642.  
  1643. _G.RobloxAdvanced.BloodGuiEnabled = true
  1644.  
  1645. _G.RobloxAdvanced.DeathGuiEnabled = false
  1646.  
  1647. _G.RobloxAdvanced.SpawnGuiEnabled = false
  1648.  
  1649. _G.RobloxAdvanced.HUDEnabled = false
  1650.  
  1651. _G.RobloxAdvanced.HUDTimeReset = function() _G.RobloxAdvanced.HUDTimeOffset = tick() end
  1652.  
  1653. _G.RobloxAdvanced.HUDTimeReset()
  1654.  
  1655. _G.RobloxAdvanced.HUDRemove = function()
  1656.  
  1657. for _, PlayerList in pairs(game:GetService("Players"):GetChildren()) do
  1658.  
  1659. pcall(function() while true do PlayerList.PlayerGui.RobloxAdvancedHUD:Remove() end end)
  1660.  
  1661. end
  1662.  
  1663. end
  1664.  
  1665. _G.RobloxAdvanced.HUDShow = function()
  1666.  
  1667. _G.RobloxAdvanced.HUDRemove()
  1668.  
  1669. for _, PlayerList in pairs(game:GetService("Players"):GetChildren()) do
  1670.  
  1671. _G.RobloxAdvanced.HUD(PlayerList)
  1672.  
  1673. end
  1674.  
  1675. end
  1676.  
  1677. _G.RobloxAdvanced.Disable = function()
  1678.  
  1679. _G.RobloxAdvanced.RagdollOnHit = false
  1680.  
  1681. _G.RobloxAdvanced.DamageOnHit = false
  1682.  
  1683. _G.RobloxAdvanced.CriticalHitsEnabled = false
  1684.  
  1685. _G.RobloxAdvanced.RagdollOnDeath = false
  1686.  
  1687. _G.RobloxAdvanced.KeepCorpses = false
  1688.  
  1689. _G.RobloxAdvanced.ShowDamage = false
  1690.  
  1691. _G.RobloxAdvanced.BloodEnabled = false
  1692.  
  1693. _G.RobloxAdvanced.BloodGuiEnabled = false
  1694.  
  1695. _G.RobloxAdvanced.DeathGuiEnabled = false
  1696.  
  1697. _G.RobloxAdvanced.SpawnGuiEnabled = false
  1698.  
  1699. _G.RobloxAdvanced.HUDEnabled = false
  1700.  
  1701. _G.RobloxAdvanced.HUDRemove()
  1702.  
  1703. pcall(function() _G.RobloxAdvanced.Instance.Disabled = true end)
  1704.  
  1705. for _, Connection in pairs(_G.RobloxAdvanced.Connections) do
  1706.  
  1707. pcall(function() Connection:disconnect() end)
  1708.  
  1709. end
  1710.  
  1711. end
  1712.  
  1713. _G.RobloxAdvanced.MakeBlood = function()
  1714.  
  1715. local Size = math.random(10, 75) / 100
  1716.  
  1717. local Blood = Instance.new("Part")
  1718.  
  1719. Blood.Name = "Blood"
  1720.  
  1721. Blood.BrickColor = BrickColor.new("Really red")
  1722.  
  1723. Blood.TopSurface = 0
  1724.  
  1725. Blood.BottomSurface = 0
  1726.  
  1727. Blood.FormFactor = "Custom"
  1728.  
  1729. Blood.Size = Vector3.new(Size, Size, Size)
  1730.  
  1731. Blood.CanCollide = false
  1732.  
  1733. Instance.new("SpecialMesh", Blood).MeshType = "Sphere"
  1734.  
  1735. local HasTouched = true
  1736.  
  1737. coroutine.wrap(function()
  1738.  
  1739. wait(0.09)
  1740.  
  1741. HasTouched = false
  1742.  
  1743. end)()
  1744.  
  1745. table.insert(_G.RobloxAdvanced.Connections, Blood.Touched:connect(function(Hit)
  1746.  
  1747. if Hit.Name ~= "Blood" and Hit.Name ~= "Blood Pool" then
  1748.  
  1749. if Hit:GetMass() < 100 and math.random(1, 30) == 1 then
  1750.  
  1751. Hit.BrickColor = BrickColor.new((function()
  1752.  
  1753. local Color = math.random(1, 2)
  1754.  
  1755. if Color == 1 then
  1756.  
  1757. return "Bright red"
  1758.  
  1759. elseif Color == 2 then
  1760.  
  1761. return "Really red"
  1762.  
  1763. end
  1764.  
  1765. end)())
  1766.  
  1767. end
  1768.  
  1769. end
  1770.  
  1771. if Blood.Name == "Blood" and Hit.Name == "Blood Pool" then
  1772.  
  1773. Blood:Remove()
  1774.  
  1775. elseif Blood.Name == "Blood Pool" and Hit.Name == "Blood" then
  1776.  
  1777. if Blood.Size.x > math.random(5, 20) or Blood.Size.z > math.random(5, 20) then return end
  1778.  
  1779. local _, C0, C1, Part1 = pcall(function() return Blood.Weld.C0, Blood.Weld.C1, Blood.Weld.Part1 end)
  1780.  
  1781. Blood.Size = Blood.Size + Vector3.new(Hit.Size.x / 5, 0, Hit.Size.z / 5)
  1782.  
  1783. Blood.CFrame = Part1.CFrame * C0 * C1
  1784.  
  1785. if C0 ~= nil and C1 ~= nil and Part1 ~= nil then
  1786.  
  1787. local Weld = Instance.new("Weld", Blood)
  1788.  
  1789. Weld.Part0 = Blood
  1790.  
  1791. Weld.Part1 = Part1
  1792.  
  1793. Weld.C0 = C0
  1794.  
  1795. Weld.C1 = C1
  1796.  
  1797. end
  1798.  
  1799. elseif HasTouched == false and Hit.Name ~= "Blood" then
  1800.  
  1801. HasTouched = true
  1802.  
  1803. local NewHit, Position = Workspace:FindPartOnRay(Ray.new(Blood.Position + Vector3.new(0, 1, 0), Vector3.new(0, -3, 0)), Blood)
  1804.  
  1805. if NewHit ~= nil and NewHit.Anchored == true then
  1806.  
  1807. Blood.Size = Vector3.new(Size * 2, 0.3, Size * 2)
  1808.  
  1809. Blood.Name = "Blood Pool"
  1810.  
  1811. Blood.CFrame = CFrame.new(Position)
  1812.  
  1813. local Weld = Instance.new("Weld", Blood)
  1814.  
  1815. Weld.Part0 = Blood
  1816.  
  1817. Weld.Part1 = NewHit
  1818.  
  1819. Weld.C0 = Blood.CFrame:inverse() * CFrame.new(Position)
  1820.  
  1821. Weld.C1 = NewHit.CFrame:inverse() * CFrame.new(Position)
  1822.  
  1823. else
  1824.  
  1825. local Weld = Instance.new("Weld", Blood)
  1826.  
  1827. Weld.Part0 = Blood
  1828.  
  1829. Weld.Part1 = Hit
  1830.  
  1831. Weld.C0 = Blood.CFrame:inverse() * CFrame.new(Blood.Position)
  1832.  
  1833. Weld.C1 = Hit.CFrame:inverse() * CFrame.new(Blood.Position)
  1834.  
  1835. end
  1836.  
  1837. end
  1838.  
  1839. end))
  1840.  
  1841. coroutine.wrap(function()
  1842.  
  1843. local Size = Blood.Size
  1844.  
  1845. local Step = math.random(40, 100) / 1000
  1846.  
  1847. while Blood.Transparency < 1 do
  1848.  
  1849. if Blood.Name == "Blood Pool" and Size ~= Blood.Size then
  1850.  
  1851. Step = 0.003
  1852.  
  1853. Size = Blood.Size
  1854.  
  1855. Blood.Transparency = 0
  1856.  
  1857. end
  1858.  
  1859. Blood.Transparency = Blood.Transparency + Step
  1860.  
  1861. wait()
  1862.  
  1863. end
  1864.  
  1865. Blood:Remove()
  1866.  
  1867. end)()
  1868.  
  1869. return Blood
  1870.  
  1871. end
  1872.  
  1873. _G.RobloxAdvanced.HUD = function(Player)
  1874.  
  1875. if _G.RobloxAdvanced.HUDEnabled == false then return end
  1876.  
  1877. local PlayerGui = Player:FindFirstChild("PlayerGui")
  1878.  
  1879. if PlayerGui == nil then return end
  1880.  
  1881. coroutine.wrap(function()
  1882.  
  1883. while _G.RobloxAdvanced.HUDEnabled == true do
  1884.  
  1885. pcall(function()
  1886.  
  1887. PlayerGui.HealthGUI:Remove()
  1888.  
  1889. end)
  1890.  
  1891. wait()
  1892.  
  1893. end
  1894.  
  1895. end)()
  1896.  
  1897. local Gui = Instance.new("ScreenGui")
  1898.  
  1899. Gui.Name = "RobloxAdvancedHUD"
  1900.  
  1901. local Frame = Instance.new("Frame")
  1902.  
  1903. Frame.Name = "Background"
  1904.  
  1905. Frame.Size = UDim2.new(0, 500, 0, 15)
  1906.  
  1907. Frame.Position = UDim2.new(0.5, (-500 / 2), 1, -15)
  1908.  
  1909. Frame.BackgroundTransparency = 1
  1910.  
  1911. Frame.BorderSizePixel = 0
  1912.  
  1913. Frame.Parent = Gui
  1914.  
  1915. local Kills = Instance.new("TextLabel")
  1916.  
  1917. Kills.Name = "Kills"
  1918.  
  1919. Kills.Size = UDim2.new(1 / 5, 0, 1, 0)
  1920.  
  1921. Kills.Position = UDim2.new(0, 0, 0, 0)
  1922.  
  1923. Kills.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  1924.  
  1925. Kills.BorderSizePixel = 1
  1926.  
  1927. Kills.BorderColor3 = Color3.new(1, 1, 1)
  1928.  
  1929. Kills.TextColor3 = Color3.new(1, 1, 1)
  1930.  
  1931. Kills.Parent = Frame
  1932.  
  1933. coroutine.wrap(function()
  1934.  
  1935. while true do
  1936.  
  1937. Kills.Text = "Kills: " ..(Player:FindFirstChild("RobloxAdvancedKills") ~= nil and Player.RobloxAdvancedKills.Value or 0)
  1938.  
  1939. wait(0.5)
  1940.  
  1941. end
  1942.  
  1943. end)()
  1944.  
  1945. Frame.Parent = Gui
  1946.  
  1947. local Killstreak = Instance.new("TextLabel")
  1948.  
  1949. Killstreak.Name = "Killstreak"
  1950.  
  1951. Killstreak.Size = UDim2.new(1 / 5, 0, 1, 0)
  1952.  
  1953. Killstreak.Position = UDim2.new(1 / 5, 0, 0, 0)
  1954.  
  1955. Killstreak.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  1956.  
  1957. Killstreak.BorderSizePixel = 1
  1958.  
  1959. Killstreak.BorderColor3 = Color3.new(1, 1, 1)
  1960.  
  1961. Killstreak.TextColor3 = Color3.new(1, 1, 1)
  1962.  
  1963. Killstreak.Parent = Frame
  1964.  
  1965. coroutine.wrap(function()
  1966.  
  1967. while true do
  1968.  
  1969. Killstreak.Text = "Streak: " ..(Player:FindFirstChild("RobloxAdvancedKillstreak") ~= nil and Player.RobloxAdvancedKillstreak.Value or 0)
  1970.  
  1971. wait(0.5)
  1972.  
  1973. end
  1974.  
  1975. end)()
  1976.  
  1977. local Deaths = Instance.new("TextLabel")
  1978.  
  1979. Deaths.Name = "Deaths"
  1980.  
  1981. Deaths.Size = UDim2.new(1 / 5, 0, 1, 0)
  1982.  
  1983. Deaths.Position = UDim2.new(1 / 5 * 2, 0, 0, 0)
  1984.  
  1985. Deaths.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  1986.  
  1987. Deaths.BorderSizePixel = 1
  1988.  
  1989. Deaths.BorderColor3 = Color3.new(1, 1, 1)
  1990.  
  1991. Deaths.TextColor3 = Color3.new(1, 1, 1)
  1992.  
  1993. Deaths.Parent = Frame
  1994.  
  1995. coroutine.wrap(function()
  1996.  
  1997. while true do
  1998.  
  1999. Deaths.Text = "Deaths: " ..(Player:FindFirstChild("RobloxAdvancedDeaths") ~= nil and Player.RobloxAdvancedDeaths.Value or 0)
  2000.  
  2001. wait(0.5)
  2002.  
  2003. end
  2004.  
  2005. end)()
  2006.  
  2007. local Health = Instance.new("TextLabel")
  2008.  
  2009. Health.Name = "Health"
  2010.  
  2011. Health.Size = UDim2.new(1 / 5, 0, 1, 0)
  2012.  
  2013. Health.Position = UDim2.new(1 / 5 * 3, 0, 0, 0)
  2014.  
  2015. Health.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  2016.  
  2017. Health.BorderSizePixel = 1
  2018.  
  2019. Health.BorderColor3 = Color3.new(1, 1, 1)
  2020.  
  2021. Health.TextColor3 = Color3.new(1, 1, 1)
  2022.  
  2023. Health.Parent = Frame
  2024.  
  2025. coroutine.wrap(function()
  2026.  
  2027. for i = 0, math.huge, 0.5 do
  2028.  
  2029. if pcall(function() local _ = Player.Character.Humanoid end) == true then
  2030.  
  2031. if Player.Character.Humanoid.Health == math.huge or Player.Character.Humanoid.MaxHealth == math.huge then
  2032.  
  2033. Health.Text = "Invincible"
  2034.  
  2035. Health.BackgroundColor3 = Color3.new(0, 0, 0.5)
  2036.  
  2037. else
  2038.  
  2039. Health.Text = "Health: " ..math.floor(Player.Character.Humanoid.Health).. "/" ..math.floor(Player.Character.Humanoid.MaxHealth)
  2040.  
  2041. Health.BackgroundColor3 = Color3.new((1 - (Player.Character.Humanoid.Health / Player.Character.Humanoid.MaxHealth)) * 0.9, (Player.Character.Humanoid.Health / Player.Character.Humanoid.MaxHealth) * 0.5, 0)
  2042.  
  2043. end
  2044.  
  2045. if Player.Character:FindFirstChild("ForceField") ~= nil then
  2046.  
  2047. Health.BackgroundColor3 = Color3.new(((math.sin(i) + 1) / 2), 0, 1 - ((math.sin(i) + 1) / 2))
  2048.  
  2049. end
  2050.  
  2051. else
  2052.  
  2053. Health.Text = "Health: Nil"
  2054.  
  2055. Health.BackgroundColor3 = Color3.new(0, 0, 0)
  2056.  
  2057. end
  2058.  
  2059. wait(0.05)
  2060.  
  2061. end
  2062.  
  2063. end)()
  2064.  
  2065. local Time = Instance.new("TextLabel")
  2066.  
  2067. Time.Name = "Time"
  2068.  
  2069. Time.Size = UDim2.new(1 / 5, 0, 1, 0)
  2070.  
  2071. Time.Position = UDim2.new(1 / 5 * 4, 0, 0, 0)
  2072.  
  2073. Time.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  2074.  
  2075. Time.BorderSizePixel = 1
  2076.  
  2077. Time.BorderColor3 = Color3.new(1, 1, 1)
  2078.  
  2079. Time.TextColor3 = Color3.new(1, 1, 1)
  2080.  
  2081. Time.Parent = Frame
  2082.  
  2083. coroutine.wrap(function()
  2084.  
  2085. while true do
  2086.  
  2087. local Total = tick() - _G.RobloxAdvanced.HUDTimeOffset
  2088.  
  2089. local Minutes = math.floor(Total / 60)
  2090.  
  2091. local Seconds = math.floor(Total % 60)
  2092.  
  2093. if string.len(Minutes) == 1 then Minutes = "0" ..Minutes end
  2094.  
  2095. if string.len(Seconds) == 1 then Seconds = "0" ..Seconds end
  2096.  
  2097. Time.Text = "Time: " ..Minutes.. ":" ..Seconds
  2098.  
  2099. wait(0.05)
  2100.  
  2101. end
  2102.  
  2103. end)()
  2104.  
  2105. Gui.Parent = PlayerGui
  2106.  
  2107. end
  2108.  
  2109. _G.RobloxAdvanced.HookPlayerDeath = function(Player)
  2110.  
  2111. table.insert(_G.RobloxAdvanced.Connections, Player.Changed:connect(function(Property)
  2112.  
  2113. if Property == "Character" then
  2114.  
  2115. if Player.Character ~= nil then
  2116.  
  2117. if _G.RobloxAdvanced.SpawnGuiEnabled == true then
  2118.  
  2119. local PlayerGui = Player:FindFirstChild("PlayerGui")
  2120.  
  2121. if PlayerGui == nil then return end
  2122.  
  2123. local Gui = Instance.new("ScreenGui")
  2124.  
  2125. Gui.Name = "Life"
  2126.  
  2127. local Frame = Instance.new("Frame")
  2128.  
  2129. Frame.Name = "White"
  2130.  
  2131. Frame.Size = UDim2.new(2, 0, 2, 0)
  2132.  
  2133. Frame.Position = UDim2.new(-0.5, 0, -0.5, 0)
  2134.  
  2135. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  2136.  
  2137. Frame.BackgroundTransparency = 0
  2138.  
  2139. Frame.Parent = Gui
  2140.  
  2141. Gui.Parent = PlayerGui
  2142.  
  2143. coroutine.wrap(function()
  2144.  
  2145. wait(0.1)
  2146.  
  2147. for i = 0, 1, 0.1 do
  2148.  
  2149. Frame.BackgroundColor3 = Color3.new(i, i, i)
  2150.  
  2151. wait()
  2152.  
  2153. end
  2154.  
  2155. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  2156.  
  2157. wait(0.3)
  2158.  
  2159. for i = 0, 1, 0.05 do
  2160.  
  2161. Frame.BackgroundTransparency = i
  2162.  
  2163. wait()
  2164.  
  2165. end
  2166.  
  2167. Gui:Remove()
  2168.  
  2169. end)()
  2170.  
  2171. end
  2172.  
  2173. _G.RobloxAdvanced.HUD(Player)
  2174.  
  2175. end
  2176.  
  2177. end
  2178.  
  2179. end))
  2180.  
  2181. _G.RobloxAdvanced.HUD(Player)
  2182.  
  2183. table.insert(_G.RobloxAdvanced.Connections, Player.Chatted:connect(function(Message)
  2184.  
  2185. if string.sub(Message, 0, 5) == "lego " then Message = string.sub(Message, 6) end
  2186.  
  2187. Message = Message:lower()
  2188.  
  2189. if Message == "throw me" or Message == "ragdoll" then
  2190.  
  2191. if Player.Character == nil then return end
  2192.  
  2193. if Player.Character:FindFirstChild("Humanoid") == nil then return end
  2194.  
  2195. if Player.Character:FindFirstChild("Torso") == nil then return end
  2196.  
  2197. Player.Character.Humanoid.Sit = true
  2198.  
  2199. _G.RobloxAdvanced.Ragdoll(true, Player.Character)
  2200.  
  2201. if Message == "throw me" then
  2202.  
  2203. Player.Character.Torso.Velocity = Player.Character.Torso.Velocity + (Player.Character.Torso.CFrame.lookVector * 150) + Vector3.new(0, 50, 0)
  2204.  
  2205. end
  2206.  
  2207. end
  2208.  
  2209. end))
  2210.  
  2211. end
  2212.  
  2213. _G.RobloxAdvanced.HookModelDeath = function(Character)
  2214.  
  2215. wait()
  2216.  
  2217. if Character == nil then return end
  2218.  
  2219. if Character:FindFirstChild("Humanoid") == nil then return end
  2220.  
  2221. local RagdollStatus = false
  2222.  
  2223. local ConnectTouched = function(Part)
  2224.  
  2225. if Part.Parent ~= Character then return end
  2226.  
  2227. pcall(function()
  2228.  
  2229. table.insert(_G.RobloxAdvanced.Connections, Part.Touched:connect(function(Hit)
  2230.  
  2231. if Hit == nil then return end
  2232.  
  2233. if Hit.Parent == nil then return end
  2234.  
  2235. if Hit.Parent ~= Character and Hit.Parent.Parent ~= Character and Hit:GetMass() > 3 then
  2236.  
  2237. local Velocity1 = {
  2238.  
  2239. math.abs(Part.Velocity.x),
  2240.  
  2241. math.abs(Part.Velocity.y),
  2242.  
  2243. math.abs(Part.Velocity.z)
  2244.  
  2245. }
  2246.  
  2247. local RotVelocity1 = {
  2248.  
  2249. math.abs(Part.RotVelocity.x),
  2250.  
  2251. math.abs(Part.RotVelocity.y),
  2252.  
  2253. math.abs(Part.RotVelocity.z)
  2254.  
  2255. }
  2256.  
  2257. local Velocity2 = {
  2258.  
  2259. math.abs(Hit.Velocity.x),
  2260.  
  2261. math.abs(Hit.Velocity.y),
  2262.  
  2263. math.abs(Hit.Velocity.z)
  2264.  
  2265. }
  2266.  
  2267. local RotVelocity2 = {
  2268.  
  2269. math.abs(Hit.RotVelocity.x),
  2270.  
  2271. math.abs(Hit.RotVelocity.y),
  2272.  
  2273. math.abs(Hit.RotVelocity.z)
  2274.  
  2275. }
  2276.  
  2277. if RagdollStatus == false and _G.RobloxAdvanced.RagdollOnHit == true then
  2278.  
  2279. for i = 1, 3 do
  2280.  
  2281. local Total = math.abs(Velocity1[i] - Velocity2[i])
  2282.  
  2283. if Total > math.random(85, 150) then
  2284.  
  2285. RagdollStatus = true
  2286.  
  2287. end
  2288.  
  2289. end
  2290.  
  2291. for i = 1, 3 do
  2292.  
  2293. local Total = math.abs(RotVelocity1[i] - RotVelocity2[i])
  2294.  
  2295. if Total > math.random(75, 100) then
  2296.  
  2297. RagdollStatus = true
  2298.  
  2299. end
  2300.  
  2301. end
  2302.  
  2303. if RagdollStatus == true then
  2304.  
  2305. _G.RobloxAdvanced.Ragdoll(true, Character)
  2306.  
  2307. if Character.Humanoid.PlatformStand == true or Character.Humanoid.Sit == true then
  2308.  
  2309. coroutine.wrap(function()
  2310.  
  2311. wait(5)
  2312.  
  2313. RagdollStatus = false
  2314.  
  2315. end)()
  2316.  
  2317. else
  2318.  
  2319. coroutine.wrap(function()
  2320.  
  2321. Character.Humanoid.PlatformStand = true
  2322.  
  2323. wait(1)
  2324.  
  2325. Character.Humanoid.PlatformStand = false
  2326.  
  2327. wait(5)
  2328.  
  2329. RagdollStatus = false
  2330.  
  2331. end)()
  2332.  
  2333. end
  2334.  
  2335. end
  2336.  
  2337. end
  2338.  
  2339. local Damage = 0
  2340.  
  2341. for i = 1, #Velocity1 do Damage = Damage + Velocity1[i] end
  2342.  
  2343. for i = 1, #RotVelocity1 do Damage = Damage + RotVelocity1[i] end
  2344.  
  2345. for i = 1, #Velocity2 do Damage = Damage + Velocity2[i] end
  2346.  
  2347. for i = 1, #RotVelocity2 do Damage = Damage + RotVelocity2[i] end
  2348.  
  2349. Damage = Damage / 60
  2350.  
  2351. if Damage >= 4 and _G.RobloxAdvanced.DamageOnHit == true then
  2352.  
  2353. pcall(function() Character.Humanoid:TakeDamage(math.floor(Damage)) end)
  2354.  
  2355. end
  2356.  
  2357. end
  2358.  
  2359. end))
  2360.  
  2361. end)
  2362.  
  2363. end
  2364.  
  2365. for _, Part in pairs(Character:GetChildren()) do ConnectTouched(Part) end
  2366.  
  2367. table.insert(_G.RobloxAdvanced.Connections, Character.ChildAdded:connect(function(Part) ConnectTouched(Part) end))
  2368.  
  2369. local OldHealth = Character.Humanoid.Health
  2370.  
  2371. table.insert(_G.RobloxAdvanced.Connections, Character.Humanoid.Changed:connect(function(Property)
  2372.  
  2373. if Property == "Health" then
  2374.  
  2375. local Source = nil
  2376.  
  2377. for _, Part in pairs(Character:GetChildren()) do
  2378.  
  2379. if Part:IsA("BasePart") then
  2380.  
  2381. if Source == nil then
  2382.  
  2383. Source = Part
  2384.  
  2385. else
  2386.  
  2387. if math.abs(Part.Velocity.x) + math.abs(Part.Velocity.y) + math.abs(Part.Velocity.z) > math.abs(Source.Velocity.x) + math.abs(Source.Velocity.y) + math.abs(Source.Velocity.z) then
  2388.  
  2389. Source = Part
  2390.  
  2391. end
  2392.  
  2393. end
  2394.  
  2395. end
  2396.  
  2397. end
  2398.  
  2399. if Source == nil then return end
  2400.  
  2401. if math.abs(Character.Humanoid.Health - OldHealth) > math.abs((Character.Humanoid.Health + 0.01 * 1.05 * Character.Humanoid.MaxHealth) - Character.Humanoid.Health) and _G.RobloxAdvanced.ShowDamage == true then
  2402.  
  2403. local Model = Instance.new("Model", Workspace)
  2404.  
  2405. Model.Name = tostring(math.floor(Character.Humanoid.Health - OldHealth))
  2406.  
  2407. Model.Name = Model.Name:sub(0, 1) ~= "-" and Model.Name.. "+" or Model.Name
  2408.  
  2409. local Damage = Instance.new("Part", Model)
  2410.  
  2411. Damage.Name = "Head"
  2412.  
  2413. Damage.BrickColor = BrickColor.new(Model.Name:match("-") and "Really red" or "Lime green")
  2414.  
  2415. if (OldHealth - Character.Humanoid.Health) / Character.Humanoid.MaxHealth > 0.25 then
  2416.  
  2417. coroutine.wrap(function()
  2418.  
  2419. while Damage.Parent ~= nil do
  2420.  
  2421. Damage.BrickColor = BrickColor.new("New Yeller")
  2422.  
  2423. wait()
  2424.  
  2425. Damage.BrickColor = BrickColor.new("Really blue")
  2426.  
  2427. wait()
  2428.  
  2429. end
  2430.  
  2431. end)()
  2432.  
  2433. end
  2434.  
  2435. Damage.TopSurface = 0
  2436.  
  2437. Damage.BottomSurface = 0
  2438.  
  2439. Damage.CanCollide = false
  2440.  
  2441. Damage.FormFactor = "Custom"
  2442.  
  2443. Damage.Size = (OldHealth - Character.Humanoid.Health) / Character.Humanoid.MaxHealth > 0.25 and Vector3.new(1, 1, 1) or Vector3.new(0.5, 0.5, 0.5)
  2444.  
  2445. Damage.CFrame = CFrame.new(Source.Position)
  2446.  
  2447. coroutine.wrap(function()
  2448.  
  2449. while Damage.Parent ~= nil do
  2450.  
  2451. Damage.CanCollide = false
  2452.  
  2453. wait()
  2454.  
  2455. end
  2456.  
  2457. end)()
  2458.  
  2459. local Humanoid = Instance.new("Humanoid", Model)
  2460.  
  2461. Humanoid.Name = "Corpse"
  2462.  
  2463. Humanoid.MaxHealth = 100
  2464.  
  2465. Humanoid.Health = 0
  2466.  
  2467. Humanoid.WalkSpeed = 0
  2468.  
  2469. Humanoid.PlatformStand = true
  2470.  
  2471. local BodyVelocity = Instance.new("BodyVelocity", Damage)
  2472.  
  2473. BodyVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2474.  
  2475. BodyVelocity.velocity = Vector3.new(0, 7, 0)
  2476.  
  2477. coroutine.wrap(function()
  2478.  
  2479. wait(1)
  2480.  
  2481. for i = 0, 1, 0.05 do
  2482.  
  2483. Damage.Transparency = i
  2484.  
  2485. BodyVelocity.velocity = Vector3.new(0, 7 * (1 - i), 0)
  2486.  
  2487. wait()
  2488.  
  2489. end
  2490.  
  2491. Model:Remove()
  2492.  
  2493. end)()
  2494.  
  2495. end
  2496.  
  2497. if OldHealth - Character.Humanoid.Health >= 3 then
  2498.  
  2499. if _G.RobloxAdvanced.BloodEnabled == true then
  2500.  
  2501. local Max = math.ceil((OldHealth - Character.Humanoid.Health) * 2)
  2502.  
  2503. for i = 1, (Max > 20 and 20 or Max + 1) do
  2504.  
  2505. local Blood = _G.RobloxAdvanced.MakeBlood()
  2506.  
  2507. Blood.CFrame = Source.CFrame * CFrame.new(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2))
  2508.  
  2509. Blood.Velocity = (Blood.Position - Source.Position).unit * math.random(5, 25)
  2510.  
  2511. Blood.Parent = Workspace
  2512.  
  2513. end
  2514.  
  2515. end
  2516.  
  2517. local Player = game:GetService("Players"):GetPlayerFromCharacter(Character)
  2518.  
  2519. if Player ~= nil and _G.RobloxAdvanced.BloodGuiEnabled == true then
  2520.  
  2521. local PlayerGui = Player:FindFirstChild("PlayerGui")
  2522.  
  2523. if PlayerGui == nil then PlayerGui = Instance.new("PlayerGui", Player) end
  2524.  
  2525. if PlayerGui:FindFirstChild("Pain") ~= nil then PlayerGui.Pain:Remove() end
  2526.  
  2527. local Gui = Instance.new("ScreenGui")
  2528.  
  2529. Gui.Name = "Pain"
  2530.  
  2531. local Frame = Instance.new("Frame")
  2532.  
  2533. Frame.Name = "Red"
  2534.  
  2535. Frame.Size = UDim2.new(2, 0, 2, 0)
  2536.  
  2537. Frame.Position = UDim2.new(-0.5, 0, -0.5, 0)
  2538.  
  2539. Frame.BackgroundColor3 = Color3.new(1, 0, 0)
  2540.  
  2541. Frame.BackgroundTransparency = (math.abs(OldHealth - Character.Humanoid.Health) / Character.Humanoid.MaxHealth) * 1.2
  2542.  
  2543. Frame.Parent = Gui
  2544.  
  2545. Gui.Parent = PlayerGui
  2546.  
  2547. coroutine.wrap(function()
  2548.  
  2549. for i = Frame.BackgroundTransparency, 1, 0.05 do
  2550.  
  2551. Frame.BackgroundTransparency = i
  2552.  
  2553. wait()
  2554.  
  2555. end
  2556.  
  2557. Gui:Remove()
  2558.  
  2559. end)()
  2560.  
  2561. end
  2562.  
  2563. end
  2564.  
  2565. if (OldHealth - Character.Humanoid.Health) / Character.Humanoid.MaxHealth > 0.25 and _G.RobloxAdvanced.CriticalHitsEnabled == true and Character.Humanoid.Health > 0 and RagdollStatus == false then
  2566.  
  2567. RagdollStatus = true
  2568.  
  2569. _G.RobloxAdvanced.Ragdoll(true, Character)
  2570.  
  2571. Character.Humanoid.PlatformStand = true
  2572.  
  2573. local Sound = Instance.new("Sound", Character.Torso)
  2574.  
  2575. Sound.SoundId = "http://www.roblox.com/Asset/?id=2801263"
  2576.  
  2577. Sound.Volume = 1
  2578.  
  2579. Sound.Pitch = math.random(500, 700) / 1000
  2580.  
  2581. Sound:Play()
  2582.  
  2583. local Player = game:GetService("Players"):GetPlayerFromCharacter(Character)
  2584.  
  2585. if Player ~= nil then
  2586.  
  2587. local PlayerGui = Player:FindFirstChild("PlayerGui")
  2588.  
  2589. if PlayerGui == nil then return end
  2590.  
  2591. if PlayerGui:FindFirstChild("Pain") ~= nil then PlayerGui.Pain:Remove() end
  2592.  
  2593. if PlayerGui:FindFirstChild("Critical Hit") ~= nil then PlayerGui.Pain:Remove() end
  2594.  
  2595. local Gui = Instance.new("ScreenGui", PlayerGui)
  2596.  
  2597. Gui.Name = "Critical Hit"
  2598.  
  2599. local Frame = Instance.new("Frame", Gui)
  2600.  
  2601. Frame.Name = "Yellow"
  2602.  
  2603. Frame.Size = UDim2.new(2, 0, 2, 0)
  2604.  
  2605. Frame.Position = UDim2.new(-0.5, 0, -0.5, 0)
  2606.  
  2607. Frame.BackgroundColor3 = Color3.new(0.9, 0.9, 0)
  2608.  
  2609. Frame.BackgroundTransparency = 0
  2610.  
  2611. coroutine.wrap(function()
  2612.  
  2613. for i = 0, 1, 0.01 do
  2614.  
  2615. Frame.BackgroundTransparency = i
  2616.  
  2617. wait()
  2618.  
  2619. end
  2620.  
  2621. Gui:Remove()
  2622.  
  2623. end)()
  2624.  
  2625. for i = 1, 5 do
  2626.  
  2627. local Label = Instance.new("TextLabel", Frame)
  2628.  
  2629. Label.Name = "Notification"
  2630.  
  2631. Label.Position = UDim2.new(0.5, 0, 0.5, 0)
  2632.  
  2633. Label.Text = "CRITICAL HIT"
  2634.  
  2635. Label.FontSize = "Size18"
  2636.  
  2637. Label.TextColor3 = Color3.new(1, 0.5, 0)
  2638.  
  2639. Label.TextTransparency = 0
  2640.  
  2641. coroutine.wrap(function()
  2642.  
  2643. while Label.Parent ~= nil do
  2644.  
  2645. Label.Position = UDim2.new(0.5, math.random(-25, 25), 0.5, math.random(-25, 25))
  2646.  
  2647. Label.FontSize = "Size" ..tostring((function()
  2648.  
  2649. local Size = math.random(1, 5)
  2650.  
  2651. if Size == 1 then
  2652.  
  2653. return 14
  2654.  
  2655. elseif Size == 2 then
  2656.  
  2657. return 18
  2658.  
  2659. elseif Size == 3 then
  2660.  
  2661. return 24
  2662.  
  2663. elseif Size == 4 then
  2664.  
  2665. return 36
  2666.  
  2667. elseif Size == 5 then
  2668.  
  2669. return 48
  2670.  
  2671. end
  2672.  
  2673. end)())
  2674.  
  2675. wait()
  2676.  
  2677. end
  2678.  
  2679. end)()
  2680.  
  2681. coroutine.wrap(function()
  2682.  
  2683. for i = 0.01, 1, 0.05 do
  2684.  
  2685. Label.TextTransparency = i
  2686.  
  2687. wait()
  2688.  
  2689. end
  2690.  
  2691. end)()
  2692.  
  2693. end
  2694.  
  2695. end
  2696.  
  2697. coroutine.wrap(function()
  2698.  
  2699. wait(3)
  2700.  
  2701. Character.Humanoid.PlatformStand = false
  2702.  
  2703. wait(5)
  2704.  
  2705. RagdollStatus = false
  2706.  
  2707. end)()
  2708.  
  2709. end
  2710.  
  2711. OldHealth = Character.Humanoid.Health
  2712.  
  2713. end
  2714.  
  2715. end))
  2716.  
  2717. table.insert(_G.RobloxAdvanced.Connections, Character.Humanoid.Died:connect(function()
  2718.  
  2719. local Humanoid = Character:FindFirstChild("Humanoid")
  2720.  
  2721. if Humanoid == nil then return end
  2722.  
  2723. local Player = game:GetService("Players"):GetPlayerFromCharacter(Character)
  2724.  
  2725. local Killer = nil
  2726.  
  2727. if Humanoid:FindFirstChild("creator") ~= nil then
  2728.  
  2729. Killer = Humanoid.creator.Value
  2730.  
  2731. end
  2732.  
  2733. if Killer ~= nil then
  2734.  
  2735. if Killer:FindFirstChild("RobloxAdvancedKills") == nil then
  2736.  
  2737. Instance.new("IntValue", Killer).Name = "RobloxAdvancedKills"
  2738.  
  2739. end
  2740.  
  2741. if Killer:FindFirstChild("RobloxAdvancedKillstreak") == nil then
  2742.  
  2743. Instance.new("IntValue", Killer).Name = "RobloxAdvancedKillstreak"
  2744.  
  2745. end
  2746.  
  2747. if Player ~= nil and Player.Neutral == false and Killer.Neutral == false and Player.TeamColor == Killer.TeamColor then
  2748.  
  2749. Killer.RobloxAdvancedKills.Value = Killer.RobloxAdvancedKills.Value - 2
  2750.  
  2751. Killer.RobloxAdvancedKillstreak.Value = 0
  2752.  
  2753. else
  2754.  
  2755. Killer.RobloxAdvancedKills.Value = Killer.RobloxAdvancedKills.Value + 1
  2756.  
  2757. Killer.RobloxAdvancedKillstreak.Value = Killer.RobloxAdvancedKillstreak.Value + 1
  2758.  
  2759. end
  2760.  
  2761. end
  2762.  
  2763. if Player ~= nil then
  2764.  
  2765. if Player:FindFirstChild("RobloxAdvancedDeaths") == nil then
  2766.  
  2767. Instance.new("IntValue", Player).Name = "RobloxAdvancedDeaths"
  2768.  
  2769. end
  2770.  
  2771. if Player:FindFirstChild("RobloxAdvancedKillstreak") == nil then
  2772.  
  2773. Instance.new("IntValue", Player).Name = "RobloxAdvancedKillstreak"
  2774.  
  2775. end
  2776.  
  2777. Player.RobloxAdvancedDeaths.Value = Player.RobloxAdvancedDeaths.Value + 1
  2778.  
  2779. Player.RobloxAdvancedKillstreak.Value = 0
  2780.  
  2781. end
  2782.  
  2783. if _G.RobloxAdvanced.RagdollOnDeath == true then
  2784.  
  2785. _G.RobloxAdvanced.Ragdoll(true, Character, true)
  2786.  
  2787. end
  2788.  
  2789. coroutine.wrap(function()
  2790.  
  2791. if _G.RobloxAdvanced.DeathGuiEnabled == false then return end
  2792.  
  2793. if Player == nil then return end
  2794.  
  2795. local PlayerGui = Player:FindFirstChild("PlayerGui")
  2796.  
  2797. if PlayerGui == nil then return end
  2798.  
  2799. local Gui = Instance.new("ScreenGui")
  2800.  
  2801. Gui.Name = "Death"
  2802.  
  2803. local Frame = Instance.new("Frame")
  2804.  
  2805. Frame.Name = "Black"
  2806.  
  2807. Frame.Size = UDim2.new(2, 0, 2, 0)
  2808.  
  2809. Frame.Position = UDim2.new(-0.5, 0, -0.5, 0)
  2810.  
  2811. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  2812.  
  2813. Frame.BackgroundTransparency = 1
  2814.  
  2815. Frame.Parent = Gui
  2816.  
  2817. local Label = Instance.new("TextLabel")
  2818.  
  2819. Label.Name = "Notification"
  2820.  
  2821. Label.Position = UDim2.new(0.5, 0, 0.5, 0)
  2822.  
  2823. if Killer ~= nil then
  2824.  
  2825. if Killer == Player then
  2826.  
  2827. Label.Text = "You have killed yourself."
  2828.  
  2829. else
  2830.  
  2831. Label.Text = "You have been killed by " ..Killer.Name.. "."
  2832.  
  2833. end
  2834.  
  2835. else
  2836.  
  2837. Label.Text = "You have died."
  2838.  
  2839. end
  2840.  
  2841. Label.FontSize = "Size24"
  2842.  
  2843. Label.TextColor3 = Color3.new(1, 0.5, 0)
  2844.  
  2845. Label.TextTransparency = 1
  2846.  
  2847. Label.Parent = Frame
  2848.  
  2849. Gui.Parent = PlayerGui
  2850.  
  2851. wait(0.5)
  2852.  
  2853. for i = 1, 0, -0.05 do
  2854.  
  2855. Label.TextTransparency = i
  2856.  
  2857. wait()
  2858.  
  2859. end
  2860.  
  2861. Label.BackgroundTransparency = 0
  2862.  
  2863. wait(0.5)
  2864.  
  2865. for i = 1, 0, -0.025 do
  2866.  
  2867. Frame.BackgroundTransparency = i
  2868.  
  2869. wait()
  2870.  
  2871. end
  2872.  
  2873. Frame.BackgroundTransparency = 0
  2874.  
  2875. wait(0.5)
  2876.  
  2877. for i = 0, 1, 0.05 do
  2878.  
  2879. Label.TextTransparency = i
  2880.  
  2881. wait()
  2882.  
  2883. end
  2884.  
  2885. Label.BackgroundTransparency = 1
  2886.  
  2887. end)()
  2888.  
  2889. wait(4.5)
  2890.  
  2891. if Character == nil or _G.RobloxAdvanced.KeepCorpses == false then return end
  2892.  
  2893. if Character.Parent == nil then return end
  2894.  
  2895. local ReweldNeck = false
  2896.  
  2897. if Character:FindFirstChild("Torso") ~= nil then
  2898.  
  2899. if Character.Torso:FindFirstChild("Neck") ~= nil then
  2900.  
  2901. ReweldNeck = true
  2902.  
  2903. end
  2904.  
  2905. end
  2906.  
  2907. local Model = Instance.new("Model", Workspace)
  2908.  
  2909. Model.Name = Character.Name.. "'s Corpse"
  2910.  
  2911. for _, Part in pairs(Character:GetChildren()) do
  2912.  
  2913. if Part.ClassName == "CharacterMesh" or Part:IsA("Clothing") or Part.ClassName == "ShirtGraphic" then
  2914.  
  2915. Part:Clone().Parent = Model
  2916.  
  2917. end
  2918.  
  2919. for _, Part2 in pairs(Part:GetChildren()) do
  2920.  
  2921. if Part2.ClassName == "Sound" then
  2922.  
  2923. Part2.SoundId = ""
  2924.  
  2925. Part2.Looped = false
  2926.  
  2927. Part2.PlayOnRemove = false
  2928.  
  2929. Part2.Volume = 0
  2930.  
  2931. Part2.Pitch = 0
  2932.  
  2933. Part2:Stop()
  2934.  
  2935. end
  2936.  
  2937. end
  2938.  
  2939. if Part.ClassName == "Part" then
  2940.  
  2941. pcall(function()
  2942.  
  2943. Part.Parent = Model
  2944.  
  2945. Part.CanCollide = true
  2946.  
  2947. end)
  2948.  
  2949. end
  2950.  
  2951. end
  2952.  
  2953. local Humanoid = Instance.new("Humanoid")
  2954.  
  2955. Humanoid.Name = "Corpse"
  2956.  
  2957. Humanoid.Health = 0
  2958.  
  2959. Humanoid.WalkSpeed = 0
  2960.  
  2961. Humanoid.PlatformStand = true
  2962.  
  2963. Humanoid.Parent = Model
  2964.  
  2965. if ReweldNeck == true then
  2966.  
  2967. local Neck = Instance.new("Weld")
  2968.  
  2969. Neck.Part0 = Torso
  2970.  
  2971. Neck.Part1 = Head
  2972.  
  2973. Neck.C0 = CFrame.new(0, 1.5, 0)
  2974.  
  2975. Neck.Parent = Torso
  2976.  
  2977. end
  2978.  
  2979. game:GetService("Debris"):AddItem(Model, _G.RobloxAdvanced.KeepCorpsesTime)
  2980.  
  2981. end))
  2982.  
  2983. table.insert(_G.RobloxAdvanced.Connections, Character.Humanoid.FallingDown:connect(function() _G.RobloxAdvanced.Ragdoll(true, Character) end))
  2984.  
  2985. table.insert(_G.RobloxAdvanced.Connections, Character.Humanoid.GettingUp:connect(function() _G.RobloxAdvanced.Ragdoll(false, Character) end))
  2986.  
  2987. coroutine.wrap(function()
  2988.  
  2989. local function RemoveLimb(Name)
  2990.  
  2991. if Character:FindFirstChild(Name) == nil then return false end
  2992.  
  2993. local Model = Instance.new("Model")
  2994.  
  2995. Model.Name = "Decapitated Limb"
  2996.  
  2997. for _, Part in pairs(Character:GetChildren()) do
  2998.  
  2999. if Part.ClassName == "CharacterMesh" or Part:IsA("Clothing") then
  3000.  
  3001. Part:Clone().Parent = Model
  3002.  
  3003. end
  3004.  
  3005. if Part.Name == Name then
  3006.  
  3007. pcall(function()
  3008.  
  3009. Part.Parent = Model
  3010.  
  3011. Part.CanCollide = true
  3012.  
  3013. Part:BreakJoints()
  3014.  
  3015. end)
  3016.  
  3017. end
  3018.  
  3019. end
  3020.  
  3021. local Humanoid = Instance.new("Humanoid")
  3022.  
  3023. Humanoid.Name = "Corpse"
  3024.  
  3025. Humanoid.Health = 0
  3026.  
  3027. Humanoid.MaxHealth = 0
  3028.  
  3029. Humanoid.WalkSpeed = 0
  3030.  
  3031. Humanoid.PlatformStand = true
  3032.  
  3033. Humanoid.Parent = Model
  3034.  
  3035. Model.Parent = Workspace
  3036.  
  3037. game:GetService("Debris"):AddItem(Model, _G.RobloxAdvanced.KeepCorpsesTime)
  3038.  
  3039. return true, Model
  3040.  
  3041. end
  3042.  
  3043. while true do
  3044.  
  3045. if Character.Parent == nil then break end
  3046.  
  3047. if Character:FindFirstChild("Torso") == nil then break end
  3048.  
  3049. if Character:FindFirstChild("Humanoid") == nil then break end
  3050.  
  3051. if Character.Torso:FindFirstChild("Left Shoulder") == nil and Character.Torso:FindFirstChild("LeftShoulder") == nil and Character.Torso:FindFirstChild("Left Shoulder 2") == nil then
  3052.  
  3053. local Blood = _G.RobloxAdvanced.MakeBlood()
  3054.  
  3055. Blood.CFrame = Character.Torso.CFrame * CFrame.new(-1.2, 0.5, 0)
  3056.  
  3057. Blood.Velocity = (Blood.Position - (Character.Torso.CFrame * CFrame.new(0, 0.5, 0)).p).unit * math.random(10, 25)
  3058.  
  3059. Blood.Parent = _G.RobloxAdvanced.BloodEnabled == true and Workspace
  3060.  
  3061. if Character:FindFirstChild("Humanoid") ~= nil then Character.Humanoid:TakeDamage(0.25) end
  3062.  
  3063. if Character:FindFirstChild("Left Arm") ~= nil then RemoveLimb("Left Arm") end
  3064.  
  3065. end
  3066.  
  3067. if Character.Torso:FindFirstChild("Right Shoulder") == nil and Character.Torso:FindFirstChild("RightShoulder") == nil and Character.Torso:FindFirstChild("Right Shoulder 2") == nil then
  3068.  
  3069. local Blood = _G.RobloxAdvanced.MakeBlood()
  3070.  
  3071. Blood.CFrame = Character.Torso.CFrame * CFrame.new(1.2, 0.5, 0)
  3072.  
  3073. Blood.Velocity = (Blood.Position - (Character.Torso.CFrame * CFrame.new(0, 0.5, 0)).p).unit * math.random(10, 25)
  3074.  
  3075. Blood.Parent = _G.RobloxAdvanced.BloodEnabled == true and Workspace
  3076.  
  3077. if Character:FindFirstChild("Humanoid") ~= nil then Character.Humanoid:TakeDamage(0.25) end
  3078.  
  3079. if Character:FindFirstChild("Right Arm") ~= nil then RemoveLimb("Right Arm") end
  3080.  
  3081. end
  3082.  
  3083. if Character.Torso:FindFirstChild("Left Hip") == nil and Character.Torso:FindFirstChild("LeftHip") == nil and Character.Torso:FindFirstChild("Left Hip 2") == nil then
  3084.  
  3085. local Blood = _G.RobloxAdvanced.MakeBlood()
  3086.  
  3087. Blood.CFrame = Character.Torso.CFrame * CFrame.new(-0.5, -1.2, 0)
  3088.  
  3089. Blood.Velocity = (Blood.Position - (Character.Torso.CFrame * CFrame.new(-0.5, 0, 0)).p).unit * math.random(4, 8)
  3090.  
  3091. Blood.Parent = _G.RobloxAdvanced.BloodEnabled == true and Workspace
  3092.  
  3093. if Character:FindFirstChild("Humanoid") ~= nil then Character.Humanoid:TakeDamage(0.25) end
  3094.  
  3095. if Character:FindFirstChild("Left Leg") ~= nil then RemoveLimb("Left Leg") end
  3096.  
  3097. end
  3098.  
  3099. if Character.Torso:FindFirstChild("Right Hip") == nil and Character.Torso:FindFirstChild("RightHip") == nil and Character.Torso:FindFirstChild("Right Hip 2") == nil then
  3100.  
  3101. local Blood = _G.RobloxAdvanced.MakeBlood()
  3102.  
  3103. Blood.CFrame = Character.Torso.CFrame * CFrame.new(0.5, -1.2, 0)
  3104.  
  3105. Blood.Velocity = (Blood.Position - (Character.Torso.CFrame * CFrame.new(0.5, 0, 0)).p).unit * math.random(4, 80)
  3106.  
  3107. Blood.Parent = _G.RobloxAdvanced.BloodEnabled == true and Workspace
  3108.  
  3109. if Character:FindFirstChild("Humanoid") ~= nil then Character.Humanoid:TakeDamage(0.25) end
  3110.  
  3111. if Character:FindFirstChild("Right Leg") ~= nil then RemoveLimb("Right Leg") end
  3112.  
  3113. end
  3114.  
  3115. if Character.Torso:FindFirstChild("Neck") == nil then
  3116.  
  3117. local Blood = _G.RobloxAdvanced.MakeBlood()
  3118.  
  3119. Blood.CFrame = Character.Torso.CFrame * CFrame.new(0, 1, 0)
  3120.  
  3121. Blood.Velocity = (Blood.Position - Character.Torso.Position).unit * math.random(25, 75)
  3122.  
  3123. Blood.Parent = _G.RobloxAdvanced.BloodEnabled == true and Workspace
  3124.  
  3125. if Character:FindFirstChild("Head") ~= nil then
  3126.  
  3127. local Blood = _G.RobloxAdvanced.MakeBlood()
  3128.  
  3129. Blood.CFrame = Character.Head.CFrame * CFrame.new(0, -0.5, 0)
  3130.  
  3131. Blood.Velocity = (Blood.Position - Character.Head.Position).unit * math.random(5, 25)
  3132.  
  3133. Blood.Parent = Workspace
  3134.  
  3135. end
  3136.  
  3137. end
  3138.  
  3139. wait(0.11)
  3140.  
  3141. end
  3142.  
  3143. end)()
  3144.  
  3145. end
  3146.  
  3147. _G.RobloxAdvanced.Ragdoll = function(Format, Character, Force)
  3148.  
  3149. if Force ~= true then
  3150.  
  3151. if Character:FindFirstChild("Ragdoll") ~= nil and Format == true then return false end
  3152.  
  3153. if Character:FindFirstChild("Ragdoll") == nil and Format == false then return false end
  3154.  
  3155. end
  3156.  
  3157. local Head = nil
  3158.  
  3159. local Torso = nil
  3160.  
  3161. local Humanoid = nil
  3162.  
  3163. local Dead = false
  3164.  
  3165. for _, Children in pairs(Character:GetChildren()) do
  3166.  
  3167. if Children.ClassName == "ForceField" then Children:Remove() end
  3168.  
  3169. if Children.Name == "" then Children:Remove() end
  3170.  
  3171. if Children.Name == "Head" then Head = Children end
  3172.  
  3173. if Children.Name == "Torso" then Torso = Children end
  3174.  
  3175. if Children.ClassName == "Humanoid" then Humanoid = Children end
  3176.  
  3177. if Children:IsA("Accoutrement") then
  3178.  
  3179. if Children:FindFirstChild("Handle") ~= nil then
  3180.  
  3181. if math.random(1, 3) == 1 then
  3182.  
  3183. coroutine.wrap(function()
  3184.  
  3185. Children.Parent = Workspace
  3186.  
  3187. wait()
  3188.  
  3189. Children.Parent = Character
  3190.  
  3191. Children.Handle.CanCollide = true
  3192.  
  3193. end)()
  3194.  
  3195. else
  3196.  
  3197. Children.Parent = Workspace
  3198.  
  3199. Children.Handle.CanCollide = true
  3200.  
  3201. end
  3202.  
  3203. else
  3204.  
  3205. Children:Remove()
  3206.  
  3207. end
  3208.  
  3209. end
  3210.  
  3211. end
  3212.  
  3213. if Humanoid ~= nil then
  3214.  
  3215. if Humanoid.Health <= 0 then
  3216.  
  3217. Dead = true
  3218.  
  3219. end
  3220.  
  3221. end
  3222.  
  3223. if Torso ~= nil then
  3224.  
  3225. for _, Children2 in pairs(Torso:GetChildren()) do
  3226.  
  3227. if Children2:IsA("JointInstance") then
  3228.  
  3229. Children2:Remove()
  3230.  
  3231. end
  3232.  
  3233. end
  3234.  
  3235. end
  3236.  
  3237. if Head ~= nil and (function()
  3238.  
  3239. if Dead == true and math.random(1, 2) == 1 then
  3240.  
  3241. return true
  3242.  
  3243. else
  3244.  
  3245. return false
  3246.  
  3247. end
  3248.  
  3249. end)() == false then
  3250.  
  3251. local Neck = Instance.new("Motor6D")
  3252.  
  3253. Neck.Name = "Neck"
  3254.  
  3255. Neck.Part0 = Torso
  3256.  
  3257. Neck.Part1 = Head
  3258.  
  3259. Neck.C0 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, math.rad(180))
  3260.  
  3261. Neck.C1 = CFrame.new(0, -0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, math.rad(180))
  3262.  
  3263. Neck.MaxVelocity = 0.1
  3264.  
  3265. Neck.Parent = Torso
  3266.  
  3267. end
  3268.  
  3269. if Format == true then
  3270.  
  3271. local Ragdoll = Instance.new("IntValue")
  3272.  
  3273. Ragdoll.Name = "Ragdoll"
  3274.  
  3275. Ragdoll.Parent = Character
  3276.  
  3277. if Torso ~= nil then
  3278.  
  3279. Torso.Velocity = Torso.Velocity / 1.25
  3280.  
  3281. Torso.RotVelocity = (Torso.RotVelocity / 1.25) + Vector3.new(math.random(-25, 25), math.random(-25, 25), math.random(-25, 25))
  3282.  
  3283. if Dead == true then
  3284.  
  3285. if Humanoid ~= nil then
  3286.  
  3287. local Humanoid2 = Humanoid:Clone()
  3288.  
  3289. wait()
  3290.  
  3291. Humanoid:Remove()
  3292.  
  3293. Humanoid2.Parent = Character
  3294.  
  3295. Humanoid = Humanoid2
  3296.  
  3297. end
  3298.  
  3299. end
  3300.  
  3301. local Limb = Character:FindFirstChild("Right Arm")
  3302.  
  3303. if Limb ~= nil then
  3304.  
  3305. Limb.Velocity = Torso.Velocity
  3306.  
  3307. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  3308.  
  3309. local Joint = Instance.new("Glue")
  3310.  
  3311. Joint.Name = "RightShoulder"
  3312.  
  3313. Joint.Part0 = Torso
  3314.  
  3315. Joint.Part1 = Limb
  3316.  
  3317. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  3318.  
  3319. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  3320.  
  3321. Joint.Parent = Torso
  3322.  
  3323. local Weight = Instance.new("Part")
  3324.  
  3325. Weight.Name = ""
  3326.  
  3327. Weight.TopSurface = 0
  3328.  
  3329. Weight.BottomSurface = 0
  3330.  
  3331. Weight.Shape = "Block"
  3332.  
  3333. Weight.FormFactor = "Custom"
  3334.  
  3335. Weight.Size = Vector3.new(1, 1, 1)
  3336.  
  3337. Weight.Transparency = 1
  3338.  
  3339. Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  3340.  
  3341. Weight.Parent = Character
  3342.  
  3343. local Weld = Instance.new("Weld")
  3344.  
  3345. Weld.Part0 = Limb
  3346.  
  3347. Weld.Part1 = Weight
  3348.  
  3349. Weld.C0 = CFrame.new(0, -0.5, 0)
  3350.  
  3351. Weld.Parent = Limb
  3352.  
  3353. end
  3354.  
  3355. local Limb = Character:FindFirstChild("Left Arm")
  3356.  
  3357. if Limb then
  3358.  
  3359. Limb.Velocity = Torso.Velocity
  3360.  
  3361. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  3362.  
  3363. local Joint = Instance.new("Glue")
  3364.  
  3365. Joint.Name = "LeftShoulder"
  3366.  
  3367. Joint.Part0 = Torso
  3368.  
  3369. Joint.Part1 = Limb
  3370.  
  3371. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  3372.  
  3373. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  3374.  
  3375. Joint.Parent = Torso
  3376.  
  3377. local Weight = Instance.new("Part")
  3378.  
  3379. Weight.Name = ""
  3380.  
  3381. Weight.TopSurface = 0
  3382.  
  3383. Weight.BottomSurface = 0
  3384.  
  3385. Weight.Shape = "Block"
  3386.  
  3387. Weight.FormFactor = "Custom"
  3388.  
  3389. Weight.Size = Vector3.new(1, 1, 1)
  3390.  
  3391. Weight.Transparency = 1
  3392.  
  3393. Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  3394.  
  3395. Weight.Parent = Character
  3396.  
  3397. local Weld = Instance.new("Weld")
  3398.  
  3399. Weld.Part0 = Limb
  3400.  
  3401. Weld.Part1 = Weight
  3402.  
  3403. Weld.C0 = CFrame.new(0, -0.5, 0)
  3404.  
  3405. Weld.Parent = Limb
  3406.  
  3407. end
  3408.  
  3409. local Limb = Character:FindFirstChild("Right Leg")
  3410.  
  3411. if Limb then
  3412.  
  3413. Limb.Velocity = Torso.Velocity
  3414.  
  3415. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  3416.  
  3417. local Joint = Instance.new("Glue")
  3418.  
  3419. Joint.Name = "RightHip"
  3420.  
  3421. Joint.Part0 = Torso
  3422.  
  3423. Joint.Part1 = Limb
  3424.  
  3425. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  3426.  
  3427. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  3428.  
  3429. Joint.Parent = Torso
  3430.  
  3431. local Weight = Instance.new("Part")
  3432.  
  3433. Weight.Name = ""
  3434.  
  3435. Weight.TopSurface = 0
  3436.  
  3437. Weight.BottomSurface = 0
  3438.  
  3439. Weight.Shape = "Block"
  3440.  
  3441. Weight.FormFactor = "Custom"
  3442.  
  3443. Weight.Size = Vector3.new(1, 1, 1)
  3444.  
  3445. Weight.Transparency = 1
  3446.  
  3447. Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  3448.  
  3449. Weight.Parent = Character
  3450.  
  3451. local Weld = Instance.new("Weld")
  3452.  
  3453. Weld.Part0 = Limb
  3454.  
  3455. Weld.Part1 = Weight
  3456.  
  3457. Weld.C0 = CFrame.new(0, -0.5, 0)
  3458.  
  3459. Weld.Parent = Limb
  3460.  
  3461. end
  3462.  
  3463. local Limb = Character:FindFirstChild("Left Leg")
  3464.  
  3465. if Limb then
  3466.  
  3467. Limb.Velocity = Torso.Velocity
  3468.  
  3469. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  3470.  
  3471. local Joint = Instance.new("Glue")
  3472.  
  3473. Joint.Name = "LeftHip"
  3474.  
  3475. Joint.Part0 = Torso
  3476.  
  3477. Joint.Part1 = Limb
  3478.  
  3479. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  3480.  
  3481. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  3482.  
  3483. Joint.Parent = Torso
  3484.  
  3485. local Weight = Instance.new("Part")
  3486.  
  3487. Weight.Name = ""
  3488.  
  3489. Weight.TopSurface = 0
  3490.  
  3491. Weight.BottomSurface = 0
  3492.  
  3493. Weight.Shape = "Block"
  3494.  
  3495. Weight.FormFactor = "Custom"
  3496.  
  3497. Weight.Size = Vector3.new(1, 1, 1)
  3498.  
  3499. Weight.Transparency = 1
  3500.  
  3501. Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  3502.  
  3503. Weight.Parent = Character
  3504.  
  3505. local Weld = Instance.new("Weld")
  3506.  
  3507. Weld.Part0 = Limb
  3508.  
  3509. Weld.Part1 = Weight
  3510.  
  3511. Weld.C0 = CFrame.new(0, -0.5, 0)
  3512.  
  3513. Weld.Parent = Limb
  3514.  
  3515. end
  3516.  
  3517. local Weight = Instance.new("Part")
  3518.  
  3519. Weight.Name = ""
  3520.  
  3521. Weight.TopSurface = 0
  3522.  
  3523. Weight.BottomSurface = 0
  3524.  
  3525. Weight.Shape = "Block"
  3526.  
  3527. Weight.FormFactor = "Custom"
  3528.  
  3529. Weight.Size = Vector3.new(1.75, 1.5, 1.1)
  3530.  
  3531. Weight.Transparency = 1
  3532.  
  3533. Weight.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  3534.  
  3535. Weight.Parent = Character
  3536.  
  3537. local Weld = Instance.new("Weld")
  3538.  
  3539. Weld.Part0 = Torso
  3540.  
  3541. Weld.Part1 = Weight
  3542.  
  3543. Weld.C0 = CFrame.new(0, 0.5, 0)
  3544.  
  3545. Weld.Parent = Torso
  3546.  
  3547. end
  3548.  
  3549. elseif Format == false then
  3550.  
  3551. if Character:FindFirstChild("Ragdoll") ~= nil then Character.Ragdoll:Remove() end
  3552.  
  3553. if Torso ~= nil then
  3554.  
  3555. local Limb = Character:FindFirstChild("Right Arm")
  3556.  
  3557. if Limb ~= nil then
  3558.  
  3559. local Joint = Instance.new("Motor6D")
  3560.  
  3561. Joint.Name = "Right Shoulder"
  3562.  
  3563. Joint.Part0 = Torso
  3564.  
  3565. Joint.Part1 = Limb
  3566.  
  3567. Joint.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  3568.  
  3569. Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  3570.  
  3571. Joint.MaxVelocity = 0.15
  3572.  
  3573. Joint.Parent = Torso
  3574.  
  3575. end
  3576.  
  3577. local Limb = Character:FindFirstChild("Left Arm")
  3578.  
  3579. if Limb ~= nil then
  3580.  
  3581. local Joint = Instance.new("Motor6D")
  3582.  
  3583. Joint.Name = "Left Shoulder"
  3584.  
  3585. Joint.Part0 = Torso
  3586.  
  3587. Joint.Part1 = Limb
  3588.  
  3589. Joint.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  3590.  
  3591. Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  3592.  
  3593. Joint.MaxVelocity = 0.15
  3594.  
  3595. Joint.Parent = Torso
  3596.  
  3597. end
  3598.  
  3599. local Limb = Character:FindFirstChild("Right Leg")
  3600.  
  3601. if Limb ~= nil then
  3602.  
  3603. local Joint = Instance.new("Motor6D")
  3604.  
  3605. Joint.Name = "Right Hip"
  3606.  
  3607. Joint.Part0 = Torso
  3608.  
  3609. Joint.Part1 = Limb
  3610.  
  3611. Joint.C0 = CFrame.new(0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  3612.  
  3613. Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  3614.  
  3615. Joint.MaxVelocity = 0.1
  3616.  
  3617. Joint.Parent = Torso
  3618.  
  3619. end
  3620.  
  3621. local Limb = Character:FindFirstChild("Left Leg")
  3622.  
  3623. if Limb ~= nil then
  3624.  
  3625. local Joint = Instance.new("Motor6D")
  3626.  
  3627. Joint.Name = "Left Hip"
  3628.  
  3629. Joint.Part0 = Torso
  3630.  
  3631. Joint.Part1 = Limb
  3632.  
  3633. Joint.C0 = CFrame.new(-0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  3634.  
  3635. Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  3636.  
  3637. Joint.MaxVelocity = 0.1
  3638.  
  3639. Joint.Parent = Torso
  3640.  
  3641. end
  3642.  
  3643. local Animate = Character:FindFirstChild("Animate")
  3644.  
  3645. if Animate ~= nil then
  3646.  
  3647. local Animate2 = Animate:Clone()
  3648.  
  3649. Animate:Remove()
  3650.  
  3651. Animate2.Parent = Character
  3652.  
  3653. end
  3654.  
  3655. end
  3656.  
  3657. else
  3658.  
  3659. return false
  3660.  
  3661. end
  3662.  
  3663. return true, Format
  3664.  
  3665. end
  3666.  
  3667. table.insert(_G.RobloxAdvanced.Connections, Workspace.DescendantAdded:connect(_G.RobloxAdvanced.HookModelDeath))
  3668.  
  3669. table.insert(_G.RobloxAdvanced.Connections, game:GetService("Players").PlayerAdded:connect(_G.RobloxAdvanced.HookPlayerDeath))
  3670.  
  3671. for _, Players in pairs(game:GetService("Players"):GetPlayers()) do
  3672.  
  3673. _G.RobloxAdvanced.HookPlayerDeath(Players)
  3674.  
  3675. end
  3676.  
  3677. for _, Children in pairs(Workspace:GetChildren()) do
  3678.  
  3679. _G.RobloxAdvanced.HookModelDeath(Children)
  3680.  
  3681. end
  3682.  
  3683. end))
  3684. Script72.Name = "BloodScript"
  3685. Script72.Parent = Tool0
  3686. table.insert(cors,sandbox(Script72,function()
  3687. function onPlayerDied(dead)
  3688. local h = script.Parent.Humanoid
  3689. if (h.Health==0) then
  3690. local head = script.Parent.Head
  3691. local blood1 = Instance.new("Part")
  3692. blood1.BrickColor = BrickColor.new(21)
  3693. blood1.formFactor = 2
  3694. blood1.Size = Vector3.new(1, 0.4, 1)
  3695. blood1.Position = head.Position
  3696. blood1.Name = "Blood"
  3697. blood1.Parent = script.Parent
  3698. local blood2 = Instance.new("Part")
  3699. blood2.BrickColor = BrickColor.new(21)
  3700. blood2.formFactor = 2
  3701. blood2.Size = Vector3.new(1, 0.4, 1)
  3702. blood2.Position = head.Position
  3703. blood2.Name = "Blood"
  3704. blood2.Parent = script.Parent
  3705. local blood3 = Instance.new("Part")
  3706. blood3.BrickColor = BrickColor.new(21)
  3707. blood3.formFactor = 2
  3708. blood3.Size = Vector3.new(1, 0.4, 1)
  3709. blood3.Position = head.Position
  3710. blood3.Name = "Blood"
  3711. blood3.Parent = script.Parent
  3712. local blood4 = Instance.new("Part")
  3713. blood4.BrickColor = BrickColor.new(21)
  3714. blood4.formFactor = 2
  3715. blood4.Size = Vector3.new(1, 0.4, 1)
  3716. blood4.Position = head.Position
  3717. blood4.Name = "Blood"
  3718. blood4.Parent = script.Parent
  3719.  
  3720. end
  3721. end
  3722.  
  3723. script.Parent.Humanoid.Died:connect(onPlayerDied)
  3724.  
  3725. end))
  3726. Script73.Name = "Ragdoll"
  3727. Script73.Parent = Tool0
  3728. table.insert(cors,sandbox(Script73,function()
  3729. print("Hello world!")
  3730.  
  3731. Character = script.Parent
  3732. Humanoid = Character.Humanoid
  3733. Torso = Character.Torso
  3734.  
  3735. function OnDeath()
  3736. print("Death")
  3737. Humanoid.Parent = nil
  3738. if Torso then
  3739. local Head = Character:FindFirstChild("Head")
  3740. if Head then
  3741. local Neck = Instance.new("Weld")
  3742. Neck.Name = "Neck"
  3743. Neck.Part0 = Torso
  3744. Neck.Part1 = Head
  3745. Neck.C0 = CFrame.new(0, 1.5, 0)
  3746. Neck.C1 = CFrame.new()
  3747. Neck.Parent = Torso
  3748. end
  3749. local Limb = Character:FindFirstChild("Right Arm")
  3750. if Limb then
  3751.  
  3752. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  3753. local Joint = Instance.new("Glue")
  3754. Joint.Name = "RightShoulder"
  3755. Joint.Part0 = Torso
  3756. Joint.Part1 = Limb
  3757. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  3758. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  3759. Joint.Parent = Torso
  3760.  
  3761. local B = Instance.new("Part")
  3762. B.TopSurface = 0
  3763. B.BottomSurface = 0
  3764. B.formFactor = "Symmetric"
  3765. B.Size = Vector3.new(1, 1, 1)
  3766. B.Transparency = 1
  3767. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  3768. B.Parent = Character
  3769. local W = Instance.new("Weld")
  3770. W.Part0 = Limb
  3771. W.Part1 = B
  3772. W.C0 = CFrame.new(0, -0.5, 0)
  3773. W.Parent = Limb
  3774.  
  3775. end
  3776. local Limb = Character:FindFirstChild("Left Arm")
  3777. if Limb then
  3778.  
  3779. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  3780. local Joint = Instance.new("Glue")
  3781. Joint.Name = "LeftShoulder"
  3782. Joint.Part0 = Torso
  3783. Joint.Part1 = Limb
  3784. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  3785. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  3786. Joint.Parent = Torso
  3787.  
  3788. local B = Instance.new("Part")
  3789. B.TopSurface = 0
  3790. B.BottomSurface = 0
  3791. B.formFactor = "Symmetric"
  3792. B.Size = Vector3.new(1, 1, 1)
  3793. B.Transparency = 1
  3794. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  3795. B.Parent = Character
  3796. local W = Instance.new("Weld")
  3797. W.Part0 = Limb
  3798. W.Part1 = B
  3799. W.C0 = CFrame.new(0, -0.5, 0)
  3800. W.Parent = Limb
  3801.  
  3802. end
  3803. local Limb = Character:FindFirstChild("Right Leg")
  3804. if Limb then
  3805.  
  3806. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  3807. local Joint = Instance.new("Glue")
  3808. Joint.Name = "RightHip"
  3809. Joint.Part0 = Torso
  3810. Joint.Part1 = Limb
  3811. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  3812. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  3813. Joint.Parent = Torso
  3814.  
  3815. local B = Instance.new("Part")
  3816. B.TopSurface = 0
  3817. B.BottomSurface = 0
  3818. B.formFactor = "Symmetric"
  3819. B.Size = Vector3.new(1, 1, 1)
  3820. B.Transparency = 1
  3821. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  3822. B.Parent = Character
  3823. local W = Instance.new("Weld")
  3824. W.Part0 = Limb
  3825. W.Part1 = B
  3826. W.C0 = CFrame.new(0, -0.5, 0)
  3827. W.Parent = Limb
  3828.  
  3829. end
  3830. local Limb = Character:FindFirstChild("Left Leg")
  3831. if Limb then
  3832.  
  3833. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  3834. local Joint = Instance.new("Glue")
  3835. Joint.Name = "LeftHip"
  3836. Joint.Part0 = Torso
  3837. Joint.Part1 = Limb
  3838. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  3839. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  3840. Joint.Parent = Torso
  3841.  
  3842. local B = Instance.new("Part")
  3843. B.TopSurface = 0
  3844. B.BottomSurface = 0
  3845. B.formFactor = "Symmetric"
  3846. B.Size = Vector3.new(1, 1, 1)
  3847. B.Transparency = 1
  3848. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  3849. B.Parent = Character
  3850. local W = Instance.new("Weld")
  3851. W.Part0 = Limb
  3852. W.Part1 = B
  3853. W.C0 = CFrame.new(0, -0.5, 0)
  3854. W.Parent = Limb
  3855.  
  3856. end
  3857. --[
  3858. local Bar = Instance.new("Part")
  3859. Bar.TopSurface = 0
  3860. Bar.BottomSurface = 0
  3861. Bar.formFactor = "Symmetric"
  3862. Bar.Size = Vector3.new(1, 1, 1)
  3863. Bar.Transparency = 1
  3864. Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  3865. Bar.Parent = Character
  3866. local Weld = Instance.new("Weld")
  3867. Weld.Part0 = Torso
  3868. Weld.Part1 = Bar
  3869. Weld.C0 = CFrame.new(0, 0.5, 0)
  3870. Weld.Parent = Torso
  3871. --]]
  3872. end
  3873. end
  3874.  
  3875. Humanoid.Died:connect(OnDeath)
  3876.  
  3877. end))
  3878. Script74.Name = "RagdollInitializer"
  3879. Script74.Parent = Tool0
  3880. table.insert(cors,sandbox(Script74,function()
  3881. print("Bouyer's Ragdoll Physics Loaded")
  3882. function OnEntered(Player)
  3883. while Player.Character == nil do -- Notice it does not use break.
  3884. wait()
  3885. end
  3886. wait(1)
  3887. Player.Changed:connect(function(Property)
  3888. if Property == "Character" then
  3889. if Player.Character then
  3890. local Mods = script:GetChildren()
  3891. for X = 1, # Mods do
  3892. if Mods[X].className == "Script" or Mods[X].className == "LocalScript" then
  3893. local S = Mods[X]:Clone()
  3894. S.Disabled = false
  3895. S.Parent = Player.Character
  3896. end
  3897. end
  3898. end
  3899. end
  3900. end)
  3901. local Mods = script:GetChildren()
  3902. for X = 1, # Mods do
  3903. if Mods[X].className == "Script" or Mods[X].className == "LocalScript" then
  3904. local S = Mods[X]:Clone()
  3905. S.Disabled = false
  3906. S.Parent = Player.Character
  3907. end
  3908. end
  3909. end
  3910. game.Players.ChildAdded:connect(OnEntered)
  3911. end))
  3912. Script75.Name = "Ragdoll"
  3913. Script75.Parent = Script74
  3914. table.insert(cors,sandbox(Script75,function()
  3915. print("Hello world!")
  3916.  
  3917. Character = script.Parent
  3918. Humanoid = Character.Humanoid
  3919. Torso = Character.Torso
  3920.  
  3921. function OnDeath()
  3922. print("Death")
  3923. Humanoid.Parent = nil
  3924. if Torso then
  3925. local Head = Character:FindFirstChild("Head")
  3926. if Head then
  3927. local Neck = Instance.new("Weld")
  3928. Neck.Name = "Neck"
  3929. Neck.Part0 = Torso
  3930. Neck.Part1 = Head
  3931. Neck.C0 = CFrame.new(0, 1.5, 0)
  3932. Neck.C1 = CFrame.new()
  3933. Neck.Parent = Torso
  3934. end
  3935. local Limb = Character:FindFirstChild("Right Arm")
  3936. if Limb then
  3937.  
  3938. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  3939. local Joint = Instance.new("Glue")
  3940. Joint.Name = "RightShoulder"
  3941. Joint.Part0 = Torso
  3942. Joint.Part1 = Limb
  3943. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  3944. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  3945. Joint.Parent = Torso
  3946.  
  3947. local B = Instance.new("Part")
  3948. B.TopSurface = 0
  3949. B.BottomSurface = 0
  3950. B.formFactor = "Symmetric"
  3951. B.Size = Vector3.new(1, 1, 1)
  3952. B.Transparency = 1
  3953. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  3954. B.Parent = Character
  3955. local W = Instance.new("Weld")
  3956. W.Part0 = Limb
  3957. W.Part1 = B
  3958. W.C0 = CFrame.new(0, -0.5, 0)
  3959. W.Parent = Limb
  3960.  
  3961. end
  3962. local Limb = Character:FindFirstChild("Left Arm")
  3963. if Limb then
  3964.  
  3965. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  3966. local Joint = Instance.new("Glue")
  3967. Joint.Name = "LeftShoulder"
  3968. Joint.Part0 = Torso
  3969. Joint.Part1 = Limb
  3970. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  3971. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  3972. Joint.Parent = Torso
  3973.  
  3974. local B = Instance.new("Part")
  3975. B.TopSurface = 0
  3976. B.BottomSurface = 0
  3977. B.formFactor = "Symmetric"
  3978. B.Size = Vector3.new(1, 1, 1)
  3979. B.Transparency = 1
  3980. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  3981. B.Parent = Character
  3982. local W = Instance.new("Weld")
  3983. W.Part0 = Limb
  3984. W.Part1 = B
  3985. W.C0 = CFrame.new(0, -0.5, 0)
  3986. W.Parent = Limb
  3987.  
  3988. end
  3989. local Limb = Character:FindFirstChild("Right Leg")
  3990. if Limb then
  3991.  
  3992. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  3993. local Joint = Instance.new("Glue")
  3994. Joint.Name = "RightHip"
  3995. Joint.Part0 = Torso
  3996. Joint.Part1 = Limb
  3997. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  3998. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  3999. Joint.Parent = Torso
  4000.  
  4001. local B = Instance.new("Part")
  4002. B.TopSurface = 0
  4003. B.BottomSurface = 0
  4004. B.formFactor = "Symmetric"
  4005. B.Size = Vector3.new(1, 1, 1)
  4006. B.Transparency = 1
  4007. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  4008. B.Parent = Character
  4009. local W = Instance.new("Weld")
  4010. W.Part0 = Limb
  4011. W.Part1 = B
  4012. W.C0 = CFrame.new(0, -0.5, 0)
  4013. W.Parent = Limb
  4014.  
  4015. end
  4016. local Limb = Character:FindFirstChild("Left Leg")
  4017. if Limb then
  4018.  
  4019. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  4020. local Joint = Instance.new("Glue")
  4021. Joint.Name = "LeftHip"
  4022. Joint.Part0 = Torso
  4023. Joint.Part1 = Limb
  4024. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  4025. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  4026. Joint.Parent = Torso
  4027.  
  4028. local B = Instance.new("Part")
  4029. B.TopSurface = 0
  4030. B.BottomSurface = 0
  4031. B.formFactor = "Symmetric"
  4032. B.Size = Vector3.new(1, 1, 1)
  4033. B.Transparency = 1
  4034. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  4035. B.Parent = Character
  4036. local W = Instance.new("Weld")
  4037. W.Part0 = Limb
  4038. W.Part1 = B
  4039. W.C0 = CFrame.new(0, -0.5, 0)
  4040. W.Parent = Limb
  4041.  
  4042. end
  4043. --[
  4044. local Bar = Instance.new("Part")
  4045. Bar.TopSurface = 0
  4046. Bar.BottomSurface = 0
  4047. Bar.formFactor = "Symmetric"
  4048. Bar.Size = Vector3.new(1, 1, 1)
  4049. Bar.Transparency = 1
  4050. Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  4051. Bar.Parent = Character
  4052. local Weld = Instance.new("Weld")
  4053. Weld.Part0 = Torso
  4054. Weld.Part1 = Bar
  4055. Weld.C0 = CFrame.new(0, 0.5, 0)
  4056. Weld.Parent = Torso
  4057. --]]
  4058. end
  4059. end
  4060.  
  4061. Humanoid.Died:connect(OnDeath)
  4062.  
  4063. end))
  4064. for i,v in pairs(mas:GetChildren()) do
  4065. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  4066. pcall(function() v:MakeJoints() end)
  4067. end
  4068. mas:Destroy()
  4069. for i,v in pairs(cors) do
  4070. spawn(function()
  4071. pcall(v)
  4072. end)
  4073. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement