Advertisement
astronaut32

Tachunky

Jan 21st, 2018
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 171.91 KB | None | 0 0
  1. local plr = game:GetService("Players").LocalPlayer
  2. local char = plr.Character
  3.  
  4. function FindInTable(t, n)
  5. for i,v in pairs(t) do
  6. if v == n then
  7. return true
  8. end
  9. end
  10. return false
  11. end
  12. for i,v in pairs(char:children'') do
  13. local toremove = {"CharacterMesh", "ShirtGraphic", "Accessory"}
  14. if FindInTable(toremove, v.ClassName) then v:Destroy()
  15.  
  16. end end
  17. --Transformaaaaation--
  18. char["Left Arm"].BrickColor = BrickColor.new("Pastel brown")
  19. char["Right Arm"].BrickColor = BrickColor.new("Pastel brown")
  20. char.Head.BrickColor = BrickColor.new("Pastel brown")
  21. char["Left Leg"].BrickColor = BrickColor.new("Pastel brown")
  22. char["Right Leg"].BrickColor = BrickColor.new("Pastel brown")
  23.  
  24.  
  25. local face = char.Head:FindFirstChild'face' if face then face.Texture = "http://www.roblox.com/asset/?id=13038247" end
  26. char.Pants.PantsTemplate = "rbxassetid://874740004"
  27. char.Shirt.ShirtTemplate = "rbxassetid://874739759"
  28. local function CreateHat(name, meshid, textureid)
  29. local h = Instance.new("Accessory")
  30. h.Name = name
  31. local han = Instance.new("Part", h)
  32. han.Name = "Handle"
  33. local mesh = Instance.new("SpecialMesh", han)
  34. mesh.Name = "Mesh"
  35. mesh.MeshId = meshid
  36. mesh.TextureId = textureid
  37. return h,han,mesh
  38. end
  39. hum = char:FindFirstChildOfClass'Humanoid'
  40. local h,han,mesh = CreateHat("Chanka Helmet", "rbxassetid://1280954161", "rbxassetid://1280954190")
  41. h.AttachmentForward = Vector3.new(0,0,1)
  42. h.AttachmentPos = Vector3.new (0,0.25,0.15)
  43. h.AttachmentUp = Vector3.new(0,1,0)
  44. h.AttachmentRight = Vector3.new(-1,0,0)
  45.  
  46. mesh.Offset = Vector3.new(0,0,0.2)
  47. mesh.Scale = Vector3.new(1., 1., 1.)
  48. han.Size = Vector3.new(1, 1, 1)
  49. hum:AddAccessory(h)
  50.  
  51.  
  52. local music = Instance.new("Sound",char.Torso)
  53. music.Volume = 5
  54. music.Looped = true
  55. music.SoundId = "rbxassetid://1349162023"
  56. music:Play()
  57.  
  58.  
  59.  
  60.  
  61. -- Made by 1ndrew Galil V3
  62. --Controls
  63. --T for Stand by
  64. --R for Reload
  65. --Right Click to Aim
  66. --Q for Inspect
  67. --C to Crouch
  68. --X to get back up
  69. --Left Shift to Sprint
  70. function sandbox(var,func)
  71. local env = getfenv(func)
  72. local newenv = setmetatable({},{
  73. __index = function(self,k)
  74. if k=="script" then
  75. return var
  76. else
  77. return env[k]
  78. end
  79. end,
  80. })
  81. setfenv(func,newenv)
  82. return func
  83. end
  84. cors = {}
  85. mas = Instance.new("Model",game:GetService("Lighting"))
  86. Tool0 = Instance.new("Tool")
  87. Part1 = Instance.new("Part")
  88. SpecialMesh2 = Instance.new("SpecialMesh")
  89. Part3 = Instance.new("Part")
  90. Part4 = Instance.new("Part")
  91. SpecialMesh5 = Instance.new("SpecialMesh")
  92. Part6 = Instance.new("Part")
  93. SpecialMesh7 = Instance.new("SpecialMesh")
  94. Part8 = Instance.new("Part")
  95. SpecialMesh9 = Instance.new("SpecialMesh")
  96. Part10 = Instance.new("Part")
  97. SpecialMesh11 = Instance.new("SpecialMesh")
  98. Part12 = Instance.new("Part")
  99. SpecialMesh13 = Instance.new("SpecialMesh")
  100. Part14 = Instance.new("Part")
  101. SpecialMesh15 = Instance.new("SpecialMesh")
  102. Part16 = Instance.new("Part")
  103. SpecialMesh17 = Instance.new("SpecialMesh")
  104. Part18 = Instance.new("Part")
  105. SpecialMesh19 = Instance.new("SpecialMesh")
  106. Sound20 = Instance.new("Sound")
  107. Sound21 = Instance.new("Sound")
  108. Part22 = Instance.new("Part")
  109. SpecialMesh23 = Instance.new("SpecialMesh")
  110. Part24 = Instance.new("Part")
  111. Sound25 = Instance.new("Sound")
  112. Sound26 = Instance.new("Sound")
  113. Sound27 = Instance.new("Sound")
  114. ParticleEmitter28 = Instance.new("ParticleEmitter")
  115. SpotLight29 = Instance.new("SpotLight")
  116. BlockMesh30 = Instance.new("BlockMesh")
  117. ParticleEmitter31 = Instance.new("ParticleEmitter")
  118. Part32 = Instance.new("Part")
  119. Sound33 = Instance.new("Sound")
  120. Sound34 = Instance.new("Sound")
  121. Sound35 = Instance.new("Sound")
  122. Sound36 = Instance.new("Sound")
  123. Part37 = Instance.new("Part")
  124. CylinderMesh38 = Instance.new("CylinderMesh")
  125. Part39 = Instance.new("Part")
  126. LocalScript40 = Instance.new("LocalScript")
  127. NumberValue41 = Instance.new("NumberValue")
  128. StringValue42 = Instance.new("StringValue")
  129. NumberValue43 = Instance.new("NumberValue")
  130. NumberValue44 = Instance.new("NumberValue")
  131. NumberValue45 = Instance.new("NumberValue")
  132. ScreenGui46 = Instance.new("ScreenGui")
  133. Frame47 = Instance.new("Frame")
  134. Frame48 = Instance.new("Frame")
  135. TextLabel49 = Instance.new("TextLabel")
  136. Frame50 = Instance.new("Frame")
  137. TextLabel51 = Instance.new("TextLabel")
  138. TextLabel52 = Instance.new("TextLabel")
  139. TextLabel53 = Instance.new("TextLabel")
  140. Frame54 = Instance.new("Frame")
  141. ImageLabel55 = Instance.new("ImageLabel")
  142. ImageLabel56 = Instance.new("ImageLabel")
  143. ImageLabel57 = Instance.new("ImageLabel")
  144. ImageLabel58 = Instance.new("ImageLabel")
  145. Frame59 = Instance.new("Frame")
  146. TextLabel60 = Instance.new("TextLabel")
  147. ImageLabel61 = Instance.new("ImageLabel")
  148. Frame62 = Instance.new("Frame")
  149. TextLabel63 = Instance.new("TextLabel")
  150. Part64 = Instance.new("Part")
  151. CylinderMesh65 = Instance.new("CylinderMesh")
  152. Part66 = Instance.new("Part")
  153. SpecialMesh67 = Instance.new("SpecialMesh")
  154. Model68 = Instance.new("Model")
  155. Part69 = Instance.new("Part")
  156. SpecialMesh70 = Instance.new("SpecialMesh")
  157. Part71 = Instance.new("Part")
  158. Part72 = Instance.new("Part")
  159. Sound73 = Instance.new("Sound")
  160. Sound74 = Instance.new("Sound")
  161. Sound75 = Instance.new("Sound")
  162. Sound76 = Instance.new("Sound")
  163. Sound77 = Instance.new("Sound")
  164. Sound78 = Instance.new("Sound")
  165. Sound79 = Instance.new("Sound")
  166. Sound80 = Instance.new("Sound")
  167. Sound81 = Instance.new("Sound")
  168. Sound82 = Instance.new("Sound")
  169. Sound83 = Instance.new("Sound")
  170. Sound84 = Instance.new("Sound")
  171. Sound85 = Instance.new("Sound")
  172. SpecialMesh86 = Instance.new("SpecialMesh")
  173. Part87 = Instance.new("Part")
  174. SpecialMesh88 = Instance.new("SpecialMesh")
  175. Script89 = Instance.new("Script")
  176. Script90 = Instance.new("Script")
  177. Script91 = Instance.new("Script")
  178. Script92 = Instance.new("Script")
  179. Script93 = Instance.new("Script")
  180. NumberValue94 = Instance.new("NumberValue")
  181. NumberValue95 = Instance.new("NumberValue")
  182. StringValue96 = Instance.new("StringValue")
  183. NumberValue97 = Instance.new("NumberValue")
  184. StringValue98 = Instance.new("StringValue")
  185. NumberValue99 = Instance.new("NumberValue")
  186. NumberValue100 = Instance.new("NumberValue")
  187. NumberValue101 = Instance.new("NumberValue")
  188. StringValue102 = Instance.new("StringValue")
  189. Script103 = Instance.new("Script")
  190. LocalScript104 = Instance.new("LocalScript")
  191. LocalScript105 = Instance.new("LocalScript")
  192. LocalScript106 = Instance.new("LocalScript")
  193. Tool0.Name = "Galil"
  194. Tool0.Parent = mas
  195. Tool0.ToolTip = "Made in Germany"
  196. Part1.Name = "Stock"
  197. Part1.Parent = Tool0
  198. Part1.Material = Enum.Material.Concrete
  199. Part1.Rotation = Vector3.new(90, 0, 0)
  200. Part1.Anchored = true
  201. Part1.CanCollide = false
  202. Part1.Size = Vector3.new(1.37353814, 0.225373551, 0.677169979)
  203. Part1.CFrame = CFrame.new(38.0703812, 0.827715993, -67.2808838, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  204. Part1.Position = Vector3.new(38.0703812, 0.827715993, -67.2808838)
  205. Part1.Orientation = Vector3.new(90, 0, 0)
  206. SpecialMesh2.Parent = Part1
  207. SpecialMesh2.MeshId = "rbxassetid://777168070"
  208. SpecialMesh2.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  209. SpecialMesh2.TextureId = "rbxassetid://777335465"
  210. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  211. SpecialMesh2.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  212. Part3.Name = "SightMark"
  213. Part3.Parent = Tool0
  214. Part3.Material = Enum.Material.SmoothPlastic
  215. Part3.BrickColor = BrickColor.new("New Yeller")
  216. Part3.Transparency = 1
  217. Part3.Rotation = Vector3.new(0, 90, 0)
  218. Part3.Anchored = true
  219. Part3.CanCollide = false
  220. Part3.FormFactor = Enum.FormFactor.Custom
  221. Part3.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  222. Part3.CFrame = CFrame.new(34.9918442, 1.39999795, -67.282486, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  223. Part3.BottomSurface = Enum.SurfaceType.Smooth
  224. Part3.TopSurface = Enum.SurfaceType.Smooth
  225. Part3.Color = Color3.new(1, 1, 0)
  226. Part3.Position = Vector3.new(34.9918442, 1.39999795, -67.282486)
  227. Part3.Orientation = Vector3.new(0, 90, 0)
  228. Part3.Color = Color3.new(1, 1, 0)
  229. Part4.Name = "Mag"
  230. Part4.Parent = Tool0
  231. Part4.Material = Enum.Material.Concrete
  232. Part4.Rotation = Vector3.new(90, 0, 0)
  233. Part4.Anchored = true
  234. Part4.CanCollide = false
  235. Part4.Size = Vector3.new(0.611639202, 0.225373551, 1.02088165)
  236. Part4.CFrame = CFrame.new(36.3986664, 0.510468006, -67.2739868, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  237. Part4.Position = Vector3.new(36.3986664, 0.510468006, -67.2739868)
  238. Part4.Orientation = Vector3.new(90, 0, 0)
  239. SpecialMesh5.Parent = Part4
  240. SpecialMesh5.MeshId = "rbxassetid://777172237"
  241. SpecialMesh5.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  242. SpecialMesh5.TextureId = "rbxassetid://777384640"
  243. SpecialMesh5.MeshType = Enum.MeshType.FileMesh
  244. SpecialMesh5.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  245. Part6.Name = "Carry Handle and Bipod"
  246. Part6.Parent = Tool0
  247. Part6.Material = Enum.Material.Fabric
  248. Part6.Rotation = Vector3.new(90, 0, 0)
  249. Part6.Anchored = true
  250. Part6.CanCollide = false
  251. Part6.Size = Vector3.new(1.56262827, 0.330295652, 0.420204818)
  252. Part6.CFrame = CFrame.new(35.4157333, 0.999992013, -67.2069931, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  253. Part6.Position = Vector3.new(35.4157333, 0.999992013, -67.2069931)
  254. Part6.Orientation = Vector3.new(90, 0, 0)
  255. SpecialMesh7.Parent = Part6
  256. SpecialMesh7.MeshId = "rbxassetid://777123880"
  257. SpecialMesh7.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  258. SpecialMesh7.TextureId = "rbxassetid://777364176"
  259. SpecialMesh7.MeshType = Enum.MeshType.FileMesh
  260. SpecialMesh7.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  261. Part8.Name = "Sights"
  262. Part8.Parent = Tool0
  263. Part8.Material = Enum.Material.Concrete
  264. Part8.Rotation = Vector3.new(90, 0, 0)
  265. Part8.Anchored = true
  266. Part8.CanCollide = false
  267. Part8.Size = Vector3.new(2.59750986, 0.225373551, 0.46276167)
  268. Part8.CFrame = CFrame.new(35.9409561, 1.20389795, -67.2585602, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  269. Part8.Position = Vector3.new(35.9409561, 1.20389795, -67.2585602)
  270. Part8.Orientation = Vector3.new(90, 0, 0)
  271. SpecialMesh9.Parent = Part8
  272. SpecialMesh9.MeshId = "rbxassetid://777163506"
  273. SpecialMesh9.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  274. SpecialMesh9.TextureId = "rbxassetid://777369857"
  275. SpecialMesh9.MeshType = Enum.MeshType.FileMesh
  276. SpecialMesh9.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  277. Part10.Name = "Lower receiver"
  278. Part10.Parent = Tool0
  279. Part10.Material = Enum.Material.Concrete
  280. Part10.Rotation = Vector3.new(90, 0, 0)
  281. Part10.Anchored = true
  282. Part10.CanCollide = false
  283. Part10.Size = Vector3.new(2.53263402, 0.225373551, 0.633969903)
  284. Part10.CFrame = CFrame.new(36.136528, 0.955763996, -67.283287, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  285. Part10.Position = Vector3.new(36.136528, 0.955763996, -67.283287)
  286. Part10.Orientation = Vector3.new(90, 0, 0)
  287. SpecialMesh11.Parent = Part10
  288. SpecialMesh11.MeshId = "rbxassetid://777158802"
  289. SpecialMesh11.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  290. SpecialMesh11.TextureId = "rbxassetid://777342509"
  291. SpecialMesh11.MeshType = Enum.MeshType.FileMesh
  292. SpecialMesh11.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  293. Part12.Name = "Handguard"
  294. Part12.Parent = Tool0
  295. Part12.Material = Enum.Material.Concrete
  296. Part12.Rotation = Vector3.new(90, 0, 0)
  297. Part12.Anchored = true
  298. Part12.CanCollide = false
  299. Part12.Size = Vector3.new(0.91803354, 0.263795912, 0.339953363)
  300. Part12.CFrame = CFrame.new(35.626503, 1.040447, -67.2594986, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  301. Part12.Position = Vector3.new(35.626503, 1.040447, -67.2594986)
  302. Part12.Orientation = Vector3.new(90, 0, 0)
  303. SpecialMesh13.Parent = Part12
  304. SpecialMesh13.MeshId = "rbxassetid://777126216"
  305. SpecialMesh13.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  306. SpecialMesh13.TextureId = "rbxassetid://777479988"
  307. SpecialMesh13.MeshType = Enum.MeshType.FileMesh
  308. SpecialMesh13.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  309. Part14.Name = "FakeGrip"
  310. Part14.Parent = Tool0
  311. Part14.Material = Enum.Material.Concrete
  312. Part14.Rotation = Vector3.new(90, 0, 0)
  313. Part14.Anchored = true
  314. Part14.CanCollide = false
  315. Part14.Size = Vector3.new(0.639974177, 0.225373551, 0.605908811)
  316. Part14.CFrame = CFrame.new(37.1062241, 0.618148029, -67.2739868, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  317. Part14.Position = Vector3.new(37.1062241, 0.618148029, -67.2739868)
  318. Part14.Orientation = Vector3.new(90, 0, 0)
  319. SpecialMesh15.Parent = Part14
  320. SpecialMesh15.MeshId = "rbxassetid://777114867"
  321. SpecialMesh15.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  322. SpecialMesh15.TextureId = "rbxassetid://777375519"
  323. SpecialMesh15.MeshType = Enum.MeshType.FileMesh
  324. SpecialMesh15.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  325. Part16.Name = "Barrel"
  326. Part16.Parent = Tool0
  327. Part16.Material = Enum.Material.Concrete
  328. Part16.Rotation = Vector3.new(90, 0, 0)
  329. Part16.Anchored = true
  330. Part16.CanCollide = false
  331. Part16.Size = Vector3.new(2.24157023, 0.225373551, 0.225373551)
  332. Part16.CFrame = CFrame.new(34.8835526, 1.06779397, -67.2739868, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  333. Part16.Position = Vector3.new(34.8835526, 1.06779397, -67.2739868)
  334. Part16.Orientation = Vector3.new(90, 0, 0)
  335. SpecialMesh17.Parent = Part16
  336. SpecialMesh17.MeshId = "rbxassetid://777120329"
  337. SpecialMesh17.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  338. SpecialMesh17.TextureId = "rbxassetid://777358188"
  339. SpecialMesh17.MeshType = Enum.MeshType.FileMesh
  340. SpecialMesh17.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  341. Part18.Name = "Barrier"
  342. Part18.Parent = Tool0
  343. Part18.Material = Enum.Material.Concrete
  344. Part18.Rotation = Vector3.new(90, 0, 0)
  345. Part18.Anchored = true
  346. Part18.CanCollide = false
  347. Part18.Size = Vector3.new(0.426093042, 0.225373551, 0.225373551)
  348. Part18.CFrame = CFrame.new(36.3743973, 1.17568004, -67.3239899, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  349. Part18.Position = Vector3.new(36.3743973, 1.17568004, -67.3239899)
  350. Part18.Orientation = Vector3.new(90, 0, 0)
  351. SpecialMesh19.Parent = Part18
  352. SpecialMesh19.MeshId = "rbxassetid://777196460"
  353. SpecialMesh19.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  354. SpecialMesh19.TextureId = "rbxassetid://777328045"
  355. SpecialMesh19.MeshType = Enum.MeshType.FileMesh
  356. SpecialMesh19.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  357. Sound20.Name = "BoltForward"
  358. Sound20.Parent = Part18
  359. Sound20.SoundId = "rbxassetid://393678926"
  360. Sound20.Volume = 1
  361. Sound21.Name = "BoltBack"
  362. Sound21.Parent = Part18
  363. Sound21.SoundId = "rbxassetid://393678915"
  364. Sound21.Volume = 1
  365. Part22.Name = "AimPart"
  366. Part22.Parent = Tool0
  367. Part22.BrickColor = BrickColor.new("Black")
  368. Part22.Transparency = 1
  369. Part22.Rotation = Vector3.new(0, 90, 0)
  370. Part22.Anchored = true
  371. Part22.CanCollide = false
  372. Part22.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  373. Part22.CFrame = CFrame.new(37.4960022, 1.38299894, -67.276001, 0, -2.70000019e-05, 1.00000024, 0, 1.00000024, 2.70000019e-05, -1, 0, 0)
  374. Part22.Color = Color3.new(0.105882, 0.164706, 0.207843)
  375. Part22.Position = Vector3.new(37.4960022, 1.38299894, -67.276001)
  376. Part22.Orientation = Vector3.new(0, 90, 0)
  377. Part22.Color = Color3.new(0.105882, 0.164706, 0.207843)
  378. SpecialMesh23.Parent = Part22
  379. SpecialMesh23.Scale = Vector3.new(0.731707275, 0.731707275, 0.731707275)
  380. SpecialMesh23.MeshType = Enum.MeshType.Brick
  381. SpecialMesh23.Scale = Vector3.new(0.731707275, 0.731707275, 0.731707275)
  382. Part24.Name = "FirePart"
  383. Part24.Parent = Tool0
  384. Part24.Material = Enum.Material.Metal
  385. Part24.BrickColor = BrickColor.new("New Yeller")
  386. Part24.Transparency = 1
  387. Part24.Rotation = Vector3.new(0, 90, 0)
  388. Part24.Anchored = true
  389. Part24.CanCollide = false
  390. Part24.FormFactor = Enum.FormFactor.Custom
  391. Part24.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  392. Part24.CFrame = CFrame.new(33.7980003, 1.06799996, -67.2730026, 0, -2.7e-05, 1, 0, 1, 2.7e-05, -1, 0, 0)
  393. Part24.BottomSurface = Enum.SurfaceType.Smooth
  394. Part24.TopSurface = Enum.SurfaceType.Smooth
  395. Part24.Color = Color3.new(1, 1, 0)
  396. Part24.Position = Vector3.new(33.7980003, 1.06799996, -67.2730026)
  397. Part24.Orientation = Vector3.new(0, 90, 0)
  398. Part24.Color = Color3.new(1, 1, 0)
  399. Sound25.Name = "Whizz"
  400. Sound25.Parent = Part24
  401. Sound25.Pitch = 0.99500000476837
  402. Sound25.SoundId = "rbxassetid://294837636"
  403. Sound25.Volume = 1
  404. Sound26.Name = "Whiz"
  405. Sound26.Parent = Part24
  406. Sound26.SoundId = "rbxassetid://269514843"
  407. Sound26.Volume = 1
  408. Sound26.Looped = true
  409. Sound27.Name = "Fire"
  410. Sound27.Parent = Part24
  411. Sound27.SoundId = "rbxassetid://284938795"
  412. Sound27.Volume = 0.80000001192093
  413. ParticleEmitter28.Name = "1FlashFX2"
  414. ParticleEmitter28.Parent = Part24
  415. ParticleEmitter28.Transparency = NumberSequence.new(0.625,1)
  416. ParticleEmitter28.Rotation = NumberRange.new(-90, 90)
  417. ParticleEmitter28.Size = NumberSequence.new(1,0)
  418. ParticleEmitter28.Color = ColorSequence.new(Color3.new(1, 1, 0.498039),Color3.new(1, 1, 0.498039))
  419. ParticleEmitter28.Enabled = false
  420. ParticleEmitter28.LightEmission = 1
  421. ParticleEmitter28.Texture = "http://www.roblox.com/asset/?id=257430870"
  422. ParticleEmitter28.Lifetime = NumberRange.new(0.050000000745058, 0.075000002980232)
  423. ParticleEmitter28.Rate = 1000
  424. ParticleEmitter28.Speed = NumberRange.new(100, 100)
  425. ParticleEmitter28.Color = ColorSequence.new(Color3.new(1, 1, 0.498039),Color3.new(1, 1, 0.498039))
  426. SpotLight29.Name = "FlashFX"
  427. SpotLight29.Parent = Part24
  428. SpotLight29.Color = Color3.new(1, 0.956863, 0.835294)
  429. SpotLight29.Enabled = false
  430. SpotLight29.Brightness = 100
  431. SpotLight29.Range = 15
  432. SpotLight29.Angle = 180
  433. SpotLight29.Color = Color3.new(1, 0.956863, 0.835294)
  434. BlockMesh30.Parent = Part24
  435. BlockMesh30.Scale = Vector3.new(0.65365845, 0.65365845, 0.65365845)
  436. BlockMesh30.Scale = Vector3.new(0.65365845, 0.65365845, 0.65365845)
  437. ParticleEmitter31.Name = "Smoke"
  438. ParticleEmitter31.Parent = Part24
  439. ParticleEmitter31.Transparency = NumberSequence.new(0.99000000953674,0.99000000953674)
  440. ParticleEmitter31.Rotation = NumberRange.new(0, 100)
  441. ParticleEmitter31.Size = NumberSequence.new(0.20000000298023,0.20000000298023)
  442. ParticleEmitter31.Enabled = false
  443. ParticleEmitter31.LightEmission = 0.0099999997764826
  444. ParticleEmitter31.Texture = "http://www.roblox.com/asset/?id=117472237"
  445. ParticleEmitter31.Lifetime = NumberRange.new(1, 1)
  446. ParticleEmitter31.Rate = 998
  447. ParticleEmitter31.RotSpeed = NumberRange.new(200, 200)
  448. ParticleEmitter31.Speed = NumberRange.new(7, 7)
  449. ParticleEmitter31.VelocitySpread = 40
  450. Part32.Name = "Grip"
  451. Part32.Parent = Tool0
  452. Part32.Material = Enum.Material.SmoothPlastic
  453. Part32.BrickColor = BrickColor.new("Electric blue")
  454. Part32.Transparency = 1
  455. Part32.Rotation = Vector3.new(0, 90, 0)
  456. Part32.Anchored = true
  457. Part32.CanCollide = false
  458. Part32.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
  459. Part32.CFrame = CFrame.new(36.8268509, 1.04155803, -67.3024826, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  460. Part32.BottomSurface = Enum.SurfaceType.Smooth
  461. Part32.TopSurface = Enum.SurfaceType.Smooth
  462. Part32.Color = Color3.new(0.0352941, 0.537255, 0.811765)
  463. Part32.Position = Vector3.new(36.8268509, 1.04155803, -67.3024826)
  464. Part32.Orientation = Vector3.new(0, 90, 0)
  465. Part32.Color = Color3.new(0.0352941, 0.537255, 0.811765)
  466. Sound33.Name = "Click"
  467. Sound33.Parent = Part32
  468. Sound33.SoundId = "http://www.roblox.com/asset/?id=265275510"
  469. Sound33.Volume = 1
  470. Sound34.Name = "M3"
  471. Sound34.Parent = Part32
  472. Sound34.SoundId = "http://www.roblox.com/asset/?id=166238161"
  473. Sound35.Name = "MagIn"
  474. Sound35.Parent = Part32
  475. Sound35.SoundId = "http://roblox.com/asset/?id=166238223"
  476. Sound35.Volume = 0.20000000298023
  477. Sound36.Name = "MagOut"
  478. Sound36.Parent = Part32
  479. Sound36.SoundId = "http://roblox.com/asset/?id=166238177"
  480. Sound36.Volume = 0.20000000298023
  481. Part37.Name = "LaserLight"
  482. Part37.Parent = Tool0
  483. Part37.Material = Enum.Material.Neon
  484. Part37.BrickColor = BrickColor.new("Really red")
  485. Part37.Transparency = 1
  486. Part37.Rotation = Vector3.new(0, 0, 90)
  487. Part37.CanCollide = false
  488. Part37.FormFactor = Enum.FormFactor.Custom
  489. Part37.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  490. Part37.CFrame = CFrame.new(35.2833481, 0.979876995, -67.262619, 0, -1, 0, 1, 0, -0, 0, 0, 1)
  491. Part37.Color = Color3.new(1, 0, 0)
  492. Part37.Position = Vector3.new(35.2833481, 0.979876995, -67.262619)
  493. Part37.Orientation = Vector3.new(0, 0, 90)
  494. Part37.Color = Color3.new(1, 0, 0)
  495. CylinderMesh38.Parent = Part37
  496. CylinderMesh38.Offset = Vector3.new(0, 100, 0)
  497. CylinderMesh38.Scale = Vector3.new(0.0500000007, 1000, 0.0500000007)
  498. CylinderMesh38.Scale = Vector3.new(0.0500000007, 1000, 0.0500000007)
  499. Part39.Name = "LaserThing"
  500. Part39.Parent = Tool0
  501. Part39.Material = Enum.Material.Neon
  502. Part39.BrickColor = BrickColor.new("Really black")
  503. Part39.Transparency = 0.5
  504. Part39.Rotation = Vector3.new(0, 90, 0)
  505. Part39.Anchored = true
  506. Part39.CanCollide = false
  507. Part39.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
  508. Part39.CFrame = CFrame.new(35.2928848, 0.977980018, -67.2691498, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  509. Part39.BottomSurface = Enum.SurfaceType.Smooth
  510. Part39.TopSurface = Enum.SurfaceType.Smooth
  511. Part39.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  512. Part39.Position = Vector3.new(35.2928848, 0.977980018, -67.2691498)
  513. Part39.Orientation = Vector3.new(0, 90, 0)
  514. Part39.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  515. LocalScript40.Name = "GunScript"
  516. LocalScript40.Parent = Tool0
  517. table.insert(cors,sandbox(LocalScript40,function()
  518.  
  519. wait(1)
  520.  
  521.  
  522. local Tool = script.Parent
  523.  
  524.  
  525. local Player = game.Players.LocalPlayer
  526. local Character = Player.Character
  527. local Torso = Character.Torso
  528. local Neck = Torso:WaitForChild("Neck")
  529. local Humanoid = Character.Humanoid
  530. local Mouse = Player:GetMouse()
  531.  
  532. local Camera = game.Workspace.CurrentCamera
  533.  
  534.  
  535. local GunSetup = {
  536.  
  537. Name = "M4A1";
  538. Ammo = script.Ammo.Value;
  539. RPM = 666;
  540. BurstRPM = 666;
  541. FireMode = "Automatic";
  542. BkFM = "Automatic";
  543. BurstFire = 3;
  544. SwitchableModes = {
  545. Burst = false;
  546. Single = true;
  547. Automatic = true;
  548.  
  549. };
  550.  
  551.  
  552. GrenadeLauncher = false;
  553. M203Ammo = 1; -- 1 For HEGrenade, 2 For SmokeGrenade
  554. GLFirerate = 2;
  555.  
  556. AnimSpeed = 1;
  557.  
  558. Chamber = true;
  559. CanBreak = false;
  560. CanSeeMag = true;
  561. FastReload = true;
  562.  
  563. BType = "5.56x45mm";
  564. BSpeed = 884;
  565. ATK = true;
  566. BDrop = 90;
  567. BSpread = 0;
  568.  
  569. LimbsDamage = {10,20};
  570. TorsoDamage = {30,40};
  571. HeadDamage = {85,100};
  572.  
  573. HelmetDamage = 64;
  574. VestDamage = 34;
  575.  
  576. Recoil = {32,42};
  577. Aimpart = Tool.AimPart;
  578. FOV1 = 40;
  579. FOV2 = 35;
  580.  
  581. RightPos = CFrame.new(-0.575, -0.465, -1.185) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0));
  582. LeftPos = CFrame.new(1.123,0.25,-1.795) * CFrame.Angles(math.rad(-120),math.rad(46.5),math.rad(15));
  583. ----------------------
  584.  
  585. LeftAimPosition = CFrame.new(1,-0.25,-1.1) * CFrame.Angles(math.rad(-110),math.rad(48.5),math.rad(2));
  586. LeftAim2Position = CFrame.new(1,0.25,-1.5) * CFrame.Angles(math.rad(-120),math.rad(25),math.rad(-15))
  587.  
  588. }
  589.  
  590. local Recoilup = 0
  591.  
  592. local Recoil = math.random(GunSetup.Recoil[1],GunSetup.Recoil[2])/60
  593. local RecoilG
  594. local Firerate = 1/(GunSetup.RPM/60)
  595. local BURSTFirerate = 1/(GunSetup.BurstRPM/60)
  596. local GLFirerate = GunSetup.GLFirerate
  597. local Ammo = GunSetup.Ammo
  598. local GLAmmo = script.GLAmmo
  599. local MaxAmmo = script.MaxAmmo
  600. local StoredAmmo = script.StoredAmmo
  601. local EnableCycleSight = true
  602. local EnableFireMode = true
  603. local AimPartMode = 1
  604.  
  605. local slideback = false
  606. local Checando = false
  607. local Emperrado = false
  608. local Chambered = false
  609. local MagOut = false
  610. local GLChambered = false
  611.  
  612. local Animando = false
  613.  
  614. _G.Sprinting = false
  615.  
  616. local Safemode = false
  617.  
  618. local MouseHeld
  619.  
  620. local Equipped = false
  621. local Sprinting = false
  622. local Shooting = false
  623. local Aiming = false
  624. local Reloading = false
  625. local GLReloading = false
  626.  
  627. pos = 0.0006
  628. neg = -0.0006
  629.  
  630. local shell
  631. local AmmoGui
  632.  
  633. local RAW
  634. local LAW
  635.  
  636.  
  637.  
  638. local arms
  639.  
  640. local Shell = Tool:WaitForChild("Shells"):WaitForChild("Shell")
  641.  
  642. local function GetAmmo()
  643. AmmoGui.Frame.AText.Text = Ammo
  644. return Ammo
  645. end
  646.  
  647. local uis = game:GetService("UserInputService")
  648.  
  649. local RG = Character["Right Arm"]:FindFirstChild("RightGrip")
  650.  
  651.  
  652. ---------------------------------------------------------------------------------------
  653. ---------------- [ Tween Module ] --------------------------------------------------------
  654. ---------------------------------------------------------------------------------------
  655.  
  656. function tweenFoV(goal, frames)
  657. coroutine.resume(coroutine.create(function()
  658. SFn = SFn and SFn + 1 or 0
  659. local SFn_S = SFn
  660. for i = 1, frames do
  661. if SFn ~= SFn_S then break end
  662. Camera.FieldOfView = Camera.FieldOfView + (goal - Camera.FieldOfView) * (i / frames)
  663. game:GetService("RunService").RenderStepped:wait()
  664. end
  665. end))
  666. end
  667.  
  668.  
  669. --[[
  670.  
  671. tweenJoint Function Parameters:
  672.  
  673. Object Joint - This has to be a weld with a C0 and C1 property
  674.  
  675. CFrame newC0 - This is what the new C0 of the weld will be. You can put nil if you don't want to effect the C0
  676.  
  677. CFrame newC1 - This is what the new C1 of the weld will be. You can put nil if you don't want to effect the C1
  678.  
  679. function Alpha - This is an alpha function that takes an input parameter of a number between 0 and 90 and returns a number between 0 and 1.
  680. For example, function(X) return math.sin(math.rad(X)) end
  681.  
  682. float Duration - This is how long the tweening takes to complete
  683.  
  684. --]]
  685. local RS = game:GetService("RunService")
  686.  
  687. function tweenJoint(Joint, newC0, newC1, Alpha, Duration)
  688. spawn(function()
  689. local newCode = math.random(-1e9, 1e9) --This creates a random code between -1000000000 and 1000000000
  690. local tweenIndicator = nil
  691. if (not Joint:findFirstChild("tweenCode")) then --If the joint isn't being tweened, then
  692. tweenIndicator = Instance.new("IntValue")
  693. tweenIndicator.Name = "tweenCode"
  694. tweenIndicator.Value = newCode
  695. tweenIndicator.Parent = Joint
  696. else
  697. tweenIndicator = Joint.tweenCode
  698. tweenIndicator.Value = newCode --If the joint is already being tweened, this will change the code, and the tween loop will stop
  699. end
  700. --local tweenIndicator = createTweenIndicator:InvokeServer(Joint, newCode)
  701. if Duration <= 0 then --If the duration is less than or equal to 0 then there's no need for a tweening loop
  702. if newC0 then Joint.C0 = newC0 end
  703. if newC1 then Joint.C1 = newC1 end
  704. else
  705. local Increment = 1.5 / Duration
  706. local startC0 = Joint.C0
  707. local startC1 = Joint.C1
  708. local X = 0
  709. while true do
  710. RS.RenderStepped:wait() --This makes the for loop step every 1/60th of a second
  711. local newX = X + Increment
  712. X = (newX > 90 and 90 or newX)
  713. if tweenIndicator.Value ~= newCode then break end --This makes sure that another tween wasn't called on the same joint
  714. if (not Equipped) then break end --This stops the tween if the tool is deselected
  715. if newC0 then Joint.C0 = startC0:lerp(newC0, Alpha(X)) end
  716. if newC1 then Joint.C1 = startC1:lerp(newC1, Alpha(X)) end
  717. --if newC0 then lerpCF:InvokeServer(Joint, "C0", startC0, newC0, Alpha(X)) end
  718. --if newC1 then lerpCF:InvokeServer(Joint, "C1", startC1, newC1, Alpha(X)) end
  719. if X == 90 then break end
  720. end
  721. end
  722. if tweenIndicator.Value == newCode then --If this tween functions was the last one called on a joint then it will remove the code
  723. tweenIndicator:Destroy()
  724. end
  725. --deleteTweenIndicator:InvokeServer(tweenIndicator, newCode)
  726. end)
  727. end
  728.  
  729.  
  730. -------------Motor6Ding Section------------------------
  731. Tool.Equipped:connect(function()
  732. if Humanoid.Health > 0 then
  733. RAW = Instance.new("Motor6D")
  734. RAW.Name= "RightWeld"
  735. RAW.Part0 =Player.Character["Right Arm"]
  736. RAW.Part1 = Character["Head"]
  737. RAW.Parent=Player.Character["Right Arm"]
  738. -- Player.CameraMode="LockFirstPerson"
  739. Torso:WaitForChild("Right Shoulder").Part1 = nil
  740. if Reloading then
  741. Reloading = false
  742. end
  743. if GLReloading then
  744. GLReloading = false
  745. end
  746. LAW = Instance.new("Motor6D")
  747. LAW.Name= "LeftWeld"
  748. LAW.Part0 = Player.Character["Left Arm"]
  749. LAW.Part1 = Character["Head"]
  750. LAW.Parent = Player.Character["Left Arm"]
  751. LAW.C0 = GunSetup.LeftPos
  752. RAW.C0 = GunSetup.RightPos
  753. Torso:WaitForChild("Left Shoulder").Part1 = nil
  754. LAW.C1 = CFrame.new()
  755. RAW.C1 = CFrame.new()
  756.  
  757.  
  758.  
  759. uis.MouseIconEnabled = false
  760. AmmoGui = script.AmmoGui:Clone()
  761. AmmoGui.Parent = Player.PlayerGui
  762. AmmoGui.Frame.Visible = false
  763.  
  764.  
  765.  
  766. Equipped = true
  767. game:GetService('RunService').RenderStepped:connect(function()
  768. RAW.C1 = CFrame.new() * CFrame.new((Recoilup/4),0,(Recoilup*2))
  769. LAW.C1 = CFrame.new() * CFrame.new((Recoilup/4),0,(Recoilup*2))
  770. if not Equipped then
  771. IdleOrSteadyAnim()
  772. Reloading = false
  773. GLReloading = false
  774. end
  775. if AmmoGui:FindFirstChild("Frame") then
  776. AmmoGui.Frame.FText.Text = GunSetup.FireMode
  777. AmmoGui.Frame.SAText.Text = ""..math.ceil(StoredAmmo.Value/math.ceil(GunSetup.Ammo)).." MAGS"
  778. AmmoGui.Frame.Btext.Text = GunSetup.BType
  779.  
  780. if Safemode then
  781. AmmoGui.Frame.A.Visible = true
  782. else
  783. AmmoGui.Frame.A.Visible = false
  784. end
  785.  
  786. if Chambered then
  787. AmmoGui.Frame.B.Visible = false
  788. else
  789. AmmoGui.Frame.B.Visible = true
  790. end
  791.  
  792. if GunSetup.GrenadeLauncher and GLChambered then
  793. AmmoGui.Frame.E.Visible = false
  794. elseif GunSetup.GrenadeLauncher and not GLChambered then
  795. AmmoGui.Frame.E.Visible = true
  796. else
  797. AmmoGui.Frame.E.Visible = false
  798. end
  799.  
  800. if Emperrado then
  801. AmmoGui.Frame.C.Visible = true
  802. else
  803. AmmoGui.Frame.C.Visible = false
  804. end
  805.  
  806.  
  807. if slideback then
  808. AmmoGui.Frame.D.Visible = true
  809. else
  810. AmmoGui.Frame.D.Visible = false
  811. end
  812.  
  813.  
  814. if GunSetup.FireMode == "M203" then
  815. AmmoGui.Frame.NText.Text = "M203"
  816. AmmoGui.Frame.SAText.Text = GLAmmo.Value
  817. AmmoGui.Frame.AText.Text = Ammo .." Bullets"
  818. end
  819.  
  820.  
  821. if StoredAmmo.Value > MaxAmmo.Value then
  822. StoredAmmo.Value = MaxAmmo.Value
  823. end
  824.  
  825. if GunSetup.FireMode ~= "M203" then
  826. AmmoGui.Frame.NText.Text = GunSetup.Name
  827. AmmoGui.Frame.AText.Text = Ammo .." Bullets"
  828. end
  829. end
  830. end)
  831. end
  832. end)
  833.  
  834.  
  835.  
  836.  
  837.  
  838.  
  839.  
  840.  
  841. ---------- Animations ------------------
  842.  
  843. function SprintAnim()
  844. Humanoid.WalkSpeed = 24
  845. tweenJoint(RAW, CFrame.new(-0.75, 0.125, -1.3) * CFrame.Angles(math.rad(-80), math.rad(-55), math.rad(0)) , nil, function(X) return math.sin(math.rad(X)) end, 0.25 * GunSetup.AnimSpeed)
  846. tweenJoint(LAW, CFrame.new(1.25,0.85,-1.125) * CFrame.Angles(math.rad(-85),math.rad(-10.5),math.rad(-10)) , nil, function(X) return math.sin(math.rad(X)) end, 0.25 * GunSetup.AnimSpeed)
  847. _G.Sprinting = true
  848. end
  849.  
  850. function SafetyAnim()
  851. tweenJoint(RAW, CFrame.new(-0.75, 0.125, -1.3) * CFrame.Angles(math.rad(-80), math.rad(-55), math.rad(0)) , nil, function(X) return math.sin(math.rad(X)) end, 0.25 * GunSetup.AnimSpeed)
  852. tweenJoint(LAW, CFrame.new(1.25,0.85,-1.125) * CFrame.Angles(math.rad(-85),math.rad(-10.5),math.rad(-10)) , nil, function(X) return math.sin(math.rad(X)) end, 0.25 * GunSetup.AnimSpeed)
  853. end
  854.  
  855.  
  856.  
  857.  
  858.  
  859. function IdleOrSteadyAnim()
  860. tweenJoint(RAW, GunSetup.RightPos , nil, function(X) return math.sin(math.rad(X)) end, 0.225 * GunSetup.AnimSpeed)
  861. tweenJoint(LAW, GunSetup.LeftPos , nil, function(X) return math.sin(math.rad(X)) end, 0.215 * GunSetup.AnimSpeed)
  862. end
  863.  
  864.  
  865.  
  866.  
  867.  
  868.  
  869.  
  870. function ReloadAnim()
  871. if Equipped then
  872.  
  873. tweenJoint(RAW, CFrame.new(-0.875, -0.465, -1.15) * CFrame.Angles(math.rad(-95), math.rad(-2), math.rad(7.5)) , nil, function(X) return math.sin(math.rad(X)) end, 0.425 * GunSetup.AnimSpeed)
  874. tweenJoint(LAW, CFrame.new(1.195,-0.35,-1.48) * CFrame.Angles(math.rad(-100),math.rad(75),math.rad(0)) , nil, function(X) return math.sin(math.rad(X)) end, 0.375 * GunSetup.AnimSpeed)
  875.  
  876. wait(0.55 * GunSetup.AnimSpeed)
  877. tweenJoint(RAW, CFrame.new(-0.975, -0.365, -1.2) * CFrame.Angles(math.rad(-85), math.rad(-2), math.rad(9)) , nil, function(X) return math.sin(math.rad(X)) end, 0.525 * GunSetup.AnimSpeed)
  878. tweenJoint(LAW, CFrame.new(1.195,1.4,-0.5) * CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)) , nil, function(X) return math.sin(math.rad(X)) end, 0.375 * GunSetup.AnimSpeed)
  879. Tool.Handle.MagOut:Play()
  880.  
  881. local MagC = Tool:WaitForChild("Mag"):clone()
  882. Tool.Mag.Transparency = 1
  883. MagC.Parent = Tool
  884. MagC.Name = "MagC"
  885. MagC.Transparency = 0
  886.  
  887.  
  888. local MagCW = Instance.new("Motor6D")
  889. MagCW.Part0 = MagC
  890. MagCW.Part1 = Player.Character["Left Arm"]
  891. MagCW.Parent = MagC
  892. MagCW.C1 = MagC.CFrame:toObjectSpace(Tool.Mag.CFrame)
  893.  
  894. wait(0.75 * (GunSetup.AnimSpeed/1))
  895.  
  896. if (StoredAmmo.Value - (GunSetup.Ammo - Ammo)) < 0 then
  897. Ammo = Ammo + StoredAmmo.Value
  898. StoredAmmo.Value = 0
  899. elseif Ammo <= 0 then
  900. StoredAmmo.Value = StoredAmmo.Value - (GunSetup.Ammo - Ammo)
  901. Ammo = GunSetup.Ammo
  902. Chambered = false
  903. elseif Ammo > 0 and Chambered and GunSetup.Chamber then
  904. StoredAmmo.Value = StoredAmmo.Value - (GunSetup.Ammo - Ammo)
  905. Ammo = GunSetup.Ammo + 1
  906. elseif Ammo > 0 and Chambered and not GunSetup.Chamber then
  907. StoredAmmo.Value = StoredAmmo.Value - (GunSetup.Ammo - Ammo)
  908. Ammo = GunSetup.Ammo
  909. end
  910.  
  911. Tool.Handle.MagIn:Play()
  912.  
  913. tweenJoint(RAW, CFrame.new(-0.875, -0.465, -1.15) * CFrame.Angles(math.rad(-95), math.rad(-2), math.rad(7.5)) , nil, function(X) return math.sin(math.rad(X)) end, 0.325 * GunSetup.AnimSpeed)
  914. tweenJoint(LAW, CFrame.new(1.195,-0.35,-1.48) * CFrame.Angles(math.rad(-100),math.rad(75),math.rad(0)) , nil, function(X) return math.sin(math.rad(X)) end, 0.275 * GunSetup.AnimSpeed)
  915.  
  916. wait(0.15 * GunSetup.AnimSpeed)
  917. MagC:Destroy()
  918. Tool.Mag.Transparency = 0
  919. wait(0.35 * GunSetup.AnimSpeed)
  920.  
  921. end
  922. end
  923.  
  924.  
  925. function SeeMag()
  926. if Equipped then
  927. Animando = true
  928. tweenJoint(RAW, CFrame.new(0.213, -0.265, -1.25) * CFrame.Angles(math.rad(-90), math.rad(7.5), math.rad(-50.5)) , nil, function(X) return math.sin(math.rad(X)) end, 0.325 * GunSetup.AnimSpeed)
  929. tweenJoint(LAW, CFrame.new(2.195,-0.825,-1.08) * CFrame.Angles(math.rad(-100),math.rad(75),math.rad(-41)) , nil, function(X) return math.sin(math.rad(X)) end, 0.375 * GunSetup.AnimSpeed)
  930.  
  931. wait(1.125 * (GunSetup.AnimSpeed/2))
  932. tweenJoint(RAW, CFrame.new(-0.875, -0.465, -1.15) * CFrame.Angles(math.rad(-95), math.rad(-2), math.rad(7.5)) , nil, function(X) return math.sin(math.rad(X)) end, 0.425 * GunSetup.AnimSpeed)
  933. tweenJoint(LAW, CFrame.new(1.195,-0.35,-1.48) * CFrame.Angles(math.rad(-100),math.rad(75),math.rad(0)) , nil, function(X) return math.sin(math.rad(X)) end, 0.375 * GunSetup.AnimSpeed)
  934.  
  935. wait(0.55 * GunSetup.AnimSpeed)
  936. tweenJoint(RAW, CFrame.new(-0.975, -0.365, -1.2) * CFrame.Angles(math.rad(-85), math.rad(-2), math.rad(9)) , nil, function(X) return math.sin(math.rad(X)) end, 0.525 * GunSetup.AnimSpeed)
  937. tweenJoint(LAW, CFrame.new(1.195,1.4,-0.5) * CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)) , nil, function(X) return math.sin(math.rad(X)) end, 0.375 * GunSetup.AnimSpeed)
  938. Tool.Handle.MagOut:Play()
  939.  
  940. local MagC = Tool:WaitForChild("Mag"):clone()
  941. Tool.Mag.Transparency = 1
  942. MagC.Parent = Tool
  943. MagC.Name = "MagC"
  944. MagC.Transparency = 0
  945.  
  946. local MagCW = Instance.new("Motor6D")
  947. MagCW.Part0 = MagC
  948. MagCW.Part1 = Player.Character["Left Arm"]
  949. MagCW.Parent = MagC
  950. MagCW.C1 = MagC.CFrame:toObjectSpace(Tool.Mag.CFrame)
  951.  
  952. wait(0.75 * (GunSetup.AnimSpeed/1))
  953.  
  954.  
  955. tweenJoint(RAW, CFrame.new(-0.875, -0.465, -1.15) * CFrame.Angles(math.rad(-95), math.rad(-2), math.rad(7.5)) , nil, function(X) return math.sin(math.rad(X)) end, 0.325 * GunSetup.AnimSpeed)
  956. tweenJoint(LAW, CFrame.new(1.195,-0.35,-1.48) * CFrame.Angles(math.rad(-100),math.rad(45),math.rad(0)) , nil, function(X) return math.sin(math.rad(X)) end, 0.275 * GunSetup.AnimSpeed)
  957. wait(0.12 * (GunSetup.AnimSpeed/1))
  958. Animando = false
  959.  
  960. --[[wait(0.15 * GunSetup.AnimSpeed)
  961. MagC:Destroy()
  962. Tool.Mag.Transparency = 0
  963. wait(0.35 * GunSetup.AnimSpeed)]]
  964.  
  965. end
  966. end
  967.  
  968. function UNSeeMag()
  969. if Equipped then
  970. Animando = true
  971. local MagC = Tool:WaitForChild("MagC")
  972.  
  973. local MagCW = script.Parent.MagC.Motor6D
  974.  
  975. wait(0.75 * (GunSetup.AnimSpeed/1))
  976.  
  977. tweenJoint(RAW, CFrame.new(-0.875, -0.465, -1.15) * CFrame.Angles(math.rad(-95), math.rad(-2), math.rad(7.5)) , nil, function(X) return math.sin(math.rad(X)) end, 0.325 * GunSetup.AnimSpeed)
  978. tweenJoint(LAW, CFrame.new(1.195,-0.35,-1.48) * CFrame.Angles(math.rad(-100),math.rad(75),math.rad(0)) , nil, function(X) return math.sin(math.rad(X)) end, 0.275 * GunSetup.AnimSpeed)
  979.  
  980. wait(0.15 * GunSetup.AnimSpeed)
  981. Tool.Handle.MagIn:Play()
  982. MagC:Destroy()
  983. Tool.Mag.Transparency = 0
  984. wait(0.35 * GunSetup.AnimSpeed)
  985. tweenJoint(RAW, CFrame.new(0.213, -0.265, -1.25) * CFrame.Angles(math.rad(-90), math.rad(7.5), math.rad(-50.5)) , nil, function(X) return math.sin(math.rad(X)) end, 0.325 * GunSetup.AnimSpeed)
  986. tweenJoint(LAW, CFrame.new(1.25,0.55,-1.08) * CFrame.Angles(math.rad(-100),math.rad(25),math.rad(-41)) , nil, function(X) return math.sin(math.rad(X)) end, 0.375 * GunSetup.AnimSpeed)
  987. wait(0.12 * (GunSetup.AnimSpeed/1))
  988. Animando = false
  989. end
  990. end
  991.  
  992.  
  993. function CheckAnim()
  994. if Equipped then
  995. Animando = true
  996. tweenJoint(RAW, CFrame.new(0.213, -0.265, -1.25) * CFrame.Angles(math.rad(-90), math.rad(7.5), math.rad(-50.5)) , nil, function(X) return math.sin(math.rad(X)) end, 0.325 * GunSetup.AnimSpeed)
  997. tweenJoint(LAW, CFrame.new(1.25,0.55,-1.08) * CFrame.Angles(math.rad(-100),math.rad(25),math.rad(-41)) , nil, function(X) return math.sin(math.rad(X)) end, 0.375 * GunSetup.AnimSpeed)
  998. wait(0.20 * (GunSetup.AnimSpeed/1))
  999. Animando = false
  1000.  
  1001. end
  1002. end
  1003.  
  1004.  
  1005.  
  1006. function ChamberAnim()
  1007. if Equipped then
  1008. Animando = true
  1009. tweenJoint(RAW, CFrame.new(0.213, -0.265, -1.25) * CFrame.Angles(math.rad(-90), math.rad(7.5), math.rad(-50.5)) , nil, function(X) return math.sin(math.rad(X)) end, 0.325 * GunSetup.AnimSpeed)
  1010. tweenJoint(LAW, CFrame.new(0.75,-0.6,-0.85) * CFrame.Angles(math.rad(-140),math.rad(70),math.rad(40)) , nil, function(X) return math.sin(math.rad(X)) end, 0.375 * GunSetup.AnimSpeed)
  1011. wait(0.15 * (GunSetup.AnimSpeed/2))
  1012. Tool.Handle.MagIn:Play()
  1013. tweenJoint(RAW, CFrame.new(0.213, -0.265, -1.25) * CFrame.Angles(math.rad(-90), math.rad(7.5), math.rad(-50.5)) , nil, function(X) return math.sin(math.rad(X)) end, 0.325 * GunSetup.AnimSpeed)
  1014. tweenJoint(LAW, CFrame.new(0.195,-0.8,-0.85) * CFrame.Angles(math.rad(-140),math.rad(70),math.rad(40)) , nil, function(X) return math.sin(math.rad(X)) end, 0.375 * GunSetup.AnimSpeed)
  1015. wait(0.12 * (GunSetup.AnimSpeed/1))
  1016. Animando = false
  1017. end
  1018. end
  1019.  
  1020.  
  1021. function ChamberBKAnim()
  1022. if Equipped then
  1023. Animando = true
  1024. tweenJoint(RAW, CFrame.new(0.213, -0.265, -1.25) * CFrame.Angles(math.rad(-90), math.rad(7.5), math.rad(-50.5)) , nil, function(X) return math.sin(math.rad(X)) end, 0.325 * GunSetup.AnimSpeed)
  1025. tweenJoint(LAW, CFrame.new(0.195,-0.8,-0.85) * CFrame.Angles(math.rad(-140),math.rad(70),math.rad(40)) , nil, function(X) return math.sin(math.rad(X)) end, 0.375 * GunSetup.AnimSpeed)
  1026. wait(0.15 * (GunSetup.AnimSpeed/2))
  1027. Tool.Handle.MagIn:Play()
  1028. tweenJoint(RAW, CFrame.new(0.213, -0.265, -1.25) * CFrame.Angles(math.rad(-90), math.rad(7.5), math.rad(-50.5)) , nil, function(X) return math.sin(math.rad(X)) end, 0.325 * GunSetup.AnimSpeed)
  1029. tweenJoint(LAW, CFrame.new(0.75,-0.6,-0.85) * CFrame.Angles(math.rad(-140),math.rad(70),math.rad(40)) , nil, function(X) return math.sin(math.rad(X)) end, 0.375 * GunSetup.AnimSpeed)
  1030. wait(0.12 * (GunSetup.AnimSpeed/1))
  1031. Animando = false
  1032.  
  1033. end
  1034. end
  1035.  
  1036.  
  1037.  
  1038.  
  1039. function FastReloadAnim()
  1040. if Equipped then
  1041. tweenJoint(RAW, CFrame.new(0.213, -0.265, -1.25) * CFrame.Angles(math.rad(-90), math.rad(7.5), math.rad(-50.5)) , nil, function(X) return math.sin(math.rad(X)) end, 0.325 * GunSetup.AnimSpeed)
  1042. tweenJoint(LAW, CFrame.new(1.25,0.55,-1.08) * CFrame.Angles(math.rad(-100),math.rad(25),math.rad(-41)) , nil, function(X) return math.sin(math.rad(X)) end, 0.375 * GunSetup.AnimSpeed)
  1043.  
  1044. wait(1.125 * (GunSetup.AnimSpeed/2))
  1045. tweenJoint(RAW, CFrame.new(-0.875, -0.465, -1.15) * CFrame.Angles(math.rad(-95), math.rad(-2), math.rad(7.5)) , nil, function(X) return math.sin(math.rad(X)) end, 0.425 * GunSetup.AnimSpeed)
  1046. tweenJoint(LAW, CFrame.new(1.195,-0.35,-1.48) * CFrame.Angles(math.rad(-100),math.rad(75),math.rad(0)) , nil, function(X) return math.sin(math.rad(X)) end, 0.375 * GunSetup.AnimSpeed)
  1047.  
  1048. wait(0.55 * GunSetup.AnimSpeed)
  1049. tweenJoint(RAW, CFrame.new(-0.975, -0.365, -1.2) * CFrame.Angles(math.rad(-85), math.rad(-2), math.rad(9)) , nil, function(X) return math.sin(math.rad(X)) end, 0.525 * GunSetup.AnimSpeed)
  1050. tweenJoint(LAW, CFrame.new(1.195,1.4,-0.5) * CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)) , nil, function(X) return math.sin(math.rad(X)) end, 0.375 * GunSetup.AnimSpeed)
  1051. Tool.Handle.MagOut:Play()
  1052.  
  1053. local MagC = Tool:WaitForChild("Mag"):clone()
  1054. Tool.Mag.Transparency = 1
  1055. MagC.Parent = Tool
  1056. MagC.Name = "MagC"
  1057. MagC.Transparency = 0
  1058.  
  1059. local MagCW = Instance.new("Motor6D")
  1060. MagCW.Part0 = MagC
  1061. MagCW.Part1 = Player.Character["Left Arm"]
  1062. MagCW.Parent = MagC
  1063. MagCW.C1 = MagC.CFrame:toObjectSpace(Tool.Mag.CFrame)
  1064.  
  1065. wait(0.75 * (GunSetup.AnimSpeed/1))
  1066.  
  1067. if (StoredAmmo.Value - (GunSetup.Ammo - Ammo)) < 0 then
  1068. Ammo = Ammo + StoredAmmo.Value
  1069. StoredAmmo.Value = 0
  1070. elseif Ammo <= 0 then
  1071. StoredAmmo.Value = StoredAmmo.Value - (GunSetup.Ammo - Ammo)
  1072. Ammo = GunSetup.Ammo
  1073. Chambered = false
  1074. elseif Ammo > 0 and Chambered and GunSetup.Chamber then
  1075. StoredAmmo.Value = StoredAmmo.Value - (GunSetup.Ammo - Ammo)
  1076. Ammo = GunSetup.Ammo + 1
  1077. elseif Ammo > 0 and Chambered and not GunSetup.Chamber then
  1078. StoredAmmo.Value = StoredAmmo.Value - (GunSetup.Ammo - Ammo)
  1079. Ammo = GunSetup.Ammo
  1080. end
  1081.  
  1082. Tool.Handle.MagIn:Play()
  1083.  
  1084. tweenJoint(RAW, CFrame.new(-0.875, -0.465, -1.15) * CFrame.Angles(math.rad(-95), math.rad(-2), math.rad(7.5)) , nil, function(X) return math.sin(math.rad(X)) end, 0.325 * GunSetup.AnimSpeed)
  1085. tweenJoint(LAW, CFrame.new(1.195,-0.35,-1.48) * CFrame.Angles(math.rad(-100),math.rad(75),math.rad(0)) , nil, function(X) return math.sin(math.rad(X)) end, 0.275 * GunSetup.AnimSpeed)
  1086.  
  1087. wait(0.15 * GunSetup.AnimSpeed)
  1088. MagC:Destroy()
  1089. Tool.Mag.Transparency = 0
  1090. wait(0.35 * GunSetup.AnimSpeed)
  1091.  
  1092. end
  1093. end
  1094.  
  1095. function FastBolt()
  1096.  
  1097. tweenJoint(RAW, CFrame.new(0.213, -0.265, -1.25) * CFrame.Angles(math.rad(-90), math.rad(7.5), math.rad(-50.5)) , nil, function(X) return math.sin(math.rad(X)) end, 0.325 * GunSetup.AnimSpeed)
  1098. tweenJoint(LAW, CFrame.new(0.75,-0.6,-0.85) * CFrame.Angles(math.rad(-140),math.rad(70),math.rad(40)) , nil, function(X) return math.sin(math.rad(X)) end, 0.375 * GunSetup.AnimSpeed)
  1099. wait(0.55 * (GunSetup.AnimSpeed/2))
  1100. tweenJoint(RAW, CFrame.new(0.213, -0.265, -1.25) * CFrame.Angles(math.rad(-90), math.rad(7.5), math.rad(-50.5)) , nil, function(X) return math.sin(math.rad(X)) end, 0.325 * GunSetup.AnimSpeed)
  1101. tweenJoint(LAW, CFrame.new(0.75,-0.6,-0.85) * CFrame.Angles(math.rad(-140),math.rad(70),math.rad(40)) , nil, function(X) return math.sin(math.rad(X)) end, 0.375 * GunSetup.AnimSpeed)
  1102. wait(0.3 * (GunSetup.AnimSpeed/2))
  1103. Tool.Handle.MagIn:Play()
  1104. tweenJoint(RAW, CFrame.new(0.213, -0.265, -1.25) * CFrame.Angles(math.rad(-90), math.rad(7.5), math.rad(-50.5)) , nil, function(X) return math.sin(math.rad(X)) end, 0.325 * GunSetup.AnimSpeed)
  1105. tweenJoint(LAW, CFrame.new(0.195,-0.8,-0.85) * CFrame.Angles(math.rad(-140),math.rad(70),math.rad(40)) , nil, function(X) return math.sin(math.rad(X)) end, 0.375 * GunSetup.AnimSpeed)
  1106.  
  1107. slideback = true
  1108. Emperrado = false
  1109. if Ammo > 0 and Chambered then
  1110. EjectShells()
  1111. Ammo = Ammo - 1
  1112. print(Ammo)
  1113. end
  1114.  
  1115. wait(0.75 * (GunSetup.AnimSpeed/2))
  1116. Tool.Handle.MagIn:Play()
  1117. tweenJoint(RAW, CFrame.new(0.213, -0.265, -1.25) * CFrame.Angles(math.rad(-90), math.rad(7.5), math.rad(-50.5)) , nil, function(X) return math.sin(math.rad(X)) end, 0.325 * GunSetup.AnimSpeed)
  1118. tweenJoint(LAW, CFrame.new(0.75,-0.6,-0.85) * CFrame.Angles(math.rad(-140),math.rad(70),math.rad(40)) , nil, function(X) return math.sin(math.rad(X)) end, 0.375 * GunSetup.AnimSpeed)
  1119.  
  1120. slideback = false
  1121. Chambered = true
  1122.  
  1123. wait(0.25 * (GunSetup.AnimSpeed/2))
  1124. tweenJoint(RAW, GunSetup.RightPos , nil, function(X) return math.sin(math.rad(X)) end, 0.225 * GunSetup.AnimSpeed)
  1125. tweenJoint(LAW, GunSetup.LeftPos , nil, function(X) return math.sin(math.rad(X)) end, 0.215 * GunSetup.AnimSpeed)
  1126.  
  1127. end
  1128.  
  1129.  
  1130. function GLReloadAnim()
  1131. if Equipped then
  1132.  
  1133.  
  1134. tweenJoint(RAW, CFrame.new(-0.975, -0.365, -1.2) * CFrame.Angles(math.rad(-85), math.rad(-2), math.rad(9)) , nil, function(X) return math.sin(math.rad(X)) end, 0.525 * GunSetup.AnimSpeed)
  1135. tweenJoint(LAW, CFrame.new(1,0,-1.795) * CFrame.Angles(math.rad(-120),math.rad(45),math.rad(5)) , nil, function(X) return math.sin(math.rad(X)) end, 0.375 * GunSetup.AnimSpeed)
  1136.  
  1137. wait(0.25 * (GunSetup.AnimSpeed/1))
  1138.  
  1139. tweenJoint(RAW, CFrame.new(-0.875, -0.465, -1.15) * CFrame.Angles(math.rad(-95), math.rad(-2), math.rad(7.5)) , nil, function(X) return math.sin(math.rad(X)) end, 0.425 * GunSetup.AnimSpeed)
  1140. tweenJoint(LAW, CFrame.new(1.195,1.4,-0.5) * CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)) , nil, function(X) return math.sin(math.rad(X)) end, 0.375 * GunSetup.AnimSpeed)
  1141.  
  1142.  
  1143. wait(0.75 * (GunSetup.AnimSpeed/1))
  1144.  
  1145.  
  1146. Tool.Handle.MagOut:Play()
  1147.  
  1148. tweenJoint(RAW, CFrame.new(-0.975, -0.365, -1.2) * CFrame.Angles(math.rad(-85), math.rad(-2), math.rad(9)) , nil, function(X) return math.sin(math.rad(X)) end, 0.525 * GunSetup.AnimSpeed)
  1149. tweenJoint(LAW, CFrame.new(1,0,-1.795) * CFrame.Angles(math.rad(-120),math.rad(45),math.rad(5)) , nil, function(X) return math.sin(math.rad(X)) end, 0.375 * GunSetup.AnimSpeed)
  1150.  
  1151. if (StoredAmmo.Value - (GunSetup.Ammo - Ammo)) < 0 then
  1152. Ammo = Ammo + StoredAmmo.Value
  1153. StoredAmmo.Value = 0
  1154. elseif Ammo <= 0 then
  1155. StoredAmmo.Value = StoredAmmo.Value - (GunSetup.Ammo - Ammo)
  1156. Ammo = GunSetup.Ammo
  1157. Chambered = false
  1158. elseif Ammo > 0 and Chambered and GunSetup.Chamber then
  1159. StoredAmmo.Value = StoredAmmo.Value - (GunSetup.Ammo - Ammo)
  1160. Ammo = GunSetup.Ammo + 1
  1161. elseif Ammo > 0 and Chambered and not GunSetup.Chamber then
  1162. StoredAmmo.Value = StoredAmmo.Value - (GunSetup.Ammo - Ammo)
  1163. Ammo = GunSetup.Ammo
  1164. end
  1165.  
  1166. wait(0.75 * GunSetup.AnimSpeed)
  1167.  
  1168. tweenJoint(RAW, CFrame.new(0.213, -0.265, -1.25) * CFrame.Angles(math.rad(-90), math.rad(7.5), math.rad(-50.5)) , nil, function(X) return math.sin(math.rad(X)) end, 0.325 * GunSetup.AnimSpeed)
  1169. tweenJoint(LAW, CFrame.new(1.25,0.55,-1.08) * CFrame.Angles(math.rad(-100),math.rad(25),math.rad(-41)) , nil, function(X) return math.sin(math.rad(X)) end, 0.375 * GunSetup.AnimSpeed)
  1170.  
  1171. end
  1172. end
  1173.  
  1174. -----------------------ADS Function------------------------------
  1175.  
  1176.  
  1177.  
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185. Mouse.Button2Down:connect(function()
  1186. if Equipped then
  1187. if not Aiming and not Reloading and not GLReloading and not Sprinting and not Safemode and not Checando then
  1188. Aiming = true
  1189. -- Mouse.Icon = GunSetup.Cursor.Aiming
  1190. if AimPartMode == 1 then
  1191. tweenJoint(RAW, RAW.C0 * CFrame.new(-Tool.AimPart.CFrame:toObjectSpace(Character.Head.CFrame).p), nil, function(X) return math.sin(math.rad(X)) end, 0.25 * GunSetup.AnimSpeed)
  1192. tweenJoint(LAW, GunSetup.LeftAimPosition , nil, function(X) return math.sin(math.rad(X)) end, 0.25 * GunSetup.AnimSpeed)
  1193. tweenFoV(GunSetup.FOV1, 40)
  1194. end
  1195. if AimPartMode == 2 then
  1196. tweenJoint(RAW, RAW.C0 * CFrame.new(-Tool.AimPart2.CFrame:toObjectSpace(Character.Head.CFrame).p), nil, function(X) return math.sin(math.rad(X)) end, 0.25 * GunSetup.AnimSpeed)
  1197. tweenJoint(LAW, GunSetup.LeftAim2Position , nil, function(X) return math.sin(math.rad(X)) end, 0.25 * GunSetup.AnimSpeed)
  1198. tweenFoV(GunSetup.FOV2, 40)
  1199. end
  1200.  
  1201. game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
  1202. end
  1203. end
  1204. end)
  1205.  
  1206. Mouse.Button2Up:connect(function()
  1207. if Equipped then
  1208. if Aiming then
  1209. Aiming = false
  1210. -- Mouse.Icon = GunSetup.Cursor.Aiming
  1211. if not Safemode then
  1212. IdleOrSteadyAnim()
  1213. tweenFoV(70, 40)
  1214. end
  1215. end
  1216. end
  1217. end)
  1218.  
  1219.  
  1220. -----------------------shooting function-----------------
  1221.  
  1222. function Rand(Min, Max, Accuracy)
  1223. local Inverse = 1 / (Accuracy or 1)
  1224. return (math.random(Min * Inverse, Max * Inverse) / Inverse)
  1225. end
  1226.  
  1227. function GetHitSurfaceCFrame(HitPos,Obj)
  1228. local SurfaceCF = {
  1229. {"Back",Obj.CFrame * CFrame.new(0,0,Obj.Size.z)};
  1230. {"Bottom",Obj.CFrame * CFrame.new(0,-Obj.Size.y,0)};
  1231. {"Front",Obj.CFrame * CFrame.new(0,0,-Obj.Size.z)};
  1232. {"Left",Obj.CFrame * CFrame.new(-Obj.Size.x,0,0)};
  1233. {"Right",Obj.CFrame * CFrame.new(Obj.Size.x,0,0)};
  1234. {"Top",Obj.CFrame * CFrame.new(0,Obj.Size.y,0)}
  1235. }
  1236. local ClosestDist = math.huge
  1237. local ClosestSurface = nil
  1238. for _,v in pairs(SurfaceCF) do
  1239. local SurfaceDist = (HitPos - v[2].p).magnitude
  1240. if SurfaceDist < ClosestDist then
  1241. ClosestDist = SurfaceDist
  1242. ClosestSurface = v
  1243. end
  1244. end
  1245. return ClosestSurface[2]
  1246. end
  1247.  
  1248.  
  1249.  
  1250. local Bullet
  1251. local HitMark
  1252. local BulletModel = workspace:FindFirstChild("Ray_Ignore") or Instance.new("Model", workspace)
  1253. BulletModel.Name = "Ray_Ignore"
  1254. spawn(function()
  1255. while true do
  1256. BulletModel.Parent = game.Workspace
  1257. wait(1 / 20)
  1258. end
  1259. end)
  1260.  
  1261. local Ray_Ignore = {Character, BulletModel, Camera}
  1262.  
  1263. function CreateBullet()
  1264.  
  1265. local Origin = Tool.FirePart.Position
  1266. local Direction = Tool.FirePart.CFrame.lookVector
  1267. local BulletCF = CFrame.new(Origin, Origin + Direction)
  1268.  
  1269. Bullet = Instance.new("Part")
  1270. game.Debris:AddItem(Bullet, 3)
  1271. Bullet.Name = "Bullet"
  1272. Bullet.Shape = Enum.PartType.Ball
  1273. Bullet.Size = Vector3.new(0.2, 0.2, 0.2)
  1274. Bullet.TopSurface = "Smooth"
  1275. Bullet.BottomSurface = "Smooth"
  1276. Bullet.BrickColor = BrickColor.new("Bright yellow")
  1277. Bullet.Material = "Neon"
  1278. Bullet.Transparency = 0
  1279. Bullet.CanCollide = false
  1280. Bullet.CFrame = Tool.FirePart.CFrame + (Tool.FirePart.CFrame.p - Tool.FirePart.CFrame.p)
  1281. Bullet.CFrame = CFrame.new(Tool.FirePart.CFrame.p, Tool.FirePart.CFrame.p + Tool.FirePart.CFrame.lookVector)
  1282. local BM = Instance.new("SpecialMesh", Bullet)
  1283. BM.MeshType = "Brick"
  1284. BM.Scale = Vector3.new(0.2,0.2,25)
  1285. local BulletMass = Bullet.Size.X * Bullet.Size.Y * Bullet.Size.Z
  1286. local BF = Instance.new("BodyForce")
  1287. BF.force = Vector3.new(0, BulletMass * (65 - GunSetup.BDrop), 0)
  1288. BF.Parent = Bullet
  1289. Bullet.Velocity = Direction * 1000
  1290. Bullet.CFrame = BulletCF + Direction
  1291.  
  1292. if GunSetup.BSpeed >= 343 then
  1293. local BulletWhizz = Instance.new("Sound")
  1294. BulletWhizz.Parent = Bullet
  1295. BulletWhizz.Pitch = 1
  1296. BulletWhizz.Looped = true
  1297. BulletWhizz.EmitterSize = 25
  1298. BulletWhizz.MaxDistance = 500
  1299. BulletWhizz.SoundId = "rbxassetid://151284431"
  1300. BulletWhizz:Play()
  1301. end
  1302.  
  1303. return Bullet
  1304.  
  1305. end
  1306.  
  1307. function CreateBulletImpact(HitPos, HitObj, HumanoidFound)
  1308. local SurfaceCF = GetHitSurfaceCFrame(HitPos, HitObj)
  1309. local SurfaceDir = CFrame.new(HitObj.CFrame.p, SurfaceCF.p)
  1310. local SurfaceDist = SurfaceDir.lookVector * (HitObj.CFrame.p - SurfaceCF.p).magnitude / 2
  1311. local SurfaceOffset = HitPos - SurfaceCF.p + SurfaceDist
  1312. local SurfaceCFrame = SurfaceDir + SurfaceDist + SurfaceOffset
  1313.  
  1314. HitMark = Instance.new("Part")
  1315. HitMark.BrickColor = BrickColor.new("Black")
  1316. HitMark.Transparency = 1
  1317. HitMark.Anchored = true
  1318. HitMark.CanCollide = false
  1319. HitMark.FormFactor = "Custom"
  1320. HitMark.Size = Vector3.new(math.random(1,1.5), math.random(1,1.5), 0.2)
  1321. HitMark.TopSurface = 0
  1322. HitMark.BottomSurface = 0
  1323. local Mesh = Instance.new("BlockMesh")
  1324. Mesh.Offset = Vector3.new(0, 0, -0.05)
  1325. Mesh.Scale = Vector3.new(-0.25, -0.25, 0)
  1326. Mesh.Parent = HitMark
  1327.  
  1328. local mat = HitObj.Material
  1329.  
  1330. if mat == Enum.Material.Wood or mat == Enum.Material.WoodPlanks then
  1331. local BulletWhizz = Instance.new("Sound")
  1332. BulletWhizz.Parent = HitMark
  1333. BulletWhizz.Pitch = BulletWhizz.Pitch * math.random(34, 46)/40
  1334. BulletWhizz.SoundId = "rbxassetid://142082171"
  1335. BulletWhizz:Play()
  1336.  
  1337. if game.ReplicatedStorage:FindFirstChild("Dust" or "Smoke") then
  1338. local D1 = game.ReplicatedStorage.Dust:clone()
  1339. D1.Parent = HitMark
  1340. D1.Enabled = true
  1341. end
  1342.  
  1343.  
  1344. local Decal = Instance.new("Decal")
  1345. Decal.Face = Enum.NormalId.Front
  1346. Decal.Texture = "http://www.roblox.com/asset/?id=64291961"
  1347. Decal.Parent = HitMark
  1348. HitMark.Parent = BulletModel
  1349. HitMark.CFrame = SurfaceCFrame
  1350. local Particles = Instance.new("ParticleEmitter")
  1351. Particles.Color = ColorSequence.new(Color3.new(255, 255, 255))
  1352. Particles.LightEmission = 0
  1353. Particles.Size = NumberSequence.new(0.25)
  1354. Particles.Texture = "http://www.roblox.com/asset/?id=434255560"
  1355. Particles.Transparency = NumberSequence.new(
  1356. {
  1357. NumberSequenceKeypoint.new(0, 0.25, 0.25);
  1358. NumberSequenceKeypoint.new(1, 1);
  1359. }
  1360. )
  1361. Particles.Acceleration = Vector3.new(0, -196.2, 0)
  1362. Particles.Lifetime = NumberRange.new(0.25 - 0.05, 0.25 + 0.15)
  1363. Particles.Rate = 500
  1364. Particles.RotSpeed = NumberRange.new(360)
  1365. Particles.Speed = NumberRange.new(25 - 0, 25 + 0)
  1366. Particles.VelocitySpread = 45
  1367. Particles.Parent = HitMark
  1368. Particles.EmissionDirection = "Top"
  1369. game.Debris:AddItem(Particles, 0.2)
  1370. game.Debris:AddItem(HitMark, 0.95)
  1371.  
  1372. elseif mat == Enum.Material.Plastic and HitObj.Name == "Head" or HitObj.Name == "Torso" or HitObj.Name == "Right Arm" or HitObj.Name == "Left Arm" or HitObj.Name == "Right Leg" or HitObj.Name == "Left Leg" then
  1373.  
  1374. local BulletWhizz = Instance.new("Sound")
  1375. BulletWhizz.Parent = HitMark
  1376. BulletWhizz.Pitch = BulletWhizz.Pitch * math.random(34, 46)/40
  1377. BulletWhizz.SoundId = "rbxassetid://330595293"
  1378. BulletWhizz:Play()
  1379.  
  1380. local Decal = Instance.new("Decal")
  1381. Decal.Face = Enum.NormalId.Front
  1382. Decal.Texture = "http://www.roblox.com/asset/?id=112969718"
  1383. Decal.Parent = HitMark
  1384. HitMark.Parent = BulletModel
  1385. HitMark.CFrame = SurfaceCFrame
  1386. local Particles = Instance.new("ParticleEmitter")
  1387. Particles.Color = ColorSequence.new(Color3.new(25, 0, 0))
  1388. Particles.LightEmission = 0
  1389. Particles.Size = NumberSequence.new(.5)
  1390. Particles.Texture = "http://www.roblox.com/asset/?id=176677966"
  1391. Particles.Transparency = NumberSequence.new(
  1392. {
  1393. NumberSequenceKeypoint.new(0, 0, 0);
  1394. NumberSequenceKeypoint.new(1, 1);
  1395. }
  1396. )
  1397. Particles.Acceleration = Vector3.new(0, 0, 0)
  1398. Particles.Lifetime = NumberRange.new(0.1 - 0.05, 0.1 + 0.05)
  1399. Particles.Rate = 500
  1400. Particles.RotSpeed = NumberRange.new(1000)
  1401. Particles.Speed = NumberRange.new(0 - 0, 0 + 0)
  1402. Particles.VelocitySpread = 0
  1403. Particles.Parent = HitMark
  1404. Particles.EmissionDirection = "Top"
  1405. game.Debris:AddItem(Particles, 0.2)
  1406. game.Debris:AddItem(HitMark, 0.95)
  1407.  
  1408.  
  1409. elseif mat == Enum.Material.Concrete or mat == Enum.Material.Slate or mat == Enum.Material.Cobblestone or mat == Enum.Material.Brick or mat == Enum.Material.Granite or mat == Enum.Material.Granite or mat == Enum.Material.Plastic or mat == Enum.Material.SmoothPlastic then
  1410. local BulletWhizz = Instance.new("Sound")
  1411. BulletWhizz.Parent = HitMark
  1412. BulletWhizz.Pitch = BulletWhizz.Pitch * math.random(34, 46)/40
  1413. BulletWhizz.SoundId = "rbxassetid://142082166"
  1414. BulletWhizz:Play()
  1415.  
  1416. if game.ReplicatedStorage:FindFirstChild("Dust" or "Smoke") then
  1417. local D1 = game.ReplicatedStorage.Dust:clone()
  1418. D1.Parent = HitMark
  1419. D1.Enabled = true
  1420. local D2 = game.ReplicatedStorage.Smoke:clone()
  1421. D2.Parent = HitMark
  1422. D2.Enabled = true
  1423. end
  1424.  
  1425. local Decal = Instance.new("Decal")
  1426. Decal.Face = Enum.NormalId.Front
  1427. Decal.Texture = "http://www.roblox.com/asset/?id=64291961"
  1428. Decal.Parent = HitMark
  1429. HitMark.Parent = BulletModel
  1430. HitMark.CFrame = SurfaceCFrame
  1431. local Particles = Instance.new("ParticleEmitter")
  1432. Particles.Color = ColorSequence.new(Color3.new(50, 50, 50))
  1433. Particles.LightEmission = 0
  1434. Particles.Size = NumberSequence.new(0.25)
  1435. Particles.Texture = "rbxasset://textures/particles/smoke_main.dds"
  1436. Particles.Transparency = NumberSequence.new(
  1437. {
  1438. NumberSequenceKeypoint.new(0, 0.25, 0.25);
  1439. NumberSequenceKeypoint.new(1, 1);
  1440. }
  1441. )
  1442. Particles.Acceleration = Vector3.new(0, -196.2, 0)
  1443. Particles.Lifetime = NumberRange.new(0.1 - 0.05, 0.1 + 0.05)
  1444. Particles.Rate = 500
  1445. Particles.RotSpeed = NumberRange.new(360)
  1446. Particles.Speed = NumberRange.new(25 - 5, 25 + 5)
  1447. Particles.VelocitySpread = 45
  1448. Particles.Parent = HitMark
  1449. Particles.EmissionDirection = "Top"
  1450. game.Debris:AddItem(Particles, 0.2)
  1451. game.Debris:AddItem(HitMark, 0.95)
  1452.  
  1453. elseif mat == Enum.Material.Grass or mat == Enum.Material.Sand then
  1454. local BulletWhizz = Instance.new("Sound")
  1455. BulletWhizz.Parent = HitMark
  1456. BulletWhizz.Pitch = BulletWhizz.Pitch * math.random(34, 46)/40
  1457. BulletWhizz.SoundId = "rbxassetid://133758545"
  1458. BulletWhizz:Play()
  1459.  
  1460. if game.ReplicatedStorage:FindFirstChild("Dust" or "Smoke") then
  1461. local D1 = game.ReplicatedStorage.Dust:clone()
  1462. D1.Parent = HitMark
  1463. D1.Enabled = true
  1464. local D2 = game.ReplicatedStorage.Smoke:clone()
  1465. D2.Parent = HitMark
  1466. D2.Enabled = true
  1467. end
  1468.  
  1469. if game.ReplicatedStorage:FindFirstChild("Dust" or "Smoke") then
  1470. local D1 = game.ReplicatedStorage.Dust:clone()
  1471. D1.Parent = HitMark
  1472. D1.Enabled = true
  1473. local D2 = game.ReplicatedStorage.Smoke:clone()
  1474. D2.Parent = HitMark
  1475. D2.Enabled = true
  1476. end
  1477.  
  1478. local Decal = Instance.new("Decal")
  1479. Decal.Face = Enum.NormalId.Front
  1480. Decal.Texture = "http://www.roblox.com/asset/?id=64291961"
  1481. Decal.Parent = HitMark
  1482. HitMark.Parent = BulletModel
  1483. HitMark.CFrame = SurfaceCFrame
  1484. local Particles = Instance.new("ParticleEmitter")
  1485. Particles.Color = ColorSequence.new(Color3.new(50, 50, 50))
  1486. Particles.LightEmission = 0
  1487. Particles.Size = NumberSequence.new(0.25)
  1488. Particles.Texture = "rbxasset://textures/particles/smoke_main.dds"
  1489. Particles.Transparency = NumberSequence.new(
  1490. {
  1491. NumberSequenceKeypoint.new(0, 0.25, 0.25);
  1492. NumberSequenceKeypoint.new(1, 1);
  1493. }
  1494. )
  1495. Particles.Acceleration = Vector3.new(0, -196.2, 0)
  1496. Particles.Lifetime = NumberRange.new(0.1 - 0.05, 0.1 + 0.05)
  1497. Particles.Rate = 500
  1498. Particles.RotSpeed = NumberRange.new(360)
  1499. Particles.Speed = NumberRange.new(25 - 5, 25 + 5)
  1500. Particles.VelocitySpread = 45
  1501. Particles.Parent = HitMark
  1502. Particles.EmissionDirection = "Top"
  1503. game.Debris:AddItem(Particles, 0.2)
  1504. game.Debris:AddItem(HitMark, 0.95)
  1505.  
  1506. elseif mat == Enum.Material.CorrodedMetal or mat == Enum.Material.Metal or mat == Enum.Material.DiamondPlate then
  1507. local BulletWhizz = Instance.new("Sound")
  1508. BulletWhizz.Parent = HitMark
  1509. BulletWhizz.Pitch = BulletWhizz.Pitch * math.random(34, 46)/40
  1510. BulletWhizz.SoundId = "rbxassetid://142082170"
  1511. BulletWhizz:Play()
  1512.  
  1513. local Decal = Instance.new("Decal")
  1514. Decal.Face = Enum.NormalId.Front
  1515. Decal.Texture = "http://www.roblox.com/asset/?id=64291961"
  1516. Decal.Parent = HitMark
  1517. HitMark.Parent = BulletModel
  1518. HitMark.CFrame = SurfaceCFrame
  1519. local Particles = Instance.new("ParticleEmitter")
  1520. Particles.Color = ColorSequence.new(Color3.new(255, 200, 0))
  1521. Particles.LightEmission = 1
  1522. Particles.Size = NumberSequence.new(0.075)
  1523. Particles.Texture = "http://www.roblox.com/asset/?id=416917683"
  1524. Particles.Transparency = NumberSequence.new(
  1525. {
  1526. NumberSequenceKeypoint.new(0, 0.25, 0.25);
  1527. NumberSequenceKeypoint.new(1, 1);
  1528. }
  1529. )
  1530. Particles.Acceleration = Vector3.new(0, -196.2, 0)
  1531. Particles.Lifetime = NumberRange.new(0.1 - 0.05, 0.1 + 0.05)
  1532. Particles.Rate = 500
  1533. Particles.RotSpeed = NumberRange.new(360)
  1534. Particles.Speed = NumberRange.new(25 - 5, 25 + 5)
  1535. Particles.VelocitySpread = 45
  1536. Particles.Parent = HitMark
  1537. Particles.EmissionDirection = "Top"
  1538. game.Debris:AddItem(Particles, 0.2)
  1539. game.Debris:AddItem(HitMark, 0.95)
  1540.  
  1541.  
  1542. else
  1543. local BulletWhizz = Instance.new("Sound")
  1544. BulletWhizz.Parent = HitMark
  1545. BulletWhizz.Pitch = BulletWhizz.Pitch * math.random(34, 46)/40
  1546. BulletWhizz.SoundId = "rbxassetid://142082166"
  1547. BulletWhizz:Play()
  1548. end
  1549.  
  1550.  
  1551.  
  1552. end
  1553.  
  1554.  
  1555.  
  1556.  
  1557. --rocket.Touched:connect(function(hit)
  1558.  
  1559. function EjectShells()
  1560. shell = Shell:clone()
  1561. shell.CFrame = Tool.Chamber.CFrame * CFrame.fromEulerAnglesXYZ(2.5,1,1.25)
  1562. shell.Velocity = Tool.Chamber.CFrame.lookVector * 20 + Vector3.new(0,10,0)
  1563. shell.RotVelocity = Vector3.new(-10,40,30)
  1564. shell.Parent = BulletModel
  1565. game:GetService("Debris"):addItem(shell,0.125)
  1566. print("Ejecting Shell")
  1567.  
  1568. end
  1569. local connection
  1570.  
  1571. function M203()
  1572. if GunSetup.GrenadeLauncher == true then
  1573. Tool.Handle.M203:Play()
  1574. local M203 = game.ReplicatedStorage.M203["M203"]:clone()
  1575. M203.Parent = game.Workspace
  1576. M203.CFrame = Tool.FirePart2.CFrame*CFrame.new(.15,-0.7,-5.5)
  1577.  
  1578. if GunSetup.M203Ammo == 1 then
  1579. M203.Velocity = Tool.FirePart2.CFrame.lookVector*(500-196.2)
  1580. end
  1581. if GunSetup.M203Ammo == 2 then
  1582. M203.Velocity = Tool.FirePart2.CFrame.lookVector*(575-196.2)
  1583. end
  1584.  
  1585. if GunSetup.M203Ammo == 1 then
  1586. local Explosion =Instance.new("Explosion")
  1587. Explosion.BlastRadius=15
  1588. Explosion.BlastPressure=0
  1589. damage = math.random(80,120)
  1590. M203.Touched:connect(function(Hit)
  1591. Explosion.Hit:connect(Damage)
  1592. Explosion.Position= M203.Position
  1593.  
  1594. Explosion.Parent=game.Workspace
  1595. M203:remove()
  1596. end)
  1597. end
  1598. if GunSetup.M203Ammo == 2 then
  1599. local Smoke = M203.Smoke
  1600. M203.Touched:connect(function(Hit)
  1601.  
  1602. Smoke.Enabled = true
  1603. M203.Velocity = Camera.CoordinateFrame.lookVector*0
  1604. wait(9.5)
  1605. Smoke.Enabled = false
  1606. wait(1.5)
  1607. M203:remove()
  1608. end)
  1609. end
  1610. end
  1611. end
  1612.  
  1613. function Raycasting()
  1614. local Hit,Pos
  1615. local Position0 = Bullet.Position;
  1616. local Position1 = Bullet.Position;
  1617. local Distance = 0
  1618. while true do
  1619. RS.RenderStepped:wait()
  1620. if Distance > 1500 then
  1621. Bullet:Destroy()
  1622. break
  1623. end
  1624. Position1 = Bullet.Position;
  1625. Distance = Distance + (Position1 - Position0).magnitude
  1626. Hit, Pos = workspace:FindPartOnRayWithIgnoreList(Ray.new(Position0,(Position1 - Position0)), Ray_Ignore);
  1627.  
  1628. if Hit then
  1629. Bullet:Destroy()
  1630.  
  1631. local hitHumanoid = ( Hit.Parent:IsA( "Accessory" ) and Hit.Parent.Parent:FindFirstChild( "Humanoid" ) or Hit.Parent:FindFirstChild( "Humanoid" ) );
  1632. local c = Instance.new("ObjectValue");
  1633. c.Name = "creator";
  1634. c.Value = Player;
  1635. game.Debris:AddItem(c, 3);
  1636. c.Parent = hitHumanoid;
  1637. local hitPlyr = ( hitHumanoid and game.Players:GetPlayerFromCharacter( hitHumanoid.Parent ) );
  1638. if not hitHumanoid then
  1639. CreateBulletImpact(Pos,Hit,false)
  1640. if game.ReplicatedStorage:FindFirstChild("Smoke") then
  1641. local D2 = game.ReplicatedStorage.Smoke:clone()
  1642. D2.Parent = HitMark
  1643. D2.Enabled = true
  1644. end
  1645. elseif hitHumanoid then
  1646. if game.ReplicatedStorage:FindFirstChild("Blood") then
  1647. local D2 = game.ReplicatedStorage.Blood:clone()
  1648. D2.Parent = HitMark
  1649. D2.Enabled = true
  1650. end
  1651. CreateBulletImpact(Pos,Hit,true)
  1652. end
  1653.  
  1654. if hitPlyr then
  1655. local isEnemy;
  1656. if GunSetup.ATK then
  1657. isEnemy = ( hitPlyr.TeamColor ~= Player.TeamColor or hitPlyr.Neutral );
  1658. elseif not GunSetup.ATK then
  1659. isEnemy = (hitPlyr.TeamColor == Player.TeamColor or hitPlyr.TeamColor ~= Player.TeamColor or hitPlyr.Neutral );
  1660. end
  1661. if isEnemy and Hit.Name == "Head" then
  1662. hitHumanoid:TakeDamage( GunSetup.HeadDamage );
  1663. elseif isEnemy and Hit.Name ~= "Head" then
  1664. hitHumanoid:TakeDamage( GunSetup.Damage);
  1665. elseif isEnemy and Hit.Name == "Chest" then
  1666. hitHumanoid:TakeDamage( GunSetup.Damage);
  1667. elseif isEnemy and Hit:IsA("Accessory") or Hit:IsA("Hat") and Hit.Parent.Parent:FindFirstChild("Humanoid") then
  1668. Hit.Parent.Parent:FindFirstChild("Humanoid"):TakeDamage(GunSetup.HeadDamage);
  1669. end
  1670.  
  1671. elseif hitHumanoid and Hit.Name == "Head" then
  1672. hitHumanoid:TakeDamage( GunSetup.HeadDamage );
  1673. elseif hitHumanoid and Hit.Name ~= "Head" then
  1674. hitHumanoid:TakeDamage( GunSetup.Damage );
  1675. elseif hitHumanoid and Hit.Name == "Chest" then
  1676. hitHumanoid:TakeDamage( GunSetup.VestDamage );
  1677. elseif hitHumanoid and Hit:IsA("Accessory") or Hit:IsA("Hat") or Hit.Name == "Face" and Hit.Parent.Parent:FindFirstChild("Humanoid") then
  1678. Hit.Parent.Parent:FindFirstChild("Humanoid"):TakeDamage( GunSetup.HeadDamage);
  1679. end
  1680. print(Hit.Name)
  1681. return Hit, Pos;
  1682. end
  1683. Position0 = Position1;
  1684. end
  1685. end
  1686.  
  1687.  
  1688. function Damage(Targ)
  1689. local humanoid=Targ.Parent:FindFirstChild("Humanoid")
  1690. if Targ.Parent:FindFirstChild("Humanoid") then
  1691. -- for i,v in ipairs(humanoids) do
  1692. -- if v==targ.Parent.Humanoid then
  1693. -- return
  1694. -- end
  1695. -- end
  1696. -- table.insert(humanoids,targ.Parent.Humanoid)
  1697. Targ.Parent.Humanoid:TakeDamage(damage)
  1698. end
  1699. end
  1700.  
  1701.  
  1702.  
  1703.  
  1704. function shoot()
  1705.  
  1706. local move = (Tool.FirePart.CFrame * CFrame.Angles(math.rad(math.random(-GunSetup.BSpread, GunSetup.BSpread)/10), math.rad(math.random(-GunSetup.BSpread, GunSetup.BSpread)/10), math.rad(math.random(-GunSetup.BSpread, GunSetup.BSpread)/10))).lookVector * 450
  1707. local from = Tool.FirePart.Position
  1708. local ray = Ray.new(from,move-Vector3.new(0, GunSetup.BDrop*0.05, 0))
  1709. local Hit,Pos = workspace:FindPartOnRayWithIgnoreList(ray, Ray_Ignore)
  1710. local HumanoidFound = false
  1711.  
  1712.  
  1713. CreateBullet()
  1714.  
  1715.  
  1716. local humanoid
  1717. if Hit then
  1718. CreateBulletImpact(Pos, Hit, HumanoidFound)
  1719.  
  1720. if Hit.Parent.Name == "Chest" then
  1721. if Hit.Parent.Parent:FindFirstChild("Humanoid") then
  1722. humanoid = Hit.Parent.Parent:FindFirstChild("Humanoid")
  1723. local c = Instance.new("ObjectValue")
  1724. c.Name = "creator"
  1725. c.Value = Player
  1726. game.Debris:AddItem(c, 3)
  1727. c.Parent = humanoid
  1728. humanoid:TakeDamage(GunSetup.VestDamage)
  1729. HumanoidFound = true
  1730.  
  1731. end
  1732.  
  1733. elseif Hit.Parent:IsA("Hat") or Hit.Parent:IsA("Accessory") then
  1734. if Hit.Parent.Parent:FindFirstChild("Humanoid") then
  1735. humanoid = Hit.Parent.Parent:FindFirstChild("Humanoid")
  1736. local c = Instance.new("ObjectValue")
  1737. c.Name = "creator"
  1738. c.Value = Player
  1739. game.Debris:AddItem(c, 3)
  1740. c.Parent = humanoid
  1741. local d = math.random(GunSetup.HeadDamage[1], GunSetup.HeadDamage[2])
  1742. humanoid:TakeDamage(d)
  1743. HumanoidFound = true
  1744.  
  1745. end
  1746. elseif Hit.Parent.Name=="Face" then
  1747. if Hit.Parent.Parent:FindFirstChild("Humanoid") then
  1748. humanoid = Hit.Parent.Parent:FindFirstChild("Humanoid")
  1749. local c = Instance.new("ObjectValue")
  1750. c.Name = "creator"
  1751. c.Value = Player
  1752. game.Debris:AddItem(c, 3)
  1753. c.Parent = humanoid
  1754. humanoid:TakeDamage(GunSetup.HelmetDamage)
  1755. HumanoidFound = true
  1756.  
  1757. end
  1758. end
  1759. if Hit.Parent:FindFirstChild("Humanoid") and Hit.Name == "Head" then
  1760. humanoid = Hit.Parent:FindFirstChild("Humanoid")
  1761. local c = Instance.new("ObjectValue")
  1762. c.Name = "creator"
  1763. c.Value = Player
  1764. game.Debris:AddItem(c, 3)
  1765. c.Parent = humanoid
  1766. local d = math.random(GunSetup.HeadDamage[1], GunSetup.HeadDamage[2])
  1767. humanoid:TakeDamage(d)
  1768. HumanoidFound = true
  1769.  
  1770. elseif Hit.Parent:FindFirstChild("Humanoid") and Hit.Name == "Torso" then
  1771. humanoid = Hit.Parent:FindFirstChild("Humanoid")
  1772. local c = Instance.new("ObjectValue")
  1773. c.Name = "creator"
  1774. c.Value = Player
  1775. game.Debris:AddItem(c, 3)
  1776. c.Parent = humanoid
  1777. local d = math.random(GunSetup.TorsoDamage[1], GunSetup.TorsoDamage[2])
  1778. humanoid:TakeDamage(d)
  1779. HumanoidFound = true
  1780.  
  1781. elseif Hit.Parent:FindFirstChild("Humanoid") and Hit.Name == "Right Arm" or Hit.Name == "Left Arm" or Hit.Name == "Right Leg" or Hit.Name == "Left Leg" then
  1782. humanoid = Hit.Parent:FindFirstChild("Humanoid")
  1783. local c = Instance.new("ObjectValue")
  1784. c.Name = "creator"
  1785. c.Value = Player
  1786. game.Debris:AddItem(c, 3)
  1787. c.Parent = humanoid
  1788. local d = math.random(GunSetup.LimbsDamage[1], GunSetup.LimbsDamage[2])
  1789. humanoid:TakeDamage(d)
  1790. HumanoidFound = true
  1791.  
  1792. end
  1793. end
  1794.  
  1795. Tool.FirePart.Fire:Play()
  1796. RecoilG = math.rad(math.random(GunSetup.Recoil[1],GunSetup.Recoil[1])/10 * Rand(1, 1.5, 0.1))--(GunSettings.Recoil*math.random(1,4))
  1797. Recoilup = RecoilG/2
  1798. print(RecoilG)
  1799. for i = Recoil, Recoil*Recoil do
  1800. Recoilup = Recoilup * math.abs(Recoil) * math.random(-i,i)
  1801. end
  1802.  
  1803. for _, v in pairs(Tool.FirePart:GetChildren()) do
  1804. if v.Name:sub(1, 7) == "FlashFX" or v.Name:sub(1, 7) == "Smoke" then
  1805. v.Enabled = true
  1806. end
  1807. end
  1808.  
  1809. delay(1 / 30, function()
  1810. for _, v in pairs(Tool.FirePart:GetChildren()) do
  1811. if v.Name:sub(1, 7) == "FlashFX" or v.Name:sub(1, 7) == "Smoke" then
  1812. v.Enabled = false
  1813. Recoilup = 0
  1814. end
  1815. end
  1816. end)
  1817.  
  1818.  
  1819. coroutine.resume(coroutine.create(function()
  1820. local r = math.abs(Recoilup)/3
  1821. local r2 = math.abs(Recoilup)/12
  1822. local r3 = math.abs(Recoilup)/14
  1823. if _G.Crouched then
  1824. r = r2
  1825. elseif _G.Proned then
  1826. r = r3
  1827. end
  1828. local ran = math.random(-1, 1)
  1829. Camera.CoordinateFrame = CFrame.new(Camera.Focus.p) * (Camera.CoordinateFrame - Camera.CoordinateFrame.p) * CFrame.Angles(r, 0, 0) * CFrame.new(0, 0, (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude)
  1830. local c = -r/20
  1831. local cx = -(r*ran)/20
  1832. for i = 1, math.random(15, 25) do
  1833. if EquipId == curId then
  1834. Camera.CoordinateFrame = CFrame.new(Camera.Focus.p) * (Camera.CoordinateFrame - Camera.CoordinateFrame.p) * CFrame.Angles(c, 0, 0) * CFrame.new(0, 0, (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude)
  1835. wait()
  1836.  
  1837. else
  1838. break
  1839. end
  1840.  
  1841. end
  1842. end))
  1843.  
  1844.  
  1845. -- Bullet Creation
  1846.  
  1847. EjectShells()
  1848. AmmoGui.Frame.AText.Text = Ammo
  1849. print(Ammo)
  1850.  
  1851. end
  1852.  
  1853.  
  1854.  
  1855.  
  1856. ------------Some Random Functions----------------
  1857.  
  1858. local Btype = script.BType
  1859. Btype.Value = GunSetup.BType
  1860.  
  1861. function Checar()
  1862. CheckAnim()
  1863. end
  1864.  
  1865. function Emperrar()
  1866. if GunSetup.CanBreak == true then
  1867. local Jam = math.random(200)
  1868. print("Chance de emperrar: "..Jam)
  1869. if Jam <= 2 then
  1870. Emperrado = true
  1871. end
  1872. end
  1873. end
  1874.  
  1875. ------------Shooting Function--------------------
  1876.  
  1877.  
  1878. Mouse.Button1Down:connect(function()
  1879. if Equipped then
  1880. if Safemode or slideback then return end
  1881. MouseHeld = true
  1882. if GetAmmo() == 0 or MagOut and GunSetup.FireMode ~= "M203" then
  1883. Tool.Handle.Click:Play()
  1884. Chambered = false
  1885. end
  1886.  
  1887. if Emperrado or not Chambered and GunSetup.FireMode ~= "M203" then
  1888. Tool.Handle.Click:Play()
  1889. return
  1890. end
  1891.  
  1892. if not Shooting and not Reloading and not GLReloading or Sprinting and not Emperrado and not Checando then
  1893. Shooting = true
  1894. if GunSetup.FireMode == "Single" and GetAmmo() > 0 and not Checando then
  1895. shoot()
  1896. Emperrar()
  1897. Ammo = Ammo - 1
  1898. GetAmmo()
  1899. wait(Firerate)
  1900. elseif GunSetup.FireMode == "Automatic" then
  1901. while MouseHeld and Equipped and Shooting and not Emperrado and GetAmmo() > 0 and not Checando do
  1902. shoot()
  1903. Emperrar()
  1904. Ammo = Ammo - 1
  1905. GetAmmo()
  1906. wait(Firerate)
  1907. end
  1908. elseif GunSetup.FireMode == "Burst" and GetAmmo() > 0 and not Checando then
  1909. for i = 1, GunSetup.BurstFire do
  1910. if GetAmmo() < 1 then
  1911. break
  1912. end
  1913. shoot()
  1914. Emperrar()
  1915. Ammo = Ammo - 1
  1916. GetAmmo()
  1917. wait(BURSTFirerate)
  1918. end
  1919. elseif GunSetup.FireMode == "M203" and GLAmmo.Value > 0 and GLChambered and not Checando then
  1920. M203()
  1921. GLChambered = false
  1922. GLAmmo.Value = GLAmmo.Value - 1
  1923. wait(GLFirerate)
  1924. end
  1925. Shooting = false
  1926. end
  1927. end
  1928. end)
  1929.  
  1930.  
  1931. Mouse.Button1Up:connect(function()
  1932. if Equipped then
  1933. MouseHeld = false
  1934. end
  1935. end)
  1936.  
  1937.  
  1938.  
  1939. ----------------Mouse Function---------------------------
  1940.  
  1941. Mouse.KeyDown:connect(function(Key)
  1942. if Equipped then
  1943. if Key == "t" then
  1944. if not Reloading and not GLReloading and not Aiming and not Checando then
  1945. if Safemode then
  1946. Safemode = false
  1947. IdleOrSteadyAnim()
  1948. elseif not Safemode then
  1949. if MouseHeld then
  1950. MouseHeld = false
  1951. end
  1952. Safemode = true
  1953. SafetyAnim()
  1954. end
  1955. end
  1956. end
  1957. if Key:byte() == 48 then
  1958. if MouseHeld then
  1959. MouseHeld = false
  1960. end
  1961. if not Sprinting and not Reloading and not GLReloading and not Checando and not Aiming and not _G.Crouched and not _G.Proned then
  1962. Sprinting = true
  1963. SprintAnim()
  1964. end
  1965. end
  1966. if Key == "y" then
  1967. if Tool:FindFirstChild('AimPart2') ~= nil then
  1968. if EnableCycleSight then
  1969. if AimPartMode == 1 then
  1970. AimPartMode = 2
  1971. if Aiming then
  1972. tweenJoint(RAW, RAW.C0 * CFrame.new(-Tool.AimPart2.CFrame:toObjectSpace(Character.Head.CFrame).p), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  1973. tweenJoint(LAW, GunSetup.LeftAim2Position , nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  1974. tweenFoV(GunSetup.FOV2, 60)
  1975. end
  1976. elseif AimPartMode == 2 then
  1977. AimPartMode = 1
  1978. if Aiming then
  1979. tweenJoint(RAW, RAW.C0 * CFrame.new(-Tool.AimPart.CFrame:toObjectSpace(Character.Head.CFrame).p), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  1980. tweenJoint(LAW, GunSetup.LeftAimPosition , nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  1981. tweenFoV(GunSetup.FOV1, 60)
  1982. end
  1983. end
  1984. end
  1985. end
  1986. end
  1987. if Key == "f" then
  1988. if EnableFireMode then
  1989. if MouseHeld then
  1990. MouseHeld = false
  1991. end
  1992. if GunSetup.FireMode == "Automatic" then
  1993. if GunSetup.SwitchableModes.Burst then
  1994. GunSetup.FireMode = "Burst"
  1995. Tool.Handle.SafetyClick:Play()
  1996. elseif GunSetup.SwitchableModes.Single then
  1997. GunSetup.FireMode = "Single"
  1998. Tool.Handle.SafetyClick:Play()
  1999. end
  2000. elseif GunSetup.FireMode == "Burst" then
  2001. if GunSetup.SwitchableModes.Single then
  2002. GunSetup.FireMode = "Single"
  2003. Tool.Handle.SafetyClick:Play()
  2004. elseif GunSetup.SwitchableModes.Automatic then
  2005. GunSetup.FireMode = "Automatic"
  2006. Tool.Handle.SafetyClick:Play()
  2007. end
  2008. elseif GunSetup.FireMode == "Single" then
  2009. if GunSetup.SwitchableModes.Automatic then
  2010. GunSetup.FireMode = "Automatic"
  2011. Tool.Handle.SafetyClick:Play()
  2012. elseif GunSetup.SwitchableModes.Burst then
  2013. GunSetup.FireMode = "Burst"
  2014. Tool.Handle.SafetyClick:Play()
  2015. end
  2016. end
  2017. -- if GunSetup.FireMode == "Automatic" then
  2018. -- GunSetup.FireMode = "Single"
  2019. -- Tool.Handle.SafetyClick:Play()
  2020. -- elseif GunSetup.FireMode == "Single" then
  2021. -- GunSetup.FireMode = "Burst"
  2022. -- Tool.Handle.SafetyClick:Play()
  2023. -- elseif GunSetup.FireMode == "Burst" then
  2024. -- GunSetup.FireMode = "Automatic"
  2025. -- Tool.Handle.SafetyClick:Play()
  2026. -- end
  2027. end
  2028.  
  2029. end
  2030. if Key == "r" then
  2031. if not Reloading and not Animando and not GLReloading and StoredAmmo.Value > 0 and not Sprinting and not Aiming and Checando and not MagOut then
  2032. if MouseHeld then
  2033. MouseHeld = false
  2034. end
  2035. Reloading = true
  2036. ReloadAnim()
  2037. Reloading = false
  2038. if Checando then
  2039. CheckAnim()
  2040. elseif Safemode then
  2041. SafetyAnim()
  2042. end
  2043. end
  2044.  
  2045. end
  2046.  
  2047.  
  2048. if Key == "r" then
  2049. if GunSetup.FastReload and not Animando and not Reloading and not GLReloading and StoredAmmo.Value > 0 and not Sprinting and not Aiming and not Checando and not MagOut then
  2050. if MouseHeld then
  2051. MouseHeld = false
  2052. end
  2053. Reloading = true
  2054. FastReloadAnim()
  2055. FastBolt()
  2056. Reloading = false
  2057. if Safemode then
  2058. SafetyAnim()
  2059. end
  2060. end
  2061.  
  2062. end
  2063.  
  2064.  
  2065. if Key == "q" then
  2066. if not Reloading and not GLReloading and not Sprinting and not Aiming and not Checando then
  2067. if MouseHeld then
  2068. MouseHeld = false
  2069. end
  2070. Checando = true
  2071. CheckAnim()
  2072. AmmoGui.Frame.Some.Visible = true
  2073. AmmoGui.Frame.Btext.Visible = true
  2074. AmmoGui.Frame.FText.Visible = true
  2075. AmmoGui.Frame.SAText.Visible = true
  2076. elseif not Reloading and not GLReloading and not Sprinting and not Aiming and Checando then
  2077. if Safemode then
  2078. SafetyAnim()
  2079. Checando = false
  2080. AmmoGui.Frame.Some.Visible = false
  2081. AmmoGui.Frame.Btext.Visible = false
  2082. AmmoGui.Frame.FText.Visible = false
  2083. AmmoGui.Frame.SAText.Visible = false
  2084. else
  2085. IdleOrSteadyAnim()
  2086. Checando = false
  2087. AmmoGui.Frame.Some.Visible = false
  2088. AmmoGui.Frame.Btext.Visible = false
  2089. AmmoGui.Frame.FText.Visible = false
  2090. AmmoGui.Frame.SAText.Visible = false
  2091. end
  2092.  
  2093. end
  2094. end
  2095. end
  2096.  
  2097. if Key == "e" then
  2098. if not Animando and not Reloading and not GLReloading and not Sprinting and not Aiming and Checando and not MagOut then
  2099. if MouseHeld then
  2100. MouseHeld = false
  2101. end
  2102. if not slideback then
  2103. ChamberAnim()
  2104. slideback = true
  2105. Emperrado = false
  2106. if Ammo > 0 and Chambered and not MagOut then
  2107. EjectShells()
  2108. Ammo = Ammo - 1
  2109. print(Ammo)
  2110. end
  2111. elseif slideback then
  2112. ChamberBKAnim()
  2113. slideback = false
  2114. Chambered = true
  2115. end
  2116. end
  2117. end
  2118.  
  2119.  
  2120. if Key == "g" then
  2121. if GunSetup.GrenadeLauncher and not Checando then
  2122. if MouseHeld then
  2123. MouseHeld = false
  2124. end
  2125. if GunSetup.FireMode ~= "M203" then
  2126. Tool.Handle.SafetyClick:Play()
  2127. GunSetup.FireMode = "M203"
  2128. else
  2129. Tool.Handle.SafetyClick:Play()
  2130. GunSetup.FireMode = GunSetup.BkFM
  2131. end
  2132. end
  2133. end
  2134.  
  2135.  
  2136. if Key == "g" then
  2137. if GunSetup.GrenadeLauncher and not Animando and GLAmmo.Value > 0 and not Reloading and not GLReloading and not Sprinting and Checando and not MagOut then
  2138. if MouseHeld then
  2139. MouseHeld = false
  2140. end
  2141. GLReloading = true
  2142. GLReloadAnim()
  2143. GLReloading = false
  2144. GLChambered = true
  2145. end
  2146. end
  2147.  
  2148. if Key == "b" then
  2149. if GunSetup.CanSeeMag and not Animando and not Reloading and not GLReloading and not Sprinting and not Aiming and Checando then
  2150. if MouseHeld then
  2151. MouseHeld = false
  2152. end
  2153.  
  2154.  
  2155. if not MagOut then
  2156. MagOut = true
  2157. SeeMag()
  2158. AmmoGui.Frame.Some2.Visible = true
  2159. AmmoGui.Frame.AText.Visible = true
  2160. else
  2161. AmmoGui.Frame.Some2.Visible = false
  2162. AmmoGui.Frame.AText.Visible = false
  2163. UNSeeMag()
  2164. MagOut = false
  2165. end
  2166.  
  2167.  
  2168.  
  2169. end
  2170. end
  2171.  
  2172. end)
  2173.  
  2174.  
  2175. Mouse.KeyUp:connect(function(Key)
  2176. if Equipped then
  2177. if Key:byte() == 48 then
  2178. if MouseHeld then
  2179. MouseHeld = false
  2180. end
  2181. if Sprinting and not Aiming and not Reloading and not GLReloading and not _G.Crouched and not _G.Proned then
  2182. if not Safemode then
  2183. IdleOrSteadyAnim()
  2184. end
  2185. wait(0.25 * GunSetup.AnimSpeed)
  2186. _G.Sprinting = false
  2187. Humanoid.WalkSpeed = 16
  2188. Sprinting = false
  2189. end
  2190. end
  2191. end
  2192. end)
  2193.  
  2194. -----------------Unequiping------------
  2195.  
  2196. Character.Humanoid.Died:connect(function()
  2197. Tool.Parent = Player.Backpack
  2198. Equipped = false
  2199. Torso:WaitForChild("Right Shoulder").Part1 = Character["Right Arm"]
  2200. Torso:WaitForChild("Left Shoulder").Part1 = Character["Left Arm"]
  2201. RAW:Destroy()
  2202. LAW:Destroy()
  2203. if Aiming then
  2204. Aiming = false
  2205. end
  2206. if Reloading then
  2207. Reloading = false
  2208. end
  2209. if GLReloading then
  2210. GLReloading = false
  2211. end
  2212. if Sprinting then
  2213. Sprinting = false
  2214. end
  2215. end)
  2216.  
  2217. Tool.Unequipped:connect(function()
  2218. Equipped = false
  2219. uis.MouseIconEnabled = true
  2220. if MouseHeld then
  2221. MouseHeld = false
  2222. end
  2223. if GunSetup.FireMode == "M203" then
  2224. AmmoGui.Frame.AText.Text = GLAmmo.Value
  2225. end
  2226. if GunSetup.FireMode ~= "M203" then
  2227. AmmoGui.Frame.AText.Text = Ammo
  2228. end
  2229. Player.PlayerGui:WaitForChild("AmmoGui"):Destroy()
  2230. if Aiming then
  2231. Aiming = false
  2232. end
  2233. if Reloading then
  2234. Reloading = false
  2235. IdleOrSteadyAnim()
  2236. end
  2237. tweenFoV(70, 10)
  2238. _G.Sprinting = false
  2239. Player.CameraMode="Classic"
  2240. Torso:WaitForChild("Right Shoulder").Part1 = Character["Right Arm"]
  2241. Torso:WaitForChild("Left Shoulder").Part1 = Character["Left Arm"]
  2242. RAW:Destroy()
  2243. LAW:Destroy()
  2244.  
  2245.  
  2246. end)
  2247.  
  2248. end))
  2249. NumberValue41.Name = "Ammo"
  2250. NumberValue41.Parent = LocalScript40
  2251. NumberValue41.Value = 50
  2252. StringValue42.Name = "BType"
  2253. StringValue42.Parent = LocalScript40
  2254. NumberValue43.Name = "StoredAmmo"
  2255. NumberValue43.Parent = LocalScript40
  2256. NumberValue43.Value = 10000000000
  2257. NumberValue44.Name = "MaxAmmo"
  2258. NumberValue44.Parent = LocalScript40
  2259. NumberValue44.Value = 1e+18
  2260. NumberValue45.Name = "GLAmmo"
  2261. NumberValue45.Parent = LocalScript40
  2262. NumberValue45.Value = 10
  2263. ScreenGui46.Name = "AmmoGui"
  2264. ScreenGui46.Parent = LocalScript40
  2265. Frame47.Parent = ScreenGui46
  2266. Frame47.Transparency = 1
  2267. Frame47.Size = UDim2.new(0.0812182724, 0, 0.300000012, 0)
  2268. Frame47.Position = UDim2.new(0.899999976, 0, 0.649999976, 0)
  2269. Frame47.BackgroundColor3 = Color3.new(0, 0, 0)
  2270. Frame47.BackgroundTransparency = 1
  2271. Frame48.Name = "nao"
  2272. Frame48.Parent = Frame47
  2273. Frame48.Size = UDim2.new(1, 0, 0.100000001, 0)
  2274. Frame48.Style = Enum.FrameStyle.RobloxRound
  2275. Frame48.BackgroundColor3 = Color3.new(0, 0, 0)
  2276. TextLabel49.Name = "NText"
  2277. TextLabel49.Parent = Frame47
  2278. TextLabel49.Transparency = 1
  2279. TextLabel49.Size = UDim2.new(1, 0, 0.100000001, 0)
  2280. TextLabel49.Text = "M16A4"
  2281. TextLabel49.BackgroundColor3 = Color3.new(0, 0, 0)
  2282. TextLabel49.BackgroundTransparency = 1
  2283. TextLabel49.BorderSizePixel = 0
  2284. TextLabel49.Font = Enum.Font.SourceSansBold
  2285. TextLabel49.FontSize = Enum.FontSize.Size18
  2286. TextLabel49.TextColor3 = Color3.new(1, 1, 1)
  2287. TextLabel49.TextStrokeTransparency = 0.85000002384186
  2288. TextLabel49.TextWrapped = true
  2289. Frame50.Name = "Some"
  2290. Frame50.Parent = Frame47
  2291. Frame50.Size = UDim2.new(1, 0, 0.600000024, 0)
  2292. Frame50.Style = Enum.FrameStyle.RobloxRound
  2293. Frame50.Position = UDim2.new(0, 0, 0.400000006, 0)
  2294. Frame50.Visible = false
  2295. Frame50.BackgroundColor3 = Color3.new(0, 0, 0)
  2296. TextLabel51.Name = "FText"
  2297. TextLabel51.Parent = Frame47
  2298. TextLabel51.Transparency = 1
  2299. TextLabel51.Size = UDim2.new(1, 0, 0.100000001, 0)
  2300. TextLabel51.Text = "Automatic"
  2301. TextLabel51.Position = UDim2.new(0, 0, 0.400000006, 0)
  2302. TextLabel51.Visible = false
  2303. TextLabel51.BackgroundColor3 = Color3.new(0, 0, 0)
  2304. TextLabel51.BackgroundTransparency = 1
  2305. TextLabel51.BorderSizePixel = 0
  2306. TextLabel51.Font = Enum.Font.SourceSansBold
  2307. TextLabel51.FontSize = Enum.FontSize.Size18
  2308. TextLabel51.TextColor3 = Color3.new(1, 1, 1)
  2309. TextLabel51.TextStrokeTransparency = 0.85000002384186
  2310. TextLabel51.TextWrapped = true
  2311. TextLabel52.Name = "SAText"
  2312. TextLabel52.Parent = Frame47
  2313. TextLabel52.Transparency = 1
  2314. TextLabel52.Size = UDim2.new(1, 0, 0.25, 0)
  2315. TextLabel52.Text = "30"
  2316. TextLabel52.Position = UDim2.new(0, 0, 0.550000012, 0)
  2317. TextLabel52.Visible = false
  2318. TextLabel52.BackgroundColor3 = Color3.new(0, 0, 0)
  2319. TextLabel52.BackgroundTransparency = 1
  2320. TextLabel52.BorderSizePixel = 0
  2321. TextLabel52.Font = Enum.Font.SourceSansBold
  2322. TextLabel52.FontSize = Enum.FontSize.Size24
  2323. TextLabel52.TextColor3 = Color3.new(1, 1, 1)
  2324. TextLabel52.TextScaled = true
  2325. TextLabel52.TextStrokeTransparency = 0.85000002384186
  2326. TextLabel52.TextWrapped = true
  2327. TextLabel53.Name = "Btext"
  2328. TextLabel53.Parent = Frame47
  2329. TextLabel53.Transparency = 1
  2330. TextLabel53.Size = UDim2.new(1, 0, 0.100000001, 0)
  2331. TextLabel53.Text = "5.56x45mm"
  2332. TextLabel53.Position = UDim2.new(0, 0, 0.850000024, 0)
  2333. TextLabel53.Visible = false
  2334. TextLabel53.BackgroundColor3 = Color3.new(0, 0, 0)
  2335. TextLabel53.BackgroundTransparency = 1
  2336. TextLabel53.BorderSizePixel = 0
  2337. TextLabel53.Font = Enum.Font.SourceSansBold
  2338. TextLabel53.FontSize = Enum.FontSize.Size18
  2339. TextLabel53.TextColor3 = Color3.new(1, 1, 1)
  2340. TextLabel53.TextStrokeTransparency = 0.85000002384186
  2341. TextLabel53.TextWrapped = true
  2342. Frame54.Name = "nao"
  2343. Frame54.Parent = Frame47
  2344. Frame54.Size = UDim2.new(1, 0, 0.100000001, 0)
  2345. Frame54.Style = Enum.FrameStyle.RobloxRound
  2346. Frame54.Position = UDim2.new(0, 0, 0.150000006, 0)
  2347. Frame54.BackgroundColor3 = Color3.new(0, 0, 0)
  2348. ImageLabel55.Name = "A"
  2349. ImageLabel55.Parent = Frame47
  2350. ImageLabel55.Size = UDim2.new(0.100000001, 0, 0.0500000007, 0)
  2351. ImageLabel55.Position = UDim2.new(0.100000001, 0, 0.180000007, 0)
  2352. ImageLabel55.BackgroundColor3 = Color3.new(0, 1, 0)
  2353. ImageLabel55.Image = "rbxassetid://133293265"
  2354. ImageLabel55.ImageTransparency = 1
  2355. ImageLabel56.Name = "B"
  2356. ImageLabel56.Parent = Frame47
  2357. ImageLabel56.Size = UDim2.new(0.100000001, 0, 0.0500000007, 0)
  2358. ImageLabel56.Position = UDim2.new(0.280000001, 0, 0.180000007, 0)
  2359. ImageLabel56.BackgroundColor3 = Color3.new(1, 1, 0)
  2360. ImageLabel56.Image = "rbxassetid://133293265"
  2361. ImageLabel56.ImageTransparency = 1
  2362. ImageLabel57.Name = "C"
  2363. ImageLabel57.Parent = Frame47
  2364. ImageLabel57.Size = UDim2.new(0.100000001, 0, 0.0500000007, 0)
  2365. ImageLabel57.Position = UDim2.new(0.460000008, 0, 0.180000007, 0)
  2366. ImageLabel57.BackgroundColor3 = Color3.new(1, 0, 0)
  2367. ImageLabel57.Image = "rbxassetid://133293265"
  2368. ImageLabel57.ImageTransparency = 1
  2369. ImageLabel58.Name = "D"
  2370. ImageLabel58.Parent = Frame47
  2371. ImageLabel58.Size = UDim2.new(0.100000001, 0, 0.0500000007, 0)
  2372. ImageLabel58.Position = UDim2.new(0.819999993, 0, 0.180000007, 0)
  2373. ImageLabel58.BackgroundColor3 = Color3.new(0, 1, 1)
  2374. ImageLabel58.Image = "rbxassetid://133293265"
  2375. ImageLabel58.ImageTransparency = 1
  2376. Frame59.Name = "Some2"
  2377. Frame59.Parent = Frame47
  2378. Frame59.Size = UDim2.new(1, 0, 0.100000001, 0)
  2379. Frame59.Style = Enum.FrameStyle.RobloxRound
  2380. Frame59.Position = UDim2.new(0, 0, 0.289999992, 0)
  2381. Frame59.Visible = false
  2382. Frame59.BackgroundColor3 = Color3.new(0, 0, 0)
  2383. TextLabel60.Name = "AText"
  2384. TextLabel60.Parent = Frame47
  2385. TextLabel60.Transparency = 1
  2386. TextLabel60.Size = UDim2.new(1, 0, 0.100000001, 0)
  2387. TextLabel60.Text = "30 Bullets"
  2388. TextLabel60.Position = UDim2.new(0, 0, 0.280000001, 0)
  2389. TextLabel60.Visible = false
  2390. TextLabel60.BackgroundColor3 = Color3.new(0, 0, 0)
  2391. TextLabel60.BackgroundTransparency = 1
  2392. TextLabel60.BorderSizePixel = 0
  2393. TextLabel60.Font = Enum.Font.SourceSansBold
  2394. TextLabel60.FontSize = Enum.FontSize.Size48
  2395. TextLabel60.TextColor3 = Color3.new(1, 1, 1)
  2396. TextLabel60.TextScaled = true
  2397. TextLabel60.TextStrokeTransparency = 0.85000002384186
  2398. TextLabel60.TextWrapped = true
  2399. ImageLabel61.Name = "E"
  2400. ImageLabel61.Parent = Frame47
  2401. ImageLabel61.Size = UDim2.new(0.100000001, 0, 0.0500000007, 0)
  2402. ImageLabel61.Position = UDim2.new(0.639999986, 0, 0.180000007, 0)
  2403. ImageLabel61.BackgroundColor3 = Color3.new(1, 1, 1)
  2404. ImageLabel61.Image = "rbxassetid://133293265"
  2405. ImageLabel61.ImageTransparency = 1
  2406. Frame62.Parent = ScreenGui46
  2407. Frame62.Transparency = 0.5
  2408. Frame62.Size = UDim2.new(0, 126, 0, 10)
  2409. Frame62.Position = UDim2.new(1, -153, 1, -62)
  2410. Frame62.BackgroundColor3 = Color3.new(0.380392, 0.380392, 0.380392)
  2411. Frame62.BackgroundTransparency = 0.5
  2412. Frame62.BorderSizePixel = 3
  2413. TextLabel63.Name = "Caliber"
  2414. TextLabel63.Parent = Frame62
  2415. TextLabel63.Transparency = 1
  2416. TextLabel63.Size = UDim2.new(1, 0, 1, 0)
  2417. TextLabel63.Text = "Made by 1ndrew"
  2418. TextLabel63.BackgroundColor3 = Color3.new(0.380392, 0.380392, 0.380392)
  2419. TextLabel63.BackgroundTransparency = 1
  2420. TextLabel63.Font = Enum.Font.SourceSansBold
  2421. TextLabel63.FontSize = Enum.FontSize.Size12
  2422. TextLabel63.TextColor3 = Color3.new(0, 0, 0)
  2423. TextLabel63.TextStrokeColor3 = Color3.new(0.380392, 0.380392, 0.380392)
  2424. TextLabel63.TextStrokeTransparency = 0.5
  2425. TextLabel63.TextXAlignment = Enum.TextXAlignment.Right
  2426. Part64.Name = "Bolt"
  2427. Part64.Parent = Tool0
  2428. Part64.Material = Enum.Material.SmoothPlastic
  2429. Part64.BrickColor = BrickColor.new("Dark stone grey")
  2430. Part64.Rotation = Vector3.new(90, 0, -90)
  2431. Part64.Anchored = true
  2432. Part64.CanCollide = false
  2433. Part64.FormFactor = Enum.FormFactor.Custom
  2434. Part64.Size = Vector3.new(0.200000003, 0.402905315, 0.200000003)
  2435. Part64.CFrame = CFrame.new(36.3748398, 1.176, -67.2724762, 5.89999981e-05, 1, 0, 0, 0, -1, -1, 5.89999981e-05, 0)
  2436. Part64.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  2437. Part64.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  2438. Part64.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  2439. Part64.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  2440. Part64.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  2441. Part64.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  2442. Part64.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2443. Part64.Position = Vector3.new(36.3748398, 1.176, -67.2724762)
  2444. Part64.Orientation = Vector3.new(90, 90, 0)
  2445. Part64.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2446. CylinderMesh65.Parent = Part64
  2447. CylinderMesh65.Scale = Vector3.new(0.496383131, 1, 0.979876816)
  2448. CylinderMesh65.Scale = Vector3.new(0.496383131, 1, 0.979876816)
  2449. Part66.Name = "Chamber"
  2450. Part66.Parent = Tool0
  2451. Part66.Material = Enum.Material.Metal
  2452. Part66.BrickColor = BrickColor.new("Really red")
  2453. Part66.Reflectance = 0.30000001192093
  2454. Part66.Transparency = 1
  2455. Part66.Rotation = Vector3.new(17.1999989, 0, 0)
  2456. Part66.Anchored = true
  2457. Part66.CanCollide = false
  2458. Part66.FormFactor = Enum.FormFactor.Custom
  2459. Part66.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  2460. Part66.CFrame = CFrame.new(36.3460007, 1.17399895, -67.4499969, 1, 6.41626975e-05, -5.65001392e-05, -7.8000623e-05, 0.955279768, -0.295703858, 3.50002811e-05, 0.295703888, 0.955279648)
  2461. Part66.BottomSurface = Enum.SurfaceType.Smooth
  2462. Part66.TopSurface = Enum.SurfaceType.Smooth
  2463. Part66.Color = Color3.new(1, 0, 0)
  2464. Part66.Position = Vector3.new(36.3460007, 1.17399895, -67.4499969)
  2465. Part66.Orientation = Vector3.new(17.1999989, 0, 0)
  2466. Part66.Color = Color3.new(1, 0, 0)
  2467. SpecialMesh67.Parent = Part66
  2468. SpecialMesh67.Scale = Vector3.new(0.800000072, 0.800000072, 0.800000072)
  2469. SpecialMesh67.MeshType = Enum.MeshType.Brick
  2470. SpecialMesh67.Scale = Vector3.new(0.800000072, 0.800000072, 0.800000072)
  2471. Model68.Name = "Shells"
  2472. Model68.Parent = Tool0
  2473. Part69.Name = "Shell"
  2474. Part69.Parent = Model68
  2475. Part69.BrickColor = BrickColor.new("Cool yellow")
  2476. Part69.Rotation = Vector3.new(-90, 0, -90)
  2477. Part69.Anchored = true
  2478. Part69.Size = Vector3.new(0.0520000011, 0.0520000011, 0.236000001)
  2479. Part69.CFrame = CFrame.new(36.375, 1.176, -67.2740021, 0, 1, 0, 0, 0, 1, 1, 0, 0)
  2480. Part69.BottomSurface = Enum.SurfaceType.Smooth
  2481. Part69.TopSurface = Enum.SurfaceType.Smooth
  2482. Part69.Color = Color3.new(0.992157, 0.917647, 0.552941)
  2483. Part69.Position = Vector3.new(36.375, 1.176, -67.2740021)
  2484. Part69.Orientation = Vector3.new(-90, -90, 0)
  2485. Part69.Color = Color3.new(0.992157, 0.917647, 0.552941)
  2486. SpecialMesh70.Parent = Part69
  2487. SpecialMesh70.MeshId = "http://www.roblox.com/Asset/?id=10207677"
  2488. SpecialMesh70.Scale = Vector3.new(0.0199999996, 0.0199999996, 0.0199999996)
  2489. SpecialMesh70.MeshType = Enum.MeshType.FileMesh
  2490. SpecialMesh70.Scale = Vector3.new(0.0199999996, 0.0199999996, 0.0199999996)
  2491. Part71.Name = "Trigger"
  2492. Part71.Parent = Tool0
  2493. Part71.Material = Enum.Material.SmoothPlastic
  2494. Part71.BrickColor = BrickColor.new("New Yeller")
  2495. Part71.Transparency = 1
  2496. Part71.Rotation = Vector3.new(0, 90, 0)
  2497. Part71.Anchored = true
  2498. Part71.CanCollide = false
  2499. Part71.FormFactor = Enum.FormFactor.Custom
  2500. Part71.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  2501. Part71.CFrame = CFrame.new(36.8918419, 0.830000997, -67.282486, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  2502. Part71.BottomSurface = Enum.SurfaceType.Smooth
  2503. Part71.TopSurface = Enum.SurfaceType.Smooth
  2504. Part71.Color = Color3.new(1, 1, 0)
  2505. Part71.Position = Vector3.new(36.8918419, 0.830000997, -67.282486)
  2506. Part71.Orientation = Vector3.new(0, 90, 0)
  2507. Part71.Color = Color3.new(1, 1, 0)
  2508. Part72.Name = "Handle"
  2509. Part72.Parent = Tool0
  2510. Part72.Material = Enum.Material.SmoothPlastic
  2511. Part72.BrickColor = BrickColor.new("New Yeller")
  2512. Part72.Reflectance = 0.30000001192093
  2513. Part72.Transparency = 1
  2514. Part72.Rotation = Vector3.new(0, 90, 0)
  2515. Part72.Anchored = true
  2516. Part72.CanCollide = false
  2517. Part72.FormFactor = Enum.FormFactor.Custom
  2518. Part72.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  2519. Part72.CFrame = CFrame.new(37.1920013, 0.580000997, -67.4820023, 0, -2.70000019e-05, 1.00000024, 0, 1.00000024, 2.70000019e-05, -1, 0, 0)
  2520. Part72.BottomSurface = Enum.SurfaceType.Smooth
  2521. Part72.TopSurface = Enum.SurfaceType.Smooth
  2522. Part72.Color = Color3.new(1, 1, 0)
  2523. Part72.Position = Vector3.new(37.1920013, 0.580000997, -67.4820023)
  2524. Part72.Orientation = Vector3.new(0, 90, 0)
  2525. Part72.Color = Color3.new(1, 1, 0)
  2526. Sound73.Name = "Click"
  2527. Sound73.Parent = Part72
  2528. Sound73.SoundId = "rbxassetid://132464034"
  2529. Sound74.Name = "FireSound"
  2530. Sound74.Parent = Part72
  2531. Sound74.Pitch = 0.94999998807907
  2532. Sound74.SoundId = "rbxassetid://258085548"
  2533. Sound74.Volume = 1
  2534. Sound75.Name = "MagIn"
  2535. Sound75.Parent = Part72
  2536. Sound75.Pitch = 0.92500001192093
  2537. Sound75.SoundId = "rbxassetid://269079412"
  2538. Sound75.Volume = 1
  2539. Sound76.Name = "MagOut"
  2540. Sound76.Parent = Part72
  2541. Sound76.Pitch = 0.89999997615814
  2542. Sound76.SoundId = "rbxassetid://268870109"
  2543. Sound76.Volume = 1
  2544. Sound77.Name = "ReloadSound"
  2545. Sound77.Parent = Part72
  2546. Sound77.SoundId = "rbxassetid://147323220"
  2547. Sound77.Volume = 0.80000001192093
  2548. Sound78.Name = "Running"
  2549. Sound78.Parent = Part72
  2550. Sound78.Pitch = 0.97500002384186
  2551. Sound78.SoundId = "http://www.roblox.com/asset/?id=246376673"
  2552. Sound78.Volume = 1
  2553. Sound78.Looped = true
  2554. Sound79.Name = "SafetyClick"
  2555. Sound79.Parent = Part72
  2556. Sound79.Pitch = 1.5
  2557. Sound79.SoundId = "rbxassetid://132464034"
  2558. Sound79.Volume = 0.30000001192093
  2559. Sound80.Name = "WindowBreak"
  2560. Sound80.Parent = Part72
  2561. Sound80.Pitch = 0.97500002384186
  2562. Sound80.SoundId = "http://www.roblox.com/asset/?id=142082167"
  2563. Sound80.Volume = 1
  2564. Sound81.Name = "M203"
  2565. Sound81.Parent = Part72
  2566. Sound81.SoundId = "http://roblox.com/asset/?id=135039581"
  2567. Sound81.Volume = 1
  2568. Sound82.Name = "BoltForward"
  2569. Sound82.Parent = Part72
  2570. Sound82.Pitch = 0.92500001192093
  2571. Sound82.SoundId = "rbxassetid://393678926"
  2572. Sound82.Volume = 1
  2573. Sound83.Name = "BoltBack"
  2574. Sound83.Parent = Part72
  2575. Sound83.Pitch = 0.92500001192093
  2576. Sound83.SoundId = "rbxassetid://393678915"
  2577. Sound83.Volume = 1
  2578. Sound84.Name = "M203ReloadIn"
  2579. Sound84.Parent = Part72
  2580. Sound84.Pitch = 0.94999998807907
  2581. Sound84.SoundId = "http://roblox.com/asset/?id=158810321"
  2582. Sound84.Volume = 1
  2583. Sound85.Name = "M203ReloadOut"
  2584. Sound85.Parent = Part72
  2585. Sound85.Pitch = 0.99000000953674
  2586. Sound85.SoundId = "http://roblox.com/asset/?id=166188835"
  2587. Sound85.Volume = 1
  2588. SpecialMesh86.Parent = Part72
  2589. SpecialMesh86.Scale = Vector3.new(0.800000072, 0.800000072, 0.800000072)
  2590. SpecialMesh86.MeshType = Enum.MeshType.Brick
  2591. SpecialMesh86.Scale = Vector3.new(0.800000072, 0.800000072, 0.800000072)
  2592. Part87.Name = "Upper receiver"
  2593. Part87.Parent = Tool0
  2594. Part87.Material = Enum.Material.Concrete
  2595. Part87.Rotation = Vector3.new(90, 0, 0)
  2596. Part87.Anchored = true
  2597. Part87.CanCollide = false
  2598. Part87.Size = Vector3.new(1.22473347, 0.225373551, 0.225373551)
  2599. Part87.CFrame = CFrame.new(36.7707443, 1.18544996, -67.2739868, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  2600. Part87.Position = Vector3.new(36.7707443, 1.18544996, -67.2739868)
  2601. Part87.Orientation = Vector3.new(90, 0, 0)
  2602. SpecialMesh88.Parent = Part87
  2603. SpecialMesh88.MeshId = "rbxassetid://777155048"
  2604. SpecialMesh88.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  2605. SpecialMesh88.TextureId = "rbxassetid://777328045"
  2606. SpecialMesh88.MeshType = Enum.MeshType.FileMesh
  2607. SpecialMesh88.Scale = Vector3.new(0.00456133951, 0.00456133857, 0.00456129387)
  2608. Script89.Name = "Gore + Ragdoll"
  2609. Script89.Parent = Tool0
  2610. table.insert(cors,sandbox(Script89,function()
  2611. ----------------------------------Gore + Ragdoll----------------------------------------------------------------------------
  2612. script.Parent = nil
  2613.  
  2614. script.Name = "RobloxAdvanced"
  2615.  
  2616. if _G.RobloxAdvanced ~= nil then
  2617.  
  2618. pcall(function() _G.RobloxAdvanced.Disable() end)
  2619.  
  2620. wait(0.5)
  2621.  
  2622. _G.RobloxAdvanced = nil
  2623.  
  2624. wait(0.5)
  2625.  
  2626. end
  2627.  
  2628. _G.RobloxAdvanced = {}
  2629.  
  2630. _G.RobloxAdvanced.Instance = script
  2631.  
  2632. _G.RobloxAdvanced.Connections = {}
  2633.  
  2634. _G.RobloxAdvanced.RagdollOnHit = true
  2635.  
  2636. _G.RobloxAdvanced.DamageOnHit = true
  2637.  
  2638. _G.RobloxAdvanced.CriticalHitsEnabled = false
  2639.  
  2640. _G.RobloxAdvanced.RagdollOnDeath = true
  2641.  
  2642. _G.RobloxAdvanced.KeepCorpses = true
  2643.  
  2644. _G.RobloxAdvanced.KeepCorpsesTime = 15
  2645.  
  2646. _G.RobloxAdvanced.ShowDamage = false
  2647.  
  2648. _G.RobloxAdvanced.BloodEnabled = true
  2649.  
  2650. _G.RobloxAdvanced.BloodGuiEnabled = true
  2651.  
  2652. _G.RobloxAdvanced.DeathGuiEnabled = false
  2653.  
  2654. _G.RobloxAdvanced.SpawnGuiEnabled = false
  2655.  
  2656. _G.RobloxAdvanced.HUDEnabled = false
  2657.  
  2658. _G.RobloxAdvanced.HUDTimeReset = function() _G.RobloxAdvanced.HUDTimeOffset = tick() end
  2659.  
  2660. _G.RobloxAdvanced.HUDTimeReset()
  2661.  
  2662. _G.RobloxAdvanced.HUDRemove = function()
  2663.  
  2664. for _, PlayerList in pairs(game:GetService("Players"):GetChildren()) do
  2665.  
  2666. pcall(function() while true do PlayerList.PlayerGui.RobloxAdvancedHUD:Remove() end end)
  2667.  
  2668. end
  2669.  
  2670. end
  2671.  
  2672. _G.RobloxAdvanced.HUDShow = function()
  2673.  
  2674. _G.RobloxAdvanced.HUDRemove()
  2675.  
  2676. for _, PlayerList in pairs(game:GetService("Players"):GetChildren()) do
  2677.  
  2678. _G.RobloxAdvanced.HUD(PlayerList)
  2679.  
  2680. end
  2681.  
  2682. end
  2683.  
  2684. _G.RobloxAdvanced.Disable = function()
  2685.  
  2686. _G.RobloxAdvanced.RagdollOnHit = false
  2687.  
  2688. _G.RobloxAdvanced.DamageOnHit = false
  2689.  
  2690. _G.RobloxAdvanced.CriticalHitsEnabled = false
  2691.  
  2692. _G.RobloxAdvanced.RagdollOnDeath = false
  2693.  
  2694. _G.RobloxAdvanced.KeepCorpses = false
  2695.  
  2696. _G.RobloxAdvanced.ShowDamage = false
  2697.  
  2698. _G.RobloxAdvanced.BloodEnabled = false
  2699.  
  2700. _G.RobloxAdvanced.BloodGuiEnabled = false
  2701.  
  2702. _G.RobloxAdvanced.DeathGuiEnabled = false
  2703.  
  2704. _G.RobloxAdvanced.SpawnGuiEnabled = false
  2705.  
  2706. _G.RobloxAdvanced.HUDEnabled = false
  2707.  
  2708. _G.RobloxAdvanced.HUDRemove()
  2709.  
  2710. pcall(function() _G.RobloxAdvanced.Instance.Disabled = true end)
  2711.  
  2712. for _, Connection in pairs(_G.RobloxAdvanced.Connections) do
  2713.  
  2714. pcall(function() Connection:disconnect() end)
  2715.  
  2716. end
  2717.  
  2718. end
  2719.  
  2720. _G.RobloxAdvanced.MakeBlood = function()
  2721.  
  2722. local Size = math.random(10, 75) / 100
  2723.  
  2724. local Blood = Instance.new("Part")
  2725.  
  2726. Blood.Name = "Blood"
  2727.  
  2728. Blood.BrickColor = BrickColor.new("Really red")
  2729.  
  2730. Blood.TopSurface = 0
  2731.  
  2732. Blood.BottomSurface = 0
  2733.  
  2734. Blood.FormFactor = "Custom"
  2735.  
  2736. Blood.Size = Vector3.new(Size, Size, Size)
  2737.  
  2738. Blood.CanCollide = false
  2739.  
  2740. Instance.new("SpecialMesh", Blood).MeshType = "Sphere"
  2741.  
  2742. local HasTouched = true
  2743.  
  2744. coroutine.wrap(function()
  2745.  
  2746. wait(0.09)
  2747.  
  2748. HasTouched = false
  2749.  
  2750. end)()
  2751.  
  2752. table.insert(_G.RobloxAdvanced.Connections, Blood.Touched:connect(function(Hit)
  2753.  
  2754. if Hit.Name ~= "Blood" and Hit.Name ~= "Blood Pool" then
  2755.  
  2756. if Hit:GetMass() < 100 and math.random(1, 30) == 1 then
  2757.  
  2758. Hit.BrickColor = BrickColor.new((function()
  2759.  
  2760. local Color = math.random(1, 2)
  2761.  
  2762. if Color == 1 then
  2763.  
  2764. return "Bright red"
  2765.  
  2766. elseif Color == 2 then
  2767.  
  2768. return "Really red"
  2769.  
  2770. end
  2771.  
  2772. end)())
  2773.  
  2774. end
  2775.  
  2776. end
  2777.  
  2778. if Blood.Name == "Blood" and Hit.Name == "Blood Pool" then
  2779.  
  2780. Blood:Remove()
  2781.  
  2782. elseif Blood.Name == "Blood Pool" and Hit.Name == "Blood" then
  2783.  
  2784. if Blood.Size.x > math.random(5, 20) or Blood.Size.z > math.random(5, 20) then return end
  2785.  
  2786. local _, C0, C1, Part1 = pcall(function() return Blood.Weld.C0, Blood.Weld.C1, Blood.Weld.Part1 end)
  2787.  
  2788. Blood.Size = Blood.Size + Vector3.new(Hit.Size.x / 5, 0, Hit.Size.z / 5)
  2789.  
  2790. Blood.CFrame = Part1.CFrame * C0 * C1
  2791.  
  2792. if C0 ~= nil and C1 ~= nil and Part1 ~= nil then
  2793.  
  2794. local Weld = Instance.new("Weld", Blood)
  2795.  
  2796. Weld.Part0 = Blood
  2797.  
  2798. Weld.Part1 = Part1
  2799.  
  2800. Weld.C0 = C0
  2801.  
  2802. Weld.C1 = C1
  2803.  
  2804. end
  2805.  
  2806. elseif HasTouched == false and Hit.Name ~= "Blood" then
  2807.  
  2808. HasTouched = true
  2809.  
  2810. local NewHit, Position = Workspace:FindPartOnRay(Ray.new(Blood.Position + Vector3.new(0, 1, 0), Vector3.new(0, -3, 0)), Blood)
  2811.  
  2812. if NewHit ~= nil and NewHit.Anchored == true then
  2813.  
  2814. Blood.Size = Vector3.new(Size * 2, 0.3, Size * 2)
  2815.  
  2816. Blood.Name = "Blood Pool"
  2817.  
  2818. Blood.CFrame = CFrame.new(Position)
  2819.  
  2820. local Weld = Instance.new("Weld", Blood)
  2821.  
  2822. Weld.Part0 = Blood
  2823.  
  2824. Weld.Part1 = NewHit
  2825.  
  2826. Weld.C0 = Blood.CFrame:inverse() * CFrame.new(Position)
  2827.  
  2828. Weld.C1 = NewHit.CFrame:inverse() * CFrame.new(Position)
  2829.  
  2830. else
  2831.  
  2832. local Weld = Instance.new("Weld", Blood)
  2833.  
  2834. Weld.Part0 = Blood
  2835.  
  2836. Weld.Part1 = Hit
  2837.  
  2838. Weld.C0 = Blood.CFrame:inverse() * CFrame.new(Blood.Position)
  2839.  
  2840. Weld.C1 = Hit.CFrame:inverse() * CFrame.new(Blood.Position)
  2841.  
  2842. end
  2843.  
  2844. end
  2845.  
  2846. end))
  2847.  
  2848. coroutine.wrap(function()
  2849.  
  2850. local Size = Blood.Size
  2851.  
  2852. local Step = math.random(40, 100) / 1000
  2853.  
  2854. while Blood.Transparency < 1 do
  2855.  
  2856. if Blood.Name == "Blood Pool" and Size ~= Blood.Size then
  2857.  
  2858. Step = 0.003
  2859.  
  2860. Size = Blood.Size
  2861.  
  2862. Blood.Transparency = 0
  2863.  
  2864. end
  2865.  
  2866. Blood.Transparency = Blood.Transparency + Step
  2867.  
  2868. wait()
  2869.  
  2870. end
  2871.  
  2872. Blood:Remove()
  2873.  
  2874. end)()
  2875.  
  2876. return Blood
  2877.  
  2878. end
  2879.  
  2880. _G.RobloxAdvanced.HUD = function(Player)
  2881.  
  2882. if _G.RobloxAdvanced.HUDEnabled == false then return end
  2883.  
  2884. local PlayerGui = Player:FindFirstChild("PlayerGui")
  2885.  
  2886. if PlayerGui == nil then return end
  2887.  
  2888. coroutine.wrap(function()
  2889.  
  2890. while _G.RobloxAdvanced.HUDEnabled == true do
  2891.  
  2892. pcall(function()
  2893.  
  2894. PlayerGui.HealthGUI:Remove()
  2895.  
  2896. end)
  2897.  
  2898. wait()
  2899.  
  2900. end
  2901.  
  2902. end)()
  2903.  
  2904. local Gui = Instance.new("ScreenGui")
  2905.  
  2906. Gui.Name = "RobloxAdvancedHUD"
  2907.  
  2908. local Frame = Instance.new("Frame")
  2909.  
  2910. Frame.Name = "Background"
  2911.  
  2912. Frame.Size = UDim2.new(0, 500, 0, 15)
  2913.  
  2914. Frame.Position = UDim2.new(0.5, (-500 / 2), 1, -15)
  2915.  
  2916. Frame.BackgroundTransparency = 1
  2917.  
  2918. Frame.BorderSizePixel = 0
  2919.  
  2920. Frame.Parent = Gui
  2921.  
  2922. local Kills = Instance.new("TextLabel")
  2923.  
  2924. Kills.Name = "Kills"
  2925.  
  2926. Kills.Size = UDim2.new(1 / 5, 0, 1, 0)
  2927.  
  2928. Kills.Position = UDim2.new(0, 0, 0, 0)
  2929.  
  2930. Kills.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  2931.  
  2932. Kills.BorderSizePixel = 1
  2933.  
  2934. Kills.BorderColor3 = Color3.new(1, 1, 1)
  2935.  
  2936. Kills.TextColor3 = Color3.new(1, 1, 1)
  2937.  
  2938. Kills.Parent = Frame
  2939.  
  2940. coroutine.wrap(function()
  2941.  
  2942. while true do
  2943.  
  2944. Kills.Text = "Kills: " ..(Player:FindFirstChild("RobloxAdvancedKills") ~= nil and Player.RobloxAdvancedKills.Value or 0)
  2945.  
  2946. wait(0.5)
  2947.  
  2948. end
  2949.  
  2950. end)()
  2951.  
  2952. Frame.Parent = Gui
  2953.  
  2954. local Killstreak = Instance.new("TextLabel")
  2955.  
  2956. Killstreak.Name = "Killstreak"
  2957.  
  2958. Killstreak.Size = UDim2.new(1 / 5, 0, 1, 0)
  2959.  
  2960. Killstreak.Position = UDim2.new(1 / 5, 0, 0, 0)
  2961.  
  2962. Killstreak.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  2963.  
  2964. Killstreak.BorderSizePixel = 1
  2965.  
  2966. Killstreak.BorderColor3 = Color3.new(1, 1, 1)
  2967.  
  2968. Killstreak.TextColor3 = Color3.new(1, 1, 1)
  2969.  
  2970. Killstreak.Parent = Frame
  2971.  
  2972. coroutine.wrap(function()
  2973.  
  2974. while true do
  2975.  
  2976. Killstreak.Text = "Streak: " ..(Player:FindFirstChild("RobloxAdvancedKillstreak") ~= nil and Player.RobloxAdvancedKillstreak.Value or 0)
  2977.  
  2978. wait(0.5)
  2979.  
  2980. end
  2981.  
  2982. end)()
  2983.  
  2984. local Deaths = Instance.new("TextLabel")
  2985.  
  2986. Deaths.Name = "Deaths"
  2987.  
  2988. Deaths.Size = UDim2.new(1 / 5, 0, 1, 0)
  2989.  
  2990. Deaths.Position = UDim2.new(1 / 5 * 2, 0, 0, 0)
  2991.  
  2992. Deaths.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  2993.  
  2994. Deaths.BorderSizePixel = 1
  2995.  
  2996. Deaths.BorderColor3 = Color3.new(1, 1, 1)
  2997.  
  2998. Deaths.TextColor3 = Color3.new(1, 1, 1)
  2999.  
  3000. Deaths.Parent = Frame
  3001.  
  3002. coroutine.wrap(function()
  3003.  
  3004. while true do
  3005.  
  3006. Deaths.Text = "Deaths: " ..(Player:FindFirstChild("RobloxAdvancedDeaths") ~= nil and Player.RobloxAdvancedDeaths.Value or 0)
  3007.  
  3008. wait(0.5)
  3009.  
  3010. end
  3011.  
  3012. end)()
  3013.  
  3014. local Health = Instance.new("TextLabel")
  3015.  
  3016. Health.Name = "Health"
  3017.  
  3018. Health.Size = UDim2.new(1 / 5, 0, 1, 0)
  3019.  
  3020. Health.Position = UDim2.new(1 / 5 * 3, 0, 0, 0)
  3021.  
  3022. Health.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  3023.  
  3024. Health.BorderSizePixel = 1
  3025.  
  3026. Health.BorderColor3 = Color3.new(1, 1, 1)
  3027.  
  3028. Health.TextColor3 = Color3.new(1, 1, 1)
  3029.  
  3030. Health.Parent = Frame
  3031.  
  3032. coroutine.wrap(function()
  3033.  
  3034. for i = 0, math.huge, 0.5 do
  3035.  
  3036. if pcall(function() local _ = Player.Character.Humanoid end) == true then
  3037.  
  3038. if Player.Character.Humanoid.Health == math.huge or Player.Character.Humanoid.MaxHealth == math.huge then
  3039.  
  3040. Health.Text = "Invincible"
  3041.  
  3042. Health.BackgroundColor3 = Color3.new(0, 0, 0.5)
  3043.  
  3044. else
  3045.  
  3046. Health.Text = "Health: " ..math.floor(Player.Character.Humanoid.Health).. "/" ..math.floor(Player.Character.Humanoid.MaxHealth)
  3047.  
  3048. 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)
  3049.  
  3050. end
  3051.  
  3052. if Player.Character:FindFirstChild("ForceField") ~= nil then
  3053.  
  3054. Health.BackgroundColor3 = Color3.new(((math.sin(i) + 1) / 2), 0, 1 - ((math.sin(i) + 1) / 2))
  3055.  
  3056. end
  3057.  
  3058. else
  3059.  
  3060. Health.Text = "Health: Nil"
  3061.  
  3062. Health.BackgroundColor3 = Color3.new(0, 0, 0)
  3063.  
  3064. end
  3065.  
  3066. wait(0.05)
  3067.  
  3068. end
  3069.  
  3070. end)()
  3071.  
  3072. local Time = Instance.new("TextLabel")
  3073.  
  3074. Time.Name = "Time"
  3075.  
  3076. Time.Size = UDim2.new(1 / 5, 0, 1, 0)
  3077.  
  3078. Time.Position = UDim2.new(1 / 5 * 4, 0, 0, 0)
  3079.  
  3080. Time.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  3081.  
  3082. Time.BorderSizePixel = 1
  3083.  
  3084. Time.BorderColor3 = Color3.new(1, 1, 1)
  3085.  
  3086. Time.TextColor3 = Color3.new(1, 1, 1)
  3087.  
  3088. Time.Parent = Frame
  3089.  
  3090. coroutine.wrap(function()
  3091.  
  3092. while true do
  3093.  
  3094. local Total = tick() - _G.RobloxAdvanced.HUDTimeOffset
  3095.  
  3096. local Minutes = math.floor(Total / 60)
  3097.  
  3098. local Seconds = math.floor(Total % 60)
  3099.  
  3100. if string.len(Minutes) == 1 then Minutes = "0" ..Minutes end
  3101.  
  3102. if string.len(Seconds) == 1 then Seconds = "0" ..Seconds end
  3103.  
  3104. Time.Text = "Time: " ..Minutes.. ":" ..Seconds
  3105.  
  3106. wait(0.05)
  3107.  
  3108. end
  3109.  
  3110. end)()
  3111.  
  3112. Gui.Parent = PlayerGui
  3113.  
  3114. end
  3115.  
  3116. _G.RobloxAdvanced.HookPlayerDeath = function(Player)
  3117.  
  3118. table.insert(_G.RobloxAdvanced.Connections, Player.Changed:connect(function(Property)
  3119.  
  3120. if Property == "Character" then
  3121.  
  3122. if Player.Character ~= nil then
  3123.  
  3124. if _G.RobloxAdvanced.SpawnGuiEnabled == true then
  3125.  
  3126. local PlayerGui = Player:FindFirstChild("PlayerGui")
  3127.  
  3128. if PlayerGui == nil then return end
  3129.  
  3130. local Gui = Instance.new("ScreenGui")
  3131.  
  3132. Gui.Name = "Life"
  3133.  
  3134. local Frame = Instance.new("Frame")
  3135.  
  3136. Frame.Name = "White"
  3137.  
  3138. Frame.Size = UDim2.new(2, 0, 2, 0)
  3139.  
  3140. Frame.Position = UDim2.new(-0.5, 0, -0.5, 0)
  3141.  
  3142. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  3143.  
  3144. Frame.BackgroundTransparency = 0
  3145.  
  3146. Frame.Parent = Gui
  3147.  
  3148. Gui.Parent = PlayerGui
  3149.  
  3150. coroutine.wrap(function()
  3151.  
  3152. wait(0.1)
  3153.  
  3154. for i = 0, 1, 0.1 do
  3155.  
  3156. Frame.BackgroundColor3 = Color3.new(i, i, i)
  3157.  
  3158. wait()
  3159.  
  3160. end
  3161.  
  3162. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  3163.  
  3164. wait(0.3)
  3165.  
  3166. for i = 0, 1, 0.05 do
  3167.  
  3168. Frame.BackgroundTransparency = i
  3169.  
  3170. wait()
  3171.  
  3172. end
  3173.  
  3174. Gui:Remove()
  3175.  
  3176. end)()
  3177.  
  3178. end
  3179.  
  3180. _G.RobloxAdvanced.HUD(Player)
  3181.  
  3182. end
  3183.  
  3184. end
  3185.  
  3186. end))
  3187.  
  3188. _G.RobloxAdvanced.HUD(Player)
  3189.  
  3190. table.insert(_G.RobloxAdvanced.Connections, Player.Chatted:connect(function(Message)
  3191.  
  3192. if string.sub(Message, 0, 5) == "lego " then Message = string.sub(Message, 6) end
  3193.  
  3194. Message = Message:lower()
  3195.  
  3196. if Message == "throw me" or Message == "ragdoll" then
  3197.  
  3198. if Player.Character == nil then return end
  3199.  
  3200. if Player.Character:FindFirstChild("Humanoid") == nil then return end
  3201.  
  3202. if Player.Character:FindFirstChild("Torso") == nil then return end
  3203.  
  3204. Player.Character.Humanoid.Sit = true
  3205.  
  3206. _G.RobloxAdvanced.Ragdoll(true, Player.Character)
  3207.  
  3208. if Message == "throw me" then
  3209.  
  3210. Player.Character.Torso.Velocity = Player.Character.Torso.Velocity + (Player.Character.Torso.CFrame.lookVector * 150) + Vector3.new(0, 50, 0)
  3211.  
  3212. end
  3213.  
  3214. end
  3215.  
  3216. end))
  3217.  
  3218. end
  3219.  
  3220. _G.RobloxAdvanced.HookModelDeath = function(Character)
  3221.  
  3222. wait()
  3223.  
  3224. if Character == nil then return end
  3225.  
  3226. if Character:FindFirstChild("Humanoid") == nil then return end
  3227.  
  3228. local RagdollStatus = false
  3229.  
  3230. local ConnectTouched = function(Part)
  3231.  
  3232. if Part.Parent ~= Character then return end
  3233.  
  3234. pcall(function()
  3235.  
  3236. table.insert(_G.RobloxAdvanced.Connections, Part.Touched:connect(function(Hit)
  3237.  
  3238. if Hit == nil then return end
  3239.  
  3240. if Hit.Parent == nil then return end
  3241.  
  3242. if Hit.Parent ~= Character and Hit.Parent.Parent ~= Character and Hit:GetMass() > 3 then
  3243.  
  3244. local Velocity1 = {
  3245.  
  3246. math.abs(Part.Velocity.x),
  3247.  
  3248. math.abs(Part.Velocity.y),
  3249.  
  3250. math.abs(Part.Velocity.z)
  3251.  
  3252. }
  3253.  
  3254. local RotVelocity1 = {
  3255.  
  3256. math.abs(Part.RotVelocity.x),
  3257.  
  3258. math.abs(Part.RotVelocity.y),
  3259.  
  3260. math.abs(Part.RotVelocity.z)
  3261.  
  3262. }
  3263.  
  3264. local Velocity2 = {
  3265.  
  3266. math.abs(Hit.Velocity.x),
  3267.  
  3268. math.abs(Hit.Velocity.y),
  3269.  
  3270. math.abs(Hit.Velocity.z)
  3271.  
  3272. }
  3273.  
  3274. local RotVelocity2 = {
  3275.  
  3276. math.abs(Hit.RotVelocity.x),
  3277.  
  3278. math.abs(Hit.RotVelocity.y),
  3279.  
  3280. math.abs(Hit.RotVelocity.z)
  3281.  
  3282. }
  3283.  
  3284. if RagdollStatus == false and _G.RobloxAdvanced.RagdollOnHit == true then
  3285.  
  3286. for i = 1, 3 do
  3287.  
  3288. local Total = math.abs(Velocity1[i] - Velocity2[i])
  3289.  
  3290. if Total > math.random(85, 150) then
  3291.  
  3292. RagdollStatus = true
  3293.  
  3294. end
  3295.  
  3296. end
  3297.  
  3298. for i = 1, 3 do
  3299.  
  3300. local Total = math.abs(RotVelocity1[i] - RotVelocity2[i])
  3301.  
  3302. if Total > math.random(75, 100) then
  3303.  
  3304. RagdollStatus = true
  3305.  
  3306. end
  3307.  
  3308. end
  3309.  
  3310. if RagdollStatus == true then
  3311.  
  3312. _G.RobloxAdvanced.Ragdoll(true, Character)
  3313.  
  3314. if Character.Humanoid.PlatformStand == true or Character.Humanoid.Sit == true then
  3315.  
  3316. coroutine.wrap(function()
  3317.  
  3318. wait(5)
  3319.  
  3320. RagdollStatus = false
  3321.  
  3322. end)()
  3323.  
  3324. else
  3325.  
  3326. coroutine.wrap(function()
  3327.  
  3328. Character.Humanoid.PlatformStand = true
  3329.  
  3330. wait(1)
  3331.  
  3332. Character.Humanoid.PlatformStand = false
  3333.  
  3334. wait(5)
  3335.  
  3336. RagdollStatus = false
  3337.  
  3338. end)()
  3339.  
  3340. end
  3341.  
  3342. end
  3343.  
  3344. end
  3345.  
  3346. local Damage = 0
  3347.  
  3348. for i = 1, #Velocity1 do Damage = Damage + Velocity1[i] end
  3349.  
  3350. for i = 1, #RotVelocity1 do Damage = Damage + RotVelocity1[i] end
  3351.  
  3352. for i = 1, #Velocity2 do Damage = Damage + Velocity2[i] end
  3353.  
  3354. for i = 1, #RotVelocity2 do Damage = Damage + RotVelocity2[i] end
  3355.  
  3356. Damage = Damage / 60
  3357.  
  3358. if Damage >= 4 and _G.RobloxAdvanced.DamageOnHit == true then
  3359.  
  3360. pcall(function() Character.Humanoid:TakeDamage(math.floor(Damage)) end)
  3361.  
  3362. end
  3363.  
  3364. end
  3365.  
  3366. end))
  3367.  
  3368. end)
  3369.  
  3370. end
  3371.  
  3372. for _, Part in pairs(Character:GetChildren()) do ConnectTouched(Part) end
  3373.  
  3374. table.insert(_G.RobloxAdvanced.Connections, Character.ChildAdded:connect(function(Part) ConnectTouched(Part) end))
  3375.  
  3376. local OldHealth = Character.Humanoid.Health
  3377.  
  3378. table.insert(_G.RobloxAdvanced.Connections, Character.Humanoid.Changed:connect(function(Property)
  3379.  
  3380. if Property == "Health" then
  3381.  
  3382. local Source = nil
  3383.  
  3384. for _, Part in pairs(Character:GetChildren()) do
  3385.  
  3386. if Part:IsA("BasePart") then
  3387.  
  3388. if Source == nil then
  3389.  
  3390. Source = Part
  3391.  
  3392. else
  3393.  
  3394. 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
  3395.  
  3396. Source = Part
  3397.  
  3398. end
  3399.  
  3400. end
  3401.  
  3402. end
  3403.  
  3404. end
  3405.  
  3406. if Source == nil then return end
  3407.  
  3408. 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
  3409.  
  3410. local Model = Instance.new("Model", Workspace)
  3411.  
  3412. Model.Name = tostring(math.floor(Character.Humanoid.Health - OldHealth))
  3413.  
  3414. Model.Name = Model.Name:sub(0, 1) ~= "-" and Model.Name.. "+" or Model.Name
  3415.  
  3416. local Damage = Instance.new("Part", Model)
  3417.  
  3418. Damage.Name = "Head"
  3419.  
  3420. Damage.BrickColor = BrickColor.new(Model.Name:match("-") and "Really red" or "Lime green")
  3421.  
  3422. if (OldHealth - Character.Humanoid.Health) / Character.Humanoid.MaxHealth > 0.25 then
  3423.  
  3424. coroutine.wrap(function()
  3425.  
  3426. while Damage.Parent ~= nil do
  3427.  
  3428. Damage.BrickColor = BrickColor.new("New Yeller")
  3429.  
  3430. wait()
  3431.  
  3432. Damage.BrickColor = BrickColor.new("Really blue")
  3433.  
  3434. wait()
  3435.  
  3436. end
  3437.  
  3438. end)()
  3439.  
  3440. end
  3441.  
  3442. Damage.TopSurface = 0
  3443.  
  3444. Damage.BottomSurface = 0
  3445.  
  3446. Damage.CanCollide = false
  3447.  
  3448. Damage.FormFactor = "Custom"
  3449.  
  3450. 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)
  3451.  
  3452. Damage.CFrame = CFrame.new(Source.Position)
  3453.  
  3454. coroutine.wrap(function()
  3455.  
  3456. while Damage.Parent ~= nil do
  3457.  
  3458. Damage.CanCollide = false
  3459.  
  3460. wait()
  3461.  
  3462. end
  3463.  
  3464. end)()
  3465.  
  3466. local Humanoid = Instance.new("Humanoid", Model)
  3467.  
  3468. Humanoid.Name = "Corpse"
  3469.  
  3470. Humanoid.MaxHealth = 100
  3471.  
  3472. Humanoid.Health = 0
  3473.  
  3474. Humanoid.WalkSpeed = 0
  3475.  
  3476. Humanoid.PlatformStand = true
  3477.  
  3478. local BodyVelocity = Instance.new("BodyVelocity", Damage)
  3479.  
  3480. BodyVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  3481.  
  3482. BodyVelocity.velocity = Vector3.new(0, 7, 0)
  3483.  
  3484. coroutine.wrap(function()
  3485.  
  3486. wait(1)
  3487.  
  3488. for i = 0, 1, 0.05 do
  3489.  
  3490. Damage.Transparency = i
  3491.  
  3492. BodyVelocity.velocity = Vector3.new(0, 7 * (1 - i), 0)
  3493.  
  3494. wait()
  3495.  
  3496. end
  3497.  
  3498. Model:Remove()
  3499.  
  3500. end)()
  3501.  
  3502. end
  3503.  
  3504. if OldHealth - Character.Humanoid.Health >= 3 then
  3505.  
  3506. if _G.RobloxAdvanced.BloodEnabled == true then
  3507.  
  3508. local Max = math.ceil((OldHealth - Character.Humanoid.Health) * 2)
  3509.  
  3510. for i = 1, (Max > 20 and 20 or Max + 1) do
  3511.  
  3512. local Blood = _G.RobloxAdvanced.MakeBlood()
  3513.  
  3514. Blood.CFrame = Source.CFrame * CFrame.new(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2))
  3515.  
  3516. Blood.Velocity = (Blood.Position - Source.Position).unit * math.random(5, 25)
  3517.  
  3518. Blood.Parent = Workspace
  3519.  
  3520. end
  3521.  
  3522. end
  3523.  
  3524. local Player = game:GetService("Players"):GetPlayerFromCharacter(Character)
  3525.  
  3526. if Player ~= nil and _G.RobloxAdvanced.BloodGuiEnabled == true then
  3527.  
  3528. local PlayerGui = Player:FindFirstChild("PlayerGui")
  3529.  
  3530. if PlayerGui == nil then PlayerGui = Instance.new("PlayerGui", Player) end
  3531.  
  3532. if PlayerGui:FindFirstChild("Pain") ~= nil then PlayerGui.Pain:Remove() end
  3533.  
  3534. local Gui = Instance.new("ScreenGui")
  3535.  
  3536. Gui.Name = "Pain"
  3537.  
  3538. local Frame = Instance.new("Frame")
  3539.  
  3540. Frame.Name = "Red"
  3541.  
  3542. Frame.Size = UDim2.new(2, 0, 2, 0)
  3543.  
  3544. Frame.Position = UDim2.new(-0.5, 0, -0.5, 0)
  3545.  
  3546. Frame.BackgroundColor3 = Color3.new(1, 0, 0)
  3547.  
  3548. Frame.BackgroundTransparency = (math.abs(OldHealth - Character.Humanoid.Health) / Character.Humanoid.MaxHealth) * 1.2
  3549.  
  3550. Frame.Parent = Gui
  3551.  
  3552. Gui.Parent = PlayerGui
  3553.  
  3554. coroutine.wrap(function()
  3555.  
  3556. for i = Frame.BackgroundTransparency, 1, 0.05 do
  3557.  
  3558. Frame.BackgroundTransparency = i
  3559.  
  3560. wait()
  3561.  
  3562. end
  3563.  
  3564. Gui:Remove()
  3565.  
  3566. end)()
  3567.  
  3568. end
  3569.  
  3570. end
  3571.  
  3572. if (OldHealth - Character.Humanoid.Health) / Character.Humanoid.MaxHealth > 0.25 and _G.RobloxAdvanced.CriticalHitsEnabled == true and Character.Humanoid.Health > 0 and RagdollStatus == false then
  3573.  
  3574. RagdollStatus = true
  3575.  
  3576. _G.RobloxAdvanced.Ragdoll(true, Character)
  3577.  
  3578. Character.Humanoid.PlatformStand = true
  3579.  
  3580. local Sound = Instance.new("Sound", Character.Torso)
  3581.  
  3582. Sound.SoundId = "http://www.roblox.com/Asset/?id=2801263"
  3583.  
  3584. Sound.Volume = 1
  3585.  
  3586. Sound.Pitch = math.random(500, 700) / 1000
  3587.  
  3588. Sound:Play()
  3589.  
  3590. local Player = game:GetService("Players"):GetPlayerFromCharacter(Character)
  3591.  
  3592. if Player ~= nil then
  3593.  
  3594. local PlayerGui = Player:FindFirstChild("PlayerGui")
  3595.  
  3596. if PlayerGui == nil then return end
  3597.  
  3598. if PlayerGui:FindFirstChild("Pain") ~= nil then PlayerGui.Pain:Remove() end
  3599.  
  3600. if PlayerGui:FindFirstChild("Critical Hit") ~= nil then PlayerGui.Pain:Remove() end
  3601.  
  3602. local Gui = Instance.new("ScreenGui", PlayerGui)
  3603.  
  3604. Gui.Name = "Critical Hit"
  3605.  
  3606. local Frame = Instance.new("Frame", Gui)
  3607.  
  3608. Frame.Name = "Yellow"
  3609.  
  3610. Frame.Size = UDim2.new(2, 0, 2, 0)
  3611.  
  3612. Frame.Position = UDim2.new(-0.5, 0, -0.5, 0)
  3613.  
  3614. Frame.BackgroundColor3 = Color3.new(0.9, 0.9, 0)
  3615.  
  3616. Frame.BackgroundTransparency = 0
  3617.  
  3618. coroutine.wrap(function()
  3619.  
  3620. for i = 0, 1, 0.01 do
  3621.  
  3622. Frame.BackgroundTransparency = i
  3623.  
  3624. wait()
  3625.  
  3626. end
  3627.  
  3628. Gui:Remove()
  3629.  
  3630. end)()
  3631.  
  3632. for i = 1, 5 do
  3633.  
  3634. local Label = Instance.new("TextLabel", Frame)
  3635.  
  3636. Label.Name = "Notification"
  3637.  
  3638. Label.Position = UDim2.new(0.5, 0, 0.5, 0)
  3639.  
  3640. Label.Text = "CRITICAL HIT"
  3641.  
  3642. Label.FontSize = "Size18"
  3643.  
  3644. Label.TextColor3 = Color3.new(1, 0.5, 0)
  3645.  
  3646. Label.TextTransparency = 0
  3647.  
  3648. coroutine.wrap(function()
  3649.  
  3650. while Label.Parent ~= nil do
  3651.  
  3652. Label.Position = UDim2.new(0.5, math.random(-25, 25), 0.5, math.random(-25, 25))
  3653.  
  3654. Label.FontSize = "Size" ..tostring((function()
  3655.  
  3656. local Size = math.random(1, 5)
  3657.  
  3658. if Size == 1 then
  3659.  
  3660. return 14
  3661.  
  3662. elseif Size == 2 then
  3663.  
  3664. return 18
  3665.  
  3666. elseif Size == 3 then
  3667.  
  3668. return 24
  3669.  
  3670. elseif Size == 4 then
  3671.  
  3672. return 36
  3673.  
  3674. elseif Size == 5 then
  3675.  
  3676. return 48
  3677.  
  3678. end
  3679.  
  3680. end)())
  3681.  
  3682. wait()
  3683.  
  3684. end
  3685.  
  3686. end)()
  3687.  
  3688. coroutine.wrap(function()
  3689.  
  3690. for i = 0.01, 1, 0.05 do
  3691.  
  3692. Label.TextTransparency = i
  3693.  
  3694. wait()
  3695.  
  3696. end
  3697.  
  3698. end)()
  3699.  
  3700. end
  3701.  
  3702. end
  3703.  
  3704. coroutine.wrap(function()
  3705.  
  3706. wait(3)
  3707.  
  3708. Character.Humanoid.PlatformStand = false
  3709.  
  3710. wait(5)
  3711.  
  3712. RagdollStatus = false
  3713.  
  3714. end)()
  3715.  
  3716. end
  3717.  
  3718. OldHealth = Character.Humanoid.Health
  3719.  
  3720. end
  3721.  
  3722. end))
  3723.  
  3724. table.insert(_G.RobloxAdvanced.Connections, Character.Humanoid.Died:connect(function()
  3725.  
  3726. local Humanoid = Character:FindFirstChild("Humanoid")
  3727.  
  3728. if Humanoid == nil then return end
  3729.  
  3730. local Player = game:GetService("Players"):GetPlayerFromCharacter(Character)
  3731.  
  3732. local Killer = nil
  3733.  
  3734. if Humanoid:FindFirstChild("creator") ~= nil then
  3735.  
  3736. Killer = Humanoid.creator.Value
  3737.  
  3738. end
  3739.  
  3740. if Killer ~= nil then
  3741.  
  3742. if Killer:FindFirstChild("RobloxAdvancedKills") == nil then
  3743.  
  3744. Instance.new("IntValue", Killer).Name = "RobloxAdvancedKills"
  3745.  
  3746. end
  3747.  
  3748. if Killer:FindFirstChild("RobloxAdvancedKillstreak") == nil then
  3749.  
  3750. Instance.new("IntValue", Killer).Name = "RobloxAdvancedKillstreak"
  3751.  
  3752. end
  3753.  
  3754. if Player ~= nil and Player.Neutral == false and Killer.Neutral == false and Player.TeamColor == Killer.TeamColor then
  3755.  
  3756. Killer.RobloxAdvancedKills.Value = Killer.RobloxAdvancedKills.Value - 2
  3757.  
  3758. Killer.RobloxAdvancedKillstreak.Value = 0
  3759.  
  3760. else
  3761.  
  3762. Killer.RobloxAdvancedKills.Value = Killer.RobloxAdvancedKills.Value + 1
  3763.  
  3764. Killer.RobloxAdvancedKillstreak.Value = Killer.RobloxAdvancedKillstreak.Value + 1
  3765.  
  3766. end
  3767.  
  3768. end
  3769.  
  3770. if Player ~= nil then
  3771.  
  3772. if Player:FindFirstChild("RobloxAdvancedDeaths") == nil then
  3773.  
  3774. Instance.new("IntValue", Player).Name = "RobloxAdvancedDeaths"
  3775.  
  3776. end
  3777.  
  3778. if Player:FindFirstChild("RobloxAdvancedKillstreak") == nil then
  3779.  
  3780. Instance.new("IntValue", Player).Name = "RobloxAdvancedKillstreak"
  3781.  
  3782. end
  3783.  
  3784. Player.RobloxAdvancedDeaths.Value = Player.RobloxAdvancedDeaths.Value + 1
  3785.  
  3786. Player.RobloxAdvancedKillstreak.Value = 0
  3787.  
  3788. end
  3789.  
  3790. if _G.RobloxAdvanced.RagdollOnDeath == true then
  3791.  
  3792. _G.RobloxAdvanced.Ragdoll(true, Character, true)
  3793.  
  3794. end
  3795.  
  3796. coroutine.wrap(function()
  3797.  
  3798. if _G.RobloxAdvanced.DeathGuiEnabled == false then return end
  3799.  
  3800. if Player == nil then return end
  3801.  
  3802. local PlayerGui = Player:FindFirstChild("PlayerGui")
  3803.  
  3804. if PlayerGui == nil then return end
  3805.  
  3806. local Gui = Instance.new("ScreenGui")
  3807.  
  3808. Gui.Name = "Death"
  3809.  
  3810. local Frame = Instance.new("Frame")
  3811.  
  3812. Frame.Name = "Black"
  3813.  
  3814. Frame.Size = UDim2.new(2, 0, 2, 0)
  3815.  
  3816. Frame.Position = UDim2.new(-0.5, 0, -0.5, 0)
  3817.  
  3818. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  3819.  
  3820. Frame.BackgroundTransparency = 1
  3821.  
  3822. Frame.Parent = Gui
  3823.  
  3824. local Label = Instance.new("TextLabel")
  3825.  
  3826. Label.Name = "Notification"
  3827.  
  3828. Label.Position = UDim2.new(0.5, 0, 0.5, 0)
  3829.  
  3830. if Killer ~= nil then
  3831.  
  3832. if Killer == Player then
  3833.  
  3834. Label.Text = "You have killed yourself."
  3835.  
  3836. else
  3837.  
  3838. Label.Text = "You have been killed by " ..Killer.Name.. "."
  3839.  
  3840. end
  3841.  
  3842. else
  3843.  
  3844. Label.Text = "You have died."
  3845.  
  3846. end
  3847.  
  3848. Label.FontSize = "Size24"
  3849.  
  3850. Label.TextColor3 = Color3.new(1, 0.5, 0)
  3851.  
  3852. Label.TextTransparency = 1
  3853.  
  3854. Label.Parent = Frame
  3855.  
  3856. Gui.Parent = PlayerGui
  3857.  
  3858. wait(0.5)
  3859.  
  3860. for i = 1, 0, -0.05 do
  3861.  
  3862. Label.TextTransparency = i
  3863.  
  3864. wait()
  3865.  
  3866. end
  3867.  
  3868. Label.BackgroundTransparency = 0
  3869.  
  3870. wait(0.5)
  3871.  
  3872. for i = 1, 0, -0.025 do
  3873.  
  3874. Frame.BackgroundTransparency = i
  3875.  
  3876. wait()
  3877.  
  3878. end
  3879.  
  3880. Frame.BackgroundTransparency = 0
  3881.  
  3882. wait(0.5)
  3883.  
  3884. for i = 0, 1, 0.05 do
  3885.  
  3886. Label.TextTransparency = i
  3887.  
  3888. wait()
  3889.  
  3890. end
  3891.  
  3892. Label.BackgroundTransparency = 1
  3893.  
  3894. end)()
  3895.  
  3896. wait(4.5)
  3897.  
  3898. if Character == nil or _G.RobloxAdvanced.KeepCorpses == false then return end
  3899.  
  3900. if Character.Parent == nil then return end
  3901.  
  3902. local ReweldNeck = false
  3903.  
  3904. if Character:FindFirstChild("Torso") ~= nil then
  3905.  
  3906. if Character.Torso:FindFirstChild("Neck") ~= nil then
  3907.  
  3908. ReweldNeck = true
  3909.  
  3910. end
  3911.  
  3912. end
  3913.  
  3914. local Model = Instance.new("Model", Workspace)
  3915.  
  3916. Model.Name = Character.Name.. "'s Corpse"
  3917.  
  3918. for _, Part in pairs(Character:GetChildren()) do
  3919.  
  3920. if Part.ClassName == "CharacterMesh" or Part:IsA("Clothing") or Part.ClassName == "ShirtGraphic" then
  3921.  
  3922. Part:Clone().Parent = Model
  3923.  
  3924. end
  3925.  
  3926. for _, Part2 in pairs(Part:GetChildren()) do
  3927.  
  3928. if Part2.ClassName == "Sound" then
  3929.  
  3930. Part2.SoundId = ""
  3931.  
  3932. Part2.Looped = false
  3933.  
  3934. Part2.PlayOnRemove = false
  3935.  
  3936. Part2.Volume = 0
  3937.  
  3938. Part2.Pitch = 0
  3939.  
  3940. Part2:Stop()
  3941.  
  3942. end
  3943.  
  3944. end
  3945.  
  3946. if Part.ClassName == "Part" then
  3947.  
  3948. pcall(function()
  3949.  
  3950. Part.Parent = Model
  3951.  
  3952. Part.CanCollide = true
  3953.  
  3954. end)
  3955.  
  3956. end
  3957.  
  3958. end
  3959.  
  3960. local Humanoid = Instance.new("Humanoid")
  3961.  
  3962. Humanoid.Name = "Corpse"
  3963.  
  3964. Humanoid.Health = 0
  3965.  
  3966. Humanoid.WalkSpeed = 0
  3967.  
  3968. Humanoid.PlatformStand = true
  3969.  
  3970. Humanoid.Parent = Model
  3971.  
  3972. if ReweldNeck == true then
  3973.  
  3974. local Neck = Instance.new("Weld")
  3975.  
  3976. Neck.Part0 = Torso
  3977.  
  3978. Neck.Part1 = Head
  3979.  
  3980. Neck.C0 = CFrame.new(0, 1.5, 0)
  3981.  
  3982. Neck.Parent = Torso
  3983.  
  3984. end
  3985.  
  3986. game:GetService("Debris"):AddItem(Model, _G.RobloxAdvanced.KeepCorpsesTime)
  3987.  
  3988. end))
  3989.  
  3990. table.insert(_G.RobloxAdvanced.Connections, Character.Humanoid.FallingDown:connect(function() _G.RobloxAdvanced.Ragdoll(true, Character) end))
  3991.  
  3992. table.insert(_G.RobloxAdvanced.Connections, Character.Humanoid.GettingUp:connect(function() _G.RobloxAdvanced.Ragdoll(false, Character) end))
  3993.  
  3994. coroutine.wrap(function()
  3995.  
  3996. local function RemoveLimb(Name)
  3997.  
  3998. if Character:FindFirstChild(Name) == nil then return false end
  3999.  
  4000. local Model = Instance.new("Model")
  4001.  
  4002. Model.Name = "Decapitated Limb"
  4003.  
  4004. for _, Part in pairs(Character:GetChildren()) do
  4005.  
  4006. if Part.ClassName == "CharacterMesh" or Part:IsA("Clothing") then
  4007.  
  4008. Part:Clone().Parent = Model
  4009.  
  4010. end
  4011.  
  4012. if Part.Name == Name then
  4013.  
  4014. pcall(function()
  4015.  
  4016. Part.Parent = Model
  4017.  
  4018. Part.CanCollide = true
  4019.  
  4020. Part:BreakJoints()
  4021.  
  4022. end)
  4023.  
  4024. end
  4025.  
  4026. end
  4027.  
  4028. local Humanoid = Instance.new("Humanoid")
  4029.  
  4030. Humanoid.Name = "Corpse"
  4031.  
  4032. Humanoid.Health = 0
  4033.  
  4034. Humanoid.MaxHealth = 0
  4035.  
  4036. Humanoid.WalkSpeed = 0
  4037.  
  4038. Humanoid.PlatformStand = true
  4039.  
  4040. Humanoid.Parent = Model
  4041.  
  4042. Model.Parent = Workspace
  4043.  
  4044. game:GetService("Debris"):AddItem(Model, _G.RobloxAdvanced.KeepCorpsesTime)
  4045.  
  4046. return true, Model
  4047.  
  4048. end
  4049.  
  4050. while true do
  4051.  
  4052. if Character.Parent == nil then break end
  4053.  
  4054. if Character:FindFirstChild("Torso") == nil then break end
  4055.  
  4056. if Character:FindFirstChild("Humanoid") == nil then break end
  4057.  
  4058. if Character.Torso:FindFirstChild("Left Shoulder") == nil and Character.Torso:FindFirstChild("LeftShoulder") == nil and Character.Torso:FindFirstChild("Left Shoulder 2") == nil then
  4059.  
  4060. local Blood = _G.RobloxAdvanced.MakeBlood()
  4061.  
  4062. Blood.CFrame = Character.Torso.CFrame * CFrame.new(-1.2, 0.5, 0)
  4063.  
  4064. Blood.Velocity = (Blood.Position - (Character.Torso.CFrame * CFrame.new(0, 0.5, 0)).p).unit * math.random(10, 25)
  4065.  
  4066. Blood.Parent = _G.RobloxAdvanced.BloodEnabled == true and Workspace
  4067.  
  4068. if Character:FindFirstChild("Humanoid") ~= nil then Character.Humanoid:TakeDamage(0.25) end
  4069.  
  4070. if Character:FindFirstChild("Left Arm") ~= nil then RemoveLimb("Left Arm") end
  4071.  
  4072. end
  4073.  
  4074. if Character.Torso:FindFirstChild("Right Shoulder") == nil and Character.Torso:FindFirstChild("RightShoulder") == nil and Character.Torso:FindFirstChild("Right Shoulder 2") == nil then
  4075.  
  4076. local Blood = _G.RobloxAdvanced.MakeBlood()
  4077.  
  4078. Blood.CFrame = Character.Torso.CFrame * CFrame.new(1.2, 0.5, 0)
  4079.  
  4080. Blood.Velocity = (Blood.Position - (Character.Torso.CFrame * CFrame.new(0, 0.5, 0)).p).unit * math.random(10, 25)
  4081.  
  4082. Blood.Parent = _G.RobloxAdvanced.BloodEnabled == true and Workspace
  4083.  
  4084. if Character:FindFirstChild("Humanoid") ~= nil then Character.Humanoid:TakeDamage(0.25) end
  4085.  
  4086. if Character:FindFirstChild("Right Arm") ~= nil then RemoveLimb("Right Arm") end
  4087.  
  4088. end
  4089.  
  4090. if Character.Torso:FindFirstChild("Left Hip") == nil and Character.Torso:FindFirstChild("LeftHip") == nil and Character.Torso:FindFirstChild("Left Hip 2") == nil then
  4091.  
  4092. local Blood = _G.RobloxAdvanced.MakeBlood()
  4093.  
  4094. Blood.CFrame = Character.Torso.CFrame * CFrame.new(-0.5, -1.2, 0)
  4095.  
  4096. Blood.Velocity = (Blood.Position - (Character.Torso.CFrame * CFrame.new(-0.5, 0, 0)).p).unit * math.random(4, 8)
  4097.  
  4098. Blood.Parent = _G.RobloxAdvanced.BloodEnabled == true and Workspace
  4099.  
  4100. if Character:FindFirstChild("Humanoid") ~= nil then Character.Humanoid:TakeDamage(0.25) end
  4101.  
  4102. if Character:FindFirstChild("Left Leg") ~= nil then RemoveLimb("Left Leg") end
  4103.  
  4104. end
  4105.  
  4106. if Character.Torso:FindFirstChild("Right Hip") == nil and Character.Torso:FindFirstChild("RightHip") == nil and Character.Torso:FindFirstChild("Right Hip 2") == nil then
  4107.  
  4108. local Blood = _G.RobloxAdvanced.MakeBlood()
  4109.  
  4110. Blood.CFrame = Character.Torso.CFrame * CFrame.new(0.5, -1.2, 0)
  4111.  
  4112. Blood.Velocity = (Blood.Position - (Character.Torso.CFrame * CFrame.new(0.5, 0, 0)).p).unit * math.random(4, 80)
  4113.  
  4114. Blood.Parent = _G.RobloxAdvanced.BloodEnabled == true and Workspace
  4115.  
  4116. if Character:FindFirstChild("Humanoid") ~= nil then Character.Humanoid:TakeDamage(0.25) end
  4117.  
  4118. if Character:FindFirstChild("Right Leg") ~= nil then RemoveLimb("Right Leg") end
  4119.  
  4120. end
  4121.  
  4122. if Character.Torso:FindFirstChild("Neck") == nil then
  4123.  
  4124. local Blood = _G.RobloxAdvanced.MakeBlood()
  4125.  
  4126. Blood.CFrame = Character.Torso.CFrame * CFrame.new(0, 1, 0)
  4127.  
  4128. Blood.Velocity = (Blood.Position - Character.Torso.Position).unit * math.random(25, 75)
  4129.  
  4130. Blood.Parent = _G.RobloxAdvanced.BloodEnabled == true and Workspace
  4131.  
  4132. if Character:FindFirstChild("Head") ~= nil then
  4133.  
  4134. local Blood = _G.RobloxAdvanced.MakeBlood()
  4135.  
  4136. Blood.CFrame = Character.Head.CFrame * CFrame.new(0, -0.5, 0)
  4137.  
  4138. Blood.Velocity = (Blood.Position - Character.Head.Position).unit * math.random(5, 25)
  4139.  
  4140. Blood.Parent = Workspace
  4141.  
  4142. end
  4143.  
  4144. end
  4145.  
  4146. wait(0.11)
  4147.  
  4148. end
  4149.  
  4150. end)()
  4151.  
  4152. end
  4153.  
  4154. _G.RobloxAdvanced.Ragdoll = function(Format, Character, Force)
  4155.  
  4156. if Force ~= true then
  4157.  
  4158. if Character:FindFirstChild("Ragdoll") ~= nil and Format == true then return false end
  4159.  
  4160. if Character:FindFirstChild("Ragdoll") == nil and Format == false then return false end
  4161.  
  4162. end
  4163.  
  4164. local Head = nil
  4165.  
  4166. local Torso = nil
  4167.  
  4168. local Humanoid = nil
  4169.  
  4170. local Dead = false
  4171.  
  4172. for _, Children in pairs(Character:GetChildren()) do
  4173.  
  4174. if Children.ClassName == "ForceField" then Children:Remove() end
  4175.  
  4176. if Children.Name == "" then Children:Remove() end
  4177.  
  4178. if Children.Name == "Head" then Head = Children end
  4179.  
  4180. if Children.Name == "Torso" then Torso = Children end
  4181.  
  4182. if Children.ClassName == "Humanoid" then Humanoid = Children end
  4183.  
  4184. if Children:IsA("Accoutrement") then
  4185.  
  4186. if Children:FindFirstChild("Handle") ~= nil then
  4187.  
  4188. if math.random(1, 3) == 1 then
  4189.  
  4190. coroutine.wrap(function()
  4191.  
  4192. Children.Parent = Workspace
  4193.  
  4194. wait()
  4195.  
  4196. Children.Parent = Character
  4197.  
  4198. Children.Handle.CanCollide = true
  4199.  
  4200. end)()
  4201.  
  4202. else
  4203.  
  4204. Children.Parent = Workspace
  4205.  
  4206. Children.Handle.CanCollide = true
  4207.  
  4208. end
  4209.  
  4210. else
  4211.  
  4212. Children:Remove()
  4213.  
  4214. end
  4215.  
  4216. end
  4217.  
  4218. end
  4219.  
  4220. if Humanoid ~= nil then
  4221.  
  4222. if Humanoid.Health <= 0 then
  4223.  
  4224. Dead = true
  4225.  
  4226. end
  4227.  
  4228. end
  4229.  
  4230. if Torso ~= nil then
  4231.  
  4232. for _, Children2 in pairs(Torso:GetChildren()) do
  4233.  
  4234. if Children2:IsA("JointInstance") then
  4235.  
  4236. Children2:Remove()
  4237.  
  4238. end
  4239.  
  4240. end
  4241.  
  4242. end
  4243.  
  4244. if Head ~= nil and (function()
  4245.  
  4246. if Dead == true and math.random(1, 2) == 1 then
  4247.  
  4248. return true
  4249.  
  4250. else
  4251.  
  4252. return false
  4253.  
  4254. end
  4255.  
  4256. end)() == false then
  4257.  
  4258. local Neck = Instance.new("Motor6D")
  4259.  
  4260. Neck.Name = "Neck"
  4261.  
  4262. Neck.Part0 = Torso
  4263.  
  4264. Neck.Part1 = Head
  4265.  
  4266. Neck.C0 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, math.rad(180))
  4267.  
  4268. Neck.C1 = CFrame.new(0, -0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, math.rad(180))
  4269.  
  4270. Neck.MaxVelocity = 0.1
  4271.  
  4272. Neck.Parent = Torso
  4273.  
  4274. end
  4275.  
  4276. if Format == true then
  4277.  
  4278. local Ragdoll = Instance.new("IntValue")
  4279.  
  4280. Ragdoll.Name = "Ragdoll"
  4281.  
  4282. Ragdoll.Parent = Character
  4283.  
  4284. if Torso ~= nil then
  4285.  
  4286. Torso.Velocity = Torso.Velocity / 1.25
  4287.  
  4288. Torso.RotVelocity = (Torso.RotVelocity / 1.25) + Vector3.new(math.random(-25, 25), math.random(-25, 25), math.random(-25, 25))
  4289.  
  4290. if Dead == true then
  4291.  
  4292. if Humanoid ~= nil then
  4293.  
  4294. local Humanoid2 = Humanoid:Clone()
  4295.  
  4296. wait()
  4297.  
  4298. Humanoid:Remove()
  4299.  
  4300. Humanoid2.Parent = Character
  4301.  
  4302. Humanoid = Humanoid2
  4303.  
  4304. end
  4305.  
  4306. end
  4307.  
  4308. local Limb = Character:FindFirstChild("Right Arm")
  4309.  
  4310. if Limb ~= nil then
  4311.  
  4312. Limb.Velocity = Torso.Velocity
  4313.  
  4314. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  4315.  
  4316. local Joint = Instance.new("Glue")
  4317.  
  4318. Joint.Name = "RightShoulder"
  4319.  
  4320. Joint.Part0 = Torso
  4321.  
  4322. Joint.Part1 = Limb
  4323.  
  4324. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  4325.  
  4326. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  4327.  
  4328. Joint.Parent = Torso
  4329.  
  4330. local Weight = Instance.new("Part")
  4331.  
  4332. Weight.Name = ""
  4333.  
  4334. Weight.TopSurface = 0
  4335.  
  4336. Weight.BottomSurface = 0
  4337.  
  4338. Weight.Shape = "Block"
  4339.  
  4340. Weight.FormFactor = "Custom"
  4341.  
  4342. Weight.Size = Vector3.new(1, 1, 1)
  4343.  
  4344. Weight.Transparency = 1
  4345.  
  4346. Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  4347.  
  4348. Weight.Parent = Character
  4349.  
  4350. local Weld = Instance.new("Weld")
  4351.  
  4352. Weld.Part0 = Limb
  4353.  
  4354. Weld.Part1 = Weight
  4355.  
  4356. Weld.C0 = CFrame.new(0, -0.5, 0)
  4357.  
  4358. Weld.Parent = Limb
  4359.  
  4360. end
  4361.  
  4362. local Limb = Character:FindFirstChild("Left Arm")
  4363.  
  4364. if Limb then
  4365.  
  4366. Limb.Velocity = Torso.Velocity
  4367.  
  4368. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  4369.  
  4370. local Joint = Instance.new("Glue")
  4371.  
  4372. Joint.Name = "LeftShoulder"
  4373.  
  4374. Joint.Part0 = Torso
  4375.  
  4376. Joint.Part1 = Limb
  4377.  
  4378. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  4379.  
  4380. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  4381.  
  4382. Joint.Parent = Torso
  4383.  
  4384. local Weight = Instance.new("Part")
  4385.  
  4386. Weight.Name = ""
  4387.  
  4388. Weight.TopSurface = 0
  4389.  
  4390. Weight.BottomSurface = 0
  4391.  
  4392. Weight.Shape = "Block"
  4393.  
  4394. Weight.FormFactor = "Custom"
  4395.  
  4396. Weight.Size = Vector3.new(1, 1, 1)
  4397.  
  4398. Weight.Transparency = 1
  4399.  
  4400. Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  4401.  
  4402. Weight.Parent = Character
  4403.  
  4404. local Weld = Instance.new("Weld")
  4405.  
  4406. Weld.Part0 = Limb
  4407.  
  4408. Weld.Part1 = Weight
  4409.  
  4410. Weld.C0 = CFrame.new(0, -0.5, 0)
  4411.  
  4412. Weld.Parent = Limb
  4413.  
  4414. end
  4415.  
  4416. local Limb = Character:FindFirstChild("Right Leg")
  4417.  
  4418. if Limb then
  4419.  
  4420. Limb.Velocity = Torso.Velocity
  4421.  
  4422. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  4423.  
  4424. local Joint = Instance.new("Glue")
  4425.  
  4426. Joint.Name = "RightHip"
  4427.  
  4428. Joint.Part0 = Torso
  4429.  
  4430. Joint.Part1 = Limb
  4431.  
  4432. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  4433.  
  4434. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  4435.  
  4436. Joint.Parent = Torso
  4437.  
  4438. local Weight = Instance.new("Part")
  4439.  
  4440. Weight.Name = ""
  4441.  
  4442. Weight.TopSurface = 0
  4443.  
  4444. Weight.BottomSurface = 0
  4445.  
  4446. Weight.Shape = "Block"
  4447.  
  4448. Weight.FormFactor = "Custom"
  4449.  
  4450. Weight.Size = Vector3.new(1, 1, 1)
  4451.  
  4452. Weight.Transparency = 1
  4453.  
  4454. Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  4455.  
  4456. Weight.Parent = Character
  4457.  
  4458. local Weld = Instance.new("Weld")
  4459.  
  4460. Weld.Part0 = Limb
  4461.  
  4462. Weld.Part1 = Weight
  4463.  
  4464. Weld.C0 = CFrame.new(0, -0.5, 0)
  4465.  
  4466. Weld.Parent = Limb
  4467.  
  4468. end
  4469.  
  4470. local Limb = Character:FindFirstChild("Left Leg")
  4471.  
  4472. if Limb then
  4473.  
  4474. Limb.Velocity = Torso.Velocity
  4475.  
  4476. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  4477.  
  4478. local Joint = Instance.new("Glue")
  4479.  
  4480. Joint.Name = "LeftHip"
  4481.  
  4482. Joint.Part0 = Torso
  4483.  
  4484. Joint.Part1 = Limb
  4485.  
  4486. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  4487.  
  4488. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  4489.  
  4490. Joint.Parent = Torso
  4491.  
  4492. local Weight = Instance.new("Part")
  4493.  
  4494. Weight.Name = ""
  4495.  
  4496. Weight.TopSurface = 0
  4497.  
  4498. Weight.BottomSurface = 0
  4499.  
  4500. Weight.Shape = "Block"
  4501.  
  4502. Weight.FormFactor = "Custom"
  4503.  
  4504. Weight.Size = Vector3.new(1, 1, 1)
  4505.  
  4506. Weight.Transparency = 1
  4507.  
  4508. Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  4509.  
  4510. Weight.Parent = Character
  4511.  
  4512. local Weld = Instance.new("Weld")
  4513.  
  4514. Weld.Part0 = Limb
  4515.  
  4516. Weld.Part1 = Weight
  4517.  
  4518. Weld.C0 = CFrame.new(0, -0.5, 0)
  4519.  
  4520. Weld.Parent = Limb
  4521.  
  4522. end
  4523.  
  4524. local Weight = Instance.new("Part")
  4525.  
  4526. Weight.Name = ""
  4527.  
  4528. Weight.TopSurface = 0
  4529.  
  4530. Weight.BottomSurface = 0
  4531.  
  4532. Weight.Shape = "Block"
  4533.  
  4534. Weight.FormFactor = "Custom"
  4535.  
  4536. Weight.Size = Vector3.new(1.75, 1.5, 1.1)
  4537.  
  4538. Weight.Transparency = 1
  4539.  
  4540. Weight.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  4541.  
  4542. Weight.Parent = Character
  4543.  
  4544. local Weld = Instance.new("Weld")
  4545.  
  4546. Weld.Part0 = Torso
  4547.  
  4548. Weld.Part1 = Weight
  4549.  
  4550. Weld.C0 = CFrame.new(0, 0.5, 0)
  4551.  
  4552. Weld.Parent = Torso
  4553.  
  4554. end
  4555.  
  4556. elseif Format == false then
  4557.  
  4558. if Character:FindFirstChild("Ragdoll") ~= nil then Character.Ragdoll:Remove() end
  4559.  
  4560. if Torso ~= nil then
  4561.  
  4562. local Limb = Character:FindFirstChild("Right Arm")
  4563.  
  4564. if Limb ~= nil then
  4565.  
  4566. local Joint = Instance.new("Motor6D")
  4567.  
  4568. Joint.Name = "Right Shoulder"
  4569.  
  4570. Joint.Part0 = Torso
  4571.  
  4572. Joint.Part1 = Limb
  4573.  
  4574. Joint.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  4575.  
  4576. Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  4577.  
  4578. Joint.MaxVelocity = 0.15
  4579.  
  4580. Joint.Parent = Torso
  4581.  
  4582. end
  4583.  
  4584. local Limb = Character:FindFirstChild("Left Arm")
  4585.  
  4586. if Limb ~= nil then
  4587.  
  4588. local Joint = Instance.new("Motor6D")
  4589.  
  4590. Joint.Name = "Left Shoulder"
  4591.  
  4592. Joint.Part0 = Torso
  4593.  
  4594. Joint.Part1 = Limb
  4595.  
  4596. Joint.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  4597.  
  4598. Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  4599.  
  4600. Joint.MaxVelocity = 0.15
  4601.  
  4602. Joint.Parent = Torso
  4603.  
  4604. end
  4605.  
  4606. local Limb = Character:FindFirstChild("Right Leg")
  4607.  
  4608. if Limb ~= nil then
  4609.  
  4610. local Joint = Instance.new("Motor6D")
  4611.  
  4612. Joint.Name = "Right Hip"
  4613.  
  4614. Joint.Part0 = Torso
  4615.  
  4616. Joint.Part1 = Limb
  4617.  
  4618. Joint.C0 = CFrame.new(0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  4619.  
  4620. Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  4621.  
  4622. Joint.MaxVelocity = 0.1
  4623.  
  4624. Joint.Parent = Torso
  4625.  
  4626. end
  4627.  
  4628. local Limb = Character:FindFirstChild("Left Leg")
  4629.  
  4630. if Limb ~= nil then
  4631.  
  4632. local Joint = Instance.new("Motor6D")
  4633.  
  4634. Joint.Name = "Left Hip"
  4635.  
  4636. Joint.Part0 = Torso
  4637.  
  4638. Joint.Part1 = Limb
  4639.  
  4640. Joint.C0 = CFrame.new(-0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  4641.  
  4642. Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  4643.  
  4644. Joint.MaxVelocity = 0.1
  4645.  
  4646. Joint.Parent = Torso
  4647.  
  4648. end
  4649.  
  4650. local Animate = Character:FindFirstChild("Animate")
  4651.  
  4652. if Animate ~= nil then
  4653.  
  4654. local Animate2 = Animate:Clone()
  4655.  
  4656. Animate:Remove()
  4657.  
  4658. Animate2.Parent = Character
  4659.  
  4660. end
  4661.  
  4662. end
  4663.  
  4664. else
  4665.  
  4666. return false
  4667.  
  4668. end
  4669.  
  4670. return true, Format
  4671.  
  4672. end
  4673.  
  4674. table.insert(_G.RobloxAdvanced.Connections, Workspace.DescendantAdded:connect(_G.RobloxAdvanced.HookModelDeath))
  4675.  
  4676. table.insert(_G.RobloxAdvanced.Connections, game:GetService("Players").PlayerAdded:connect(_G.RobloxAdvanced.HookPlayerDeath))
  4677.  
  4678. for _, Players in pairs(game:GetService("Players"):GetPlayers()) do
  4679.  
  4680. _G.RobloxAdvanced.HookPlayerDeath(Players)
  4681.  
  4682. end
  4683.  
  4684. for _, Children in pairs(Workspace:GetChildren()) do
  4685.  
  4686. _G.RobloxAdvanced.HookModelDeath(Children)
  4687.  
  4688. end
  4689.  
  4690. end))
  4691. Script90.Name = "BloodScript"
  4692. Script90.Parent = Tool0
  4693. table.insert(cors,sandbox(Script90,function()
  4694. function onPlayerDied(dead)
  4695. local h = script.Parent.Humanoid
  4696. if (h.Health==0) then
  4697. local head = script.Parent.Head
  4698. local blood1 = Instance.new("Part")
  4699. blood1.BrickColor = BrickColor.new(21)
  4700. blood1.formFactor = 2
  4701. blood1.Size = Vector3.new(1, 0.4, 1)
  4702. blood1.Position = head.Position
  4703. blood1.Name = "Blood"
  4704. blood1.Parent = script.Parent
  4705. local blood2 = Instance.new("Part")
  4706. blood2.BrickColor = BrickColor.new(21)
  4707. blood2.formFactor = 2
  4708. blood2.Size = Vector3.new(1, 0.4, 1)
  4709. blood2.Position = head.Position
  4710. blood2.Name = "Blood"
  4711. blood2.Parent = script.Parent
  4712. local blood3 = Instance.new("Part")
  4713. blood3.BrickColor = BrickColor.new(21)
  4714. blood3.formFactor = 2
  4715. blood3.Size = Vector3.new(1, 0.4, 1)
  4716. blood3.Position = head.Position
  4717. blood3.Name = "Blood"
  4718. blood3.Parent = script.Parent
  4719. local blood4 = Instance.new("Part")
  4720. blood4.BrickColor = BrickColor.new(21)
  4721. blood4.formFactor = 2
  4722. blood4.Size = Vector3.new(1, 0.4, 1)
  4723. blood4.Position = head.Position
  4724. blood4.Name = "Blood"
  4725. blood4.Parent = script.Parent
  4726.  
  4727. end
  4728. end
  4729.  
  4730. script.Parent.Humanoid.Died:connect(onPlayerDied)
  4731.  
  4732. end))
  4733. Script91.Name = "Ragdoll"
  4734. Script91.Parent = Tool0
  4735. table.insert(cors,sandbox(Script91,function()
  4736. print("Hello world!")
  4737.  
  4738. Character = script.Parent
  4739. Humanoid = Character.Humanoid
  4740. Torso = Character.Torso
  4741.  
  4742. function OnDeath()
  4743. print("Death")
  4744. Humanoid.Parent = nil
  4745. if Torso then
  4746. local Head = Character:FindFirstChild("Head")
  4747. if Head then
  4748. local Neck = Instance.new("Weld")
  4749. Neck.Name = "Neck"
  4750. Neck.Part0 = Torso
  4751. Neck.Part1 = Head
  4752. Neck.C0 = CFrame.new(0, 1.5, 0)
  4753. Neck.C1 = CFrame.new()
  4754. Neck.Parent = Torso
  4755. end
  4756. local Limb = Character:FindFirstChild("Right Arm")
  4757. if Limb then
  4758.  
  4759. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  4760. local Joint = Instance.new("Glue")
  4761. Joint.Name = "RightShoulder"
  4762. Joint.Part0 = Torso
  4763. Joint.Part1 = Limb
  4764. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  4765. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  4766. Joint.Parent = Torso
  4767.  
  4768. local B = Instance.new("Part")
  4769. B.TopSurface = 0
  4770. B.BottomSurface = 0
  4771. B.formFactor = "Symmetric"
  4772. B.Size = Vector3.new(1, 1, 1)
  4773. B.Transparency = 1
  4774. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  4775. B.Parent = Character
  4776. local W = Instance.new("Weld")
  4777. W.Part0 = Limb
  4778. W.Part1 = B
  4779. W.C0 = CFrame.new(0, -0.5, 0)
  4780. W.Parent = Limb
  4781.  
  4782. end
  4783. local Limb = Character:FindFirstChild("Left Arm")
  4784. if Limb then
  4785.  
  4786. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  4787. local Joint = Instance.new("Glue")
  4788. Joint.Name = "LeftShoulder"
  4789. Joint.Part0 = Torso
  4790. Joint.Part1 = Limb
  4791. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  4792. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  4793. Joint.Parent = Torso
  4794.  
  4795. local B = Instance.new("Part")
  4796. B.TopSurface = 0
  4797. B.BottomSurface = 0
  4798. B.formFactor = "Symmetric"
  4799. B.Size = Vector3.new(1, 1, 1)
  4800. B.Transparency = 1
  4801. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  4802. B.Parent = Character
  4803. local W = Instance.new("Weld")
  4804. W.Part0 = Limb
  4805. W.Part1 = B
  4806. W.C0 = CFrame.new(0, -0.5, 0)
  4807. W.Parent = Limb
  4808.  
  4809. end
  4810. local Limb = Character:FindFirstChild("Right Leg")
  4811. if Limb then
  4812.  
  4813. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  4814. local Joint = Instance.new("Glue")
  4815. Joint.Name = "RightHip"
  4816. Joint.Part0 = Torso
  4817. Joint.Part1 = Limb
  4818. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  4819. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  4820. Joint.Parent = Torso
  4821.  
  4822. local B = Instance.new("Part")
  4823. B.TopSurface = 0
  4824. B.BottomSurface = 0
  4825. B.formFactor = "Symmetric"
  4826. B.Size = Vector3.new(1, 1, 1)
  4827. B.Transparency = 1
  4828. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  4829. B.Parent = Character
  4830. local W = Instance.new("Weld")
  4831. W.Part0 = Limb
  4832. W.Part1 = B
  4833. W.C0 = CFrame.new(0, -0.5, 0)
  4834. W.Parent = Limb
  4835.  
  4836. end
  4837. local Limb = Character:FindFirstChild("Left Leg")
  4838. if Limb then
  4839.  
  4840. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  4841. local Joint = Instance.new("Glue")
  4842. Joint.Name = "LeftHip"
  4843. Joint.Part0 = Torso
  4844. Joint.Part1 = Limb
  4845. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  4846. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  4847. Joint.Parent = Torso
  4848.  
  4849. local B = Instance.new("Part")
  4850. B.TopSurface = 0
  4851. B.BottomSurface = 0
  4852. B.formFactor = "Symmetric"
  4853. B.Size = Vector3.new(1, 1, 1)
  4854. B.Transparency = 1
  4855. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  4856. B.Parent = Character
  4857. local W = Instance.new("Weld")
  4858. W.Part0 = Limb
  4859. W.Part1 = B
  4860. W.C0 = CFrame.new(0, -0.5, 0)
  4861. W.Parent = Limb
  4862.  
  4863. end
  4864. --[
  4865. local Bar = Instance.new("Part")
  4866. Bar.TopSurface = 0
  4867. Bar.BottomSurface = 0
  4868. Bar.formFactor = "Symmetric"
  4869. Bar.Size = Vector3.new(1, 1, 1)
  4870. Bar.Transparency = 1
  4871. Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  4872. Bar.Parent = Character
  4873. local Weld = Instance.new("Weld")
  4874. Weld.Part0 = Torso
  4875. Weld.Part1 = Bar
  4876. Weld.C0 = CFrame.new(0, 0.5, 0)
  4877. Weld.Parent = Torso
  4878. --]]
  4879. end
  4880. end
  4881.  
  4882. Humanoid.Died:connect(OnDeath)
  4883.  
  4884. end))
  4885. Script92.Name = "RagdollInitializer"
  4886. Script92.Parent = Tool0
  4887. table.insert(cors,sandbox(Script92,function()
  4888. print("Bouyer's Ragdoll Physics Loaded")
  4889. function OnEntered(Player)
  4890. while Player.Character == nil do -- Notice it does not use break.
  4891. wait()
  4892. end
  4893. wait(1)
  4894. Player.Changed:connect(function(Property)
  4895. if Property == "Character" then
  4896. if Player.Character then
  4897. local Mods = script:GetChildren()
  4898. for X = 1, # Mods do
  4899. if Mods[X].className == "Script" or Mods[X].className == "LocalScript" then
  4900. local S = Mods[X]:Clone()
  4901. S.Disabled = false
  4902. S.Parent = Player.Character
  4903. end
  4904. end
  4905. end
  4906. end
  4907. end)
  4908. local Mods = script:GetChildren()
  4909. for X = 1, # Mods do
  4910. if Mods[X].className == "Script" or Mods[X].className == "LocalScript" then
  4911. local S = Mods[X]:Clone()
  4912. S.Disabled = false
  4913. S.Parent = Player.Character
  4914. end
  4915. end
  4916. end
  4917. game.Players.ChildAdded:connect(OnEntered)
  4918. end))
  4919. Script93.Name = "Ragdoll"
  4920. Script93.Parent = Script92
  4921. table.insert(cors,sandbox(Script93,function()
  4922. print("Hello world!")
  4923.  
  4924. Character = script.Parent
  4925. Humanoid = Character.Humanoid
  4926. Torso = Character.Torso
  4927.  
  4928. function OnDeath()
  4929. print("Death")
  4930. Humanoid.Parent = nil
  4931. if Torso then
  4932. local Head = Character:FindFirstChild("Head")
  4933. if Head then
  4934. local Neck = Instance.new("Weld")
  4935. Neck.Name = "Neck"
  4936. Neck.Part0 = Torso
  4937. Neck.Part1 = Head
  4938. Neck.C0 = CFrame.new(0, 1.5, 0)
  4939. Neck.C1 = CFrame.new()
  4940. Neck.Parent = Torso
  4941. end
  4942. local Limb = Character:FindFirstChild("Right Arm")
  4943. if Limb then
  4944.  
  4945. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  4946. local Joint = Instance.new("Glue")
  4947. Joint.Name = "RightShoulder"
  4948. Joint.Part0 = Torso
  4949. Joint.Part1 = Limb
  4950. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  4951. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  4952. Joint.Parent = Torso
  4953.  
  4954. local B = Instance.new("Part")
  4955. B.TopSurface = 0
  4956. B.BottomSurface = 0
  4957. B.formFactor = "Symmetric"
  4958. B.Size = Vector3.new(1, 1, 1)
  4959. B.Transparency = 1
  4960. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  4961. B.Parent = Character
  4962. local W = Instance.new("Weld")
  4963. W.Part0 = Limb
  4964. W.Part1 = B
  4965. W.C0 = CFrame.new(0, -0.5, 0)
  4966. W.Parent = Limb
  4967.  
  4968. end
  4969. local Limb = Character:FindFirstChild("Left Arm")
  4970. if Limb then
  4971.  
  4972. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  4973. local Joint = Instance.new("Glue")
  4974. Joint.Name = "LeftShoulder"
  4975. Joint.Part0 = Torso
  4976. Joint.Part1 = Limb
  4977. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  4978. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  4979. Joint.Parent = Torso
  4980.  
  4981. local B = Instance.new("Part")
  4982. B.TopSurface = 0
  4983. B.BottomSurface = 0
  4984. B.formFactor = "Symmetric"
  4985. B.Size = Vector3.new(1, 1, 1)
  4986. B.Transparency = 1
  4987. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  4988. B.Parent = Character
  4989. local W = Instance.new("Weld")
  4990. W.Part0 = Limb
  4991. W.Part1 = B
  4992. W.C0 = CFrame.new(0, -0.5, 0)
  4993. W.Parent = Limb
  4994.  
  4995. end
  4996. local Limb = Character:FindFirstChild("Right Leg")
  4997. if Limb then
  4998.  
  4999. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  5000. local Joint = Instance.new("Glue")
  5001. Joint.Name = "RightHip"
  5002. Joint.Part0 = Torso
  5003. Joint.Part1 = Limb
  5004. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  5005. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  5006. Joint.Parent = Torso
  5007.  
  5008. local B = Instance.new("Part")
  5009. B.TopSurface = 0
  5010. B.BottomSurface = 0
  5011. B.formFactor = "Symmetric"
  5012. B.Size = Vector3.new(1, 1, 1)
  5013. B.Transparency = 1
  5014. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  5015. B.Parent = Character
  5016. local W = Instance.new("Weld")
  5017. W.Part0 = Limb
  5018. W.Part1 = B
  5019. W.C0 = CFrame.new(0, -0.5, 0)
  5020. W.Parent = Limb
  5021.  
  5022. end
  5023. local Limb = Character:FindFirstChild("Left Leg")
  5024. if Limb then
  5025.  
  5026. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  5027. local Joint = Instance.new("Glue")
  5028. Joint.Name = "LeftHip"
  5029. Joint.Part0 = Torso
  5030. Joint.Part1 = Limb
  5031. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  5032. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  5033. Joint.Parent = Torso
  5034.  
  5035. local B = Instance.new("Part")
  5036. B.TopSurface = 0
  5037. B.BottomSurface = 0
  5038. B.formFactor = "Symmetric"
  5039. B.Size = Vector3.new(1, 1, 1)
  5040. B.Transparency = 1
  5041. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  5042. B.Parent = Character
  5043. local W = Instance.new("Weld")
  5044. W.Part0 = Limb
  5045. W.Part1 = B
  5046. W.C0 = CFrame.new(0, -0.5, 0)
  5047. W.Parent = Limb
  5048.  
  5049. end
  5050. --[
  5051. local Bar = Instance.new("Part")
  5052. Bar.TopSurface = 0
  5053. Bar.BottomSurface = 0
  5054. Bar.formFactor = "Symmetric"
  5055. Bar.Size = Vector3.new(1, 1, 1)
  5056. Bar.Transparency = 1
  5057. Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  5058. Bar.Parent = Character
  5059. local Weld = Instance.new("Weld")
  5060. Weld.Part0 = Torso
  5061. Weld.Part1 = Bar
  5062. Weld.C0 = CFrame.new(0, 0.5, 0)
  5063. Weld.Parent = Torso
  5064. --]]
  5065. end
  5066. end
  5067.  
  5068. Humanoid.Died:connect(OnDeath)
  5069.  
  5070. end))
  5071. NumberValue94.Name = "Ammo"
  5072. NumberValue94.Parent = Tool0
  5073. NumberValue94.Value = 10000
  5074. NumberValue95.Name = "BulletSpeed"
  5075. NumberValue95.Parent = Tool0
  5076. NumberValue95.Value = 800
  5077. StringValue96.Name = "BulletType"
  5078. StringValue96.Parent = Tool0
  5079. StringValue96.Value = "5.45x39mm"
  5080. NumberValue97.Name = "GLAmmo"
  5081. NumberValue97.Parent = Tool0
  5082. NumberValue97.Value = 10000
  5083. StringValue98.Name = "GName"
  5084. StringValue98.Parent = Tool0
  5085. StringValue98.Value = "AK74m"
  5086. NumberValue99.Name = "MagSize"
  5087. NumberValue99.Parent = Tool0
  5088. NumberValue99.Value = 30
  5089. NumberValue100.Name = "Mags"
  5090. NumberValue100.Parent = Tool0
  5091. NumberValue100.Value = 90
  5092. NumberValue101.Name = "RPM"
  5093. NumberValue101.Parent = Tool0
  5094. NumberValue101.Value = 545
  5095. StringValue102.Name = "Type"
  5096. StringValue102.Parent = Tool0
  5097. StringValue102.Value = "Primary"
  5098. Script103.Name = "Weld"
  5099. Script103.Parent = Tool0
  5100. table.insert(cors,sandbox(Script103,function()
  5101. function Weld(x,y,Name)
  5102. local W = Instance.new("Weld")
  5103. W.Name = Name
  5104. W.Part0 = x
  5105. W.Part1 = y
  5106. local CJ = CFrame.new(x.Position)
  5107. local C0 = x.CFrame:inverse()*CJ
  5108. local C1 = y.CFrame:inverse()*CJ
  5109. W.C0 = C0
  5110. W.C1 = C1
  5111. W.Parent = x
  5112. end
  5113.  
  5114.  
  5115.  
  5116. function Get(A)
  5117. if A.Name == "Slide" then
  5118. Weld(script.Parent.Handle, A,"Slide")
  5119. A.Anchored = false
  5120. elseif A.className == "Part" or A.className == "UnionOperation" or A.className == "MeshPart" and not A.Name == "Bolt" then
  5121. Weld(script.Parent.Handle, A,"Weld")
  5122. A.Anchored = false
  5123. else
  5124. local C = A:GetChildren()
  5125. for i=1, #C do
  5126. Get(C[i])
  5127. end
  5128. end
  5129. end
  5130.  
  5131. function Finale()
  5132. Get(script.Parent)
  5133. end
  5134.  
  5135.  
  5136.  
  5137. Finale()
  5138. end))
  5139. LocalScript104.Parent = Tool0
  5140. table.insert(cors,sandbox(LocalScript104,function()
  5141.  
  5142. wait(1)
  5143. --Warning if You removed this,You're head wont follow to the Camera, I made it seperately cuz to prevent lag(Hope so)
  5144. local Player = game.Players.LocalPlayer
  5145. local Character = Player.Character
  5146. local Humanoid = Character.Humanoid
  5147. local Mouse = Player:GetMouse()
  5148. local Tool = script.Parent
  5149. local Camera = game.Workspace.CurrentCamera
  5150.  
  5151. local Equipped = false
  5152.  
  5153. local RA = Character:WaitForChild("Right Arm")
  5154. local LA = Character:WaitForChild("Left Arm")
  5155. local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
  5156.  
  5157. local Torso = Character:WaitForChild("Torso")
  5158. local Neck = Torso["Neck"]
  5159. local FRA
  5160. local FLA
  5161. local FRW
  5162. local FLW
  5163.  
  5164. function MakeArmModel()
  5165. arms = Instance.new("Model", Camera)
  5166. arms.Name = "Arms"
  5167. end
  5168.  
  5169. function RemoveArmModel()
  5170. arms:Destroy()
  5171. end
  5172.  
  5173.  
  5174. -- Making the FakeArms
  5175. function MakeFakeArms()
  5176. FRA = RA:clone()
  5177. FRA.Parent = arms
  5178. FRA.Name = "Right Arm"
  5179. FRA.FormFactor = "Custom"
  5180. FRA.Size = Vector3.new(0.6,1.9,0.6)
  5181. FRA.Transparency = 0
  5182. FRA.Anchored = false
  5183.  
  5184. FRW = Instance.new("Motor6D")
  5185. FRW.Part0 = FRA
  5186. FRW.Part1 = RA
  5187. FRW.Parent = FRA
  5188. FRW.C0 = CFrame.new(0.2,0,0.2)
  5189. FRW.C1 = CFrame.new()
  5190.  
  5191. FLA = LA:clone()
  5192. FLA.Parent = arms
  5193. FLA.Name = "Left Arm"
  5194. FLA.FormFactor = "Custom"
  5195. FLA.Size = Vector3.new(0.6,1.9,0.6)
  5196. FLA.Transparency = 0
  5197. FLA.Anchored = false
  5198.  
  5199. FLW = Instance.new("Motor6D")
  5200. FLW.Part0 = FLA
  5201. FLW.Part1 = LA
  5202. FLW.Parent = FLA
  5203. FLW.C0 = CFrame.new(-0.2,0,0.2)
  5204. FLW.C1 = CFrame.new()
  5205. end
  5206.  
  5207. function RemoveFakeArms()
  5208. FRA:Destroy()
  5209. FLA:Destroy()
  5210. end
  5211.  
  5212.  
  5213. -- Making Arm Model Stuff
  5214. function MakeArmStuff()
  5215. local Human = Instance.new("Humanoid")
  5216. Human.MaxHealth = 0
  5217. Human.Health = 0
  5218. Human.Name = ""
  5219. Human.Parent = arms
  5220.  
  5221. local newShirt = Character:WaitForChild("Shirt"):clone()
  5222. newShirt.Parent = arms
  5223. end
  5224.  
  5225. Tool.Equipped:connect(function()
  5226. Equipped = true
  5227. MakeArmModel()
  5228. MakeFakeArms()
  5229. MakeArmStuff()
  5230. game:GetService("RunService").RenderStepped:connect(function()
  5231. if Equipped then
  5232. local HRPCF = HumanoidRootPart.CFrame * CFrame.new(0, 1.5, 0)* CFrame.new(Humanoid.CameraOffset)
  5233. Neck.C0 = Torso.CFrame:toObjectSpace(HRPCF)
  5234. Neck.C1 = CFrame.Angles(-math.asin(Camera.CoordinateFrame.lookVector.y), 0, 0)
  5235. end
  5236. end)
  5237. end)
  5238.  
  5239. Tool.Unequipped:connect(function()
  5240. Equipped = false
  5241. RemoveArmModel()
  5242. RemoveFakeArms()
  5243. Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  5244. Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  5245. end)
  5246.  
  5247.  
  5248. end))
  5249. LocalScript105.Parent = Tool0
  5250. table.insert(cors,sandbox(LocalScript105,function()
  5251. repeat wait() until game.Players.LocalPlayer.Character
  5252. repeat wait(1) until game.Players.LocalPlayer.Character:IsDescendantOf(game.Workspace)
  5253. wait(4 / 20)
  5254.  
  5255. local Player = game.Players.LocalPlayer
  5256. local player = game.Players.LocalPlayer
  5257. local Character = Player.Character
  5258. local char = Player.Character
  5259. local Humanoid = Character.Humanoid
  5260. local Mouse = Player:GetMouse()
  5261. local mouse = Player:GetMouse()
  5262.  
  5263. local Camera = game.Workspace.CurrentCamera
  5264.  
  5265. local HumanoidRootPart = Character.HumanoidRootPart
  5266.  
  5267. local Torso = Character.Torso
  5268. local Neck = Torso:WaitForChild("Neck")
  5269.  
  5270. game.Players.LocalPlayer.CameraMaxZoomDistance = 15
  5271. game.Players.LocalPlayer.CameraMinZoomDistance = 0
  5272.  
  5273. local NightVision = false
  5274.  
  5275.  
  5276. local AltPressed = false
  5277.  
  5278. local Stances = 0
  5279. _G.SteadyStance = false
  5280. _G.LeanR = 0
  5281. _G.LeanL = 0
  5282.  
  5283. local RAW
  5284. local LAW
  5285. ----------------
  5286. local RootPart = char:WaitForChild("HumanoidRootPart")
  5287. local RootJoint = RootPart.RootJoint
  5288. RootJoint.C0 = CFrame.new()
  5289. RootJoint.C1 = CFrame.new()
  5290.  
  5291. local Aiming = false
  5292.  
  5293. local ZoomDistance = 40
  5294.  
  5295. local NV
  5296.  
  5297. ----------------
  5298.  
  5299. ---------------------------------------------------------------------------------------
  5300. ---------------- [ Tween Module ] --------------------------------------------------------
  5301. ---------------------------------------------------------------------------------------
  5302.  
  5303.  
  5304. --[[
  5305.  
  5306. tweenJoint Function Parameters:
  5307.  
  5308. Object Joint - This has to be a weld with a C0 and C1 property
  5309.  
  5310. CFrame newC0 - This is what the new C0 of the weld will be. You can put nil if you don't want to effect the C0
  5311.  
  5312. CFrame newC1 - This is what the new C1 of the weld will be. You can put nil if you don't want to effect the C1
  5313.  
  5314. function Alpha - This is an alpha function that takes an input parameter of a number between 0 and 90 and returns a number between 0 and 1.
  5315. For example, function(X) return math.sin(math.rad(X)) end
  5316.  
  5317. float Duration - This is how long the tweening takes to complete
  5318.  
  5319. --]]
  5320. local RS = game:GetService("RunService")
  5321.  
  5322.  
  5323.  
  5324. function tweenJoint(Joint, newC0, newC1, Alpha, Duration)
  5325. spawn(function()
  5326. local newCode = math.random(-1e9, 1e9) --This creates a random code between -1000000000 and 1000000000
  5327. local tweenIndicator = nil
  5328. if (not Joint:findFirstChild("tweenCode")) then --If the joint isn't being tweened, then
  5329. tweenIndicator = Instance.new("IntValue")
  5330. tweenIndicator.Name = "tweenCode"
  5331. tweenIndicator.Value = newCode
  5332. tweenIndicator.Parent = Joint
  5333. else
  5334. tweenIndicator = Joint.tweenCode
  5335. tweenIndicator.Value = newCode --If the joint is already being tweened, this will change the code, and the tween loop will stop
  5336. end
  5337. if Duration <= 0 then --If the duration is less than or equal to 0 then there's no need for a tweening loop
  5338. if newC0 then Joint.C0 = newC0 end
  5339. if newC1 then Joint.C1 = newC1 end
  5340. else
  5341. local Increment = 1.5 / Duration --Calculate the increment here so it doesn't need to be calculated in the loop
  5342. local startC0 = Joint.C0
  5343. local startC1 = Joint.C1
  5344. local X = 0
  5345. while true do
  5346. RS.RenderStepped:wait() --This makes the for loop step every 1/60th of a second
  5347. local newX = X + Increment
  5348. X = (newX > 90 and 90 or newX) --Makes sure the X never goes above 90
  5349. if tweenIndicator.Value ~= newCode then break end --This makes sure that another tween wasn't called on the same joint
  5350. if newC0 then Joint.C0 = startC0:lerp(newC0, Alpha(X)) end
  5351. if newC1 then Joint.C1 = startC1:lerp(newC1, Alpha(X)) end
  5352. if X == 90 then break end --If the tweening is done...
  5353. end
  5354. end
  5355. if tweenIndicator.Value == newCode then --If this tween functions was the last one called on a joint then it will remove the code
  5356. tweenIndicator:Destroy()
  5357. end
  5358. end)
  5359. end
  5360.  
  5361. function CreateWeld(Part, CF)
  5362. local w = Instance.new("Weld")
  5363. w.Name = "LegWeld"
  5364. w.Parent = Torso
  5365. w.Part0 = Torso
  5366. w.Part1 = Part
  5367.  
  5368. tweenJoint(w, nil, CF, function(X) return math.sin(math.rad(X)) end, 0.25)
  5369. end
  5370.  
  5371. ----------------------------------------------
  5372. local RS = Torso["Right Shoulder"]
  5373. local LS = Torso["Left Shoulder"]
  5374. local RH = char["Torso"]:WaitForChild("Right Hip")
  5375. local LH = char["Torso"]:WaitForChild("Left Hip")
  5376. local LeftLeg = char["Left Leg"]
  5377. local RightLeg = char["Right Leg"]
  5378. local Proned2
  5379.  
  5380.  
  5381.  
  5382. function TweenCOffset(CO, t)
  5383. coroutine.resume(coroutine.create(function()
  5384. COn = COn and COn + 1 or 0 local COn_S = COn
  5385. for i = 1, t do
  5386. if COn ~= COn_S then break end
  5387. char.Humanoid.CameraOffset = char.Humanoid.CameraOffset + (CO - char.Humanoid.CameraOffset) * (i / t)
  5388. game:GetService("RunService").RenderStepped:wait()
  5389. end
  5390. end))
  5391. end
  5392.  
  5393. function TweenTransparency(Part,Trans, t)
  5394. coroutine.resume(coroutine.create(function()
  5395. COn = COn and COn + 1 or 0 local COn_S = COn
  5396. for i = 1, t do
  5397. if COn ~= COn_S then break end
  5398. Part.Transparency = Part.Transparency + (Trans - Part.Transparency) * (i / t)
  5399. game:GetService("RunService").RenderStepped:wait()
  5400. end
  5401. end))
  5402. end
  5403.  
  5404. function TweenColor(Part,Color, t)
  5405. coroutine.resume(coroutine.create(function()
  5406. COn = COn and COn + 1 or 0 local COn_S = COn
  5407. for i = 1, t do
  5408. if COn ~= COn_S then break end
  5409. Part.BrickColor = Part.BrickColor + (Color - Part.BrickColor) * (i / t)
  5410. game:GetService("RunService").RenderStepped:wait()
  5411. end
  5412. end))
  5413. end
  5414.  
  5415. function Stand()
  5416.  
  5417. TweenCOffset(Vector3.new(0,0,0), 20)
  5418. Humanoid.WalkSpeed = 16
  5419. Humanoid.JumpPower = 30
  5420.  
  5421. IsStanced = false
  5422.  
  5423. LH.Part1 = LeftLeg
  5424. RH.Part1 = RightLeg
  5425.  
  5426. Proned2 = Vector3.new(0,0,0)
  5427. tweenJoint(RootJoint, CFrame.new()* CFrame.Angles(math.rad(-0),0,math.rad(0)), CFrame.new(0,0,0), function(X) return math.sin(math.rad(X)) end, 0.25)
  5428. tweenJoint(RH, CFrame.new(1,-1,0)* CFrame.Angles(math.rad(-0),math.rad(90),math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5429. tweenJoint(LH, CFrame.new(-1,-1,0)* CFrame.Angles(math.rad(-0),math.rad(-90),math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5430. tweenJoint(RS, CFrame.new(1,0.5,0)* CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5431. tweenJoint(LS, CFrame.new(-1,0.5,0)* CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5432. for i, s in pairs(Torso:GetChildren()) do
  5433. if (s.Name == "LegWeld") and (s.ClassName == "Weld") then
  5434. s:Destroy()
  5435. end
  5436. end
  5437. end
  5438.  
  5439. function StandEquip()
  5440.  
  5441. TweenCOffset(Vector3.new(0,0,0), 20)
  5442. Humanoid.WalkSpeed = 12
  5443. Humanoid.JumpPower = 25
  5444. IsStanced = false
  5445.  
  5446. LH.Part1 = LeftLeg
  5447. RH.Part1 = RightLeg
  5448.  
  5449. Proned2 = Vector3.new(0,0,0)
  5450. tweenJoint(RootJoint, CFrame.new(0,0,0.275)* CFrame.Angles(math.rad(-10),0,math.rad(0)), CFrame.new(0,0,0), function(X) return math.sin(math.rad(X)) end, 0.25)
  5451. tweenJoint(RH, CFrame.new(1,-1,-0.15)* CFrame.Angles(math.rad(20),math.rad(90),math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5452. tweenJoint(LH, CFrame.new(-1,-1,-0.2)* CFrame.Angles(math.rad(-10),math.rad(-90),math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5453. tweenJoint(RS, CFrame.new(1,0.5,0)* CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5454. tweenJoint(LS, CFrame.new(-1,0.5,0)* CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5455. for i, s in pairs(Torso:GetChildren()) do
  5456. if (s.Name == "LegWeld") and (s.ClassName == "Weld") then
  5457. s:Destroy()
  5458. end
  5459. end
  5460.  
  5461. end
  5462.  
  5463.  
  5464.  
  5465. function Crouch()
  5466.  
  5467. TweenCOffset(Vector3.new(0, -1,0), 20)
  5468. Humanoid.WalkSpeed = 8
  5469. Humanoid.JumpPower = 10
  5470. for i, s in pairs(Torso:GetChildren()) do
  5471. if (s.Name == "LegWeld") and (s.ClassName == "Weld") then
  5472. s:Destroy()
  5473. end
  5474. end
  5475. IsStanced = true
  5476. RH.Part1 = RightLeg
  5477. LH.Part1 = LeftLeg
  5478. Proned2 = Vector3.new(0,0,0)
  5479. tweenJoint(RootJoint, CFrame.new(0,-1,0.25)* CFrame.Angles(math.rad(-10),0,math.rad(0)), CFrame.new(0,0,0), function(X) return math.sin(math.rad(X)) end, 0.25)
  5480. tweenJoint(RH, CFrame.new(1,-0.35,-0.65)* CFrame.Angles(math.rad(-20),math.rad(90),math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5481. tweenJoint(LH, CFrame.new(-1,-1.25,-0.625)* CFrame.Angles(math.rad(-60),math.rad(-90),math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5482. tweenJoint(RS, CFrame.new(1,0.5,0)* CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5483. tweenJoint(LS, CFrame.new(-1,0.5,0)* CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5484.  
  5485. end
  5486.  
  5487. function Prone()
  5488.  
  5489. TweenCOffset(Vector3.new(0, -3.25, 0), 20)
  5490. Humanoid.WalkSpeed = 4
  5491. Humanoid.JumpPower = 0
  5492. IsStanced = true
  5493. RH.Part1 = nil
  5494. LH.Part1 = nil
  5495. Proned2 = Vector3.new(0,0.5,0.5)
  5496. tweenJoint(RootJoint, CFrame.new(0,-2.5,1.35)* CFrame.Angles(math.rad(-90),0,math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5497. tweenJoint(RS, CFrame.new(0.9,1.1,0)* CFrame.Angles(math.rad(-180),math.rad(90),math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5498. tweenJoint(LS, CFrame.new(-0.9,1.1,0)* CFrame.Angles(math.rad(-180),math.rad(-90),math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5499.  
  5500. CreateWeld(RightLeg, CFrame.new(-0.2,1.85,0)* CFrame.Angles(math.rad(-0),0,math.rad(-20)))
  5501. CreateWeld(LeftLeg, CFrame.new(0.2,1.85,0)* CFrame.Angles(math.rad(-0),0,math.rad(20)))
  5502. end
  5503.  
  5504. local AlreadyProned = false
  5505.  
  5506. mouse.KeyDown:connect(function(Key)
  5507. if Key == "c" and Stances == 0 and not _G.Sprinting and not _G.Lean then
  5508. Stances = 1
  5509. Crouch()
  5510.  
  5511. _G.Crouched = true
  5512. elseif Key == "c" and Stances == 1 and not _G.Sprinting and not _G.Lean then
  5513. Stances = 2
  5514. Prone()
  5515.  
  5516. _G.Crouched = false
  5517. _G.Proned = true
  5518.  
  5519. elseif Key == "x" and Stances == 2 and not _G.Sprinting and not _G.Lean then
  5520. _G.Crouched = true
  5521. _G.Proned = false
  5522. Stances = 1
  5523. Crouch()
  5524.  
  5525.  
  5526. elseif Key == "x" and Stances == 1 and not _G.Sprinting and not _G.Lean then
  5527. _G.Crouched = false
  5528.  
  5529.  
  5530. Stances = 0
  5531. if not _G.SteadyStance then
  5532. Stand()
  5533. elseif _G.SteadyStance then
  5534. StandEquip()
  5535. end
  5536.  
  5537. end
  5538.  
  5539. if Key == "z" and not _G.SteadyStance and Stances == 0 then
  5540. if not _G.Lean and Stances == 0 then
  5541. StandEquip()
  5542. end
  5543. _G.SteadyStance = true
  5544. elseif Key == "z" and _G.SteadyStance and Stances == 0 then
  5545. if not _G.Lean and Stances == 0 then
  5546. Stand()
  5547.  
  5548. end
  5549. _G.SteadyStance = false
  5550. end
  5551.  
  5552. if Key:byte() == 308 or Key:byte() == 307 then
  5553. AltPressed = true
  5554. print("Alt pressed")
  5555. end
  5556.  
  5557.  
  5558. end)
  5559.  
  5560. mouse.KeyUp:connect(function(Key)
  5561. if Key:byte() == 308 then
  5562. AltPressed = false
  5563. end
  5564. end)
  5565.  
  5566. Stand()
  5567.  
  5568. -------------Motor6Ding Section------------------------
  5569.  
  5570. Character.Humanoid.Died:connect(function()
  5571. Stand()
  5572. _G.Proned = false
  5573. _G.Crouched = false
  5574. _G.Sprinting = false
  5575. Player.TeamColor = BrickColor.new("Deep blue")
  5576. end)
  5577.  
  5578.  
  5579.  
  5580. game:GetService("RunService").RenderStepped:connect(function()
  5581. Mouse.TargetFilter = game.Workspace
  5582.  
  5583.  
  5584. if Aiming then
  5585. game:GetService('UserInputService').MouseDeltaSensitivity = Player.PlayerGui:WaitForChild("ScreenGui").Frame.Sensitivity.Text
  5586. else
  5587. game:GetService('UserInputService').MouseDeltaSensitivity = 1
  5588. end
  5589.  
  5590. Mouse.Button2Down:connect(function()
  5591. if not Aiming then
  5592. Aiming = true
  5593. end
  5594. end)
  5595. Mouse.Button2Up:connect(function()
  5596. if Aiming then
  5597. Aiming = false
  5598. end
  5599. end)
  5600.  
  5601. end)
  5602.  
  5603.  
  5604. end))
  5605. LocalScript106.Parent = Tool0
  5606. table.insert(cors,sandbox(LocalScript106,function()
  5607. repeat wait() until game.Players.LocalPlayer.Character
  5608. repeat wait(1) until game.Players.LocalPlayer.Character:IsDescendantOf(game.Workspace)
  5609. wait(4 / 20)
  5610.  
  5611. local Player = game.Players.LocalPlayer
  5612. local player = game.Players.LocalPlayer
  5613. local Character = Player.Character
  5614. local char = Player.Character
  5615. local Humanoid = Character.Humanoid
  5616. local Mouse = Player:GetMouse()
  5617. local mouse = Player:GetMouse()
  5618.  
  5619. local Camera = game.Workspace.CurrentCamera
  5620.  
  5621. local HumanoidRootPart = Character.HumanoidRootPart
  5622.  
  5623. local Torso = Character.Torso
  5624. local Neck = Torso:WaitForChild("Neck")
  5625.  
  5626. game.Players.LocalPlayer.CameraMaxZoomDistance = 15
  5627. game.Players.LocalPlayer.CameraMinZoomDistance = 0
  5628.  
  5629. local NightVision = false
  5630.  
  5631.  
  5632. local AltPressed = false
  5633.  
  5634. local Stances = 0
  5635. _G.SteadyStance = false
  5636. _G.LeanR = 0
  5637. _G.LeanL = 0
  5638.  
  5639. local RAW
  5640. local LAW
  5641. ----------------
  5642. local RootPart = char:WaitForChild("HumanoidRootPart")
  5643. local RootJoint = RootPart.RootJoint
  5644. RootJoint.C0 = CFrame.new()
  5645. RootJoint.C1 = CFrame.new()
  5646.  
  5647. local Aiming = false
  5648.  
  5649. local ZoomDistance = 40
  5650.  
  5651. local NV
  5652.  
  5653. ----------------
  5654.  
  5655. ---------------------------------------------------------------------------------------
  5656. ---------------- [ Tween Module ] --------------------------------------------------------
  5657. ---------------------------------------------------------------------------------------
  5658.  
  5659.  
  5660. --[[
  5661.  
  5662. tweenJoint Function Parameters:
  5663.  
  5664. Object Joint - This has to be a weld with a C0 and C1 property
  5665.  
  5666. CFrame newC0 - This is what the new C0 of the weld will be. You can put nil if you don't want to effect the C0
  5667.  
  5668. CFrame newC1 - This is what the new C1 of the weld will be. You can put nil if you don't want to effect the C1
  5669.  
  5670. function Alpha - This is an alpha function that takes an input parameter of a number between 0 and 90 and returns a number between 0 and 1.
  5671. For example, function(X) return math.sin(math.rad(X)) end
  5672.  
  5673. float Duration - This is how long the tweening takes to complete
  5674.  
  5675. --]]
  5676. local RS = game:GetService("RunService")
  5677.  
  5678.  
  5679.  
  5680. function tweenJoint(Joint, newC0, newC1, Alpha, Duration)
  5681. spawn(function()
  5682. local newCode = math.random(-1e9, 1e9) --This creates a random code between -1000000000 and 1000000000
  5683. local tweenIndicator = nil
  5684. if (not Joint:findFirstChild("tweenCode")) then --If the joint isn't being tweened, then
  5685. tweenIndicator = Instance.new("IntValue")
  5686. tweenIndicator.Name = "tweenCode"
  5687. tweenIndicator.Value = newCode
  5688. tweenIndicator.Parent = Joint
  5689. else
  5690. tweenIndicator = Joint.tweenCode
  5691. tweenIndicator.Value = newCode --If the joint is already being tweened, this will change the code, and the tween loop will stop
  5692. end
  5693. if Duration <= 0 then --If the duration is less than or equal to 0 then there's no need for a tweening loop
  5694. if newC0 then Joint.C0 = newC0 end
  5695. if newC1 then Joint.C1 = newC1 end
  5696. else
  5697. local Increment = 1.5 / Duration --Calculate the increment here so it doesn't need to be calculated in the loop
  5698. local startC0 = Joint.C0
  5699. local startC1 = Joint.C1
  5700. local X = 0
  5701. while true do
  5702. RS.RenderStepped:wait() --This makes the for loop step every 1/60th of a second
  5703. local newX = X + Increment
  5704. X = (newX > 90 and 90 or newX) --Makes sure the X never goes above 90
  5705. if tweenIndicator.Value ~= newCode then break end --This makes sure that another tween wasn't called on the same joint
  5706. if newC0 then Joint.C0 = startC0:lerp(newC0, Alpha(X)) end
  5707. if newC1 then Joint.C1 = startC1:lerp(newC1, Alpha(X)) end
  5708. if X == 90 then break end --If the tweening is done...
  5709. end
  5710. end
  5711. if tweenIndicator.Value == newCode then --If this tween functions was the last one called on a joint then it will remove the code
  5712. tweenIndicator:Destroy()
  5713. end
  5714. end)
  5715. end
  5716.  
  5717. function CreateWeld(Part, CF)
  5718. local w = Instance.new("Weld")
  5719. w.Name = "LegWeld"
  5720. w.Parent = Torso
  5721. w.Part0 = Torso
  5722. w.Part1 = Part
  5723.  
  5724. tweenJoint(w, nil, CF, function(X) return math.sin(math.rad(X)) end, 0.25)
  5725. end
  5726.  
  5727. ----------------------------------------------
  5728. local RS = Torso["Right Shoulder"]
  5729. local LS = Torso["Left Shoulder"]
  5730. local RH = char["Torso"]:WaitForChild("Right Hip")
  5731. local LH = char["Torso"]:WaitForChild("Left Hip")
  5732. local LeftLeg = char["Left Leg"]
  5733. local RightLeg = char["Right Leg"]
  5734. local Proned2
  5735.  
  5736.  
  5737.  
  5738. function TweenCOffset(CO, t)
  5739. coroutine.resume(coroutine.create(function()
  5740. COn = COn and COn + 1 or 0 local COn_S = COn
  5741. for i = 1, t do
  5742. if COn ~= COn_S then break end
  5743. char.Humanoid.CameraOffset = char.Humanoid.CameraOffset + (CO - char.Humanoid.CameraOffset) * (i / t)
  5744. game:GetService("RunService").RenderStepped:wait()
  5745. end
  5746. end))
  5747. end
  5748.  
  5749. function TweenTransparency(Part,Trans, t)
  5750. coroutine.resume(coroutine.create(function()
  5751. COn = COn and COn + 1 or 0 local COn_S = COn
  5752. for i = 1, t do
  5753. if COn ~= COn_S then break end
  5754. Part.Transparency = Part.Transparency + (Trans - Part.Transparency) * (i / t)
  5755. game:GetService("RunService").RenderStepped:wait()
  5756. end
  5757. end))
  5758. end
  5759.  
  5760. function TweenColor(Part,Color, t)
  5761. coroutine.resume(coroutine.create(function()
  5762. COn = COn and COn + 1 or 0 local COn_S = COn
  5763. for i = 1, t do
  5764. if COn ~= COn_S then break end
  5765. Part.BrickColor = Part.BrickColor + (Color - Part.BrickColor) * (i / t)
  5766. game:GetService("RunService").RenderStepped:wait()
  5767. end
  5768. end))
  5769. end
  5770.  
  5771. function Stand()
  5772.  
  5773. TweenCOffset(Vector3.new(0,0,0), 20)
  5774. Humanoid.WalkSpeed = 16
  5775. Humanoid.JumpPower = 30
  5776.  
  5777. IsStanced = false
  5778.  
  5779. LH.Part1 = LeftLeg
  5780. RH.Part1 = RightLeg
  5781.  
  5782. Proned2 = Vector3.new(0,0,0)
  5783. tweenJoint(RootJoint, CFrame.new()* CFrame.Angles(math.rad(-0),0,math.rad(0)), CFrame.new(0,0,0), function(X) return math.sin(math.rad(X)) end, 0.25)
  5784. tweenJoint(RH, CFrame.new(1,-1,0)* CFrame.Angles(math.rad(-0),math.rad(90),math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5785. tweenJoint(LH, CFrame.new(-1,-1,0)* CFrame.Angles(math.rad(-0),math.rad(-90),math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5786. tweenJoint(RS, CFrame.new(1,0.5,0)* CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5787. tweenJoint(LS, CFrame.new(-1,0.5,0)* CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5788. for i, s in pairs(Torso:GetChildren()) do
  5789. if (s.Name == "LegWeld") and (s.ClassName == "Weld") then
  5790. s:Destroy()
  5791. end
  5792. end
  5793. end
  5794.  
  5795. function StandEquip()
  5796.  
  5797. TweenCOffset(Vector3.new(0,0,0), 20)
  5798. Humanoid.WalkSpeed = 12
  5799. Humanoid.JumpPower = 25
  5800. IsStanced = false
  5801.  
  5802. LH.Part1 = LeftLeg
  5803. RH.Part1 = RightLeg
  5804.  
  5805. Proned2 = Vector3.new(0,0,0)
  5806. tweenJoint(RootJoint, CFrame.new(0,0,0.275)* CFrame.Angles(math.rad(-10),0,math.rad(0)), CFrame.new(0,0,0), function(X) return math.sin(math.rad(X)) end, 0.25)
  5807. tweenJoint(RH, CFrame.new(1,-1,-0.15)* CFrame.Angles(math.rad(20),math.rad(90),math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5808. tweenJoint(LH, CFrame.new(-1,-1,-0.2)* CFrame.Angles(math.rad(-10),math.rad(-90),math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5809. tweenJoint(RS, CFrame.new(1,0.5,0)* CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5810. tweenJoint(LS, CFrame.new(-1,0.5,0)* CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5811. for i, s in pairs(Torso:GetChildren()) do
  5812. if (s.Name == "LegWeld") and (s.ClassName == "Weld") then
  5813. s:Destroy()
  5814. end
  5815. end
  5816.  
  5817. end
  5818.  
  5819.  
  5820.  
  5821. function Crouch()
  5822.  
  5823. TweenCOffset(Vector3.new(0, -1,0), 20)
  5824. Humanoid.WalkSpeed = 8
  5825. Humanoid.JumpPower = 10
  5826. for i, s in pairs(Torso:GetChildren()) do
  5827. if (s.Name == "LegWeld") and (s.ClassName == "Weld") then
  5828. s:Destroy()
  5829. end
  5830. end
  5831. IsStanced = true
  5832. RH.Part1 = RightLeg
  5833. LH.Part1 = LeftLeg
  5834. Proned2 = Vector3.new(0,0,0)
  5835. tweenJoint(RootJoint, CFrame.new(0,-1,0.25)* CFrame.Angles(math.rad(-10),0,math.rad(0)), CFrame.new(0,0,0), function(X) return math.sin(math.rad(X)) end, 0.25)
  5836. tweenJoint(RH, CFrame.new(1,-0.35,-0.65)* CFrame.Angles(math.rad(-20),math.rad(90),math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5837. tweenJoint(LH, CFrame.new(-1,-1.25,-0.625)* CFrame.Angles(math.rad(-60),math.rad(-90),math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5838. tweenJoint(RS, CFrame.new(1,0.5,0)* CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5839. tweenJoint(LS, CFrame.new(-1,0.5,0)* CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5840.  
  5841. end
  5842.  
  5843. function Prone()
  5844.  
  5845. TweenCOffset(Vector3.new(0, -3.25, 0), 20)
  5846. Humanoid.WalkSpeed = 4
  5847. Humanoid.JumpPower = 0
  5848. IsStanced = true
  5849. RH.Part1 = nil
  5850. LH.Part1 = nil
  5851. Proned2 = Vector3.new(0,0.5,0.5)
  5852. tweenJoint(RootJoint, CFrame.new(0,-2.5,1.35)* CFrame.Angles(math.rad(-90),0,math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5853. tweenJoint(RS, CFrame.new(0.9,1.1,0)* CFrame.Angles(math.rad(-180),math.rad(90),math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5854. tweenJoint(LS, CFrame.new(-0.9,1.1,0)* CFrame.Angles(math.rad(-180),math.rad(-90),math.rad(0)), nil, function(X) return math.sin(math.rad(X)) end, 0.25)
  5855.  
  5856. CreateWeld(RightLeg, CFrame.new(-0.2,1.85,0)* CFrame.Angles(math.rad(-0),0,math.rad(-20)))
  5857. CreateWeld(LeftLeg, CFrame.new(0.2,1.85,0)* CFrame.Angles(math.rad(-0),0,math.rad(20)))
  5858. end
  5859.  
  5860. local AlreadyProned = false
  5861.  
  5862. mouse.KeyDown:connect(function(Key)
  5863. if Key == "c" and Stances == 0 and not _G.Sprinting and not _G.Lean then
  5864. Stances = 1
  5865. Crouch()
  5866.  
  5867. _G.Crouched = true
  5868. elseif Key == "c" and Stances == 1 and not _G.Sprinting and not _G.Lean then
  5869. Stances = 2
  5870. Prone()
  5871.  
  5872. _G.Crouched = false
  5873. _G.Proned = true
  5874.  
  5875. elseif Key == "x" and Stances == 2 and not _G.Sprinting and not _G.Lean then
  5876. _G.Crouched = true
  5877. _G.Proned = false
  5878. Stances = 1
  5879. Crouch()
  5880.  
  5881.  
  5882. elseif Key == "x" and Stances == 1 and not _G.Sprinting and not _G.Lean then
  5883. _G.Crouched = false
  5884.  
  5885.  
  5886. Stances = 0
  5887. if not _G.SteadyStance then
  5888. Stand()
  5889. elseif _G.SteadyStance then
  5890. StandEquip()
  5891. end
  5892.  
  5893. end
  5894.  
  5895. if Key == "z" and not _G.SteadyStance and Stances == 0 then
  5896. if not _G.Lean and Stances == 0 then
  5897. StandEquip()
  5898. end
  5899. _G.SteadyStance = true
  5900. elseif Key == "z" and _G.SteadyStance and Stances == 0 then
  5901. if not _G.Lean and Stances == 0 then
  5902. Stand()
  5903.  
  5904. end
  5905. _G.SteadyStance = false
  5906. end
  5907.  
  5908. if Key:byte() == 308 or Key:byte() == 307 then
  5909. AltPressed = true
  5910. print("Alt pressed")
  5911. end
  5912.  
  5913.  
  5914. end)
  5915.  
  5916. mouse.KeyUp:connect(function(Key)
  5917. if Key:byte() == 308 then
  5918. AltPressed = false
  5919. end
  5920. end)
  5921.  
  5922. Stand()
  5923.  
  5924. -------------Motor6Ding Section------------------------
  5925.  
  5926. Character.Humanoid.Died:connect(function()
  5927. Stand()
  5928. _G.Proned = false
  5929. _G.Crouched = false
  5930. _G.Sprinting = false
  5931. Player.TeamColor = BrickColor.new("Deep blue")
  5932. end)
  5933.  
  5934.  
  5935.  
  5936. game:GetService("RunService").RenderStepped:connect(function()
  5937. Mouse.TargetFilter = game.Workspace
  5938.  
  5939.  
  5940. if Aiming then
  5941. game:GetService('UserInputService').MouseDeltaSensitivity = Player.PlayerGui:WaitForChild("ScreenGui").Frame.Sensitivity.Text
  5942. else
  5943. game:GetService('UserInputService').MouseDeltaSensitivity = 1
  5944. end
  5945.  
  5946. Mouse.Button2Down:connect(function()
  5947. if not Aiming then
  5948. Aiming = true
  5949. end
  5950. end)
  5951. Mouse.Button2Up:connect(function()
  5952. if Aiming then
  5953. Aiming = false
  5954. end
  5955. end)
  5956.  
  5957. end)
  5958.  
  5959.  
  5960. end))
  5961. for i,v in pairs(mas:GetChildren()) do
  5962. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  5963. pcall(function() v:MakeJoints() end)
  5964. end
  5965. mas:Destroy()
  5966. for i,v in pairs(cors) do
  5967. spawn(function()
  5968. pcall(v)
  5969. end)
  5970. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement