Advertisement
Guest User

Untitled

a guest
Feb 1st, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 236.33 KB | None | 0 0
  1. --[[
  2. --Whitelisted Users
  3. --lotushomerun (DUH)
  4. --lotushomerun's Friends
  5. --Anyone who buys this gamepass: https://www.roblox.com/library/1046169249/Police-Sim-2018-Whitelist
  6.  
  7.  
  8.  
  9.  
  10. --------UPDATE LIST------------
  11.  
  12.  
  13.  
  14. --9-22-2017 Update---
  15. --Added Handcuffs(Acessory)
  16. --Added Glock 17(Secondery)
  17. --Added M1911(Secondery)
  18.  
  19. --9-14-2017 Update---
  20. --Added Golden Pistol(Secondery. Very Overpowered. Only use it to kill those stupid god mode skids)
  21. --Added M4A1(Primary)
  22. ]]
  23.  
  24. currentclothing = "Apoc"
  25. you = game.Players.LocalPlayer
  26. Character = you.Character
  27.  
  28.  
  29.  
  30. ----------------THE GUI-------------------
  31. -- Objects
  32.  
  33. local ConfigMe = Instance.new("ScreenGui")
  34. local Frame = Instance.new("Frame")
  35. local Intro = Instance.new("TextLabel")
  36. local Whitelist = Instance.new("TextLabel")
  37. local Primary = Instance.new("TextBox")
  38. local TextLabel = Instance.new("TextLabel")
  39. local TextLabel_2 = Instance.new("TextLabel")
  40. local Secondery = Instance.new("TextBox")
  41. local TextLabel_3 = Instance.new("TextLabel")
  42. local Melee = Instance.new("TextBox")
  43. local Ready = Instance.new("TextButton")
  44. local TextLabel_4 = Instance.new("TextLabel")
  45. local TextLabel_5 = Instance.new("TextLabel")
  46. local TextLabel_6 = Instance.new("TextLabel")
  47. local Acessory1 = Instance.new("TextBox")
  48. local Acessory2 = Instance.new("TextBox")
  49. local Throwable = Instance.new("TextBox")
  50. local TextLabel_7 = Instance.new("TextLabel")
  51. local Error = Instance.new("TextLabel")
  52. local ClothingFrame = Instance.new("Frame")
  53. local TextLabel_8 = Instance.new("TextLabel")
  54. local Apoc = Instance.new("TextButton")
  55. local Current = Instance.new("TextLabel")
  56. local Keep = Instance.new("TextButton")
  57. local Australia = Instance.new("TextButton")
  58. local Roblox = Instance.new("TextButton")
  59. local SWAT = Instance.new("TextButton")
  60. local NYPD = Instance.new("TextButton")
  61.  
  62. -- Properties
  63.  
  64. ConfigMe.Name = "ConfigMe"
  65. ConfigMe.Parent = you.PlayerGui
  66.  
  67. Frame.Parent = ConfigMe
  68. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  69. Frame.BackgroundTransparency = 0.69999998807907
  70. Frame.Position = UDim2.new(0.259067357, 0, 0.134969324, 0)
  71. Frame.Size = UDim2.new(0.48852703, 0, 0.68865031, 0)
  72.  
  73. Intro.Name = "Intro"
  74. Intro.Parent = Frame
  75. Intro.BackgroundColor3 = Color3.new(1, 1, 1)
  76. Intro.BackgroundTransparency = 1
  77. Intro.Size = UDim2.new(1, 0, 0.0902777761, 0)
  78. Intro.Font = Enum.Font.Bodoni
  79. Intro.FontSize = Enum.FontSize.Size14
  80. Intro.Text = "Welcome To Police Officer Sim 2018!"
  81. Intro.TextColor3 = Color3.new(0, 0.333333, 1)
  82. Intro.TextScaled = true
  83. Intro.TextSize = 14
  84. Intro.TextWrapped = true
  85.  
  86. Whitelist.Name = "Whitelist"
  87. Whitelist.Parent = Frame
  88. Whitelist.BackgroundColor3 = Color3.new(1, 1, 1)
  89. Whitelist.BackgroundTransparency = 1
  90. Whitelist.Position = UDim2.new(0, 0, 0.905092597, 0)
  91. Whitelist.Size = UDim2.new(1, 0, 0.0902777761, 0)
  92. Whitelist.Font = Enum.Font.Highway
  93. Whitelist.FontSize = Enum.FontSize.Size14
  94. Whitelist.Text = "You Are Whitelisted. User: Player1"
  95. Whitelist.TextColor3 = Color3.new(0.333333, 0.666667, 0)
  96. Whitelist.TextScaled = true
  97. Whitelist.TextSize = 14
  98. Whitelist.TextWrapped = true
  99.  
  100. Primary.Name = "Primary"
  101. Primary.Parent = Frame
  102. Primary.BackgroundColor3 = Color3.new(1, 1, 1)
  103. Primary.Position = UDim2.new(0.00453514745, 0, 0.275462955, 0)
  104. Primary.Size = UDim2.new(0.290909082, 0, 0.0935412049, 0)
  105. Primary.Font = Enum.Font.SourceSans
  106. Primary.FontSize = Enum.FontSize.Size14
  107. Primary.Text = "M4A1"
  108. Primary.TextScaled = true
  109. Primary.TextSize = 14
  110. Primary.TextWrapped = true
  111.  
  112. TextLabel.Parent = Frame
  113. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  114. TextLabel.BackgroundTransparency = 1
  115. TextLabel.Position = UDim2.new(0.0075757578, 0, 0.213808462, 0)
  116. TextLabel.Size = UDim2.new(0.290909082, 0, 0.0556792878, 0)
  117. TextLabel.Font = Enum.Font.SourceSans
  118. TextLabel.FontSize = Enum.FontSize.Size14
  119. TextLabel.Text = "Primary Weapon"
  120. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  121. TextLabel.TextScaled = true
  122. TextLabel.TextSize = 14
  123. TextLabel.TextWrapped = true
  124.  
  125. TextLabel_2.Parent = Frame
  126. TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
  127. TextLabel_2.BackgroundTransparency = 1
  128. TextLabel_2.Position = UDim2.new(0.0075757578, 0, 0.385300666, 0)
  129. TextLabel_2.Size = UDim2.new(0.291000009, 0, 0.0560000017, 0)
  130. TextLabel_2.Font = Enum.Font.SourceSans
  131. TextLabel_2.FontSize = Enum.FontSize.Size14
  132. TextLabel_2.Text = "Secondery Weapon"
  133. TextLabel_2.TextColor3 = Color3.new(0, 0, 0)
  134. TextLabel_2.TextScaled = true
  135. TextLabel_2.TextSize = 14
  136. TextLabel_2.TextWrapped = true
  137.  
  138. Secondery.Name = "Secondery"
  139. Secondery.Parent = Frame
  140. Secondery.BackgroundColor3 = Color3.new(1, 1, 1)
  141. Secondery.Position = UDim2.new(0.00453514745, 0, 0.451388896, 0)
  142. Secondery.Size = UDim2.new(0.291000009, 0, 0.0939999968, 0)
  143. Secondery.Font = Enum.Font.SourceSans
  144. Secondery.FontSize = Enum.FontSize.Size14
  145. Secondery.Text = "Glock 17"
  146. Secondery.TextScaled = true
  147. Secondery.TextSize = 14
  148. Secondery.TextWrapped = true
  149.  
  150. TextLabel_3.Parent = Frame
  151. TextLabel_3.BackgroundColor3 = Color3.new(1, 1, 1)
  152. TextLabel_3.BackgroundTransparency = 1
  153. TextLabel_3.Position = UDim2.new(0.00151515147, 0, 0.559020042, 0)
  154. TextLabel_3.Size = UDim2.new(0.291000009, 0, 0.0560000017, 0)
  155. TextLabel_3.Font = Enum.Font.SourceSans
  156. TextLabel_3.FontSize = Enum.FontSize.Size14
  157. TextLabel_3.Text = "Melee Weapon"
  158. TextLabel_3.TextColor3 = Color3.new(0, 0, 0)
  159. TextLabel_3.TextScaled = true
  160. TextLabel_3.TextSize = 14
  161. TextLabel_3.TextWrapped = true
  162.  
  163. Melee.Name = "Melee"
  164. Melee.Parent = Frame
  165. Melee.BackgroundColor3 = Color3.new(1, 1, 1)
  166. Melee.Position = UDim2.new(0.00226757373, 0, 0.627314806, 0)
  167. Melee.Size = UDim2.new(0.291000009, 0, 0.0939999968, 0)
  168. Melee.Font = Enum.Font.SourceSans
  169. Melee.FontSize = Enum.FontSize.Size14
  170. Melee.Text = "Baton"
  171. Melee.TextScaled = true
  172. Melee.TextSize = 14
  173. Melee.TextWrapped = true
  174.  
  175. Ready.Name = "Ready"
  176. Ready.Parent = Frame
  177. Ready.BackgroundColor3 = Color3.new(1, 1, 1)
  178. Ready.BackgroundTransparency = 1
  179. Ready.Position = UDim2.new(0.292517006, 0, 0.819444418, 0)
  180. Ready.Size = UDim2.new(0.365079373, 0, 0.0949074104, 0)
  181. Ready.Font = Enum.Font.SourceSans
  182. Ready.FontSize = Enum.FontSize.Size14
  183. Ready.Text = "Ready?"
  184. Ready.TextColor3 = Color3.new(0, 1, 0)
  185. Ready.TextScaled = true
  186. Ready.TextSize = 14
  187. Ready.TextWrapped = true
  188.  
  189. TextLabel_4.Parent = Frame
  190. TextLabel_4.BackgroundColor3 = Color3.new(1, 1, 1)
  191. TextLabel_4.BackgroundTransparency = 1
  192. TextLabel_4.Position = UDim2.new(0.304545462, 0, 0.216035634, 0)
  193. TextLabel_4.Size = UDim2.new(0.290909082, 0, 0.0556792878, 0)
  194. TextLabel_4.Font = Enum.Font.SourceSans
  195. TextLabel_4.FontSize = Enum.FontSize.Size14
  196. TextLabel_4.Text = "Acessory 1"
  197. TextLabel_4.TextColor3 = Color3.new(0, 0, 0)
  198. TextLabel_4.TextScaled = true
  199. TextLabel_4.TextSize = 14
  200. TextLabel_4.TextWrapped = true
  201.  
  202. TextLabel_5.Parent = Frame
  203. TextLabel_5.BackgroundColor3 = Color3.new(1, 1, 1)
  204. TextLabel_5.BackgroundTransparency = 1
  205. TextLabel_5.Position = UDim2.new(0.301515162, 0, 0.394209355, 0)
  206. TextLabel_5.Size = UDim2.new(0.290909082, 0, 0.0556792878, 0)
  207. TextLabel_5.Font = Enum.Font.SourceSans
  208. TextLabel_5.FontSize = Enum.FontSize.Size14
  209. TextLabel_5.Text = "Acessory 2"
  210. TextLabel_5.TextColor3 = Color3.new(0, 0, 0)
  211. TextLabel_5.TextScaled = true
  212. TextLabel_5.TextSize = 14
  213. TextLabel_5.TextWrapped = true
  214.  
  215. TextLabel_6.Parent = Frame
  216. TextLabel_6.BackgroundColor3 = Color3.new(1, 1, 1)
  217. TextLabel_6.BackgroundTransparency = 1
  218. TextLabel_6.Position = UDim2.new(0.300000012, 0, 0.559020042, 0)
  219. TextLabel_6.Size = UDim2.new(0.290909082, 0, 0.0556792878, 0)
  220. TextLabel_6.Font = Enum.Font.SourceSans
  221. TextLabel_6.FontSize = Enum.FontSize.Size14
  222. TextLabel_6.Text = "Throwable"
  223. TextLabel_6.TextColor3 = Color3.new(0, 0, 0)
  224. TextLabel_6.TextScaled = true
  225. TextLabel_6.TextSize = 14
  226. TextLabel_6.TextWrapped = true
  227.  
  228. Acessory1.Name = "Acessory1"
  229. Acessory1.Parent = Frame
  230. Acessory1.BackgroundColor3 = Color3.new(1, 1, 1)
  231. Acessory1.Position = UDim2.new(0.303030312, 0, 0.280623615, 0)
  232. Acessory1.Size = UDim2.new(0.290909082, 0, 0.0935412049, 0)
  233. Acessory1.Font = Enum.Font.SourceSans
  234. Acessory1.FontSize = Enum.FontSize.Size14
  235. Acessory1.Text = "Taser"
  236. Acessory1.TextScaled = true
  237. Acessory1.TextSize = 14
  238. Acessory1.TextWrapped = true
  239.  
  240. Acessory2.Name = "Acessory2"
  241. Acessory2.Parent = Frame
  242. Acessory2.BackgroundColor3 = Color3.new(1, 1, 1)
  243. Acessory2.Position = UDim2.new(0.303030312, 0, 0.454342991, 0)
  244. Acessory2.Size = UDim2.new(0.290909082, 0, 0.0935412049, 0)
  245. Acessory2.Font = Enum.Font.SourceSans
  246. Acessory2.FontSize = Enum.FontSize.Size14
  247. Acessory2.Text = "Handcuffs"
  248. Acessory2.TextScaled = true
  249. Acessory2.TextSize = 14
  250. Acessory2.TextWrapped = true
  251.  
  252. Throwable.Name = "Throwable"
  253. Throwable.Parent = Frame
  254. Throwable.BackgroundColor3 = Color3.new(1, 1, 1)
  255. Throwable.Position = UDim2.new(0.300000012, 0, 0.628062367, 0)
  256. Throwable.Size = UDim2.new(0.290909082, 0, 0.0935412049, 0)
  257. Throwable.Font = Enum.Font.SourceSans
  258. Throwable.FontSize = Enum.FontSize.Size14
  259. Throwable.Text = "Grenade"
  260. Throwable.TextScaled = true
  261. Throwable.TextSize = 14
  262. Throwable.TextWrapped = true
  263.  
  264. TextLabel_7.Parent = Frame
  265. TextLabel_7.BackgroundColor3 = Color3.new(1, 1, 1)
  266. TextLabel_7.BackgroundTransparency = 1
  267. TextLabel_7.Position = UDim2.new(0.0212121215, 0, 0.106904231, 0)
  268. TextLabel_7.Size = UDim2.new(0.909090936, 0, 0.0824053437, 0)
  269. TextLabel_7.Font = Enum.Font.Arcade
  270. TextLabel_7.FontSize = Enum.FontSize.Size14
  271. TextLabel_7.Text = "Equipment"
  272. TextLabel_7.TextColor3 = Color3.new(1, 0.666667, 0)
  273. TextLabel_7.TextScaled = true
  274. TextLabel_7.TextSize = 14
  275. TextLabel_7.TextWrapped = true
  276.  
  277. Error.Name = "Error"
  278. Error.Parent = Frame
  279. Error.BackgroundColor3 = Color3.new(1, 1, 1)
  280. Error.BackgroundTransparency = 1
  281. Error.Position = UDim2.new(0.0333333351, 0, 0.73942095, 0)
  282. Error.Size = UDim2.new(0.909090936, 0, 0.0824053437, 0)
  283. Error.Font = Enum.Font.SourceSansBold
  284. Error.FontSize = Enum.FontSize.Size14
  285. Error.Text = ""
  286. Error.TextColor3 = Color3.new(1, 0, 0)
  287. Error.TextScaled = true
  288. Error.TextSize = 14
  289. Error.TextWrapped = true
  290.  
  291. ClothingFrame.Name = "ClothingFrame"
  292. ClothingFrame.Parent = Frame
  293. ClothingFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  294. ClothingFrame.Position = UDim2.new(0.609090924, 0, 0.138307357, 0)
  295. ClothingFrame.Size = UDim2.new(0.351515144, 0, 0.583518922, 0)
  296.  
  297. TextLabel_8.Parent = ClothingFrame
  298. TextLabel_8.BackgroundColor3 = Color3.new(1, 1, 1)
  299. TextLabel_8.BackgroundTransparency = 1
  300. TextLabel_8.Position = UDim2.new(0.0172413792, 0, 0.0190839693, 0)
  301. TextLabel_8.Size = UDim2.new(0.965517223, 0, 0.0954198465, 0)
  302. TextLabel_8.Font = Enum.Font.SourceSans
  303. TextLabel_8.FontSize = Enum.FontSize.Size14
  304. TextLabel_8.Text = "Clothing Presets"
  305. TextLabel_8.TextColor3 = Color3.new(0, 0, 0)
  306. TextLabel_8.TextScaled = true
  307. TextLabel_8.TextSize = 14
  308. TextLabel_8.TextWrapped = true
  309.  
  310. Apoc.Name = "Apoc"
  311. Apoc.Parent = ClothingFrame
  312. Apoc.BackgroundColor3 = Color3.new(0, 0, 0)
  313. Apoc.Position = UDim2.new(0.0129310349, 0, 0.148854956, 0)
  314. Apoc.Size = UDim2.new(0.974137902, 0, 0.0877862573, 0)
  315. Apoc.Font = Enum.Font.SourceSans
  316. Apoc.FontSize = Enum.FontSize.Size14
  317. Apoc.Text = "Apoc"
  318. Apoc.TextColor3 = Color3.new(0, 1, 0)
  319. Apoc.TextScaled = true
  320. Apoc.TextSize = 14
  321. Apoc.TextWrapped = true
  322.  
  323. Current.Name = "Current"
  324. Current.Parent = ClothingFrame
  325. Current.BackgroundColor3 = Color3.new(1, 1, 1)
  326. Current.BackgroundTransparency = 1
  327. Current.Position = UDim2.new(0.0215517245, 0, 0.893129766, 0)
  328. Current.Size = UDim2.new(0.965517223, 0, 0.0954198465, 0)
  329. Current.Font = Enum.Font.SourceSans
  330. Current.FontSize = Enum.FontSize.Size14
  331. Current.Text = "Currlently Picked: Apoc"
  332. Current.TextColor3 = Color3.new(0, 0, 0)
  333. Current.TextScaled = true
  334. Current.TextSize = 14
  335. Current.TextWrapped = true
  336.  
  337. Keep.Name = "Keep"
  338. Keep.Parent = ClothingFrame
  339. Keep.BackgroundColor3 = Color3.new(0, 0, 0)
  340. Keep.Position = UDim2.new(0.0172413792, 0, 0.786259532, 0)
  341. Keep.Size = UDim2.new(0.974137902, 0, 0.0877862573, 0)
  342. Keep.Font = Enum.Font.SourceSans
  343. Keep.FontSize = Enum.FontSize.Size14
  344. Keep.Text = "Keep Clothing"
  345. Keep.TextColor3 = Color3.new(0, 1, 0)
  346. Keep.TextScaled = true
  347. Keep.TextSize = 14
  348. Keep.TextWrapped = true
  349.  
  350. Australia.Name = "Australia"
  351. Australia.Parent = ClothingFrame
  352. Australia.BackgroundColor3 = Color3.new(0, 0, 0)
  353. Australia.Position = UDim2.new(0.0129310349, 0, 0.270992368, 0)
  354. Australia.Size = UDim2.new(0.974137902, 0, 0.0877862573, 0)
  355. Australia.Font = Enum.Font.SourceSans
  356. Australia.FontSize = Enum.FontSize.Size14
  357. Australia.Text = "Australia"
  358. Australia.TextColor3 = Color3.new(0, 1, 0)
  359. Australia.TextScaled = true
  360. Australia.TextSize = 14
  361. Australia.TextWrapped = true
  362.  
  363. Roblox.Name = "Roblox"
  364. Roblox.Parent = ClothingFrame
  365. Roblox.BackgroundColor3 = Color3.new(0, 0, 0)
  366. Roblox.Position = UDim2.new(0.0129310349, 0, 0.667938948, 0)
  367. Roblox.Size = UDim2.new(0.974137902, 0, 0.0877862573, 0)
  368. Roblox.Font = Enum.Font.SourceSans
  369. Roblox.FontSize = Enum.FontSize.Size14
  370. Roblox.Text = "Roblox's Default"
  371. Roblox.TextColor3 = Color3.new(0, 1, 0)
  372. Roblox.TextScaled = true
  373. Roblox.TextSize = 14
  374. Roblox.TextWrapped = true
  375.  
  376. SWAT.Name = "SWAT"
  377. SWAT.Parent = ClothingFrame
  378. SWAT.BackgroundColor3 = Color3.new(0, 0, 0)
  379. SWAT.Position = UDim2.new(0.0129310349, 0, 0.538167953, 0)
  380. SWAT.Size = UDim2.new(0.974137902, 0, 0.0877862573, 0)
  381. SWAT.Font = Enum.Font.SourceSans
  382. SWAT.FontSize = Enum.FontSize.Size14
  383. SWAT.Text = "SWAT"
  384. SWAT.TextColor3 = Color3.new(0, 1, 0)
  385. SWAT.TextScaled = true
  386. SWAT.TextSize = 14
  387. SWAT.TextWrapped = true
  388.  
  389. NYPD.Name = "NYPD"
  390. NYPD.Parent = ClothingFrame
  391. NYPD.BackgroundColor3 = Color3.new(0, 0, 0)
  392. NYPD.Position = UDim2.new(0.0172413792, 0, 0.408396959, 0)
  393. NYPD.Size = UDim2.new(0.974137902, 0, 0.0877862573, 0)
  394. NYPD.Font = Enum.Font.SourceSans
  395. NYPD.FontSize = Enum.FontSize.Size14
  396. NYPD.Text = "NYPD"
  397. NYPD.TextColor3 = Color3.new(0, 1, 0)
  398. NYPD.TextScaled = true
  399. NYPD.TextSize = 14
  400. NYPD.TextWrapped = true
  401.  
  402.  
  403. ----------ANTI SCRIPT LOGGING--------
  404. if you:IsFriendsWith(65006475) then
  405. Whitelist.Text = "You Are Whitelisted. User: "..you.Name
  406. print(you.Name.." Is Whitelisted")
  407. else
  408.  
  409. ------------DONE-------------
  410.  
  411.  
  412. -----------GIVE WEAPONS AND REPLACE CLOTHING--------
  413.  
  414. function givetools()
  415. print("Giving Tools")
  416. Error.Text = ""
  417. if Primary.Text == "P90" then
  418. SpawnP90()
  419. elseif Primary.Text == "M4A1" then
  420. SpawnM4A1()
  421. else
  422. Error.Text = Primary.Text.." is not a valid primary weapon"
  423. end
  424.  
  425. if Secondery.Text == "M1911" or Secondery.Text == "1911" then
  426. Spawn1911()
  427. elseif Secondery.Text == "Glock 17" or Secondery == "G17" then
  428. SpawnG17()
  429. elseif Secondery.Text == "Golden Gun" or Secondery.Text == "Golden Pistol" or Secondery.Text == "Gold Pistol" or Secondery.Text == "Gold Gun" then
  430. SpawnGoldenPistol()
  431. else
  432. Error.Text = Secondery.Text.." is not a valid secondery weapon"
  433. end
  434.  
  435. if Throwable.Text == "Grenade" then
  436. SpawnGrenade()
  437. elseif Throwable.Text == "Flashbang" or Throwable.Text == "Smoke" then
  438. SpawnFlashbang()
  439. elseif Throwable.Text == "Phone Bomb" or Throwable.Text == "Phone" then
  440. SpawnPhoneBomb()
  441. else
  442. Error.Text = Throwable.Text.." is not a valid throwable weapon"
  443. end
  444.  
  445. if Acessory1.Text == "Taser" or Acessory2.Text == "Taser" then
  446. SpawnTaser()
  447. end
  448. if Acessory1.Text == "Handcuffs" or Acessory2.Text == "Handcuffs" then
  449. SpawnArrest()
  450. end
  451.  
  452.  
  453.  
  454. if currentclothing == "Apoc" then
  455. local basetemplate = "http://www.roblox.com/asset/?id=" -- Shirt And Pants editing/adding
  456. local shirt = 132601069
  457. local pants = 132601229
  458. wait(0.5) -- Required to not cause duplicated stuff
  459. local h = Character:findFirstChild("Shirt")
  460. if h ~= nil then
  461. h.ShirtTemplate = basetemplate..shirt
  462. else
  463. local i = Instance.new("Shirt")
  464. i.Name = "Shirt"
  465. i.ShirtTemplate = basetemplate..shirt
  466. i.Parent = Character
  467. end
  468. local p = Character:findFirstChild("Pants")
  469. if p ~= nil then
  470. p.PantsTemplate = basetemplate..pants
  471. else
  472. local np = Instance.new("Pants")
  473. np.PantsTemplate = basetemplate..pants
  474. np.Name = "Pants"
  475. np.Parent = Character
  476. end
  477. end
  478. if currentclothing == "Australia" then
  479. local basetemplate = "http://www.roblox.com/asset/?id=" -- Shirt And Pants editing/adding
  480. local shirt = 189734370
  481. local pants = 171600563
  482. wait(0.5) -- Required to not cause duplicated stuff
  483. local h = Character:findFirstChild("Shirt")
  484. if h ~= nil then
  485. h.ShirtTemplate = basetemplate..shirt
  486. else
  487. local i = Instance.new("Shirt")
  488. i.Name = "Shirt"
  489. i.ShirtTemplate = basetemplate..shirt
  490. i.Parent = Character
  491. end
  492. local p = Character:findFirstChild("Pants")
  493. if p ~= nil then
  494. p.PantsTemplate = basetemplate..pants
  495. else
  496. local np = Instance.new("Pants")
  497. np.PantsTemplate = basetemplate..pants
  498. np.Name = "Pants"
  499. np.Parent = Character
  500. end
  501. end
  502. if currentclothing == "NYPD" then
  503. local basetemplate = "http://www.roblox.com/asset/?id=" -- Shirt And Pants editing/adding
  504. local shirt = 851646372
  505. local pants = 851646802
  506. wait(0.5) -- Required to not cause duplicated stuff
  507. local h = Character:findFirstChild("Shirt")
  508. if h ~= nil then
  509. h.ShirtTemplate = basetemplate..shirt
  510. else
  511. local i = Instance.new("Shirt")
  512. i.Name = "Shirt"
  513. i.ShirtTemplate = basetemplate..shirt
  514. i.Parent = Character
  515. end
  516. local p = Character:findFirstChild("Pants")
  517. if p ~= nil then
  518. p.PantsTemplate = basetemplate..pants
  519. else
  520. local np = Instance.new("Pants")
  521. np.PantsTemplate = basetemplate..pants
  522. np.Name = "Pants"
  523. np.Parent = Character
  524. end
  525. end
  526. if currentclothing == "SWAT" then
  527. local basetemplate = "http://www.roblox.com/asset/?id=" -- Shirt And Pants editing/adding
  528. local shirt = 165359778
  529. local pants = 165359806
  530. wait(0.5) -- Required to not cause duplicated stuff
  531. local h = Character:findFirstChild("Shirt")
  532. if h ~= nil then
  533. h.ShirtTemplate = basetemplate..shirt
  534. else
  535. local i = Instance.new("Shirt")
  536. i.Name = "Shirt"
  537. i.ShirtTemplate = basetemplate..shirt
  538. i.Parent = Character
  539. end
  540. local p = Character:findFirstChild("Pants")
  541. if p ~= nil then
  542. p.PantsTemplate = basetemplate..pants
  543. else
  544. local np = Instance.new("Pants")
  545. np.PantsTemplate = basetemplate..pants
  546. np.Name = "Pants"
  547. np.Parent = Character
  548. end
  549. end
  550. if currentclothing == "Roblox" then
  551. local basetemplate = "http://www.roblox.com/asset/?id=" -- Shirt And Pants editing/adding
  552. local shirt = 842718865
  553. local pants = 851415944
  554. wait(0.5) -- Required to not cause duplicated stuff
  555. local h = Character:findFirstChild("Shirt")
  556. if h ~= nil then
  557. h.ShirtTemplate = basetemplate..shirt
  558. else
  559. local i = Instance.new("Shirt")
  560. i.Name = "Shirt"
  561. i.ShirtTemplate = basetemplate..shirt
  562. i.Parent = Character
  563. end
  564. local p = Character:findFirstChild("Pants")
  565. if p ~= nil then
  566. p.PantsTemplate = basetemplate..pants
  567. else
  568. local np = Instance.new("Pants")
  569. np.PantsTemplate = basetemplate..pants
  570. np.Name = "Pants"
  571. np.Parent = Character
  572. end
  573. end
  574. if Error.Text == "" then
  575. ConfigMe:Remove()
  576. end
  577. end
  578. Ready.MouseButton1Click:connect(givetools)
  579.  
  580. function ap()
  581. currentclothing = "Apoc"
  582. Current.Text = "Currlently Picked: "..currentclothing
  583. end
  584.  
  585. function au()
  586. currentclothing = "Australia"
  587. Current.Text = "Currlently Picked: "..currentclothing
  588. end
  589.  
  590. function ny()
  591. currentclothing = "NYPD"
  592. Current.Text = "Currlently Picked: "..currentclothing
  593. end
  594.  
  595. function sw()
  596. currentclothing = "SWAT"
  597. Current.Text = "Currlently Picked: "..currentclothing
  598. end
  599.  
  600. function rblx()
  601. currentclothing = "Roblox"
  602. Current.Text = "Currlently Picked: "..currentclothing
  603. end
  604.  
  605. function keepclothing()
  606. currentclothing = "Keep Clothing"
  607. Current.Text = "Currlently Picked: "..currentclothing
  608. end
  609.  
  610.  
  611. Apoc.MouseButton1Click:connect(ap)
  612. Australia.MouseButton1Click:connect(au)
  613. NYPD.MouseButton1Click:connect(ny)
  614. SWAT.MouseButton1Click:connect(sw)
  615. Roblox.MouseButton1Click:connect(rblx)
  616. Keep.MouseButton1Click:connect(keepclothing)
  617.  
  618.  
  619.  
  620.  
  621. --Functions!!!-------
  622.  
  623.  
  624. function SpawnP90()
  625. --Converted with ttyyuu12345's model to script plugin v4
  626. function sandbox(var,func)
  627. local env = getfenv(func)
  628. local newenv = setmetatable({},{
  629. __index = function(self,k)
  630. if k=="script" then
  631. return var
  632. else
  633. return env[k]
  634. end
  635. end,
  636. })
  637. setfenv(func,newenv)
  638. return func
  639. end
  640. cors = {}
  641. mas = Instance.new("Model",game:GetService("Lighting"))
  642. Tool0 = Instance.new("Tool")
  643. Part1 = Instance.new("Part")
  644. FileMesh2 = Instance.new("FileMesh")
  645. Sound3 = Instance.new("Sound")
  646. Sound4 = Instance.new("Sound")
  647. Sound5 = Instance.new("Sound")
  648. Sound6 = Instance.new("Sound")
  649. Sound7 = Instance.new("Sound")
  650. Part8 = Instance.new("Part")
  651. FileMesh9 = Instance.new("FileMesh")
  652. Part10 = Instance.new("Part")
  653. FileMesh11 = Instance.new("FileMesh")
  654. Part12 = Instance.new("Part")
  655. FileMesh13 = Instance.new("FileMesh")
  656. Part14 = Instance.new("Part")
  657. BlockMesh15 = Instance.new("BlockMesh")
  658. PointLight16 = Instance.new("PointLight")
  659. BillboardGui17 = Instance.new("BillboardGui")
  660. ImageLabel18 = Instance.new("ImageLabel")
  661. Script19 = Instance.new("Script")
  662. Part20 = Instance.new("Part")
  663. BlockMesh21 = Instance.new("BlockMesh")
  664. LocalScript29 = Instance.new("LocalScript")
  665. NumberValue30 = Instance.new("NumberValue")
  666. NumberValue31 = Instance.new("NumberValue")
  667. Smoke32 = Instance.new("Smoke")
  668. Smoke33 = Instance.new("Smoke")
  669. Smoke34 = Instance.new("Smoke")
  670. ScreenGui35 = Instance.new("ScreenGui")
  671. Frame36 = Instance.new("Frame")
  672. TextLabel37 = Instance.new("TextLabel")
  673. TextLabel38 = Instance.new("TextLabel")
  674. TextLabel39 = Instance.new("TextLabel")
  675. TextLabel40 = Instance.new("TextLabel")
  676. Tool0.Name = "P90"
  677. Tool0.Parent = mas
  678. Tool0.GripForward = Vector3.new(0, 0, 1)
  679. Tool0.GripRight = Vector3.new(-0.99999994, 0, 0)
  680. Part1.Name = "Handle"
  681. Part1.Parent = Tool0
  682. Part1.Material = Enum.Material.Metal
  683. Part1.Rotation = Vector3.new(-180, 0, -180)
  684. Part1.Anchored = true
  685. Part1.Size = Vector3.new(0.393000007, 1.48800004, 3.44199991)
  686. Part1.CFrame = CFrame.new(-91.4020081, -8.42202759, -18.1459465, -1.00000262, 0, 0, 0, 1, 0, 0, 0, -1.00000262)
  687. Part1.Position = Vector3.new(-91.4020081, -8.42202759, -18.1459465)
  688. Part1.Orientation = Vector3.new(0, 180, 0)
  689. FileMesh2.Parent = Part1
  690. FileMesh2.MeshId = "rbxassetid://431269323"
  691. FileMesh2.Scale = Vector3.new(0.00200000009, 0.0022499999, 0.00200000009)
  692. FileMesh2.TextureId = "rbxassetid://431271935"
  693. FileMesh2.Scale = Vector3.new(0.00200000009, 0.0022499999, 0.00200000009)
  694. Sound3.Name = "Shoot"
  695. Sound3.Parent = Part1
  696. Sound3.SoundId = "rbxassetid://131070686"
  697. Sound3.Volume = 1
  698. Sound4.Name = "Bolt"
  699. Sound4.Parent = Part1
  700. Sound4.SoundId = "http://roblox.com/asset/?id=166238161"
  701. Sound4.Volume = 0.20000000298023
  702. Sound5.Name = "Click"
  703. Sound5.Parent = Part1
  704. Sound5.SoundId = "http://www.roblox.com/asset/?id=146501511"
  705. Sound6.Name = "MagOut"
  706. Sound6.Parent = Part1
  707. Sound6.Pitch = 1.3999999761581
  708. Sound6.SoundId = "http://www.roblox.com/asset/?id=131045401"
  709. Sound7.Name = "MagIn"
  710. Sound7.Parent = Part1
  711. Sound7.Pitch = 1.3999999761581
  712. Sound7.SoundId = "http://www.roblox.com/asset/?id=131045429"
  713. Part8.Name = "Mag"
  714. Part8.Parent = Tool0
  715. Part8.Rotation = Vector3.new(-180, 0, -180)
  716. Part8.Anchored = true
  717. Part8.CanCollide = false
  718. Part8.Size = Vector3.new(0.375999987, 0.211999997, 2.05900002)
  719. Part8.CFrame = CFrame.new(-91.4060059, -8.06302834, -18.5619469, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  720. Part8.Position = Vector3.new(-91.4060059, -8.06302834, -18.5619469)
  721. Part8.Orientation = Vector3.new(0, 180, 0)
  722. FileMesh9.Parent = Part8
  723. FileMesh9.MeshId = "rbxassetid://431269405"
  724. FileMesh9.Scale = Vector3.new(0.00200000009, 0.0022499999, 0.00200000009)
  725. FileMesh9.TextureId = "rbxassetid://431271935"
  726. FileMesh9.Scale = Vector3.new(0.00200000009, 0.0022499999, 0.00200000009)
  727. Part10.Name = "Bolt"
  728. Part10.Parent = Tool0
  729. Part10.Rotation = Vector3.new(-180, 0, -180)
  730. Part10.Anchored = true
  731. Part10.CanCollide = false
  732. Part10.Size = Vector3.new(0.432000011, 0.200000003, 1.023)
  733. Part10.CFrame = CFrame.new(-91.4250107, -8.3010273, -19.2610569, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  734. Part10.Position = Vector3.new(-91.4250107, -8.3010273, -19.2610569)
  735. Part10.Orientation = Vector3.new(0, 180, 0)
  736. FileMesh11.Parent = Part10
  737. FileMesh11.MeshId = "rbxassetid://431269367"
  738. FileMesh11.Scale = Vector3.new(0.00200000009, 0.0022499999, 0.00200000009)
  739. FileMesh11.TextureId = "rbxassetid://431271935"
  740. FileMesh11.Scale = Vector3.new(0.00200000009, 0.0022499999, 0.00200000009)
  741. Part12.Name = "Stuff"
  742. Part12.Parent = Tool0
  743. Part12.Rotation = Vector3.new(-180, 0, -180)
  744. Part12.Anchored = true
  745. Part12.CanCollide = false
  746. Part12.Size = Vector3.new(0.405999988, 1.28600001, 2.88400006)
  747. Part12.CFrame = CFrame.new(-91.398407, -8.07502937, -18.842947, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  748. Part12.Position = Vector3.new(-91.398407, -8.07502937, -18.842947)
  749. Part12.Orientation = Vector3.new(0, 180, 0)
  750. FileMesh13.Parent = Part12
  751. FileMesh13.MeshId = "rbxassetid://431269262"
  752. FileMesh13.Scale = Vector3.new(0.00200000009, 0.0022499999, 0.00200000009)
  753. FileMesh13.TextureId = "rbxassetid://431271935"
  754. FileMesh13.Scale = Vector3.new(0.00200000009, 0.0022499999, 0.00200000009)
  755. Part14.Name = "SmokePart"
  756. Part14.Parent = Tool0
  757. Part14.Material = Enum.Material.SmoothPlastic
  758. Part14.BrickColor = BrickColor.new("Dark stone grey")
  759. Part14.Transparency = 1
  760. Part14.Anchored = true
  761. Part14.CanCollide = false
  762. Part14.FormFactor = Enum.FormFactor.Custom
  763. Part14.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  764. Part14.CFrame = CFrame.new(-91.3676376, -8.27242851, -20.4089146, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  765. Part14.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  766. Part14.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  767. Part14.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  768. Part14.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  769. Part14.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  770. Part14.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  771. Part14.Color = Color3.new(0.388235, 0.372549, 0.384314)
  772. Part14.Position = Vector3.new(-91.3676376, -8.27242851, -20.4089146)
  773. Part14.Color = Color3.new(0.388235, 0.372549, 0.384314)
  774. BlockMesh15.Parent = Part14
  775. BlockMesh15.Scale = Vector3.new(0.658373058, 0.658372879, 0.658373058)
  776. BlockMesh15.Scale = Vector3.new(0.658373058, 0.658372879, 0.658373058)
  777. PointLight16.Name = "Flash"
  778. PointLight16.Parent = Part14
  779. PointLight16.Color = Color3.new(1, 0.666667, 0)
  780. PointLight16.Enabled = false
  781. PointLight16.Brightness = 3
  782. PointLight16.Range = 10
  783. PointLight16.Color = Color3.new(1, 0.666667, 0)
  784. BillboardGui17.Name = "Light"
  785. BillboardGui17.Parent = Part14
  786. BillboardGui17.Size = UDim2.new(2.5, 0, 2.5, 0)
  787. BillboardGui17.Active = true
  788. ImageLabel18.Name = "Light"
  789. ImageLabel18.Parent = BillboardGui17
  790. ImageLabel18.Transparency = 1
  791. ImageLabel18.Size = UDim2.new(2, 0, 2, 0)
  792. ImageLabel18.Position = UDim2.new(-0.5, 0, -0.5, 0)
  793. ImageLabel18.Active = true
  794. ImageLabel18.Visible = false
  795. ImageLabel18.BackgroundColor3 = Color3.new(0.756863, 0.752941, 0.764706)
  796. ImageLabel18.BackgroundTransparency = 1
  797. ImageLabel18.Image = "http://www.roblox.com/asset/?id=68683102"
  798. Script19.Parent = BillboardGui17
  799. table.insert(cors,sandbox(Script19,function()
  800. script.Parent.Adornee = script.Parent.Parent
  801. end))
  802. Part20.Name = "AimPart"
  803. Part20.Parent = Tool0
  804. Part20.Material = Enum.Material.SmoothPlastic
  805. Part20.BrickColor = BrickColor.new("Dark stone grey")
  806. Part20.Transparency = 1
  807. Part20.Anchored = true
  808. Part20.CanCollide = false
  809. Part20.FormFactor = Enum.FormFactor.Custom
  810. Part20.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  811. Part20.CFrame = CFrame.new(-91.4038239, -7.41953945, -17.7698975, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  812. Part20.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  813. Part20.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  814. Part20.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  815. Part20.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  816. Part20.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  817. Part20.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  818. Part20.Color = Color3.new(0.388235, 0.372549, 0.384314)
  819. Part20.Position = Vector3.new(-91.4038239, -7.41953945, -17.7698975)
  820. Part20.Color = Color3.new(0.388235, 0.372549, 0.384314)
  821. BlockMesh21.Parent = Part20
  822. BlockMesh21.Scale = Vector3.new(0.141079962, 0.357402384, 0.141079962)
  823. BlockMesh21.Scale = Vector3.new(0.141079962, 0.357402384, 0.141079962)
  824.  
  825. --Gun Gui
  826.  
  827. -- Objects
  828.  
  829. local Gui = Instance.new("ScreenGui")
  830. local Frame = Instance.new("Frame")
  831. local AmmoDisplay = Instance.new("TextLabel")
  832. local StoredAmmoDisplay = Instance.new("TextLabel")
  833. local _000 = Instance.new("TextLabel")
  834. local _000_2 = Instance.new("TextLabel")
  835.  
  836. -- Properties
  837.  
  838. Gui.Name = "Gui"
  839. Gui.Parent = LocalScript29
  840.  
  841. Frame.Parent = Gui
  842. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  843. Frame.BackgroundTransparency = 1
  844. Frame.BorderColor3 = Color3.new(0.466667, 0.466667, 0.466667)
  845. Frame.BorderSizePixel = 0
  846. Frame.Position = UDim2.new(0.125, -5, 1.14999998, -120)
  847. Frame.Size = UDim2.new(-0.100000001, 0, -0.0399999991, 0)
  848. Frame.SizeConstraint = Enum.SizeConstraint.RelativeXX
  849.  
  850. AmmoDisplay.Name = "AmmoDisplay"
  851. AmmoDisplay.Parent = Frame
  852. AmmoDisplay.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  853. AmmoDisplay.BackgroundTransparency = 1
  854. AmmoDisplay.Position = UDim2.new(-0.0599999987, 0, 0, 0)
  855. AmmoDisplay.Size = UDim2.new(0.540000021, 0, 1.25, 0)
  856. AmmoDisplay.ZIndex = 2
  857. AmmoDisplay.Font = Enum.Font.SourceSansBold
  858. AmmoDisplay.FontSize = Enum.FontSize.Size36
  859. AmmoDisplay.Text = "30"
  860. AmmoDisplay.TextColor3 = Color3.new(1, 1, 1)
  861. AmmoDisplay.TextScaled = true
  862. AmmoDisplay.TextSize = 36
  863. AmmoDisplay.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  864. AmmoDisplay.TextWrapped = true
  865. AmmoDisplay.TextXAlignment = Enum.TextXAlignment.Right
  866.  
  867. StoredAmmoDisplay.Name = "StoredAmmoDisplay"
  868. StoredAmmoDisplay.Parent = Frame
  869. StoredAmmoDisplay.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  870. StoredAmmoDisplay.BackgroundTransparency = 1
  871. StoredAmmoDisplay.Position = UDim2.new(0.419999987, 0, 0.25, 0)
  872. StoredAmmoDisplay.Size = UDim2.new(0.550000012, 0, 0.75, 0)
  873. StoredAmmoDisplay.ZIndex = 2
  874. StoredAmmoDisplay.Font = Enum.Font.SourceSans
  875. StoredAmmoDisplay.FontSize = Enum.FontSize.Size14
  876. StoredAmmoDisplay.Text = "360"
  877. StoredAmmoDisplay.TextColor3 = Color3.new(1, 1, 1)
  878. StoredAmmoDisplay.TextScaled = true
  879. StoredAmmoDisplay.TextSize = 14
  880. StoredAmmoDisplay.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  881. StoredAmmoDisplay.TextWrapped = true
  882. StoredAmmoDisplay.TextXAlignment = Enum.TextXAlignment.Right
  883.  
  884. _000.Name = "000"
  885. _000.Parent = Frame
  886. _000.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  887. _000.BackgroundTransparency = 1
  888. _000.Position = UDim2.new(0.419999987, 0, 0.25, 0)
  889. _000.Size = UDim2.new(0.550000012, 0, 0.75, 0)
  890. _000.ZIndex = 2
  891. _000.Font = Enum.Font.SourceSans
  892. _000.FontSize = Enum.FontSize.Size14
  893. _000.Text = "000"
  894. _000.TextColor3 = Color3.new(1, 1, 1)
  895. _000.TextScaled = true
  896. _000.TextSize = 14
  897. _000.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  898. _000.TextTransparency = 0.80000001192093
  899. _000.TextWrapped = true
  900. _000.TextXAlignment = Enum.TextXAlignment.Right
  901.  
  902. _000_2.Name = "000"
  903. _000_2.Parent = Frame
  904. _000_2.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  905. _000_2.BackgroundTransparency = 1
  906. _000_2.Position = UDim2.new(-0.25, 0, 0, 0)
  907. _000_2.Size = UDim2.new(0.75, 0, 1.25, 0)
  908. _000_2.ZIndex = 2
  909. _000_2.Font = Enum.Font.SourceSansBold
  910. _000_2.FontSize = Enum.FontSize.Size48
  911. _000_2.Text = "000"
  912. _000_2.TextColor3 = Color3.new(1, 1, 1)
  913. _000_2.TextScaled = true
  914. _000_2.TextSize = 48
  915. _000_2.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  916. _000_2.TextTransparency = 0.80000001192093
  917. _000_2.TextWrapped = true
  918. _000_2.TextXAlignment = Enum.TextXAlignment.Right
  919.  
  920. LocalScript29.Name = "Gun_Script"
  921. LocalScript29.Parent = Tool0
  922. table.insert(cors,sandbox(LocalScript29,function()
  923. sp = script.Parent
  924.  
  925. Mesh = false -- If true will load BC 2.0 Arm meshes as well.
  926. Shirt = true -- If true will load the user's shirt to the arms as well
  927.  
  928. function onEquipped(mouse)
  929. local Player = game:GetService("Players").LocalPlayer
  930. local Cam = game.Workspace.CurrentCamera
  931.  
  932. local Arms = Instance.new("Model")
  933. Arms.Name = "Arms"
  934. Arms.Parent = Cam
  935.  
  936. if Shirt == true then
  937. local Humanoid = Instance.new("Humanoid")
  938. Humanoid.MaxHealth = 0
  939. Humanoid.Health = 0
  940. Humanoid.Name = ""
  941. Humanoid.Parent = Arms
  942.  
  943. local newShirt = Player.Character:FindFirstChild("Shirt"):clone()
  944. newShirt.Parent = Arms
  945. else end
  946.  
  947. local RightArm = Player.Character:FindFirstChild("Right Arm"):clone()
  948. RightArm.Name = "Right Arm"
  949. RightArm.Transparency = 0
  950.  
  951. local w = Instance.new("Weld")
  952. w.Part0 = RightArm
  953. w.Part1 = Player.Character:FindFirstChild("Right Arm")
  954. w.C0 = CFrame.new()
  955. w.C1 = CFrame.new()
  956. w.Parent = RightArm
  957. RightArm.Parent = Arms
  958.  
  959. local LeftArm = Player.Character:FindFirstChild("Left Arm"):clone()
  960. LeftArm.Name = "Left Arm"
  961. LeftArm.Transparency = 0
  962.  
  963. local w = Instance.new("Weld")
  964. w.Part0 = LeftArm
  965. w.Part1 = Player.Character:FindFirstChild("Left Arm")
  966. w.C0 = CFrame.new()
  967. w.C1 = CFrame.new()
  968. w.Parent = LeftArm
  969. LeftArm.Parent = Arms
  970.  
  971. if Mesh ~= false then
  972. local LeftArmMesh = script:FindFirstChild("LeftArm")
  973. LeftArmMesh.Parent = LeftArm
  974. local RightArmMesh = script:FindFirstChild("RightArm")
  975. RightArmMesh.Parent = RightArm
  976. else end
  977.  
  978. end
  979.  
  980. function onUnequipped(mouse)
  981. local Player = game:GetService("Players").LocalPlayer
  982. local Cam = game.Workspace.CurrentCamera
  983. for _, Model in pairs(Cam:GetChildren()) do
  984. if Model.Name == "Arms" then
  985. Model:remove()
  986. else end
  987. end
  988. end
  989.  
  990. sp.Equipped:connect(onEquipped)
  991. sp.Unequipped:connect(onUnequipped)
  992.  
  993. wait(0.5)
  994. --Made by YouTubes--
  995. --Edit settings below--
  996. local Tool = script.Parent
  997. local Settings = {
  998. Range = 2500
  999. ,Spread = 8
  1000. ,Damage = {30, 30}
  1001. ,HeadShotDamage = {60, 60}
  1002. ,Bullets = 1
  1003. ,FireRate = 0.068
  1004. ,Automatic = true
  1005. ,AntiTK = false
  1006. ,ImpactDuration = .5
  1007. --Reload
  1008. ,ReloadKey = "R"
  1009. ,ReloadTime = 1.63
  1010. ,Ammo = 50
  1011. ,IncludeChamberedBullet = true
  1012. --Gui
  1013. ,GuiPos = Vector2.new(script.Gui.Frame.Position.X.Scale, script.Gui.Frame.Position.Y.Scale)
  1014. --Arms
  1015. ,OneHanded = false
  1016. ,FakeArms = true
  1017. ,FakeArmTransparency = 0
  1018. -- (+Left to -Right, +Fward to -Bward, +Up to -Down) (+Up to -Down, +Left to -Right, +Counter to -Clock)
  1019. ,RightPos = CFrame.new(-0.75, -0.25, 0.45) * CFrame.Angles(math.rad(-90), 0, 0)
  1020. ,LeftPos = CFrame.new(1.2, 0.21, 0.55)* CFrame.Angles(math.rad(-90), math.rad(55), math.rad(5), 0)
  1021. ,AimPart = Tool.AimPart
  1022. ,AimPartOffset = CFrame.new()
  1023. ,AimGripOffset = Vector3.new(0, 0, 0)
  1024. ,LeftAimPos = CFrame.new(1, 0.9, 0.35) * CFrame.Angles(math.rad(-95), math.rad(20), math.rad(0), 00)
  1025. ,AimAnim = {
  1026. Enabled = false
  1027. ,Frames = 50
  1028. ,Time = 0.1
  1029. }
  1030. ,ChangeFOV = {true, 45}
  1031. ,SpreadReduction = 8
  1032. --Weld
  1033. ,Weld = true
  1034. --Mouse
  1035. ,Icons = {
  1036. Idle = "rbxassetid://70288585"
  1037. ,Fire1 = "rbxassetid://70288578"
  1038. ,Fire2 = "rbxassetid://70288572"
  1039. ,Fire3 = "rbxassetid://70288578"
  1040. ,Reload = "rbxassetid://70288599"
  1041. ,Aim = "rbxasset://textures/Blank.png"
  1042. }
  1043. ,FireMouseAnimTime = 0.15
  1044. --Recoil
  1045. ,Recoil = math.rad(0.79)
  1046. --Smoke
  1047. ,Smoke = true
  1048. ,SmokePart = Tool.SmokePart
  1049. ,Smokes = {{script.Smoke, 6, 0.01}, {script.Smoke1, 0.01}, {script.Smoke2, 0.01}}
  1050. --Sprint
  1051. ,Sprint = true
  1052. ,SprintSpeed = 25
  1053. ,SprintKey = "0"
  1054. ,SprintSpreadIncrease = 40
  1055. ,SprintArmOffset = CFrame.new(0.25, 0.125, 0.25) * CFrame.Angles(math.rad(-30), math.rad(35), 0)
  1056. ,DropHats = true
  1057. }
  1058.  
  1059. --Do not edit below this lign--
  1060.  
  1061. local Orig_Spread = Settings.Spread
  1062. local Orig_Grip = Tool.GripPos
  1063.  
  1064. local Player = game.Players.LocalPlayer
  1065. local Character = Player.Character
  1066.  
  1067. local Camera = workspace.CurrentCamera
  1068.  
  1069. local Ammo, StoredAmmo = script.Ammo, script.StoredAmmo
  1070.  
  1071. local Gui, CanUpdateGui = nil, true
  1072.  
  1073. local Sprinting, Equipped
  1074.  
  1075. function Update_Gui()
  1076. if Gui and CanUpdateGui then
  1077. Gui.Frame.AmmoDisplay.Text = Ammo.Value
  1078. Gui.Frame.StoredAmmoDisplay.Text = StoredAmmo.Value
  1079. end
  1080. end
  1081.  
  1082. local Welded
  1083. if Settings.Weld then
  1084. delay(0, function()
  1085. local weldC0s = {}
  1086. for i, v in pairs(Tool:GetChildren()) do
  1087. if v:IsA("BasePart") and v ~= Tool.Handle then
  1088. table.insert(weldC0s, {v, Tool.Handle.CFrame:toObjectSpace(v.CFrame)})
  1089. v.Anchored = false
  1090. end
  1091. end
  1092. Tool.Handle.Anchored = false
  1093. local welds = {}
  1094. Tool.Equipped:connect(function()
  1095. for i, v in ipairs(welds) do
  1096. v.Part1 = nil
  1097. v:Destroy()
  1098. end
  1099. for i, v in ipairs(weldC0s) do
  1100. if v[1] and v[2] then
  1101. local w = Instance.new("Weld", Tool.Handle)
  1102. w.Part0 = Tool.Handle
  1103. w.Part1 = v[1]
  1104. w.C0 = v[2]
  1105. table.insert(welds, w)
  1106. end
  1107. end
  1108. end)
  1109. wait()
  1110. Welded = true
  1111. end)
  1112. end
  1113.  
  1114. local Left_Weld, Right_Weld
  1115.  
  1116. Ammo.Changed:connect(Update_Gui)
  1117. StoredAmmo.Changed:connect(Update_Gui)
  1118.  
  1119. Settings.Range = math.min(Settings.Range, 999)
  1120.  
  1121. local Ignore_Model = workspace:FindFirstChild("Ray_Ignore") or Instance.new("Model", workspace)
  1122. Ignore_Model.Name = "Ray_Ignore"
  1123.  
  1124. local Ray_Ignore = {Character, Ignore_Model, Camera}
  1125.  
  1126. Character.Humanoid.Died:connect(function()
  1127. Tool.Parent = Player.Backpack
  1128. end)
  1129.  
  1130. function Fire(Mouse)
  1131. local Spread = CFrame.Angles(math.rad(math.random(-Settings.Spread, Settings.Spread)/10), math.rad(math.random(-Settings.Spread, Settings.Spread)/10), math.rad(math.random(-Settings.Spread, Settings.Spread)/10))
  1132. local Ray = Ray.new(Character.Head.Position, (CFrame.new(Character.Head.Position, Mouse.Hit.p) * Spread).lookVector.unit * Settings.Range)
  1133. local Hit, Pos = workspace:FindPartOnRayWithIgnoreList(Ray, Ray_Ignore)
  1134. if Hit and Hit.Parent:FindFirstChild("Humanoid") then
  1135. local Hit_Player = game.Players:GetPlayerFromCharacter(Hit.Parent)
  1136. if Settings.AntiTK and not Hit_Player.Neutral and Hit_Player.TeamColor == Player.TeamColor then
  1137. return
  1138. end
  1139. local Humanoid = Hit.Parent.Humanoid
  1140. local c = Instance.new("ObjectValue")
  1141. c.Name = "creator"
  1142. c.Value = Player
  1143. game.Debris:AddItem(c, 3)
  1144. c.Parent = Humanoid
  1145. if Hit.Name == "Head" then
  1146. Humanoid.Health = Humanoid.Health - math.random(Settings.HeadShotDamage[1], Settings.HeadShotDamage[2])
  1147. else
  1148. Humanoid.Health = Humanoid.Health - math.random(Settings.Damage[1], Settings.Damage[2])
  1149. end
  1150. elseif Hit then
  1151. local Hit_Part = Instance.new("Part", Ignore_Model)
  1152. Hit_Part.FormFactor = "Custom"
  1153. Hit_Part.TopSurface = 0
  1154. Hit_Part.BottomSurface = 0
  1155. Hit_Part.Anchored = true
  1156. Hit_Part.CanCollide = false
  1157. Hit_Part.Size = Vector3.new()
  1158. Hit_Part.CFrame = CFrame.new(Pos) * CFrame.Angles(math.random(0, 360), math.random(0, 360), math.random(0, 360))
  1159. Hit_Part.BrickColor = BrickColor.new("Black")
  1160. Hit_Part.Material = "Metal"
  1161. local Meta = Instance.new("Sound")
  1162. Meta.Name = "Crack"
  1163. Meta.SoundId = "rbxassetid://151284431"
  1164. Meta.Volume = 0.3
  1165. Meta.Pitch = 2
  1166. Meta.Parent = Hit_Part
  1167. Meta:play()
  1168. local Cur = Instance.new("SpecialMesh")
  1169. Cur.MeshType = "Sphere"
  1170. Cur.Parent = Hit_Part
  1171. Cur.Scale = Vector3.new(0.5,0.5,0.5)
  1172. Instance.new("Smoke", Hit_Part).Opacity = 15
  1173. local g = Instance.new("PointLight", Hit_Part)
  1174. g.Color = Color3.new(0, 0, 0)
  1175. g.Range = 0
  1176. g.Shadows = true
  1177. local PE = Instance.new("ParticleEmitter")
  1178. PE.Parent = Hit_Part
  1179. PE.Size = NumberSequence.new(0.75)
  1180. PE.LightEmission = 0
  1181. PE.Lifetime = NumberRange.new(5)
  1182. PE.ZOffset = 0.5
  1183. PE.Texture = "http://www.roblox.com/asset/?id=133619974"
  1184. PE.Rate = 50
  1185. PE.Speed = NumberRange.new(2.5)
  1186. PE.VelocitySpread = NumberSequence.new(-0.05)
  1187. PE.Transparency = NumberSequence.new(-1)
  1188. game.Debris:AddItem(Hit_Part, Settings.ImpactDuration)
  1189. game.Debris:AddItem(PE, 0.17)
  1190. --[[ if not Hit.Anchored then
  1191. local w = Instance.new("Weld", Hit_Part)
  1192. w.Part0 = Hit
  1193. w.Part1 = Hit_Part
  1194. w.C0 = Hit.CFrame:toObjectSpace(Hit_Part.CFrame)
  1195. Hit_Part.Anchored = false
  1196. end]]
  1197. if Hit.Transparency >= 0.1 then
  1198. Hit:BreakJoints()
  1199. Hit.Anchored = false
  1200. Hit.CanCollide = true
  1201. Hit.Size = Hit.Size /2
  1202. local sound = Instance.new("Sound", Hit)
  1203. sound.Volume = 10
  1204. sound.SoundId = "rbxassetid://138122923"
  1205. sound:Play()
  1206. for i=1, 4, 1 do
  1207. local clone = Hit:Clone()
  1208. clone.Parent = workspace
  1209. game.Debris:AddItem(clone, 3)
  1210. end
  1211. game.Debris:AddItem(Hit, 1)
  1212. end
  1213. if Hit.Parent:IsA("Hat") or Hit.Parent:IsA("Accessory") and Settings.DropHats then
  1214. Hit.Parent.Parent = workspace
  1215. game.Debris:AddItem(Hit, 3)
  1216. end
  1217. end
  1218. end
  1219.  
  1220.  
  1221. local Can_Shoot = true
  1222. local Reloading = false
  1223.  
  1224. local First_Person = false
  1225.  
  1226. local Mouse_Held
  1227.  
  1228. Tool.Equipped:connect(function(Mouse)
  1229. Equipped = true
  1230. if Settings.Weld and not Welded then
  1231. wait()
  1232. Tool.Parent = Player.Backpack
  1233. end
  1234. Character = Player.Character
  1235. if Gui then
  1236. return
  1237. end
  1238. Ray_Ignore = {Character, Ignore_Model, Camera}
  1239. Mouse.Icon = Settings.Icons.Idle
  1240. Gui = script.Gui:Clone()
  1241. Gui.Parent = Player.PlayerGui
  1242. Gui.Frame.Position = UDim2.new(Settings.GuiPos.X, Gui.Frame.Position.X.Offset, 1.1, Gui.Frame.Position.Y.Offset)
  1243. Gui.Frame:TweenPosition(UDim2.new(Settings.GuiPos.X, Gui.Frame.Position.X.Offset, Settings.GuiPos.Y, Gui.Frame.Position.Y.Offset), "Out", "Bounce", 1)
  1244. CanUpdateGui = true
  1245. Update_Gui()
  1246. Mouse.Button1Down:connect(function()
  1247. if Can_Shoot and Ammo.Value > 0 and Character.Humanoid.Health > 0 then
  1248. Mouse_Held = true
  1249. while true do
  1250. Can_Shoot = false
  1251. delay(0, function()
  1252. local t = math.min(Settings.FireMouseAnimTime/3, Settings.FireRate/3)
  1253. if not Aiming then
  1254. Mouse.Icon = Settings.Icons.Fire1
  1255. end
  1256. wait(t)
  1257. if not Aiming then
  1258. if Reloading then return end
  1259. Mouse.Icon = Settings.Icons.Fire2
  1260. end
  1261. wait(t)
  1262. if not Aiming then
  1263. if Reloading then return end
  1264. Mouse.Icon = Settings.Icons.Fire3
  1265. end
  1266. wait(t)
  1267. if not Aiming then
  1268. if Reloading then return end
  1269. Mouse.Icon = Settings.Icons.Idle
  1270. end
  1271. end)
  1272. for _ = 1, Settings.Bullets do
  1273. Fire(Mouse)
  1274. end
  1275. local bg = Instance.new("BillboardGui", Settings.SmokePart)
  1276. bg.Adornee = Settings.SmokePart
  1277. local flashsize = math.random(5, 8)/10
  1278. bg.Size = UDim2.new(flashsize, 0, flashsize, 0)
  1279. local flash = Instance.new("ImageLabel", bg)
  1280. flash.BackgroundTransparency = 1
  1281. flash.Size = UDim2.new(1, 0, 1, 0)
  1282. flash.Image = "rbxassetid://172841900"
  1283. flash.Rotation = math.random(0, 360)
  1284. game.Debris:AddItem(bg, 0.025)
  1285. delay(0, function()
  1286. local r = math.abs(Settings.Recoil)
  1287. local ran = math.random(-1, 1)
  1288. Camera.CoordinateFrame = CFrame.new(Camera.Focus.p) * (Camera.CoordinateFrame - Camera.CoordinateFrame.p) * CFrame.Angles(r, r*ran, 0) * CFrame.new(0, 0, (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude)
  1289. local c = -r/20
  1290. local cx = -(r*ran)/20
  1291. for i = 1, math.random(15, 25) do
  1292. if EquipId == curId then
  1293. Camera.CoordinateFrame = CFrame.new(Camera.Focus.p) * (Camera.CoordinateFrame - Camera.CoordinateFrame.p) * CFrame.Angles(c, cx, 0) * CFrame.new(0, 0, (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude)
  1294. wait()
  1295. else
  1296. break
  1297. end
  1298. end
  1299. end)
  1300. if Tool.Handle:FindFirstChild("Shoot") then
  1301. Tool.Handle.Shoot:Play()
  1302. end
  1303. Ammo.Value = Ammo.Value - 1
  1304. Tool.Bolt.Transparency = 1
  1305. --Tool.Bolt1.Transparency = 0
  1306. wait(Settings.FireRate)
  1307. Tool.Bolt.Transparency = 0
  1308. --Tool.Bolt1.Transparency = 1
  1309. if not Settings.Automatic or Ammo.Value <= 0 or Character.Humanoid.Health <= 0 or not Mouse_Held then
  1310. break
  1311. end
  1312. end
  1313. Can_Shoot = true
  1314. elseif Can_Shoot and Character.Humanoid.Health > 0 and Tool.Handle:FindFirstChild("Click") then
  1315. Tool.Handle.Click:Play()
  1316. end
  1317. end)
  1318. Mouse.Button1Up:connect(function()
  1319. Mouse_Held = false
  1320. end)
  1321. Mouse.KeyDown:connect(function(Key)
  1322. if Key:upper() == Settings.ReloadKey:upper() and Can_Shoot and StoredAmmo.Value > 0 and not Aiming then
  1323. if Settings.IncludeChamberedBullet and Ammo.Value == Settings.Ammo + 1 or not Settings.IncludeChamberedBullet and Ammo.Value == Settings.Ammo then
  1324. return
  1325. end
  1326. Can_Shoot = false
  1327. Reloading = true
  1328. local TextLabel = Gui.Frame.AmmoDisplay
  1329. delay(0, function()
  1330. CanUpdateGui = false
  1331. TextLabel.Text = "000"
  1332. wait(Settings.ReloadTime/3)
  1333. if TextLabel then
  1334. TextLabel.Text = "000"
  1335. end
  1336. wait(Settings.ReloadTime/3)
  1337. if TextLabel then
  1338. TextLabel.Text = "000"
  1339. end
  1340. end)
  1341. Mouse.Icon = Settings.Icons.Reload
  1342. -- (+Left to -Right, +Fward to -Bward, +Up to -Down) (+Up to -Down, +Left to -Right, +Counter to -Clock)
  1343. Right_Weld.C1 = CFrame.new(-0.75, -0.2, 0.5) * CFrame.Angles(math.rad(-90), 0, 0.1)
  1344. Left_Weld.C1 = CFrame.new(1.2, 0.6, 0.45) * CFrame.Angles(math.rad(-90), math.rad(45), math.rad(0), 0)
  1345. wait(.02)
  1346. Right_Weld.C1 = CFrame.new(-0.75, -0.15, 0.55) * CFrame.Angles(math.rad(-90), 0, 0.15)
  1347. Left_Weld.C1 = CFrame.new(1.2, 0.5, 0.45) * CFrame.Angles(math.rad(-90), math.rad(50), math.rad(0), 0)
  1348. wait(.02)
  1349. Right_Weld.C1 = CFrame.new(-0.75, -0.1, 0.6) * CFrame.Angles(math.rad(-90), 0, 0.2)
  1350. Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.45) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(0), 0)
  1351. wait(0.02)
  1352.  
  1353. Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.40) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(0), 0)
  1354. Tool.Handle.MagOut:play()
  1355. Tool.Mag.Transparency = 1
  1356.  
  1357. wait(0.03)
  1358. Left_Weld.C1 = CFrame.new(1.2, 0.35, 0.35) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(5), 0)
  1359. wait(0.03)
  1360. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.30) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(10), 0)
  1361. wait(0.03)
  1362. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.25) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(15), 0)
  1363. wait(0.03)
  1364. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.20) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(20), 0)
  1365. wait(0.03)
  1366. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.15) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(25), 0)
  1367. wait(0.03)
  1368. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.10) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(30), 0)
  1369. wait(0.03)
  1370. Left_Weld.C1 = CFrame.new(1.2, 0.25, 0.05) * CFrame.Angles(math.rad(-90), math.rad(60), math.rad(35), 0)
  1371. wait(0.03)
  1372. Left_Weld.C1 = CFrame.new(1.2, 0.2, 0) * CFrame.Angles(math.rad(-90), math.rad(65), math.rad(40), 0)
  1373. wait(0.03)
  1374. Left_Weld.C1 = CFrame.new(1.2, 0.15, 0) * CFrame.Angles(math.rad(-90), math.rad(70), math.rad(45), 0)
  1375. wait(0.03)
  1376. Left_Weld.C1 = CFrame.new(1.2, 0.1, 0) * CFrame.Angles(math.rad(-90), math.rad(75), math.rad(50), 0)
  1377. wait(0.5)
  1378.  
  1379. Left_Weld.C1 = CFrame.new(1.2, 0.1, 0.0) * CFrame.Angles(math.rad(-90), math.rad(75), math.rad(40), 0)
  1380. Tool.Handle.MagIn:play()
  1381. Tool.Mag.Transparency = 0
  1382.  
  1383. wait(0.03)
  1384. Left_Weld.C1 = CFrame.new(1.2, 0.15, 0.05) * CFrame.Angles(math.rad(-90), math.rad(70), math.rad(35), 0)
  1385. wait(0.03)
  1386. Left_Weld.C1 = CFrame.new(1.2, 0.2, 0.10) * CFrame.Angles(math.rad(-90), math.rad(65), math.rad(30), 0)
  1387. wait(0.03)
  1388. Left_Weld.C1 = CFrame.new(1.2, 0.25, 0.15) * CFrame.Angles(math.rad(-90), math.rad(60), math.rad(25), 0)
  1389. wait(0.03)
  1390. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.20) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(20), 0)
  1391. wait(0.03)
  1392. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.25) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(15), 0)
  1393. wait(0.03)
  1394. Right_Weld.C1 = CFrame.new(-0.75, -0.1, 0.6) * CFrame.Angles(math.rad(-90), 0, 0.2)
  1395. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.30) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(10), 0)
  1396. wait(0.03)
  1397. Right_Weld.C1 = CFrame.new(-0.75, -0.15, 0.55) * CFrame.Angles(math.rad(-90), 0, 0.15)
  1398. Left_Weld.C1 = CFrame.new(1.2, 0.35, 0.35) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(05), 0)
  1399. wait(0.03)
  1400. Right_Weld.C1 = CFrame.new(-0.75, -0.2, 0.5) * CFrame.Angles(math.rad(-90), 0, 0.1)
  1401. Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.40) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(0), 0)
  1402. wait(0.03)
  1403.  
  1404. Right_Weld.C1 = CFrame.new(-0.75, -0.25, 0.45) * CFrame.Angles(math.rad(-90), 0, 0)
  1405. Left_Weld.C1 = CFrame.new(1.2, 0.21, 0.55)* CFrame.Angles(math.rad(-90), math.rad(55), math.rad(5), 0)
  1406.  
  1407. Mouse.Icon = Settings.Icons.Idle
  1408. CanUpdateGui = true
  1409. local m = Settings.Ammo
  1410. if Ammo.Value > 0 and Settings.IncludeChamberedBullet then
  1411. m = m + 1
  1412. end
  1413. if (StoredAmmo.Value - (m - Ammo.Value)) <= 0 then
  1414. Ammo.Value = Ammo.Value + StoredAmmo.Value
  1415. StoredAmmo.Value = 0
  1416. else
  1417. StoredAmmo.Value = StoredAmmo.Value - (m - Ammo.Value)
  1418. Ammo.Value = m
  1419. end
  1420. Can_Shoot = true
  1421. Reloading = false
  1422. elseif Key:upper() == Settings.SprintKey:upper() and Settings.Sprint and not Aiming then
  1423. Sprinting = true
  1424. Character.Humanoid.WalkSpeed = Settings.SprintSpeed
  1425. Settings.Spread = Settings.Spread + Settings.SprintSpreadIncrease
  1426. end
  1427. end)
  1428. Mouse.KeyUp:connect(function(Key)
  1429. if Key:upper() == Settings.SprintKey:upper() and Sprinting then
  1430. Sprinting = false
  1431. Character.Humanoid.WalkSpeed = 16
  1432. Settings.Spread = Settings.Spread - Settings.SprintSpreadIncrease
  1433. Right_Weld.C0 = CFrame.new(0, -1.5, 0)
  1434. end
  1435. end)
  1436. Mouse.Button2Down:connect(function()
  1437. if not Reloading and not Sprinting and not Aiming and (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 then
  1438. Aiming = true
  1439. _G.MouseSensitivity = 0.3
  1440. Mouse.Icon = Settings.Icons.Aim
  1441.  
  1442. if Settings.AimAnim.Enabled then
  1443. Right_Weld.C1 = CFrame.new()
  1444. Right_Weld.C0 = CFrame.new()
  1445. delay(0, function()
  1446. Tween_C0(Right_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Right_Weld.C0, Character.Head.CFrame:toObjectSpace(Settings.AimPart.CFrame))
  1447. end)
  1448. delay(0, function()
  1449. Tween_C1(Left_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Left_Weld.C1, Settings.LeftAimPos)
  1450. end)
  1451. delay(0, function()
  1452. if Settings.ChangeFOV[1] then
  1453. Camera.FieldOfView = 70
  1454. local Cam_Dif, T_F = 70 - Settings.ChangeFOV[2], Settings.AimAnim.Time * Settings.AimAnim.Frames
  1455. for i = 1, T_F do
  1456. local FOV = 70 - Cam_Dif/T_F * i
  1457. Camera.FieldOfView = FOV
  1458. wait(Settings.AimAnim.Time/Settings.AimAnim.Frames)
  1459. if not Aiming then
  1460. return
  1461. end
  1462. end
  1463. Camera.FieldOfView = Settings.ChangeFOV[2]
  1464. end
  1465. end)
  1466. else
  1467. Right_Weld.C1 = CFrame.new()
  1468. Right_Weld.C0 = CFrame.new()
  1469. Right_Weld.C1 = Character.Head.CFrame:toObjectSpace(Settings.AimPart.CFrame)
  1470. Left_Weld.C1 = Settings.LeftAimPos
  1471. if Settings.ChangeFOV[1] then
  1472. Camera.FieldOfView = Settings.ChangeFOV[2]
  1473. end
  1474. end
  1475. Tool.GripPos = Orig_Grip + Settings.AimGripOffset
  1476. Settings.Spread = Settings.Spread - Settings.SpreadReduction
  1477. end
  1478. end)
  1479. Mouse.Button2Up:connect(function()
  1480. if Aiming then
  1481. Mouse.Icon = Settings.Icons.Idle
  1482.  
  1483. Tool.GripPos = Orig_Grip
  1484. if Settings.AimAnim.Enabled then
  1485. delay(0, function()
  1486. Tween_C0(Right_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Right_Weld.C0, CFrame.new(0, -1.5, 0))
  1487. end)
  1488. delay(0, function()
  1489. Tween_C1(Left_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Left_Weld.C1, Settings.LeftPos)
  1490. end)
  1491. else
  1492. Right_Weld.C1 = Settings.RightPos
  1493. Right_Weld.C0 = CFrame.new(0, -1.5, 0)
  1494. Left_Weld.C1 = Settings.LeftPos
  1495. end
  1496. if Settings.ChangeFOV[1] then
  1497. Camera.FieldOfView = 70
  1498. end
  1499. Settings.Spread = Settings.Spread + Settings.SpreadReduction
  1500. Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1501. Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1502. wait(0.25)
  1503. Aiming = false
  1504. _G.MouseSensitivity = 1
  1505. end
  1506. end)
  1507. wait()
  1508. Camera.Changed:connect(function()
  1509. if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 and Equipped then
  1510. Mouse.TargetFilter = workspace
  1511. Character.Torso.Neck.C1 = CFrame.new()
  1512. Character.Torso.Neck.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.asin((Mouse.Hit.p - Mouse.Origin.p).unit.y), 0, 0)
  1513. end
  1514. end)
  1515. Mouse.Idle:connect(function()
  1516. if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 and Equipped then
  1517. Mouse.TargetFilter = workspace
  1518. Character.Torso.Neck.C1 = CFrame.new()
  1519. Character.Torso.Neck.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.asin((Mouse.Hit.p - Mouse.Origin.p).unit.y), 0, 0)
  1520. end
  1521. end)
  1522. while wait() and Equipped do
  1523. if Sprinting then
  1524. Can_Shoot = false
  1525. Right_Weld.C0 = CFrame.new(0, -1.5, 0) * Settings.SprintArmOffset
  1526. Left_Weld.C0 = CFrame.new(0, -1.5, 0) * Settings.SprintArmOffset
  1527. elseif not Aiming and not Sprinting then
  1528. Can_Shoot = true
  1529. Left_Weld.C0 = CFrame.new(0, -1.5, 0)
  1530. end
  1531. if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude > 1 and Equipped then
  1532. Mouse.TargetFilter = nil
  1533. Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1534. Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1535. end
  1536. end
  1537. end)
  1538.  
  1539. local Arms_Made
  1540. local Fake_Arm_Right, Fake_Arm_Left, Fake_Arm_Model
  1541.  
  1542. Tool.Equipped:connect(function(Mouse)
  1543. if Character and not Arms_Made then
  1544. Arms_Made = true
  1545. local Torso = Character.Torso
  1546. Torso["Right Shoulder"].Part1 = nil
  1547. Left_Weld = Instance.new("Weld", Torso)
  1548. Left_Weld.Name = "Left_Weld"
  1549. Left_Weld.Part0 = Character.Head
  1550. Left_Weld.C0 = CFrame.new(0, -1.5, 0)
  1551. if not Settings.OneHanded then
  1552. Torso["Left Shoulder"].Part1 = nil
  1553. Left_Weld.Part1 = Character["Left Arm"]
  1554. end
  1555. Right_Weld = Instance.new("Weld", Torso)
  1556. Right_Weld.Name = "Right_Weld"
  1557. Right_Weld.Part0 = Character.Head
  1558. Right_Weld.Part1 = Character["Right Arm"]
  1559. Right_Weld.C0 = CFrame.new(0, -1.5, 0)
  1560. Left_Weld.C1 = Settings.LeftPos
  1561. Right_Weld.C1 = Settings.RightPos
  1562. end
  1563. if Settings.FakeArms and not Fake_Arm_Right then
  1564. Fake_Arm_Right, Fake_Arm_Left = Character["Right Arm"]:Clone(), Character["Left Arm"]:Clone()
  1565. Fake_Arm_Right.FormFactor, Fake_Arm_Left.FormFactor = "Custom", "Custom"
  1566. Fake_Arm_Right.Size, Fake_Arm_Left.Size = Vector3.new(), Vector3.new()
  1567. local fakeArms = {Fake_Arm_Right, Fake_Arm_Left}
  1568. for i = 1, 2 do
  1569. local w = Instance.new("Weld", fakeArms[i])
  1570. w.Part0 = Character[fakeArms[i].Name]
  1571. w.Part1 = fakeArms[i]
  1572. fakeArms[i].Transparency = Settings.FakeArmTransparency
  1573. end
  1574. Fake_Arm_Model = Instance.new("Model", Camera)
  1575. Fake_Arm_Right.Parent = Fake_Arm_Model
  1576. if not Settings.OneHanded then
  1577. Fake_Arm_Left.Parent = Fake_Arm_Model
  1578. end
  1579. Fake_Arm_Model.Name = "FakeArms"
  1580. if Settings.CharacterMeshes then
  1581. for i, v in pairs(Character:GetChildren()) do
  1582. if v:IsA("CharacterMesh") and v.BodyPart == Enum.BodyPart.LeftArm or v:IsA("CharacterMesh") and v.BodyPart == Enum.BodyPart.RightArm then
  1583. v:Clone().Parent = Fake_Arm_Model
  1584. end
  1585. end
  1586. end
  1587. if Character:FindFirstChild("Shirt") then
  1588. Instance.new("Humanoid", Fake_Arm_Model)
  1589. Character.Shirt:Clone().Parent = Fake_Arm_Model
  1590. else
  1591. local Arm_Mesh = Instance.new("SpecialMesh", Fake_Arm_Right)
  1592. Arm_Mesh.MeshType, Arm_Mesh.Scale = "Brick", Vector3.new(1, 2, 1)
  1593. local Arm_Mesh2 = Instance.new("SpecialMesh", Fake_Arm_Left)
  1594. Arm_Mesh2.MeshType, Arm_Mesh2.Scale = "Brick", Vector3.new(1, 2, 1)
  1595. end
  1596. end
  1597. end)
  1598.  
  1599. Tool.Unequipped:connect(function()
  1600. Equipped = false
  1601. Tool.GripPos = Orig_Grip
  1602. Aiming = false
  1603. Settings.Spread = Orig_Spread
  1604. if Settings.ChangeFOV[1] then
  1605. Camera.FieldOfView = 70
  1606. end
  1607. if Gui then
  1608. Gui:Destroy()
  1609. Gui = nil
  1610. end
  1611. for i, v in pairs(Tool.Handle:GetChildren()) do
  1612. if v:IsA("Sound") then
  1613. v:Stop()
  1614. end
  1615. end
  1616. if Fake_Arm_Right and Fake_Arm_Left and Fake_Arm_Model then
  1617. Fake_Arm_Model:Destroy()
  1618. Fake_Arm_Right, Fake_Arm_Left, Fake_Arm_Model = nil, nil, nil
  1619. end
  1620. if Character and Left_Weld and Right_Weld then
  1621. Arms_Made = false
  1622. local Torso = Character.Torso
  1623. Torso["Right Shoulder"].Part1, Torso["Left Shoulder"].Part1 = Character["Right Arm"], Character["Left Arm"]
  1624. Left_Weld:Destroy()
  1625. Right_Weld:Destroy()
  1626. end
  1627. Sprinting = false
  1628. Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1629. Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1630. Character.Humanoid.WalkSpeed = 16
  1631. end)
  1632. end))
  1633. NumberValue30.Name = "StoredAmmo"
  1634. NumberValue30.Parent = LocalScript29
  1635. NumberValue30.Value = 999
  1636. NumberValue31.Name = "Ammo"
  1637. NumberValue31.Parent = LocalScript29
  1638. NumberValue31.Value = 50
  1639. Smoke32.Parent = LocalScript29
  1640. Smoke32.Size = 0.25
  1641. Smoke32.Color = Color3.new(0.807843, 0.807843, 0.807843)
  1642. Smoke32.Enabled = false
  1643. Smoke32.Opacity = 0.10000000149012
  1644. Smoke32.RiseVelocity = 10
  1645. Smoke32.Color = Color3.new(0.807843, 0.807843, 0.807843)
  1646. Smoke33.Name = "Smoke1"
  1647. Smoke33.Parent = LocalScript29
  1648. Smoke33.Size = 0.25
  1649. Smoke33.Color = Color3.new(0.807843, 0.807843, 0.807843)
  1650. Smoke33.Enabled = false
  1651. Smoke33.Opacity = 0.10000000149012
  1652. Smoke33.RiseVelocity = 10
  1653. Smoke33.Color = Color3.new(0.807843, 0.807843, 0.807843)
  1654. Smoke34.Name = "Smoke2"
  1655. Smoke34.Parent = LocalScript29
  1656. Smoke34.Size = 0.25
  1657. Smoke34.Color = Color3.new(0.807843, 0.807843, 0.807843)
  1658. Smoke34.Enabled = false
  1659. Smoke34.Opacity = 0.10000000149012
  1660. Smoke34.RiseVelocity = 10
  1661. Smoke34.Color = Color3.new(0.807843, 0.807843, 0.807843)
  1662. for i,v in pairs(mas:GetChildren()) do
  1663. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  1664. pcall(function() v:MakeJoints() end)
  1665. end
  1666. mas:Destroy()
  1667. for i,v in pairs(cors) do
  1668. spawn(function()
  1669. pcall(v)
  1670. end)
  1671. end
  1672. end
  1673.  
  1674. function SpawnM4A1()
  1675.  
  1676. --Converted with ttyyuu12345's model to script plugin v4
  1677. function sandbox(var,func)
  1678. local env = getfenv(func)
  1679. local newenv = setmetatable({},{
  1680. __index = function(self,k)
  1681. if k=="script" then
  1682. return var
  1683. else
  1684. return env[k]
  1685. end
  1686. end,
  1687. })
  1688. setfenv(func,newenv)
  1689. return func
  1690. end
  1691. cors = {}
  1692. mas = Instance.new("Model",game:GetService("Lighting"))
  1693. Tool0 = Instance.new("Tool")
  1694. Part1 = Instance.new("Part")
  1695. BlockMesh2 = Instance.new("BlockMesh")
  1696. PointLight3 = Instance.new("PointLight")
  1697. BillboardGui4 = Instance.new("BillboardGui")
  1698. ImageLabel5 = Instance.new("ImageLabel")
  1699. Script6 = Instance.new("Script")
  1700. Part7 = Instance.new("Part")
  1701. BlockMesh8 = Instance.new("BlockMesh")
  1702. LocalScript9 = Instance.new("LocalScript")
  1703. NumberValue10 = Instance.new("NumberValue")
  1704. NumberValue11 = Instance.new("NumberValue")
  1705. Smoke12 = Instance.new("Smoke")
  1706. Smoke13 = Instance.new("Smoke")
  1707. Smoke14 = Instance.new("Smoke")
  1708. Part15 = Instance.new("Part")
  1709. FileMesh16 = Instance.new("FileMesh")
  1710. Sound17 = Instance.new("Sound")
  1711. Sound18 = Instance.new("Sound")
  1712. Sound19 = Instance.new("Sound")
  1713. Sound20 = Instance.new("Sound")
  1714. Sound21 = Instance.new("Sound")
  1715. Part22 = Instance.new("Part")
  1716. FileMesh23 = Instance.new("FileMesh")
  1717. Part24 = Instance.new("Part")
  1718. FileMesh25 = Instance.new("FileMesh")
  1719. Part26 = Instance.new("Part")
  1720. FileMesh27 = Instance.new("FileMesh")
  1721. Part28 = Instance.new("Part")
  1722. FileMesh29 = Instance.new("FileMesh")
  1723. Tool0.Name = "M4A1"
  1724. Tool0.Parent = mas
  1725. Tool0.GripForward = Vector3.new(0, 0, 1)
  1726. Tool0.GripPos = Vector3.new(0, 0, 0.5)
  1727. Tool0.GripRight = Vector3.new(-0.99999994, 0, 0)
  1728. Part1.Name = "SmokePart"
  1729. Part1.Parent = Tool0
  1730. Part1.Material = Enum.Material.SmoothPlastic
  1731. Part1.BrickColor = BrickColor.new("Dark stone grey")
  1732. Part1.Transparency = 1
  1733. Part1.Anchored = true
  1734. Part1.CanCollide = false
  1735. Part1.FormFactor = Enum.FormFactor.Custom
  1736. Part1.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1737. Part1.CFrame = CFrame.new(18.6962605, -7.70208406, 29.2262001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1738. Part1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1739. Part1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1740. Part1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1741. Part1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1742. Part1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1743. Part1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1744. Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1745. Part1.Position = Vector3.new(18.6962605, -7.70208406, 29.2262001)
  1746. Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1747. BlockMesh2.Parent = Part1
  1748. BlockMesh2.Scale = Vector3.new(0.658373058, 0.658372879, 0.658373058)
  1749. BlockMesh2.Scale = Vector3.new(0.658373058, 0.658372879, 0.658373058)
  1750. PointLight3.Name = "Flash"
  1751. PointLight3.Parent = Part1
  1752. PointLight3.Color = Color3.new(1, 0.666667, 0)
  1753. PointLight3.Enabled = false
  1754. PointLight3.Brightness = 3
  1755. PointLight3.Range = 10
  1756. PointLight3.Color = Color3.new(1, 0.666667, 0)
  1757. BillboardGui4.Name = "Light"
  1758. BillboardGui4.Parent = Part1
  1759. BillboardGui4.Size = UDim2.new(2.5, 0, 2.5, 0)
  1760. BillboardGui4.Active = true
  1761. ImageLabel5.Name = "Light"
  1762. ImageLabel5.Parent = BillboardGui4
  1763. ImageLabel5.Transparency = 1
  1764. ImageLabel5.Size = UDim2.new(2, 0, 2, 0)
  1765. ImageLabel5.Position = UDim2.new(-0.5, 0, -0.5, 0)
  1766. ImageLabel5.Active = true
  1767. ImageLabel5.Visible = false
  1768. ImageLabel5.BackgroundColor3 = Color3.new(0.756863, 0.752941, 0.764706)
  1769. ImageLabel5.BackgroundTransparency = 1
  1770. ImageLabel5.Image = "http://www.roblox.com/asset/?id=68683102"
  1771. Script6.Parent = BillboardGui4
  1772. table.insert(cors,sandbox(Script6,function()
  1773. script.Parent.Adornee = script.Parent.Parent
  1774. end))
  1775. Part7.Name = "AimPart"
  1776. Part7.Parent = Tool0
  1777. Part7.Material = Enum.Material.SmoothPlastic
  1778. Part7.BrickColor = BrickColor.new("Dark stone grey")
  1779. Part7.Transparency = 1
  1780. Part7.Anchored = true
  1781. Part7.CanCollide = false
  1782. Part7.FormFactor = Enum.FormFactor.Custom
  1783. Part7.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1784. Part7.CFrame = CFrame.new(18.6232586, -7.23058319, 34.3801384, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1785. Part7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1786. Part7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1787. Part7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1788. Part7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1789. Part7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1790. Part7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1791. Part7.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1792. Part7.Position = Vector3.new(18.6232586, -7.23058319, 34.3801384)
  1793. Part7.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1794. BlockMesh8.Parent = Part7
  1795. BlockMesh8.Scale = Vector3.new(0.141079962, 0.357402384, 0.141079962)
  1796. BlockMesh8.Scale = Vector3.new(0.141079962, 0.357402384, 0.141079962)
  1797.  
  1798. --Gun Gui
  1799.  
  1800. -- Objects
  1801.  
  1802. local Gui = Instance.new("ScreenGui")
  1803. local Frame = Instance.new("Frame")
  1804. local AmmoDisplay = Instance.new("TextLabel")
  1805. local StoredAmmoDisplay = Instance.new("TextLabel")
  1806. local _000 = Instance.new("TextLabel")
  1807. local _000_2 = Instance.new("TextLabel")
  1808.  
  1809. -- Properties
  1810.  
  1811. Gui.Name = "Gui"
  1812. Gui.Parent = LocalScript9
  1813.  
  1814. Frame.Parent = Gui
  1815. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  1816. Frame.BackgroundTransparency = 1
  1817. Frame.BorderColor3 = Color3.new(0.466667, 0.466667, 0.466667)
  1818. Frame.BorderSizePixel = 0
  1819. Frame.Position = UDim2.new(0.125, -5, 1.14999998, -120)
  1820. Frame.Size = UDim2.new(-0.100000001, 0, -0.0399999991, 0)
  1821. Frame.SizeConstraint = Enum.SizeConstraint.RelativeXX
  1822.  
  1823. AmmoDisplay.Name = "AmmoDisplay"
  1824. AmmoDisplay.Parent = Frame
  1825. AmmoDisplay.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  1826. AmmoDisplay.BackgroundTransparency = 1
  1827. AmmoDisplay.Position = UDim2.new(-0.0599999987, 0, 0, 0)
  1828. AmmoDisplay.Size = UDim2.new(0.540000021, 0, 1.25, 0)
  1829. AmmoDisplay.ZIndex = 2
  1830. AmmoDisplay.Font = Enum.Font.SourceSansBold
  1831. AmmoDisplay.FontSize = Enum.FontSize.Size36
  1832. AmmoDisplay.Text = "30"
  1833. AmmoDisplay.TextColor3 = Color3.new(1, 1, 1)
  1834. AmmoDisplay.TextScaled = true
  1835. AmmoDisplay.TextSize = 36
  1836. AmmoDisplay.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  1837. AmmoDisplay.TextWrapped = true
  1838. AmmoDisplay.TextXAlignment = Enum.TextXAlignment.Right
  1839.  
  1840. StoredAmmoDisplay.Name = "StoredAmmoDisplay"
  1841. StoredAmmoDisplay.Parent = Frame
  1842. StoredAmmoDisplay.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  1843. StoredAmmoDisplay.BackgroundTransparency = 1
  1844. StoredAmmoDisplay.Position = UDim2.new(0.419999987, 0, 0.25, 0)
  1845. StoredAmmoDisplay.Size = UDim2.new(0.550000012, 0, 0.75, 0)
  1846. StoredAmmoDisplay.ZIndex = 2
  1847. StoredAmmoDisplay.Font = Enum.Font.SourceSans
  1848. StoredAmmoDisplay.FontSize = Enum.FontSize.Size14
  1849. StoredAmmoDisplay.Text = "360"
  1850. StoredAmmoDisplay.TextColor3 = Color3.new(1, 1, 1)
  1851. StoredAmmoDisplay.TextScaled = true
  1852. StoredAmmoDisplay.TextSize = 14
  1853. StoredAmmoDisplay.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  1854. StoredAmmoDisplay.TextWrapped = true
  1855. StoredAmmoDisplay.TextXAlignment = Enum.TextXAlignment.Right
  1856.  
  1857. _000.Name = "000"
  1858. _000.Parent = Frame
  1859. _000.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  1860. _000.BackgroundTransparency = 1
  1861. _000.Position = UDim2.new(0.419999987, 0, 0.25, 0)
  1862. _000.Size = UDim2.new(0.550000012, 0, 0.75, 0)
  1863. _000.ZIndex = 2
  1864. _000.Font = Enum.Font.SourceSans
  1865. _000.FontSize = Enum.FontSize.Size14
  1866. _000.Text = "000"
  1867. _000.TextColor3 = Color3.new(1, 1, 1)
  1868. _000.TextScaled = true
  1869. _000.TextSize = 14
  1870. _000.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  1871. _000.TextTransparency = 0.80000001192093
  1872. _000.TextWrapped = true
  1873. _000.TextXAlignment = Enum.TextXAlignment.Right
  1874.  
  1875. _000_2.Name = "000"
  1876. _000_2.Parent = Frame
  1877. _000_2.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  1878. _000_2.BackgroundTransparency = 1
  1879. _000_2.Position = UDim2.new(-0.25, 0, 0, 0)
  1880. _000_2.Size = UDim2.new(0.75, 0, 1.25, 0)
  1881. _000_2.ZIndex = 2
  1882. _000_2.Font = Enum.Font.SourceSansBold
  1883. _000_2.FontSize = Enum.FontSize.Size48
  1884. _000_2.Text = "000"
  1885. _000_2.TextColor3 = Color3.new(1, 1, 1)
  1886. _000_2.TextScaled = true
  1887. _000_2.TextSize = 48
  1888. _000_2.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  1889. _000_2.TextTransparency = 0.80000001192093
  1890. _000_2.TextWrapped = true
  1891. _000_2.TextXAlignment = Enum.TextXAlignment.Right
  1892.  
  1893.  
  1894. LocalScript9.Name = "Gun_Script"
  1895. LocalScript9.Parent = Tool0
  1896. table.insert(cors,sandbox(LocalScript9,function()
  1897. sp = script.Parent
  1898.  
  1899. Mesh = false -- If true will load BC 2.0 Arm meshes as well.
  1900. Shirt = true -- If true will load the user's shirt to the arms as well
  1901.  
  1902. function onEquipped(mouse)
  1903. local Player = game:GetService("Players").LocalPlayer
  1904. local Cam = game.Workspace.CurrentCamera
  1905.  
  1906. local Arms = Instance.new("Model")
  1907. Arms.Name = "Arms"
  1908. Arms.Parent = Cam
  1909.  
  1910. if Shirt == true then
  1911. local Humanoid = Instance.new("Humanoid")
  1912. Humanoid.MaxHealth = 0
  1913. Humanoid.Health = 0
  1914. Humanoid.Name = ""
  1915. Humanoid.Parent = Arms
  1916.  
  1917. local newShirt = Player.Character:FindFirstChild("Shirt"):clone()
  1918. newShirt.Parent = Arms
  1919. else end
  1920.  
  1921. local RightArm = Player.Character:FindFirstChild("Right Arm"):clone()
  1922. RightArm.Name = "Right Arm"
  1923. RightArm.Transparency = 0
  1924.  
  1925. local w = Instance.new("Weld")
  1926. w.Part0 = RightArm
  1927. w.Part1 = Player.Character:FindFirstChild("Right Arm")
  1928. w.C0 = CFrame.new()
  1929. w.C1 = CFrame.new()
  1930. w.Parent = RightArm
  1931. RightArm.Parent = Arms
  1932.  
  1933. local LeftArm = Player.Character:FindFirstChild("Left Arm"):clone()
  1934. LeftArm.Name = "Left Arm"
  1935. LeftArm.Transparency = 0
  1936.  
  1937. local w = Instance.new("Weld")
  1938. w.Part0 = LeftArm
  1939. w.Part1 = Player.Character:FindFirstChild("Left Arm")
  1940. w.C0 = CFrame.new()
  1941. w.C1 = CFrame.new()
  1942. w.Parent = LeftArm
  1943. LeftArm.Parent = Arms
  1944.  
  1945. if Mesh ~= false then
  1946. local LeftArmMesh = script:FindFirstChild("LeftArm")
  1947. LeftArmMesh.Parent = LeftArm
  1948. local RightArmMesh = script:FindFirstChild("RightArm")
  1949. RightArmMesh.Parent = RightArm
  1950. else end
  1951.  
  1952. end
  1953.  
  1954. function onUnequipped(mouse)
  1955. local Player = game:GetService("Players").LocalPlayer
  1956. local Cam = game.Workspace.CurrentCamera
  1957. for _, Model in pairs(Cam:GetChildren()) do
  1958. if Model.Name == "Arms" then
  1959. Model:remove()
  1960. else end
  1961. end
  1962. end
  1963.  
  1964. sp.Equipped:connect(onEquipped)
  1965. sp.Unequipped:connect(onUnequipped)
  1966.  
  1967. wait(0.5)
  1968. --Made by YouTubes--
  1969. --Edit settings below--
  1970. local Tool = script.Parent
  1971. local Settings = {
  1972. Range = 2500
  1973. ,Spread = 8
  1974. ,Damage = {30, 30}
  1975. ,HeadShotDamage = {60, 60}
  1976. ,Bullets = 1
  1977. ,FireRate = 0.068
  1978. ,Automatic = true
  1979. ,AntiTK = false
  1980. ,ImpactDuration = .5
  1981. --Reload
  1982. ,ReloadKey = "R"
  1983. ,ReloadTime = 1.63
  1984. ,Ammo = 30
  1985. ,IncludeChamberedBullet = true
  1986. --Gui
  1987. ,GuiPos = Vector2.new(script.Gui.Frame.Position.X.Scale, script.Gui.Frame.Position.Y.Scale)
  1988. --Arms
  1989. ,OneHanded = false
  1990. ,FakeArms = true
  1991. ,FakeArmTransparency = 0
  1992. -- (+Left to -Right, +Fward to -Bward, +Up to -Down) (+Up to -Down, +Left to -Right, +Counter to -Clock)
  1993. ,RightPos = CFrame.new(-0.75, -0.25, 0.45) * CFrame.Angles(math.rad(-90), 0, 0)
  1994. ,LeftPos = CFrame.new(1.2, 0.21, 0.55)* CFrame.Angles(math.rad(-90), math.rad(55), math.rad(5), 0)
  1995. ,AimPart = Tool.AimPart
  1996. ,AimPartOffset = CFrame.new()
  1997. ,AimGripOffset = Vector3.new(0, 0, 0)
  1998. ,LeftAimPos = CFrame.new(1, 0.9, 0.35) * CFrame.Angles(math.rad(-95), math.rad(20), math.rad(0), 00)
  1999. ,AimAnim = {
  2000. Enabled = false
  2001. ,Frames = 50
  2002. ,Time = 0.1
  2003. }
  2004. ,ChangeFOV = {true, 45}
  2005. ,SpreadReduction = 8
  2006. --Weld
  2007. ,Weld = true
  2008. --Mouse
  2009. ,Icons = {
  2010. Idle = "rbxassetid://70288585"
  2011. ,Fire1 = "rbxassetid://70288578"
  2012. ,Fire2 = "rbxassetid://70288572"
  2013. ,Fire3 = "rbxassetid://70288578"
  2014. ,Reload = "rbxassetid://70288599"
  2015. ,Aim = "rbxasset://textures/Blank.png"
  2016. }
  2017. ,FireMouseAnimTime = 0.15
  2018. --Recoil
  2019. ,Recoil = math.rad(0.79)
  2020. --Smoke
  2021. ,Smoke = true
  2022. ,SmokePart = Tool.SmokePart
  2023. ,Smokes = {{script.Smoke, 6, 0.01}, {script.Smoke1, 0.01}, {script.Smoke2, 0.01}}
  2024. --Sprint
  2025. ,Sprint = true
  2026. ,SprintSpeed = 25
  2027. ,SprintKey = "0"
  2028. ,SprintSpreadIncrease = 40
  2029. ,SprintArmOffset = CFrame.new(0.25, 0.125, 0.25) * CFrame.Angles(math.rad(-30), math.rad(35), 0)
  2030. ,DropHats = true
  2031. }
  2032.  
  2033. --Do not edit below this lign--
  2034.  
  2035. local Orig_Spread = Settings.Spread
  2036. local Orig_Grip = Tool.GripPos
  2037.  
  2038. local Player = game.Players.LocalPlayer
  2039. local Character = Player.Character
  2040.  
  2041. local Camera = workspace.CurrentCamera
  2042.  
  2043. local Ammo, StoredAmmo = script.Ammo, script.StoredAmmo
  2044.  
  2045. local Gui, CanUpdateGui = nil, true
  2046.  
  2047. local Sprinting, Equipped
  2048.  
  2049. function Update_Gui()
  2050. if Gui and CanUpdateGui then
  2051. Gui.Frame.AmmoDisplay.Text = Ammo.Value
  2052. Gui.Frame.StoredAmmoDisplay.Text = StoredAmmo.Value
  2053. end
  2054. end
  2055.  
  2056. local Welded
  2057. if Settings.Weld then
  2058. delay(0, function()
  2059. local weldC0s = {}
  2060. for i, v in pairs(Tool:GetChildren()) do
  2061. if v:IsA("BasePart") and v ~= Tool.Handle then
  2062. table.insert(weldC0s, {v, Tool.Handle.CFrame:toObjectSpace(v.CFrame)})
  2063. v.Anchored = false
  2064. end
  2065. end
  2066. Tool.Handle.Anchored = false
  2067. local welds = {}
  2068. Tool.Equipped:connect(function()
  2069. for i, v in ipairs(welds) do
  2070. v.Part1 = nil
  2071. v:Destroy()
  2072. end
  2073. for i, v in ipairs(weldC0s) do
  2074. if v[1] and v[2] then
  2075. local w = Instance.new("Weld", Tool.Handle)
  2076. w.Part0 = Tool.Handle
  2077. w.Part1 = v[1]
  2078. w.C0 = v[2]
  2079. table.insert(welds, w)
  2080. end
  2081. end
  2082. end)
  2083. wait()
  2084. Welded = true
  2085. end)
  2086. end
  2087.  
  2088. local Left_Weld, Right_Weld
  2089.  
  2090. Ammo.Changed:connect(Update_Gui)
  2091. StoredAmmo.Changed:connect(Update_Gui)
  2092.  
  2093. Settings.Range = math.min(Settings.Range, 999)
  2094.  
  2095. local Ignore_Model = workspace:FindFirstChild("Ray_Ignore") or Instance.new("Model", workspace)
  2096. Ignore_Model.Name = "Ray_Ignore"
  2097.  
  2098. local Ray_Ignore = {Character, Ignore_Model, Camera}
  2099.  
  2100. Character.Humanoid.Died:connect(function()
  2101. Tool.Parent = Player.Backpack
  2102. end)
  2103.  
  2104. function Fire(Mouse)
  2105. local Spread = CFrame.Angles(math.rad(math.random(-Settings.Spread, Settings.Spread)/10), math.rad(math.random(-Settings.Spread, Settings.Spread)/10), math.rad(math.random(-Settings.Spread, Settings.Spread)/10))
  2106. local Ray = Ray.new(Character.Head.Position, (CFrame.new(Character.Head.Position, Mouse.Hit.p) * Spread).lookVector.unit * Settings.Range)
  2107. local Hit, Pos = workspace:FindPartOnRayWithIgnoreList(Ray, Ray_Ignore)
  2108. if Hit and Hit.Parent:FindFirstChild("Humanoid") then
  2109. local Hit_Player = game.Players:GetPlayerFromCharacter(Hit.Parent)
  2110. if Settings.AntiTK and not Hit_Player.Neutral and Hit_Player.TeamColor == Player.TeamColor then
  2111. return
  2112. end
  2113. local Humanoid = Hit.Parent.Humanoid
  2114. local c = Instance.new("ObjectValue")
  2115. c.Name = "creator"
  2116. c.Value = Player
  2117. game.Debris:AddItem(c, 3)
  2118. c.Parent = Humanoid
  2119. if Hit.Name == "Head" then
  2120. Humanoid.Health = Humanoid.Health - math.random(Settings.HeadShotDamage[1], Settings.HeadShotDamage[2])
  2121. else
  2122. Humanoid.Health = Humanoid.Health - math.random(Settings.Damage[1], Settings.Damage[2])
  2123. end
  2124. elseif Hit then
  2125. local Hit_Part = Instance.new("Part", Ignore_Model)
  2126. Hit_Part.FormFactor = "Custom"
  2127. Hit_Part.TopSurface = 0
  2128. Hit_Part.BottomSurface = 0
  2129. Hit_Part.Anchored = true
  2130. Hit_Part.CanCollide = false
  2131. Hit_Part.Size = Vector3.new()
  2132. Hit_Part.CFrame = CFrame.new(Pos) * CFrame.Angles(math.random(0, 360), math.random(0, 360), math.random(0, 360))
  2133. Hit_Part.BrickColor = BrickColor.new("Black")
  2134. Hit_Part.Material = "Metal"
  2135. local Meta = Instance.new("Sound")
  2136. Meta.Name = "Crack"
  2137. Meta.SoundId = "rbxassetid://151284431"
  2138. Meta.Volume = 0.3
  2139. Meta.Pitch = 2
  2140. Meta.Parent = Hit_Part
  2141. Meta:play()
  2142. local Cur = Instance.new("SpecialMesh")
  2143. Cur.MeshType = "Sphere"
  2144. Cur.Parent = Hit_Part
  2145. Cur.Scale = Vector3.new(0.5,0.5,0.5)
  2146. Instance.new("Smoke", Hit_Part).Opacity = 15
  2147. local g = Instance.new("PointLight", Hit_Part)
  2148. g.Color = Color3.new(0, 0, 0)
  2149. g.Range = 0
  2150. g.Shadows = true
  2151. local PE = Instance.new("ParticleEmitter")
  2152. PE.Parent = Hit_Part
  2153. PE.Size = NumberSequence.new(0.75)
  2154. PE.LightEmission = 0
  2155. PE.Lifetime = NumberRange.new(5)
  2156. PE.ZOffset = 0.5
  2157. PE.Texture = "http://www.roblox.com/asset/?id=133619974"
  2158. PE.Rate = 50
  2159. PE.Speed = NumberRange.new(2.5)
  2160. PE.VelocitySpread = NumberSequence.new(-0.05)
  2161. PE.Transparency = NumberSequence.new(-1)
  2162. game.Debris:AddItem(Hit_Part, Settings.ImpactDuration)
  2163. game.Debris:AddItem(PE, 0.17)
  2164. --[[ if not Hit.Anchored then
  2165. local w = Instance.new("Weld", Hit_Part)
  2166. w.Part0 = Hit
  2167. w.Part1 = Hit_Part
  2168. w.C0 = Hit.CFrame:toObjectSpace(Hit_Part.CFrame)
  2169. Hit_Part.Anchored = false
  2170. end]]
  2171. if Hit.Transparency >= 0.1 then
  2172. Hit:BreakJoints()
  2173. Hit.Anchored = false
  2174. Hit.Size = Hit.Size /2
  2175. local sound = Instance.new("Sound", Hit)
  2176. sound.Volume = 10
  2177. sound.SoundId = "rbxassetid://138122923"
  2178. sound:Play()
  2179. for i=1, 4, 1 do
  2180. local clone = Hit:Clone()
  2181. clone.Parent = workspace
  2182. game.Debris:AddItem(clone, 3)
  2183. end
  2184. game.Debris:AddItem(Hit, 1)
  2185. end
  2186. if Hit.Parent:IsA("Hat") or Hit.Parent:IsA("Accessory") and Settings.DropHats then
  2187. Hit.Parent.Parent = workspace
  2188. game.Debris:AddItem(Hit, 3)
  2189. end
  2190. end
  2191. end
  2192.  
  2193.  
  2194. local Can_Shoot = true
  2195. local Reloading = false
  2196.  
  2197. local First_Person = false
  2198.  
  2199. local Mouse_Held
  2200.  
  2201. Tool.Equipped:connect(function(Mouse)
  2202. Equipped = true
  2203. if Settings.Weld and not Welded then
  2204. wait()
  2205. Tool.Parent = Player.Backpack
  2206. end
  2207. Character = Player.Character
  2208. if Gui then
  2209. return
  2210. end
  2211. Ray_Ignore = {Character, Ignore_Model, Camera}
  2212. Mouse.Icon = Settings.Icons.Idle
  2213. Gui = script.Gui:Clone()
  2214. Gui.Parent = Player.PlayerGui
  2215. Gui.Frame.Position = UDim2.new(Settings.GuiPos.X, Gui.Frame.Position.X.Offset, 1.1, Gui.Frame.Position.Y.Offset)
  2216. Gui.Frame:TweenPosition(UDim2.new(Settings.GuiPos.X, Gui.Frame.Position.X.Offset, Settings.GuiPos.Y, Gui.Frame.Position.Y.Offset), "Out", "Bounce", 1)
  2217. CanUpdateGui = true
  2218. Update_Gui()
  2219. Mouse.Button1Down:connect(function()
  2220. if Can_Shoot and Ammo.Value > 0 and Character.Humanoid.Health > 0 then
  2221. Mouse_Held = true
  2222. while true do
  2223. Can_Shoot = false
  2224. delay(0, function()
  2225. local t = math.min(Settings.FireMouseAnimTime/3, Settings.FireRate/3)
  2226. if not Aiming then
  2227. Mouse.Icon = Settings.Icons.Fire1
  2228. end
  2229. wait(t)
  2230. if not Aiming then
  2231. if Reloading then return end
  2232. Mouse.Icon = Settings.Icons.Fire2
  2233. end
  2234. wait(t)
  2235. if not Aiming then
  2236. if Reloading then return end
  2237. Mouse.Icon = Settings.Icons.Fire3
  2238. end
  2239. wait(t)
  2240. if not Aiming then
  2241. if Reloading then return end
  2242. Mouse.Icon = Settings.Icons.Idle
  2243. end
  2244. end)
  2245. for _ = 1, Settings.Bullets do
  2246. Fire(Mouse)
  2247. end
  2248. local bg = Instance.new("BillboardGui", Settings.SmokePart)
  2249. bg.Adornee = Settings.SmokePart
  2250. local flashsize = math.random(5, 8)/10
  2251. bg.Size = UDim2.new(flashsize, 0, flashsize, 0)
  2252. local flash = Instance.new("ImageLabel", bg)
  2253. flash.BackgroundTransparency = 1
  2254. flash.Size = UDim2.new(1, 0, 1, 0)
  2255. flash.Image = "rbxassetid://172841900"
  2256. flash.Rotation = math.random(0, 360)
  2257. game.Debris:AddItem(bg, 0.025)
  2258. delay(0, function()
  2259. local r = math.abs(Settings.Recoil)
  2260. local ran = math.random(-1, 1)
  2261. Camera.CoordinateFrame = CFrame.new(Camera.Focus.p) * (Camera.CoordinateFrame - Camera.CoordinateFrame.p) * CFrame.Angles(r, r*ran, 0) * CFrame.new(0, 0, (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude)
  2262. local c = -r/20
  2263. local cx = -(r*ran)/20
  2264. for i = 1, math.random(15, 25) do
  2265. if EquipId == curId then
  2266. Camera.CoordinateFrame = CFrame.new(Camera.Focus.p) * (Camera.CoordinateFrame - Camera.CoordinateFrame.p) * CFrame.Angles(c, cx, 0) * CFrame.new(0, 0, (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude)
  2267. wait()
  2268. else
  2269. break
  2270. end
  2271. end
  2272. end)
  2273. if Tool.Handle:FindFirstChild("Shoot") then
  2274. Tool.Handle.Shoot:Play()
  2275. end
  2276. Ammo.Value = Ammo.Value - 1
  2277. Tool.Bolt.Transparency = 1
  2278. --Tool.Bolt1.Transparency = 0
  2279. wait(Settings.FireRate)
  2280. Tool.Bolt.Transparency = 0
  2281. --Tool.Bolt1.Transparency = 1
  2282. if not Settings.Automatic or Ammo.Value <= 0 or Character.Humanoid.Health <= 0 or not Mouse_Held then
  2283. break
  2284. end
  2285. end
  2286. Can_Shoot = true
  2287. elseif Can_Shoot and Character.Humanoid.Health > 0 and Tool.Handle:FindFirstChild("Click") then
  2288. Tool.Handle.Click:Play()
  2289. end
  2290. end)
  2291. Mouse.Button1Up:connect(function()
  2292. Mouse_Held = false
  2293. end)
  2294. Mouse.KeyDown:connect(function(Key)
  2295. if Key:upper() == Settings.ReloadKey:upper() and Can_Shoot and StoredAmmo.Value > 0 and not Aiming then
  2296. if Settings.IncludeChamberedBullet and Ammo.Value == Settings.Ammo + 1 or not Settings.IncludeChamberedBullet and Ammo.Value == Settings.Ammo then
  2297. return
  2298. end
  2299. Can_Shoot = false
  2300. Reloading = true
  2301. local TextLabel = Gui.Frame.AmmoDisplay
  2302. delay(0, function()
  2303. CanUpdateGui = false
  2304. TextLabel.Text = "000"
  2305. wait(Settings.ReloadTime/3)
  2306. if TextLabel then
  2307. TextLabel.Text = "000"
  2308. end
  2309. wait(Settings.ReloadTime/3)
  2310. if TextLabel then
  2311. TextLabel.Text = "000"
  2312. end
  2313. end)
  2314. Mouse.Icon = Settings.Icons.Reload
  2315. -- (+Left to -Right, +Fward to -Bward, +Up to -Down) (+Up to -Down, +Left to -Right, +Counter to -Clock)
  2316. Right_Weld.C1 = CFrame.new(-0.75, -0.2, 0.5) * CFrame.Angles(math.rad(-90), 0, 0.1)
  2317. Left_Weld.C1 = CFrame.new(1.2, 0.6, 0.45) * CFrame.Angles(math.rad(-90), math.rad(45), math.rad(0), 0)
  2318. wait(.02)
  2319. Right_Weld.C1 = CFrame.new(-0.75, -0.15, 0.55) * CFrame.Angles(math.rad(-90), 0, 0.15)
  2320. Left_Weld.C1 = CFrame.new(1.2, 0.5, 0.45) * CFrame.Angles(math.rad(-90), math.rad(50), math.rad(0), 0)
  2321. wait(.02)
  2322. Right_Weld.C1 = CFrame.new(-0.75, -0.1, 0.6) * CFrame.Angles(math.rad(-90), 0, 0.2)
  2323. Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.45) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(0), 0)
  2324. wait(0.02)
  2325.  
  2326. Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.40) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(0), 0)
  2327. Tool.Handle.MagOut:play()
  2328. Tool.Mag.Transparency = 1
  2329.  
  2330. wait(0.03)
  2331. Left_Weld.C1 = CFrame.new(1.2, 0.35, 0.35) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(5), 0)
  2332. wait(0.03)
  2333. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.30) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(10), 0)
  2334. wait(0.03)
  2335. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.25) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(15), 0)
  2336. wait(0.03)
  2337. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.20) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(20), 0)
  2338. wait(0.03)
  2339. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.15) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(25), 0)
  2340. wait(0.03)
  2341. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.10) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(30), 0)
  2342. wait(0.03)
  2343. Left_Weld.C1 = CFrame.new(1.2, 0.25, 0.05) * CFrame.Angles(math.rad(-90), math.rad(60), math.rad(35), 0)
  2344. wait(0.03)
  2345. Left_Weld.C1 = CFrame.new(1.2, 0.2, 0) * CFrame.Angles(math.rad(-90), math.rad(65), math.rad(40), 0)
  2346. wait(0.03)
  2347. Left_Weld.C1 = CFrame.new(1.2, 0.15, 0) * CFrame.Angles(math.rad(-90), math.rad(70), math.rad(45), 0)
  2348. wait(0.03)
  2349. Left_Weld.C1 = CFrame.new(1.2, 0.1, 0) * CFrame.Angles(math.rad(-90), math.rad(75), math.rad(50), 0)
  2350. wait(0.5)
  2351.  
  2352. Left_Weld.C1 = CFrame.new(1.2, 0.1, 0.0) * CFrame.Angles(math.rad(-90), math.rad(75), math.rad(40), 0)
  2353. Tool.Handle.MagIn:play()
  2354. Tool.Mag.Transparency = 0
  2355.  
  2356. wait(0.03)
  2357. Left_Weld.C1 = CFrame.new(1.2, 0.15, 0.05) * CFrame.Angles(math.rad(-90), math.rad(70), math.rad(35), 0)
  2358. wait(0.03)
  2359. Left_Weld.C1 = CFrame.new(1.2, 0.2, 0.10) * CFrame.Angles(math.rad(-90), math.rad(65), math.rad(30), 0)
  2360. wait(0.03)
  2361. Left_Weld.C1 = CFrame.new(1.2, 0.25, 0.15) * CFrame.Angles(math.rad(-90), math.rad(60), math.rad(25), 0)
  2362. wait(0.03)
  2363. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.20) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(20), 0)
  2364. wait(0.03)
  2365. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.25) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(15), 0)
  2366. wait(0.03)
  2367. Right_Weld.C1 = CFrame.new(-0.75, -0.1, 0.6) * CFrame.Angles(math.rad(-90), 0, 0.2)
  2368. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.30) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(10), 0)
  2369. wait(0.03)
  2370. Right_Weld.C1 = CFrame.new(-0.75, -0.15, 0.55) * CFrame.Angles(math.rad(-90), 0, 0.15)
  2371. Left_Weld.C1 = CFrame.new(1.2, 0.35, 0.35) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(05), 0)
  2372. wait(0.03)
  2373. Right_Weld.C1 = CFrame.new(-0.75, -0.2, 0.5) * CFrame.Angles(math.rad(-90), 0, 0.1)
  2374. Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.40) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(0), 0)
  2375. wait(0.03)
  2376.  
  2377. Right_Weld.C1 = CFrame.new(-0.75, -0.25, 0.45) * CFrame.Angles(math.rad(-90), 0, 0)
  2378. Left_Weld.C1 = CFrame.new(1.2, 0.21, 0.55)* CFrame.Angles(math.rad(-90), math.rad(55), math.rad(5), 0)
  2379.  
  2380. Mouse.Icon = Settings.Icons.Idle
  2381. CanUpdateGui = true
  2382. local m = Settings.Ammo
  2383. if Ammo.Value > 0 and Settings.IncludeChamberedBullet then
  2384. m = m + 1
  2385. end
  2386. if (StoredAmmo.Value - (m - Ammo.Value)) <= 0 then
  2387. Ammo.Value = Ammo.Value + StoredAmmo.Value
  2388. StoredAmmo.Value = 0
  2389. else
  2390. StoredAmmo.Value = StoredAmmo.Value - (m - Ammo.Value)
  2391. Ammo.Value = m
  2392. end
  2393. Can_Shoot = true
  2394. Reloading = false
  2395. elseif Key:upper() == Settings.SprintKey:upper() and Settings.Sprint and not Aiming then
  2396. Sprinting = true
  2397. Character.Humanoid.WalkSpeed = Settings.SprintSpeed
  2398. Settings.Spread = Settings.Spread + Settings.SprintSpreadIncrease
  2399. end
  2400. end)
  2401. Mouse.KeyUp:connect(function(Key)
  2402. if Key:upper() == Settings.SprintKey:upper() and Sprinting then
  2403. Sprinting = false
  2404. Character.Humanoid.WalkSpeed = 16
  2405. Settings.Spread = Settings.Spread - Settings.SprintSpreadIncrease
  2406. Right_Weld.C0 = CFrame.new(0, -1.5, 0)
  2407. end
  2408. end)
  2409. Mouse.Button2Down:connect(function()
  2410. if not Reloading and not Sprinting and not Aiming and (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 then
  2411. Aiming = true
  2412. _G.MouseSensitivity = 0.3
  2413. Mouse.Icon = Settings.Icons.Aim
  2414.  
  2415. if Settings.AimAnim.Enabled then
  2416. Right_Weld.C1 = CFrame.new()
  2417. Right_Weld.C0 = CFrame.new()
  2418. delay(0, function()
  2419. Tween_C0(Right_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Right_Weld.C0, Character.Head.CFrame:toObjectSpace(Settings.AimPart.CFrame))
  2420. end)
  2421. delay(0, function()
  2422. Tween_C1(Left_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Left_Weld.C1, Settings.LeftAimPos)
  2423. end)
  2424. delay(0, function()
  2425. if Settings.ChangeFOV[1] then
  2426. Camera.FieldOfView = 70
  2427. local Cam_Dif, T_F = 70 - Settings.ChangeFOV[2], Settings.AimAnim.Time * Settings.AimAnim.Frames
  2428. for i = 1, T_F do
  2429. local FOV = 70 - Cam_Dif/T_F * i
  2430. Camera.FieldOfView = FOV
  2431. wait(Settings.AimAnim.Time/Settings.AimAnim.Frames)
  2432. if not Aiming then
  2433. return
  2434. end
  2435. end
  2436. Camera.FieldOfView = Settings.ChangeFOV[2]
  2437. end
  2438. end)
  2439. else
  2440. Right_Weld.C1 = CFrame.new()
  2441. Right_Weld.C0 = CFrame.new()
  2442. Right_Weld.C1 = Character.Head.CFrame:toObjectSpace(Settings.AimPart.CFrame)
  2443. Left_Weld.C1 = Settings.LeftAimPos
  2444. if Settings.ChangeFOV[1] then
  2445. Camera.FieldOfView = Settings.ChangeFOV[2]
  2446. end
  2447. end
  2448. Tool.GripPos = Orig_Grip + Settings.AimGripOffset
  2449. Settings.Spread = Settings.Spread - Settings.SpreadReduction
  2450. end
  2451. end)
  2452. Mouse.Button2Up:connect(function()
  2453. if Aiming then
  2454. Mouse.Icon = Settings.Icons.Idle
  2455.  
  2456. Tool.GripPos = Orig_Grip
  2457. if Settings.AimAnim.Enabled then
  2458. delay(0, function()
  2459. Tween_C0(Right_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Right_Weld.C0, CFrame.new(0, -1.5, 0))
  2460. end)
  2461. delay(0, function()
  2462. Tween_C1(Left_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Left_Weld.C1, Settings.LeftPos)
  2463. end)
  2464. else
  2465. Right_Weld.C1 = Settings.RightPos
  2466. Right_Weld.C0 = CFrame.new(0, -1.5, 0)
  2467. Left_Weld.C1 = Settings.LeftPos
  2468. end
  2469. if Settings.ChangeFOV[1] then
  2470. Camera.FieldOfView = 70
  2471. end
  2472. Settings.Spread = Settings.Spread + Settings.SpreadReduction
  2473. Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2474. Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2475. wait(0.25)
  2476. Aiming = false
  2477. _G.MouseSensitivity = 1
  2478. end
  2479. end)
  2480. wait()
  2481. Camera.Changed:connect(function()
  2482. if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 and Equipped then
  2483. Mouse.TargetFilter = workspace
  2484. Character.Torso.Neck.C1 = CFrame.new()
  2485. Character.Torso.Neck.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.asin((Mouse.Hit.p - Mouse.Origin.p).unit.y), 0, 0)
  2486. end
  2487. end)
  2488. Mouse.Idle:connect(function()
  2489. if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 and Equipped then
  2490. Mouse.TargetFilter = workspace
  2491. Character.Torso.Neck.C1 = CFrame.new()
  2492. Character.Torso.Neck.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.asin((Mouse.Hit.p - Mouse.Origin.p).unit.y), 0, 0)
  2493. end
  2494. end)
  2495. while wait() and Equipped do
  2496. if Sprinting then
  2497. Can_Shoot = false
  2498. Right_Weld.C0 = CFrame.new(0, -1.5, 0) * Settings.SprintArmOffset
  2499. Left_Weld.C0 = CFrame.new(0, -1.5, 0) * Settings.SprintArmOffset
  2500. elseif not Aiming and not Sprinting then
  2501. Can_Shoot = true
  2502. Left_Weld.C0 = CFrame.new(0, -1.5, 0)
  2503. end
  2504. if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude > 1 and Equipped then
  2505. Mouse.TargetFilter = nil
  2506. Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2507. Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2508. end
  2509. end
  2510. end)
  2511.  
  2512. local Arms_Made
  2513. local Fake_Arm_Right, Fake_Arm_Left, Fake_Arm_Model
  2514.  
  2515. Tool.Equipped:connect(function(Mouse)
  2516. if Character and not Arms_Made then
  2517. Arms_Made = true
  2518. local Torso = Character.Torso
  2519. Torso["Right Shoulder"].Part1 = nil
  2520. Left_Weld = Instance.new("Weld", Torso)
  2521. Left_Weld.Name = "Left_Weld"
  2522. Left_Weld.Part0 = Character.Head
  2523. Left_Weld.C0 = CFrame.new(0, -1.5, 0)
  2524. if not Settings.OneHanded then
  2525. Torso["Left Shoulder"].Part1 = nil
  2526. Left_Weld.Part1 = Character["Left Arm"]
  2527. end
  2528. Right_Weld = Instance.new("Weld", Torso)
  2529. Right_Weld.Name = "Right_Weld"
  2530. Right_Weld.Part0 = Character.Head
  2531. Right_Weld.Part1 = Character["Right Arm"]
  2532. Right_Weld.C0 = CFrame.new(0, -1.5, 0)
  2533. Left_Weld.C1 = Settings.LeftPos
  2534. Right_Weld.C1 = Settings.RightPos
  2535. end
  2536. if Settings.FakeArms and not Fake_Arm_Right then
  2537. Fake_Arm_Right, Fake_Arm_Left = Character["Right Arm"]:Clone(), Character["Left Arm"]:Clone()
  2538. Fake_Arm_Right.FormFactor, Fake_Arm_Left.FormFactor = "Custom", "Custom"
  2539. Fake_Arm_Right.Size, Fake_Arm_Left.Size = Vector3.new(), Vector3.new()
  2540. local fakeArms = {Fake_Arm_Right, Fake_Arm_Left}
  2541. for i = 1, 2 do
  2542. local w = Instance.new("Weld", fakeArms[i])
  2543. w.Part0 = Character[fakeArms[i].Name]
  2544. w.Part1 = fakeArms[i]
  2545. fakeArms[i].Transparency = Settings.FakeArmTransparency
  2546. end
  2547. Fake_Arm_Model = Instance.new("Model", Camera)
  2548. Fake_Arm_Right.Parent = Fake_Arm_Model
  2549. if not Settings.OneHanded then
  2550. Fake_Arm_Left.Parent = Fake_Arm_Model
  2551. end
  2552. Fake_Arm_Model.Name = "FakeArms"
  2553. if Settings.CharacterMeshes then
  2554. for i, v in pairs(Character:GetChildren()) do
  2555. if v:IsA("CharacterMesh") and v.BodyPart == Enum.BodyPart.LeftArm or v:IsA("CharacterMesh") and v.BodyPart == Enum.BodyPart.RightArm then
  2556. v:Clone().Parent = Fake_Arm_Model
  2557. end
  2558. end
  2559. end
  2560. if Character:FindFirstChild("Shirt") then
  2561. Instance.new("Humanoid", Fake_Arm_Model)
  2562. Character.Shirt:Clone().Parent = Fake_Arm_Model
  2563. else
  2564. local Arm_Mesh = Instance.new("SpecialMesh", Fake_Arm_Right)
  2565. Arm_Mesh.MeshType, Arm_Mesh.Scale = "Brick", Vector3.new(1, 2, 1)
  2566. local Arm_Mesh2 = Instance.new("SpecialMesh", Fake_Arm_Left)
  2567. Arm_Mesh2.MeshType, Arm_Mesh2.Scale = "Brick", Vector3.new(1, 2, 1)
  2568. end
  2569. end
  2570. end)
  2571.  
  2572. Tool.Unequipped:connect(function()
  2573. Equipped = false
  2574. Tool.GripPos = Orig_Grip
  2575. Aiming = false
  2576. Settings.Spread = Orig_Spread
  2577. if Settings.ChangeFOV[1] then
  2578. Camera.FieldOfView = 70
  2579. end
  2580. if Gui then
  2581. Gui:Destroy()
  2582. Gui = nil
  2583. end
  2584. for i, v in pairs(Tool.Handle:GetChildren()) do
  2585. if v:IsA("Sound") then
  2586. v:Stop()
  2587. end
  2588. end
  2589. if Fake_Arm_Right and Fake_Arm_Left and Fake_Arm_Model then
  2590. Fake_Arm_Model:Destroy()
  2591. Fake_Arm_Right, Fake_Arm_Left, Fake_Arm_Model = nil, nil, nil
  2592. end
  2593. if Character and Left_Weld and Right_Weld then
  2594. Arms_Made = false
  2595. local Torso = Character.Torso
  2596. Torso["Right Shoulder"].Part1, Torso["Left Shoulder"].Part1 = Character["Right Arm"], Character["Left Arm"]
  2597. Left_Weld:Destroy()
  2598. Right_Weld:Destroy()
  2599. end
  2600. Sprinting = false
  2601. Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2602. Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2603. Character.Humanoid.WalkSpeed = 16
  2604. end)
  2605. end))
  2606. NumberValue10.Name = "StoredAmmo"
  2607. NumberValue10.Parent = LocalScript9
  2608. NumberValue10.Value = 999
  2609. NumberValue11.Name = "Ammo"
  2610. NumberValue11.Parent = LocalScript9
  2611. NumberValue11.Value = 30
  2612. Smoke12.Parent = LocalScript9
  2613. Smoke12.Size = 0.25
  2614. Smoke12.Color = Color3.new(0.807843, 0.807843, 0.807843)
  2615. Smoke12.Enabled = false
  2616. Smoke12.Opacity = 0.10000000149012
  2617. Smoke12.RiseVelocity = 10
  2618. Smoke12.Color = Color3.new(0.807843, 0.807843, 0.807843)
  2619. Smoke13.Name = "Smoke1"
  2620. Smoke13.Parent = LocalScript9
  2621. Smoke13.Size = 0.25
  2622. Smoke13.Color = Color3.new(0.807843, 0.807843, 0.807843)
  2623. Smoke13.Enabled = false
  2624. Smoke13.Opacity = 0.10000000149012
  2625. Smoke13.RiseVelocity = 10
  2626. Smoke13.Color = Color3.new(0.807843, 0.807843, 0.807843)
  2627. Smoke14.Name = "Smoke2"
  2628. Smoke14.Parent = LocalScript9
  2629. Smoke14.Size = 0.25
  2630. Smoke14.Color = Color3.new(0.807843, 0.807843, 0.807843)
  2631. Smoke14.Enabled = false
  2632. Smoke14.Opacity = 0.10000000149012
  2633. Smoke14.RiseVelocity = 10
  2634. Smoke14.Color = Color3.new(0.807843, 0.807843, 0.807843)
  2635. Part15.Name = "Handle"
  2636. Part15.Parent = Tool0
  2637. Part15.Rotation = Vector3.new(-180, 0, -180)
  2638. Part15.Anchored = true
  2639. Part15.Size = Vector3.new(0.540000021, 1.58899999, 3.79699993)
  2640. Part15.CFrame = CFrame.new(18.6679993, -8.27700043, 33.8009987, -1, 0, 8.74227908e-08, 0, 1, 0, -8.74227908e-08, 0, -1)
  2641. Part15.Position = Vector3.new(18.6679993, -8.27700043, 33.8009987)
  2642. Part15.Orientation = Vector3.new(0, 180, 0)
  2643. FileMesh16.Parent = Part15
  2644. FileMesh16.MeshId = "rbxassetid://431633806"
  2645. FileMesh16.Scale = Vector3.new(0.0649999976, 0.0649999976, 0.0649999976)
  2646. FileMesh16.TextureId = "rbxassetid://431633906"
  2647. FileMesh16.Scale = Vector3.new(0.0649999976, 0.0649999976, 0.0649999976)
  2648. Sound17.Name = "Bolt"
  2649. Sound17.Parent = Part15
  2650. Sound17.SoundId = "http://roblox.com/asset/?id=166238161"
  2651. Sound17.Volume = 0.20000000298023
  2652. Sound18.Name = "Click"
  2653. Sound18.Parent = Part15
  2654. Sound18.SoundId = "http://www.roblox.com/asset/?id=146501511"
  2655. Sound19.Name = "MagIn"
  2656. Sound19.Parent = Part15
  2657. Sound19.Pitch = 1.3999999761581
  2658. Sound19.SoundId = "http://www.roblox.com/asset/?id=131045429"
  2659. Sound20.Name = "MagOut"
  2660. Sound20.Parent = Part15
  2661. Sound20.Pitch = 1.3999999761581
  2662. Sound20.SoundId = "http://www.roblox.com/asset/?id=131045401"
  2663. Sound21.Name = "Shoot"
  2664. Sound21.Parent = Part15
  2665. Sound21.SoundId = "rbxassetid://132456317"
  2666. Sound21.Volume = 1
  2667. Part22.Name = "Mag"
  2668. Part22.Parent = Tool0
  2669. Part22.Rotation = Vector3.new(-180, 0, -180)
  2670. Part22.Anchored = true
  2671. Part22.Size = Vector3.new(0.241999999, 1.43700004, 0.694000006)
  2672. Part22.CFrame = CFrame.new(18.6329994, -8.53299999, 32.2010002, -1, 0, 8.74227766e-08, 0, 1, 0, -8.74227766e-08, 0, -1)
  2673. Part22.Position = Vector3.new(18.6329994, -8.53299999, 32.2010002)
  2674. Part22.Orientation = Vector3.new(0, 180, 0)
  2675. FileMesh23.Parent = Part22
  2676. FileMesh23.MeshId = "rbxassetid://431634255"
  2677. FileMesh23.Scale = Vector3.new(0.0649999976, 0.0649999976, 0.0649999976)
  2678. FileMesh23.TextureId = "rbxassetid://431634327"
  2679. FileMesh23.Scale = Vector3.new(0.0649999976, 0.0649999976, 0.0649999976)
  2680. Part24.Name = "Bolt"
  2681. Part24.Parent = Tool0
  2682. Part24.Rotation = Vector3.new(-180, 0, -180)
  2683. Part24.Anchored = true
  2684. Part24.Size = Vector3.new(0.432999998, 0.200000003, 0.930999994)
  2685. Part24.CFrame = CFrame.new(18.6420002, -7.57600021, 33.0209999, -1, 0, 9.23857442e-07, -0, 1, 0, -9.23857442e-07, 0, -1)
  2686. Part24.Position = Vector3.new(18.6420002, -7.57600021, 33.0209999)
  2687. Part24.Orientation = Vector3.new(0, 180, 0)
  2688. FileMesh25.Parent = Part24
  2689. FileMesh25.MeshId = "rbxassetid://431643522"
  2690. FileMesh25.Scale = Vector3.new(0.0649999976, 0.0649999976, 0.0649999976)
  2691. FileMesh25.TextureId = "rbxassetid://431634327"
  2692. FileMesh25.Scale = Vector3.new(0.0649999976, 0.0649999976, 0.0649999976)
  2693. Part26.Name = "Barrel"
  2694. Part26.Parent = Tool0
  2695. Part26.Rotation = Vector3.new(-180, 0, -180)
  2696. Part26.Anchored = true
  2697. Part26.Size = Vector3.new(0.518999994, 0.727999985, 2.6329999)
  2698. Part26.CFrame = CFrame.new(18.6410007, -7.57800007, 30.6490002, -1, 0, 9.23857442e-07, 0, 1, 0, -9.23857442e-07, 0, -1)
  2699. Part26.Position = Vector3.new(18.6410007, -7.57800007, 30.6490002)
  2700. Part26.Orientation = Vector3.new(0, 180, 0)
  2701. FileMesh27.Parent = Part26
  2702. FileMesh27.MeshId = "rbxassetid://431635813"
  2703. FileMesh27.Scale = Vector3.new(0.0649999976, 0.0649999976, 0.0649999976)
  2704. FileMesh27.TextureId = "rbxassetid://431634327"
  2705. FileMesh27.Scale = Vector3.new(0.0649999976, 0.0649999976, 0.0649999976)
  2706. Part28.Name = "Stuff"
  2707. Part28.Parent = Tool0
  2708. Part28.Rotation = Vector3.new(-180, 0, -180)
  2709. Part28.Anchored = true
  2710. Part28.Size = Vector3.new(0.229000002, 0.319000006, 0.305000007)
  2711. Part28.CFrame = CFrame.new(18.6480007, -7.35699987, 33.0449982, -1, 0, 9.23857442e-07, 0, 1, 0, -9.23857442e-07, 0, -1)
  2712. Part28.Position = Vector3.new(18.6480007, -7.35699987, 33.0449982)
  2713. Part28.Orientation = Vector3.new(0, 180, 0)
  2714. FileMesh29.Parent = Part28
  2715. FileMesh29.MeshId = "rbxassetid://431635355"
  2716. FileMesh29.Scale = Vector3.new(0.0649999976, 0.0649999976, 0.0649999976)
  2717. FileMesh29.TextureId = "rbxassetid://431633906"
  2718. FileMesh29.Scale = Vector3.new(0.0649999976, 0.0649999976, 0.0649999976)
  2719. for i,v in pairs(mas:GetChildren()) do
  2720. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  2721. pcall(function() v:MakeJoints() end)
  2722. end
  2723. mas:Destroy()
  2724. for i,v in pairs(cors) do
  2725. spawn(function()
  2726. pcall(v)
  2727. end)
  2728. end
  2729.  
  2730. end
  2731.  
  2732.  
  2733. function SpawnGoldenPistol()
  2734.  
  2735. --Converted with ttyyuu12345's model to script plugin v4
  2736. function sandbox(var,func)
  2737. local env = getfenv(func)
  2738. local newenv = setmetatable({},{
  2739. __index = function(self,k)
  2740. if k=="script" then
  2741. return var
  2742. else
  2743. return env[k]
  2744. end
  2745. end,
  2746. })
  2747. setfenv(func,newenv)
  2748. return func
  2749. end
  2750. cors = {}
  2751. mas = Instance.new("Model",game:GetService("Lighting"))
  2752. Tool0 = Instance.new("Tool")
  2753. Part1 = Instance.new("Part")
  2754. BlockMesh2 = Instance.new("BlockMesh")
  2755. PointLight3 = Instance.new("PointLight")
  2756. BillboardGui4 = Instance.new("BillboardGui")
  2757. ImageLabel5 = Instance.new("ImageLabel")
  2758. Script6 = Instance.new("Script")
  2759. Part7 = Instance.new("Part")
  2760. BlockMesh8 = Instance.new("BlockMesh")
  2761. Part9 = Instance.new("Part")
  2762. Sound10 = Instance.new("Sound")
  2763. Sound11 = Instance.new("Sound")
  2764. Sound12 = Instance.new("Sound")
  2765. Sound13 = Instance.new("Sound")
  2766. Sound14 = Instance.new("Sound")
  2767. Part15 = Instance.new("Part")
  2768. SpecialMesh16 = Instance.new("SpecialMesh")
  2769. Part17 = Instance.new("Part")
  2770. SpecialMesh18 = Instance.new("SpecialMesh")
  2771. LocalScript19 = Instance.new("LocalScript")
  2772. NumberValue20 = Instance.new("NumberValue")
  2773. NumberValue21 = Instance.new("NumberValue")
  2774. Smoke22 = Instance.new("Smoke")
  2775. Smoke23 = Instance.new("Smoke")
  2776. Smoke24 = Instance.new("Smoke")
  2777. Tool0.Name = "Golden Pistol"
  2778. Tool0.Parent = mas
  2779. Part1.Name = "SmokePart"
  2780. Part1.Parent = Tool0
  2781. Part1.BrickColor = BrickColor.new("Bright orange")
  2782. Part1.Transparency = 1
  2783. Part1.Rotation = Vector3.new(90, 0, -180)
  2784. Part1.Anchored = true
  2785. Part1.CanCollide = false
  2786. Part1.FormFactor = Enum.FormFactor.Custom
  2787. Part1.Size = Vector3.new(0.200000003, 0.478571415, 0.200000003)
  2788. Part1.CFrame = CFrame.new(10.1076241, 0.800050974, 22.9184761, -1, 7.15255624e-07, -5.53527059e-07, 5.53528764e-07, 2.44172543e-06, -1, -7.15254259e-07, -1, -2.44172611e-06)
  2789. Part1.BottomSurface = Enum.SurfaceType.Smooth
  2790. Part1.TopSurface = Enum.SurfaceType.Smooth
  2791. Part1.Color = Color3.new(0.854902, 0.521569, 0.254902)
  2792. Part1.Position = Vector3.new(10.1076241, 0.800050974, 22.9184761)
  2793. Part1.Orientation = Vector3.new(90, 180, 0)
  2794. Part1.Color = Color3.new(0.854902, 0.521569, 0.254902)
  2795. BlockMesh2.Parent = Part1
  2796. PointLight3.Name = "Flash"
  2797. PointLight3.Parent = Part1
  2798. PointLight3.Color = Color3.new(1, 0.666667, 0)
  2799. PointLight3.Enabled = false
  2800. PointLight3.Brightness = 3
  2801. PointLight3.Range = 10
  2802. PointLight3.Color = Color3.new(1, 0.666667, 0)
  2803. BillboardGui4.Name = "Light"
  2804. BillboardGui4.Parent = Part1
  2805. BillboardGui4.Size = UDim2.new(2.5, 0, 2.5, 0)
  2806. BillboardGui4.Active = true
  2807. ImageLabel5.Name = "Light"
  2808. ImageLabel5.Parent = BillboardGui4
  2809. ImageLabel5.Transparency = 1
  2810. ImageLabel5.Size = UDim2.new(2, 0, 2, 0)
  2811. ImageLabel5.Position = UDim2.new(-0.5, 0, -0.5, 0)
  2812. ImageLabel5.Active = true
  2813. ImageLabel5.Visible = false
  2814. ImageLabel5.BackgroundColor3 = Color3.new(0.756863, 0.752941, 0.764706)
  2815. ImageLabel5.BackgroundTransparency = 1
  2816. ImageLabel5.Image = "http://www.roblox.com/asset/?id=68683102"
  2817. Script6.Parent = BillboardGui4
  2818. table.insert(cors,sandbox(Script6,function()
  2819. script.Parent.Adornee = script.Parent.Parent
  2820. end))
  2821. Part7.Name = "AimPart"
  2822. Part7.Parent = Tool0
  2823. Part7.BrickColor = BrickColor.new("Dark stone grey")
  2824. Part7.Transparency = 1
  2825. Part7.Anchored = true
  2826. Part7.CanCollide = false
  2827. Part7.FormFactor = Enum.FormFactor.Custom
  2828. Part7.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  2829. Part7.CFrame = CFrame.new(10.1076241, 1.00005198, 24.4685402, 1, 5.53527684e-07, -7.30156273e-07, -5.53528821e-07, 1, -1.58907233e-06, 7.30155421e-07, 1.58907267e-06, 1)
  2830. Part7.BottomSurface = Enum.SurfaceType.Smooth
  2831. Part7.TopSurface = Enum.SurfaceType.Smooth
  2832. Part7.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2833. Part7.Position = Vector3.new(10.1076241, 1.00005198, 24.4685402)
  2834. Part7.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2835. BlockMesh8.Parent = Part7
  2836. Part9.Name = "Handle"
  2837. Part9.Parent = Tool0
  2838. Part9.BrickColor = BrickColor.new("Really black")
  2839. Part9.Transparency = 1
  2840. Part9.Rotation = Vector3.new(0.0199999996, 0, 0)
  2841. Part9.Anchored = true
  2842. Part9.CanCollide = false
  2843. Part9.FormFactor = Enum.FormFactor.Custom
  2844. Part9.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  2845. Part9.CFrame = CFrame.new(10.1076241, 0.100050002, 23.8185158, 1, 8.55040923e-07, -7.46405703e-07, -8.55299845e-07, 0.99999994, -0.000346982124, 7.46108981e-07, 0.000346982095, 0.99999994)
  2846. Part9.BottomSurface = Enum.SurfaceType.Smooth
  2847. Part9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  2848. Part9.TopSurface = Enum.SurfaceType.Smooth
  2849. Part9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  2850. Part9.Position = Vector3.new(10.1076241, 0.100050002, 23.8185158)
  2851. Part9.Orientation = Vector3.new(0.0199999996, 0, 0)
  2852. Part9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  2853. Sound10.Name = "Shoot"
  2854. Sound10.Parent = Part9
  2855. Sound10.SoundId = "rbxassetid://131257506"
  2856. Sound10.Volume = 10
  2857. Sound11.Name = "Bolt"
  2858. Sound11.Parent = Part9
  2859. Sound11.SoundId = "http://roblox.com/asset/?id=166238161"
  2860. Sound11.Volume = 0.20000000298023
  2861. Sound12.Name = "Click"
  2862. Sound12.Parent = Part9
  2863. Sound12.SoundId = "http://www.roblox.com/asset/?id=146501511"
  2864. Sound13.Name = "MagIn"
  2865. Sound13.Parent = Part9
  2866. Sound13.Pitch = 1.3999999761581
  2867. Sound13.SoundId = "http://www.roblox.com/asset/?id=131045429"
  2868. Sound14.Name = "MagOut"
  2869. Sound14.Parent = Part9
  2870. Sound14.Pitch = 1.3999999761581
  2871. Sound14.SoundId = "http://www.roblox.com/asset/?id=131045401"
  2872. Part15.Name = "Mag"
  2873. Part15.Parent = Tool0
  2874. Part15.BrickColor = BrickColor.new("Black")
  2875. Part15.Rotation = Vector3.new(169.849991, 0, 180)
  2876. Part15.Anchored = true
  2877. Part15.CanCollide = false
  2878. Part15.FormFactor = Enum.FormFactor.Custom
  2879. Part15.Size = Vector3.new(0.200000003, 0.599999964, 0.200000003)
  2880. Part15.CFrame = CFrame.new(10.1076088, 0.367998987, 24.1280594, -1.00000882, -9.37858147e-08, 8.36750701e-07, -2.39778871e-07, 0.984353244, -0.176231131, -8.07122547e-07, -0.176231131, -0.984353244)
  2881. Part15.BottomSurface = Enum.SurfaceType.Smooth
  2882. Part15.TopSurface = Enum.SurfaceType.Smooth
  2883. Part15.Color = Color3.new(0.105882, 0.164706, 0.207843)
  2884. Part15.Position = Vector3.new(10.1076088, 0.367998987, 24.1280594)
  2885. Part15.Orientation = Vector3.new(10.1499996, 180, 0)
  2886. Part15.Color = Color3.new(0.105882, 0.164706, 0.207843)
  2887. SpecialMesh16.Parent = Part15
  2888. SpecialMesh16.MeshId = "rbxassetid://27839686"
  2889. SpecialMesh16.Scale = Vector3.new(0.129999995, 0.300000012, 0.200000003)
  2890. SpecialMesh16.TextureId = "rbxassetid://271708747"
  2891. SpecialMesh16.MeshType = Enum.MeshType.FileMesh
  2892. SpecialMesh16.Scale = Vector3.new(0.129999995, 0.300000012, 0.200000003)
  2893. Part17.Name = "Gun"
  2894. Part17.Parent = Tool0
  2895. Part17.BrickColor = BrickColor.new("Pastel yellow")
  2896. Part17.Rotation = Vector3.new(-90, 0, 0)
  2897. Part17.Anchored = true
  2898. Part17.CanCollide = false
  2899. Part17.FormFactor = Enum.FormFactor.Custom
  2900. Part17.Size = Vector3.new(0.200000003, 1.20000005, 0.800000012)
  2901. Part17.CFrame = CFrame.new(10.1076088, 0.499817997, 23.7184944, 1.00000441, -1.79147608e-09, -1.02596701e-07, 1.02596857e-07, 2.38419517e-07, 1.00000572, -3.15940909e-08, -1.00000346, 2.38287697e-07)
  2902. Part17.Color = Color3.new(1, 1, 0.8)
  2903. Part17.Position = Vector3.new(10.1076088, 0.499817997, 23.7184944)
  2904. Part17.Orientation = Vector3.new(-90, 0, 0)
  2905. Part17.Color = Color3.new(1, 1, 0.8)
  2906. SpecialMesh18.Parent = Part17
  2907. SpecialMesh18.MeshId = "http://www.roblox.com/asset/?id=72012879"
  2908. SpecialMesh18.Scale = Vector3.new(1.25, 1.5, 1.5)
  2909. SpecialMesh18.TextureId = "rbxassetid://322996025"
  2910. SpecialMesh18.VertexColor = Vector3.new(2, 2, 2)
  2911. SpecialMesh18.MeshType = Enum.MeshType.FileMesh
  2912. SpecialMesh18.Scale = Vector3.new(1.25, 1.5, 1.5)
  2913.  
  2914. --Gun Gui
  2915.  
  2916. -- Objects
  2917.  
  2918. local Gui = Instance.new("ScreenGui")
  2919. local Frame = Instance.new("Frame")
  2920. local AmmoDisplay = Instance.new("TextLabel")
  2921. local StoredAmmoDisplay = Instance.new("TextLabel")
  2922. local _000 = Instance.new("TextLabel")
  2923. local _000_2 = Instance.new("TextLabel")
  2924.  
  2925. -- Properties
  2926.  
  2927. Gui.Name = "Gui"
  2928. Gui.Parent = LocalScript19
  2929.  
  2930. Frame.Parent = Gui
  2931. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  2932. Frame.BackgroundTransparency = 1
  2933. Frame.BorderColor3 = Color3.new(0.466667, 0.466667, 0.466667)
  2934. Frame.BorderSizePixel = 0
  2935. Frame.Position = UDim2.new(0.125, -5, 1.14999998, -120)
  2936. Frame.Size = UDim2.new(-0.100000001, 0, -0.0399999991, 0)
  2937. Frame.SizeConstraint = Enum.SizeConstraint.RelativeXX
  2938.  
  2939. AmmoDisplay.Name = "AmmoDisplay"
  2940. AmmoDisplay.Parent = Frame
  2941. AmmoDisplay.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  2942. AmmoDisplay.BackgroundTransparency = 1
  2943. AmmoDisplay.Position = UDim2.new(-0.0599999987, 0, 0, 0)
  2944. AmmoDisplay.Size = UDim2.new(0.540000021, 0, 1.25, 0)
  2945. AmmoDisplay.ZIndex = 2
  2946. AmmoDisplay.Font = Enum.Font.SourceSansBold
  2947. AmmoDisplay.FontSize = Enum.FontSize.Size36
  2948. AmmoDisplay.Text = "30"
  2949. AmmoDisplay.TextColor3 = Color3.new(1, 1, 1)
  2950. AmmoDisplay.TextScaled = true
  2951. AmmoDisplay.TextSize = 36
  2952. AmmoDisplay.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  2953. AmmoDisplay.TextWrapped = true
  2954. AmmoDisplay.TextXAlignment = Enum.TextXAlignment.Right
  2955.  
  2956. StoredAmmoDisplay.Name = "StoredAmmoDisplay"
  2957. StoredAmmoDisplay.Parent = Frame
  2958. StoredAmmoDisplay.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  2959. StoredAmmoDisplay.BackgroundTransparency = 1
  2960. StoredAmmoDisplay.Position = UDim2.new(0.419999987, 0, 0.25, 0)
  2961. StoredAmmoDisplay.Size = UDim2.new(0.550000012, 0, 0.75, 0)
  2962. StoredAmmoDisplay.ZIndex = 2
  2963. StoredAmmoDisplay.Font = Enum.Font.SourceSans
  2964. StoredAmmoDisplay.FontSize = Enum.FontSize.Size14
  2965. StoredAmmoDisplay.Text = "360"
  2966. StoredAmmoDisplay.TextColor3 = Color3.new(1, 1, 1)
  2967. StoredAmmoDisplay.TextScaled = true
  2968. StoredAmmoDisplay.TextSize = 14
  2969. StoredAmmoDisplay.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  2970. StoredAmmoDisplay.TextWrapped = true
  2971. StoredAmmoDisplay.TextXAlignment = Enum.TextXAlignment.Right
  2972.  
  2973. _000.Name = "000"
  2974. _000.Parent = Frame
  2975. _000.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  2976. _000.BackgroundTransparency = 1
  2977. _000.Position = UDim2.new(0.419999987, 0, 0.25, 0)
  2978. _000.Size = UDim2.new(0.550000012, 0, 0.75, 0)
  2979. _000.ZIndex = 2
  2980. _000.Font = Enum.Font.SourceSans
  2981. _000.FontSize = Enum.FontSize.Size14
  2982. _000.Text = "000"
  2983. _000.TextColor3 = Color3.new(1, 1, 1)
  2984. _000.TextScaled = true
  2985. _000.TextSize = 14
  2986. _000.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  2987. _000.TextTransparency = 0.80000001192093
  2988. _000.TextWrapped = true
  2989. _000.TextXAlignment = Enum.TextXAlignment.Right
  2990.  
  2991. _000_2.Name = "000"
  2992. _000_2.Parent = Frame
  2993. _000_2.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  2994. _000_2.BackgroundTransparency = 1
  2995. _000_2.Position = UDim2.new(-0.25, 0, 0, 0)
  2996. _000_2.Size = UDim2.new(0.75, 0, 1.25, 0)
  2997. _000_2.ZIndex = 2
  2998. _000_2.Font = Enum.Font.SourceSansBold
  2999. _000_2.FontSize = Enum.FontSize.Size48
  3000. _000_2.Text = "000"
  3001. _000_2.TextColor3 = Color3.new(1, 1, 1)
  3002. _000_2.TextScaled = true
  3003. _000_2.TextSize = 48
  3004. _000_2.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  3005. _000_2.TextTransparency = 0.80000001192093
  3006. _000_2.TextWrapped = true
  3007. _000_2.TextXAlignment = Enum.TextXAlignment.Right
  3008.  
  3009. LocalScript19.Name = "Gun_Script"
  3010. LocalScript19.Parent = Tool0
  3011. table.insert(cors,sandbox(LocalScript19,function()
  3012. sp = script.Parent
  3013.  
  3014. Mesh = false -- If true will load BC 2.0 Arm meshes as well.
  3015. Shirt = true -- If true will load the user's shirt to the arms as well
  3016.  
  3017. function onEquipped(mouse)
  3018. local Player = game:GetService("Players").LocalPlayer
  3019. local Cam = game.Workspace.CurrentCamera
  3020.  
  3021. local Arms = Instance.new("Model")
  3022. Arms.Name = "Arms"
  3023. Arms.Parent = Cam
  3024.  
  3025. if Shirt == true then
  3026. local Humanoid = Instance.new("Humanoid")
  3027. Humanoid.MaxHealth = 0
  3028. Humanoid.Health = 0
  3029. Humanoid.Name = ""
  3030. Humanoid.Parent = Arms
  3031.  
  3032. local newShirt = Player.Character:FindFirstChild("Shirt"):clone()
  3033. newShirt.Parent = Arms
  3034. else end
  3035.  
  3036. local RightArm = Player.Character:FindFirstChild("Right Arm"):clone()
  3037. RightArm.Name = "Right Arm"
  3038. RightArm.Transparency = 0
  3039.  
  3040. local w = Instance.new("Weld")
  3041. w.Part0 = RightArm
  3042. w.Part1 = Player.Character:FindFirstChild("Right Arm")
  3043. w.C0 = CFrame.new()
  3044. w.C1 = CFrame.new()
  3045. w.Parent = RightArm
  3046. RightArm.Parent = Arms
  3047.  
  3048. local LeftArm = Player.Character:FindFirstChild("Left Arm"):clone()
  3049. LeftArm.Name = "Left Arm"
  3050. LeftArm.Transparency = 0
  3051.  
  3052. local w = Instance.new("Weld")
  3053. w.Part0 = LeftArm
  3054. w.Part1 = Player.Character:FindFirstChild("Left Arm")
  3055. w.C0 = CFrame.new()
  3056. w.C1 = CFrame.new()
  3057. w.Parent = LeftArm
  3058. LeftArm.Parent = Arms
  3059.  
  3060. if Mesh ~= false then
  3061. local LeftArmMesh = script:FindFirstChild("LeftArm")
  3062. LeftArmMesh.Parent = LeftArm
  3063. local RightArmMesh = script:FindFirstChild("RightArm")
  3064. RightArmMesh.Parent = RightArm
  3065. else end
  3066.  
  3067. end
  3068.  
  3069. function onUnequipped(mouse)
  3070. local Player = game:GetService("Players").LocalPlayer
  3071. local Cam = game.Workspace.CurrentCamera
  3072. for _, Model in pairs(Cam:GetChildren()) do
  3073. if Model.Name == "Arms" then
  3074. Model:remove()
  3075. else end
  3076. end
  3077. end
  3078.  
  3079. sp.Equipped:connect(onEquipped)
  3080. sp.Unequipped:connect(onUnequipped)
  3081.  
  3082. wait(0.5)
  3083. --Made by YouTubes--
  3084. --Edit settings below--
  3085. local Tool = script.Parent
  3086. local Settings = {
  3087. Range = 2500
  3088. ,Spread = 0
  3089. ,Damage = {30, 30}
  3090. ,HeadShotDamage = {60, 60}
  3091. ,Bullets = 1
  3092. ,FireRate = 0.050
  3093. ,Automatic = true
  3094. ,AntiTK = false
  3095. ,ImpactDuration = .5
  3096. --Reload
  3097. ,ReloadKey = "R"
  3098. ,ReloadTime = 1.63
  3099. ,Ammo = math.huge
  3100. ,IncludeChamberedBullet = true
  3101. --Gui
  3102. ,GuiPos = Vector2.new(script.Gui.Frame.Position.X.Scale, script.Gui.Frame.Position.Y.Scale)
  3103. --Arms
  3104. ,OneHanded = true
  3105. ,FakeArms = true
  3106. ,FakeArmTransparency = 0
  3107. -- (+Left to -Right, +Fward to -Bward, +Up to -Down) (+Up to -Down, +Left to -Right, +Counter to -Clock)
  3108. ,RightPos = CFrame.new(-0.75, -0.25, 0.45) * CFrame.Angles(math.rad(-90), 0, 0)
  3109. ,LeftPos = CFrame.new(1.2, 0.21, 0.55)* CFrame.Angles(math.rad(-90), math.rad(55), math.rad(5), 0)
  3110. ,AimPart = Tool.AimPart
  3111. ,AimPartOffset = CFrame.new()
  3112. ,AimGripOffset = Vector3.new(0, 0, 0)
  3113. ,LeftAimPos = CFrame.new(1, 0.9, 0.35) * CFrame.Angles(math.rad(-95), math.rad(20), math.rad(0), 00)
  3114. ,AimAnim = {
  3115. Enabled = false
  3116. ,Frames = 50
  3117. ,Time = 0.1
  3118. }
  3119. ,ChangeFOV = {true, 45}
  3120. ,SpreadReduction = 8
  3121. --Weld
  3122. ,Weld = true
  3123. --Mouse
  3124. ,Icons = {
  3125. Idle = "rbxassetid://70288585"
  3126. ,Fire1 = "rbxassetid://70288578"
  3127. ,Fire2 = "rbxassetid://70288572"
  3128. ,Fire3 = "rbxassetid://70288578"
  3129. ,Reload = "rbxassetid://70288599"
  3130. ,Aim = "rbxasset://textures/Blank.png"
  3131. }
  3132. ,FireMouseAnimTime = 0.15
  3133. --Recoil
  3134. ,Recoil = math.rad(0.79)
  3135. --Smoke
  3136. ,Smoke = true
  3137. ,SmokePart = Tool.SmokePart
  3138. ,Smokes = {{script.Smoke, 6, 0.01}, {script.Smoke1, 0.01}, {script.Smoke2, 0.01}}
  3139. --Sprint
  3140. ,Sprint = true
  3141. ,SprintSpeed = 25
  3142. ,SprintKey = "0"
  3143. ,SprintSpreadIncrease = 40
  3144. ,SprintArmOffset = CFrame.new(0.25, 0.125, 0.25) * CFrame.Angles(math.rad(-30), math.rad(35), 0)
  3145. ,DropHats = true
  3146. }
  3147.  
  3148. --Do not edit below this lign--
  3149.  
  3150. local Orig_Spread = Settings.Spread
  3151. local Orig_Grip = Tool.GripPos
  3152.  
  3153. local Player = game.Players.LocalPlayer
  3154. local Character = Player.Character
  3155.  
  3156. local Camera = workspace.CurrentCamera
  3157.  
  3158. local Ammo, StoredAmmo = script.Ammo, script.StoredAmmo
  3159.  
  3160. local Gui, CanUpdateGui = nil, true
  3161.  
  3162. local Sprinting, Equipped
  3163.  
  3164. function Update_Gui()
  3165. if Gui and CanUpdateGui then
  3166. Gui.Frame.AmmoDisplay.Text = Ammo.Value
  3167. Gui.Frame.StoredAmmoDisplay.Text = StoredAmmo.Value
  3168. end
  3169. end
  3170.  
  3171. local Welded
  3172. if Settings.Weld then
  3173. delay(0, function()
  3174. local weldC0s = {}
  3175. for i, v in pairs(Tool:GetChildren()) do
  3176. if v:IsA("BasePart") and v ~= Tool.Handle then
  3177. table.insert(weldC0s, {v, Tool.Handle.CFrame:toObjectSpace(v.CFrame)})
  3178. v.Anchored = false
  3179. end
  3180. end
  3181. Tool.Handle.Anchored = false
  3182. local welds = {}
  3183. Tool.Equipped:connect(function()
  3184. for i, v in ipairs(welds) do
  3185. v.Part1 = nil
  3186. v:Destroy()
  3187. end
  3188. for i, v in ipairs(weldC0s) do
  3189. if v[1] and v[2] then
  3190. local w = Instance.new("Weld", Tool.Handle)
  3191. w.Part0 = Tool.Handle
  3192. w.Part1 = v[1]
  3193. w.C0 = v[2]
  3194. table.insert(welds, w)
  3195. end
  3196. end
  3197. end)
  3198. wait()
  3199. Welded = true
  3200. end)
  3201. end
  3202.  
  3203. local Left_Weld, Right_Weld
  3204.  
  3205. Ammo.Changed:connect(Update_Gui)
  3206. StoredAmmo.Changed:connect(Update_Gui)
  3207.  
  3208. Settings.Range = math.min(Settings.Range, 999)
  3209.  
  3210. local Ignore_Model = workspace:FindFirstChild("Ray_Ignore") or Instance.new("Model", workspace)
  3211. Ignore_Model.Name = "Ray_Ignore"
  3212.  
  3213. local Ray_Ignore = {Character, Ignore_Model, Camera}
  3214.  
  3215. Character.Humanoid.Died:connect(function()
  3216. Tool.Parent = Player.Backpack
  3217. end)
  3218.  
  3219. function Fire(Mouse)
  3220. local Spread = CFrame.Angles(math.rad(math.random(-Settings.Spread, Settings.Spread)/10), math.rad(math.random(-Settings.Spread, Settings.Spread)/10), math.rad(math.random(-Settings.Spread, Settings.Spread)/10))
  3221. local Ray = Ray.new(Character.Head.Position, (CFrame.new(Character.Head.Position, Mouse.Hit.p) * Spread).lookVector.unit * Settings.Range)
  3222. local Hit, Pos = workspace:FindPartOnRayWithIgnoreList(Ray, Ray_Ignore)
  3223. if Hit and Hit.Parent:FindFirstChild("Humanoid") then
  3224. local Hit_Player = game.Players:GetPlayerFromCharacter(Hit.Parent)
  3225. if Settings.AntiTK and not Hit_Player.Neutral and Hit_Player.TeamColor == Player.TeamColor then
  3226. return
  3227. end
  3228. local Humanoid = Hit.Parent.Humanoid
  3229. local c = Instance.new("ObjectValue")
  3230. c.Name = "creator"
  3231. c.Value = Player
  3232. game.Debris:AddItem(c, 3)
  3233. c.Parent = Humanoid
  3234. if Hit.Name == "Head" then
  3235. Humanoid.Health = 0
  3236. else
  3237. Humanoid.Health = 0
  3238. end
  3239. elseif Hit then
  3240. local Hit_Part = Instance.new("Part", Ignore_Model)
  3241. Hit_Part.FormFactor = "Custom"
  3242. Hit_Part.TopSurface = 0
  3243. Hit_Part.BottomSurface = 0
  3244. Hit_Part.Anchored = true
  3245. Hit_Part.CanCollide = false
  3246. Hit_Part.Size = Vector3.new()
  3247. Hit_Part.CFrame = CFrame.new(Pos) * CFrame.Angles(math.random(0, 360), math.random(0, 360), math.random(0, 360))
  3248. Hit_Part.BrickColor = BrickColor.new("Black")
  3249. Hit_Part.Material = "Metal"
  3250. local Meta = Instance.new("Sound")
  3251. Meta.Name = "Crack"
  3252. Meta.SoundId = "rbxassetid://151284431"
  3253. Meta.Volume = 0.3
  3254. Meta.Pitch = 2
  3255. Meta.Parent = Hit_Part
  3256. Meta:play()
  3257. local Cur = Instance.new("SpecialMesh")
  3258. Cur.MeshType = "Sphere"
  3259. Cur.Parent = Hit_Part
  3260. Cur.Scale = Vector3.new(0.5,0.5,0.5)
  3261. Instance.new("Smoke", Hit_Part).Opacity = 15
  3262. local g = Instance.new("PointLight", Hit_Part)
  3263. g.Color = Color3.new(0, 0, 0)
  3264. g.Range = 0
  3265. g.Shadows = true
  3266. local PE = Instance.new("ParticleEmitter")
  3267. PE.Parent = Hit_Part
  3268. PE.Size = NumberSequence.new(0.75)
  3269. PE.LightEmission = 0
  3270. PE.Lifetime = NumberRange.new(5)
  3271. PE.ZOffset = 0.5
  3272. PE.Texture = "http://www.roblox.com/asset/?id=133619974"
  3273. PE.Rate = 50
  3274. PE.Speed = NumberRange.new(2.5)
  3275. PE.VelocitySpread = NumberSequence.new(-0.05)
  3276. PE.Transparency = NumberSequence.new(-1)
  3277. game.Debris:AddItem(Hit_Part, Settings.ImpactDuration)
  3278. game.Debris:AddItem(PE, 0.17)
  3279. --[[ if not Hit.Anchored then
  3280. local w = Instance.new("Weld", Hit_Part)
  3281. w.Part0 = Hit
  3282. w.Part1 = Hit_Part
  3283. w.C0 = Hit.CFrame:toObjectSpace(Hit_Part.CFrame)
  3284. Hit_Part.Anchored = false
  3285. end]]
  3286. if Hit.Transparency >= 0.1 then
  3287. Hit:BreakJoints()
  3288. Hit.Anchored = false
  3289. Hit.Size = Hit.Size /2
  3290. local sound = Instance.new("Sound", Hit)
  3291. sound.Volume = 10
  3292. sound.SoundId = "rbxassetid://138122923"
  3293. sound:Play()
  3294. for i=1, 4, 1 do
  3295. local clone = Hit:Clone()
  3296. clone.Parent = workspace
  3297. game.Debris:AddItem(clone, 3)
  3298. end
  3299. game.Debris:AddItem(Hit, 1)
  3300. end
  3301. if Hit.Parent:IsA("Hat") or Hit.Parent:IsA("Accessory") and Settings.DropHats then
  3302. Hit.Parent.Parent = workspace
  3303. game.Debris:AddItem(Hit, 3)
  3304. end
  3305. end
  3306. end
  3307.  
  3308.  
  3309. local Can_Shoot = true
  3310. local Reloading = false
  3311.  
  3312. local First_Person = false
  3313.  
  3314. local Mouse_Held
  3315.  
  3316. Tool.Equipped:connect(function(Mouse)
  3317. Equipped = true
  3318. if Settings.Weld and not Welded then
  3319. wait()
  3320. Tool.Parent = Player.Backpack
  3321. end
  3322. Character = Player.Character
  3323. if Gui then
  3324. return
  3325. end
  3326. Ray_Ignore = {Character, Ignore_Model, Camera}
  3327. Mouse.Icon = Settings.Icons.Idle
  3328. Gui = script.Gui:Clone()
  3329. Gui.Parent = Player.PlayerGui
  3330. Gui.Frame.Position = UDim2.new(Settings.GuiPos.X, Gui.Frame.Position.X.Offset, 1.1, Gui.Frame.Position.Y.Offset)
  3331. Gui.Frame:TweenPosition(UDim2.new(Settings.GuiPos.X, Gui.Frame.Position.X.Offset, Settings.GuiPos.Y, Gui.Frame.Position.Y.Offset), "Out", "Bounce", 1)
  3332. CanUpdateGui = true
  3333. Update_Gui()
  3334. Mouse.Button1Down:connect(function()
  3335. if Can_Shoot and Ammo.Value > 0 and Character.Humanoid.Health > 0 then
  3336. Mouse_Held = true
  3337. while true do
  3338. Can_Shoot = false
  3339. delay(0, function()
  3340. local t = math.min(Settings.FireMouseAnimTime/3, Settings.FireRate/3)
  3341. if not Aiming then
  3342. Mouse.Icon = Settings.Icons.Fire1
  3343. end
  3344. wait(t)
  3345. if not Aiming then
  3346. if Reloading then return end
  3347. Mouse.Icon = Settings.Icons.Fire2
  3348. end
  3349. wait(t)
  3350. if not Aiming then
  3351. if Reloading then return end
  3352. Mouse.Icon = Settings.Icons.Fire3
  3353. end
  3354. wait(t)
  3355. if not Aiming then
  3356. if Reloading then return end
  3357. Mouse.Icon = Settings.Icons.Idle
  3358. end
  3359. end)
  3360. for _ = 1, Settings.Bullets do
  3361. Fire(Mouse)
  3362. end
  3363. local bg = Instance.new("BillboardGui", Settings.SmokePart)
  3364. bg.Adornee = Settings.SmokePart
  3365. local flashsize = math.random(5, 8)/10
  3366. bg.Size = UDim2.new(flashsize, 0, flashsize, 0)
  3367. local flash = Instance.new("ImageLabel", bg)
  3368. flash.BackgroundTransparency = 1
  3369. flash.Size = UDim2.new(1, 0, 1, 0)
  3370. flash.Image = "rbxassetid://172841900"
  3371. flash.Rotation = math.random(0, 360)
  3372. game.Debris:AddItem(bg, 0.025)
  3373. delay(0, function()
  3374. local r = math.abs(Settings.Recoil)
  3375. local ran = math.random(-1, 1)
  3376. Camera.CoordinateFrame = CFrame.new(Camera.Focus.p) * (Camera.CoordinateFrame - Camera.CoordinateFrame.p) * CFrame.Angles(r, r*ran, 0) * CFrame.new(0, 0, (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude)
  3377. local c = -r/20
  3378. local cx = -(r*ran)/20
  3379. for i = 1, math.random(15, 25) do
  3380. if EquipId == curId then
  3381. Camera.CoordinateFrame = CFrame.new(Camera.Focus.p) * (Camera.CoordinateFrame - Camera.CoordinateFrame.p) * CFrame.Angles(c, cx, 0) * CFrame.new(0, 0, (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude)
  3382. wait()
  3383. else
  3384. break
  3385. end
  3386. end
  3387. end)
  3388. if Tool.Handle:FindFirstChild("Shoot") then
  3389. Tool.Handle.Shoot:Play()
  3390. end
  3391. Ammo.Value = Ammo.Value - 1
  3392. --Tool.Bolt.Transparency = 1
  3393. --Tool.Bolt1.Transparency = 0
  3394. wait(Settings.FireRate)
  3395. --Tool.Bolt.Transparency = 0
  3396. --Tool.Bolt1.Transparency = 1
  3397. if not Settings.Automatic or Ammo.Value <= 0 or Character.Humanoid.Health <= 0 or not Mouse_Held then
  3398. break
  3399. end
  3400. end
  3401. Can_Shoot = true
  3402. elseif Can_Shoot and Character.Humanoid.Health > 0 and Tool.Handle:FindFirstChild("Click") then
  3403. Tool.Handle.Click:Play()
  3404. end
  3405. end)
  3406. Mouse.Button1Up:connect(function()
  3407. Mouse_Held = false
  3408. end)
  3409. Mouse.KeyDown:connect(function(Key)
  3410. if Key:upper() == Settings.ReloadKey:upper() and Can_Shoot and StoredAmmo.Value > 0 and not Aiming then
  3411. if Settings.IncludeChamberedBullet and Ammo.Value == Settings.Ammo + 1 or not Settings.IncludeChamberedBullet and Ammo.Value == Settings.Ammo then
  3412. return
  3413. end
  3414. Can_Shoot = false
  3415. Reloading = true
  3416. local TextLabel = Gui.Frame.AmmoDisplay
  3417. delay(0, function()
  3418. CanUpdateGui = false
  3419. TextLabel.Text = "000"
  3420. wait(Settings.ReloadTime/3)
  3421. if TextLabel then
  3422. TextLabel.Text = "000"
  3423. end
  3424. wait(Settings.ReloadTime/3)
  3425. if TextLabel then
  3426. TextLabel.Text = "000"
  3427. end
  3428. end)
  3429. Mouse.Icon = Settings.Icons.Reload
  3430. -- (+Left to -Right, +Fward to -Bward, +Up to -Down) (+Up to -Down, +Left to -Right, +Counter to -Clock)
  3431. Right_Weld.C1 = CFrame.new(-0.75, -0.2, 0.5) * CFrame.Angles(math.rad(-90), 0, 0.1)
  3432. Left_Weld.C1 = CFrame.new(1.2, 0.6, 0.45) * CFrame.Angles(math.rad(-90), math.rad(45), math.rad(0), 0)
  3433. wait(.02)
  3434. Right_Weld.C1 = CFrame.new(-0.75, -0.15, 0.55) * CFrame.Angles(math.rad(-90), 0, 0.15)
  3435. Left_Weld.C1 = CFrame.new(1.2, 0.5, 0.45) * CFrame.Angles(math.rad(-90), math.rad(50), math.rad(0), 0)
  3436. wait(.02)
  3437. Right_Weld.C1 = CFrame.new(-0.75, -0.1, 0.6) * CFrame.Angles(math.rad(-90), 0, 0.2)
  3438. Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.45) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(0), 0)
  3439. wait(0.02)
  3440.  
  3441. Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.40) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(0), 0)
  3442. Tool.Handle.MagOut:play()
  3443. Tool.Mag.Transparency = 1
  3444.  
  3445. wait(0.03)
  3446. Left_Weld.C1 = CFrame.new(1.2, 0.35, 0.35) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(5), 0)
  3447. wait(0.03)
  3448. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.30) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(10), 0)
  3449. wait(0.03)
  3450. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.25) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(15), 0)
  3451. wait(0.03)
  3452. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.20) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(20), 0)
  3453. wait(0.03)
  3454. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.15) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(25), 0)
  3455. wait(0.03)
  3456. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.10) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(30), 0)
  3457. wait(0.03)
  3458. Left_Weld.C1 = CFrame.new(1.2, 0.25, 0.05) * CFrame.Angles(math.rad(-90), math.rad(60), math.rad(35), 0)
  3459. wait(0.03)
  3460. Left_Weld.C1 = CFrame.new(1.2, 0.2, 0) * CFrame.Angles(math.rad(-90), math.rad(65), math.rad(40), 0)
  3461. wait(0.03)
  3462. Left_Weld.C1 = CFrame.new(1.2, 0.15, 0) * CFrame.Angles(math.rad(-90), math.rad(70), math.rad(45), 0)
  3463. wait(0.03)
  3464. Left_Weld.C1 = CFrame.new(1.2, 0.1, 0) * CFrame.Angles(math.rad(-90), math.rad(75), math.rad(50), 0)
  3465. wait(0.5)
  3466.  
  3467. Left_Weld.C1 = CFrame.new(1.2, 0.1, 0.0) * CFrame.Angles(math.rad(-90), math.rad(75), math.rad(40), 0)
  3468. Tool.Handle.MagIn:play()
  3469. Tool.Mag.Transparency = 0
  3470.  
  3471. wait(0.03)
  3472. Left_Weld.C1 = CFrame.new(1.2, 0.15, 0.05) * CFrame.Angles(math.rad(-90), math.rad(70), math.rad(35), 0)
  3473. wait(0.03)
  3474. Left_Weld.C1 = CFrame.new(1.2, 0.2, 0.10) * CFrame.Angles(math.rad(-90), math.rad(65), math.rad(30), 0)
  3475. wait(0.03)
  3476. Left_Weld.C1 = CFrame.new(1.2, 0.25, 0.15) * CFrame.Angles(math.rad(-90), math.rad(60), math.rad(25), 0)
  3477. wait(0.03)
  3478. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.20) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(20), 0)
  3479. wait(0.03)
  3480. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.25) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(15), 0)
  3481. wait(0.03)
  3482. Right_Weld.C1 = CFrame.new(-0.75, -0.1, 0.6) * CFrame.Angles(math.rad(-90), 0, 0.2)
  3483. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.30) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(10), 0)
  3484. wait(0.03)
  3485. Right_Weld.C1 = CFrame.new(-0.75, -0.15, 0.55) * CFrame.Angles(math.rad(-90), 0, 0.15)
  3486. Left_Weld.C1 = CFrame.new(1.2, 0.35, 0.35) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(05), 0)
  3487. wait(0.03)
  3488. Right_Weld.C1 = CFrame.new(-0.75, -0.2, 0.5) * CFrame.Angles(math.rad(-90), 0, 0.1)
  3489. Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.40) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(0), 0)
  3490. wait(0.03)
  3491.  
  3492. Right_Weld.C1 = CFrame.new(-0.75, -0.25, 0.45) * CFrame.Angles(math.rad(-90), 0, 0)
  3493. Left_Weld.C1 = CFrame.new(1.2, 0.21, 0.55)* CFrame.Angles(math.rad(-90), math.rad(55), math.rad(5), 0)
  3494.  
  3495. Mouse.Icon = Settings.Icons.Idle
  3496. CanUpdateGui = true
  3497. local m = Settings.Ammo
  3498. if Ammo.Value > 0 and Settings.IncludeChamberedBullet then
  3499. m = m + 1
  3500. end
  3501. if (StoredAmmo.Value - (m - Ammo.Value)) <= 0 then
  3502. Ammo.Value = Ammo.Value + StoredAmmo.Value
  3503. StoredAmmo.Value = 0
  3504. else
  3505. StoredAmmo.Value = StoredAmmo.Value - (m - Ammo.Value)
  3506. Ammo.Value = m
  3507. end
  3508. Can_Shoot = true
  3509. Reloading = false
  3510. elseif Key:upper() == Settings.SprintKey:upper() and Settings.Sprint and not Aiming then
  3511. Sprinting = true
  3512. Character.Humanoid.WalkSpeed = Settings.SprintSpeed
  3513. Settings.Spread = Settings.Spread + Settings.SprintSpreadIncrease
  3514. end
  3515. end)
  3516. Mouse.KeyUp:connect(function(Key)
  3517. if Key:upper() == Settings.SprintKey:upper() and Sprinting then
  3518. Sprinting = false
  3519. Character.Humanoid.WalkSpeed = 16
  3520. Settings.Spread = Settings.Spread - Settings.SprintSpreadIncrease
  3521. Right_Weld.C0 = CFrame.new(0, -1.5, 0)
  3522. end
  3523. end)
  3524. Mouse.Button2Down:connect(function()
  3525. if not Reloading and not Sprinting and not Aiming and (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 then
  3526. Aiming = true
  3527. _G.MouseSensitivity = 0.3
  3528. Mouse.Icon = Settings.Icons.Aim
  3529.  
  3530. if Settings.AimAnim.Enabled then
  3531. Right_Weld.C1 = CFrame.new()
  3532. Right_Weld.C0 = CFrame.new()
  3533. delay(0, function()
  3534. Tween_C0(Right_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Right_Weld.C0, Character.Head.CFrame:toObjectSpace(Settings.AimPart.CFrame))
  3535. end)
  3536. delay(0, function()
  3537. Tween_C1(Left_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Left_Weld.C1, Settings.LeftAimPos)
  3538. end)
  3539. delay(0, function()
  3540. if Settings.ChangeFOV[1] then
  3541. Camera.FieldOfView = 70
  3542. local Cam_Dif, T_F = 70 - Settings.ChangeFOV[2], Settings.AimAnim.Time * Settings.AimAnim.Frames
  3543. for i = 1, T_F do
  3544. local FOV = 70 - Cam_Dif/T_F * i
  3545. Camera.FieldOfView = FOV
  3546. wait(Settings.AimAnim.Time/Settings.AimAnim.Frames)
  3547. if not Aiming then
  3548. return
  3549. end
  3550. end
  3551. Camera.FieldOfView = Settings.ChangeFOV[2]
  3552. end
  3553. end)
  3554. else
  3555. Right_Weld.C1 = CFrame.new()
  3556. Right_Weld.C0 = CFrame.new()
  3557. Right_Weld.C1 = Character.Head.CFrame:toObjectSpace(Settings.AimPart.CFrame)
  3558. Left_Weld.C1 = Settings.LeftAimPos
  3559. if Settings.ChangeFOV[1] then
  3560. Camera.FieldOfView = Settings.ChangeFOV[2]
  3561. end
  3562. end
  3563. Tool.GripPos = Orig_Grip + Settings.AimGripOffset
  3564. Settings.Spread = Settings.Spread - Settings.SpreadReduction
  3565. end
  3566. end)
  3567. Mouse.Button2Up:connect(function()
  3568. if Aiming then
  3569. Mouse.Icon = Settings.Icons.Idle
  3570.  
  3571. Tool.GripPos = Orig_Grip
  3572. if Settings.AimAnim.Enabled then
  3573. delay(0, function()
  3574. Tween_C0(Right_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Right_Weld.C0, CFrame.new(0, -1.5, 0))
  3575. end)
  3576. delay(0, function()
  3577. Tween_C1(Left_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Left_Weld.C1, Settings.LeftPos)
  3578. end)
  3579. else
  3580. Right_Weld.C1 = Settings.RightPos
  3581. Right_Weld.C0 = CFrame.new(0, -1.5, 0)
  3582. Left_Weld.C1 = Settings.LeftPos
  3583. end
  3584. if Settings.ChangeFOV[1] then
  3585. Camera.FieldOfView = 70
  3586. end
  3587. Settings.Spread = Settings.Spread + Settings.SpreadReduction
  3588. Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  3589. Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  3590. wait(0.25)
  3591. Aiming = false
  3592. _G.MouseSensitivity = 1
  3593. end
  3594. end)
  3595. wait()
  3596. Camera.Changed:connect(function()
  3597. if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 and Equipped then
  3598. Mouse.TargetFilter = workspace
  3599. Character.Torso.Neck.C1 = CFrame.new()
  3600. Character.Torso.Neck.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.asin((Mouse.Hit.p - Mouse.Origin.p).unit.y), 0, 0)
  3601. end
  3602. end)
  3603. Mouse.Idle:connect(function()
  3604. if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 and Equipped then
  3605. Mouse.TargetFilter = workspace
  3606. Character.Torso.Neck.C1 = CFrame.new()
  3607. Character.Torso.Neck.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.asin((Mouse.Hit.p - Mouse.Origin.p).unit.y), 0, 0)
  3608. end
  3609. end)
  3610. while wait() and Equipped do
  3611. if Sprinting then
  3612. Can_Shoot = false
  3613. Right_Weld.C0 = CFrame.new(0, -1.5, 0) * Settings.SprintArmOffset
  3614. Left_Weld.C0 = CFrame.new(0, -1.5, 0) * Settings.SprintArmOffset
  3615. elseif not Aiming and not Sprinting then
  3616. Can_Shoot = true
  3617. Left_Weld.C0 = CFrame.new(0, -1.5, 0)
  3618. end
  3619. if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude > 1 and Equipped then
  3620. Mouse.TargetFilter = nil
  3621. Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  3622. Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  3623. end
  3624. end
  3625. end)
  3626.  
  3627. local Arms_Made
  3628. local Fake_Arm_Right, Fake_Arm_Left, Fake_Arm_Model
  3629.  
  3630. Tool.Equipped:connect(function(Mouse)
  3631. if Character and not Arms_Made then
  3632. Arms_Made = true
  3633. local Torso = Character.Torso
  3634. Torso["Right Shoulder"].Part1 = nil
  3635. Left_Weld = Instance.new("Weld", Torso)
  3636. Left_Weld.Name = "Left_Weld"
  3637. Left_Weld.Part0 = Character.Head
  3638. Left_Weld.C0 = CFrame.new(0, -1.5, 0)
  3639. if not Settings.OneHanded then
  3640. Torso["Left Shoulder"].Part1 = nil
  3641. Left_Weld.Part1 = Character["Left Arm"]
  3642. end
  3643. Right_Weld = Instance.new("Weld", Torso)
  3644. Right_Weld.Name = "Right_Weld"
  3645. Right_Weld.Part0 = Character.Head
  3646. Right_Weld.Part1 = Character["Right Arm"]
  3647. Right_Weld.C0 = CFrame.new(0, -1.5, 0)
  3648. Left_Weld.C1 = Settings.LeftPos
  3649. Right_Weld.C1 = Settings.RightPos
  3650. end
  3651. if Settings.FakeArms and not Fake_Arm_Right then
  3652. Fake_Arm_Right, Fake_Arm_Left = Character["Right Arm"]:Clone(), Character["Left Arm"]:Clone()
  3653. Fake_Arm_Right.FormFactor, Fake_Arm_Left.FormFactor = "Custom", "Custom"
  3654. Fake_Arm_Right.Size, Fake_Arm_Left.Size = Vector3.new(), Vector3.new()
  3655. local fakeArms = {Fake_Arm_Right, Fake_Arm_Left}
  3656. for i = 1, 2 do
  3657. local w = Instance.new("Weld", fakeArms[i])
  3658. w.Part0 = Character[fakeArms[i].Name]
  3659. w.Part1 = fakeArms[i]
  3660. fakeArms[i].Transparency = Settings.FakeArmTransparency
  3661. end
  3662. Fake_Arm_Model = Instance.new("Model", Camera)
  3663. Fake_Arm_Right.Parent = Fake_Arm_Model
  3664. if not Settings.OneHanded then
  3665. Fake_Arm_Left.Parent = Fake_Arm_Model
  3666. end
  3667. Fake_Arm_Model.Name = "FakeArms"
  3668. if Settings.CharacterMeshes then
  3669. for i, v in pairs(Character:GetChildren()) do
  3670. if v:IsA("CharacterMesh") and v.BodyPart == Enum.BodyPart.LeftArm or v:IsA("CharacterMesh") and v.BodyPart == Enum.BodyPart.RightArm then
  3671. v:Clone().Parent = Fake_Arm_Model
  3672. end
  3673. end
  3674. end
  3675. if Character:FindFirstChild("Shirt") then
  3676. Instance.new("Humanoid", Fake_Arm_Model)
  3677. Character.Shirt:Clone().Parent = Fake_Arm_Model
  3678. else
  3679. local Arm_Mesh = Instance.new("SpecialMesh", Fake_Arm_Right)
  3680. Arm_Mesh.MeshType, Arm_Mesh.Scale = "Brick", Vector3.new(1, 2, 1)
  3681. local Arm_Mesh2 = Instance.new("SpecialMesh", Fake_Arm_Left)
  3682. Arm_Mesh2.MeshType, Arm_Mesh2.Scale = "Brick", Vector3.new(1, 2, 1)
  3683. end
  3684. end
  3685. end)
  3686.  
  3687. Tool.Unequipped:connect(function()
  3688. Equipped = false
  3689. Tool.GripPos = Orig_Grip
  3690. Aiming = false
  3691. Settings.Spread = Orig_Spread
  3692. if Settings.ChangeFOV[1] then
  3693. Camera.FieldOfView = 70
  3694. end
  3695. if Gui then
  3696. Gui:Destroy()
  3697. Gui = nil
  3698. end
  3699. for i, v in pairs(Tool.Handle:GetChildren()) do
  3700. if v:IsA("Sound") then
  3701. v:Stop()
  3702. end
  3703. end
  3704. if Fake_Arm_Right and Fake_Arm_Left and Fake_Arm_Model then
  3705. Fake_Arm_Model:Destroy()
  3706. Fake_Arm_Right, Fake_Arm_Left, Fake_Arm_Model = nil, nil, nil
  3707. end
  3708. if Character and Left_Weld and Right_Weld then
  3709. Arms_Made = false
  3710. local Torso = Character.Torso
  3711. Torso["Right Shoulder"].Part1, Torso["Left Shoulder"].Part1 = Character["Right Arm"], Character["Left Arm"]
  3712. Left_Weld:Destroy()
  3713. Right_Weld:Destroy()
  3714. end
  3715. Sprinting = false
  3716. Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  3717. Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  3718. Character.Humanoid.WalkSpeed = 16
  3719. end)
  3720. end))
  3721. NumberValue20.Name = "StoredAmmo"
  3722. NumberValue20.Parent = LocalScript19
  3723. NumberValue20.Value = math.huge
  3724. NumberValue21.Name = "Ammo"
  3725. NumberValue21.Parent = LocalScript19
  3726. NumberValue21.Value = math.huge
  3727. Smoke22.Parent = LocalScript19
  3728. Smoke22.Size = 0.25
  3729. Smoke22.Color = Color3.new(0.807843, 0.807843, 0.807843)
  3730. Smoke22.Enabled = false
  3731. Smoke22.Opacity = 0.10000000149012
  3732. Smoke22.RiseVelocity = 10
  3733. Smoke22.Color = Color3.new(0.807843, 0.807843, 0.807843)
  3734. Smoke23.Name = "Smoke1"
  3735. Smoke23.Parent = LocalScript19
  3736. Smoke23.Size = 0.25
  3737. Smoke23.Color = Color3.new(0.807843, 0.807843, 0.807843)
  3738. Smoke23.Enabled = false
  3739. Smoke23.Opacity = 0.10000000149012
  3740. Smoke23.RiseVelocity = 10
  3741. Smoke23.Color = Color3.new(0.807843, 0.807843, 0.807843)
  3742. Smoke24.Name = "Smoke2"
  3743. Smoke24.Parent = LocalScript19
  3744. Smoke24.Size = 0.25
  3745. Smoke24.Color = Color3.new(0.807843, 0.807843, 0.807843)
  3746. Smoke24.Enabled = false
  3747. Smoke24.Opacity = 0.10000000149012
  3748. Smoke24.RiseVelocity = 10
  3749. Smoke24.Color = Color3.new(0.807843, 0.807843, 0.807843)
  3750. for i,v in pairs(mas:GetChildren()) do
  3751. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  3752. pcall(function() v:MakeJoints() end)
  3753. end
  3754. mas:Destroy()
  3755. for i,v in pairs(cors) do
  3756. spawn(function()
  3757. pcall(v)
  3758. end)
  3759. end
  3760. end
  3761.  
  3762.  
  3763. function SpawnGrenade()
  3764.  
  3765.  
  3766. --Converted with ttyyuu12345's model to script plugin v4
  3767. function sandbox(var,func)
  3768. local env = getfenv(func)
  3769. local newenv = setmetatable({},{
  3770. __index = function(self,k)
  3771. if k=="script" then
  3772. return var
  3773. else
  3774. return env[k]
  3775. end
  3776. end,
  3777. })
  3778. setfenv(func,newenv)
  3779. return func
  3780. end
  3781. cors = {}
  3782. mas = Instance.new("Model",game:GetService("Lighting"))
  3783. Tool0 = Instance.new("Tool")
  3784. Part1 = Instance.new("Part")
  3785. Sound2 = Instance.new("Sound")
  3786. SpecialMesh3 = Instance.new("SpecialMesh")
  3787. LocalScript4 = Instance.new("LocalScript")
  3788. Tool0.Name = "Grenade"
  3789. Tool0.Parent = mas
  3790. Tool0.TextureId = "rbxassetid://16370867"
  3791. Tool0.GripForward = Vector3.new(0.536952674, -0, -0.843612373)
  3792. Tool0.GripPos = Vector3.new(0, -0.375, 0.25)
  3793. Tool0.GripRight = Vector3.new(0.843612373, 0, 0.536952674)
  3794. Tool0.ToolTip = "A Throwable Explodsive"
  3795. Part1.Name = "Handle"
  3796. Part1.Parent = Tool0
  3797. Part1.BrickColor = BrickColor.new("Earth green")
  3798. Part1.RotVelocity = Vector3.new(1.37593925e-05, -6.13289521e-05, 1.96380879e-05)
  3799. Part1.Velocity = Vector3.new(-0.000568417425, -0.0197211988, 0.000788206118)
  3800. Part1.FormFactor = Enum.FormFactor.Custom
  3801. Part1.Size = Vector3.new(1, 1, 1)
  3802. Part1.CFrame = CFrame.new(-4.41068363, 70.1459122, -1.17578077, 1.0000006, -5.28530109e-10, -6.98491931e-10, -5.28530109e-10, 0.999999881, -5.82076609e-11, -6.98491931e-10, -5.82076609e-11, 1)
  3803. Part1.BottomSurface = Enum.SurfaceType.Smooth
  3804. Part1.TopSurface = Enum.SurfaceType.Smooth
  3805. Part1.Color = Color3.new(0.152941, 0.27451, 0.176471)
  3806. Part1.Position = Vector3.new(-4.41068363, 70.1459122, -1.17578077)
  3807. Part1.Color = Color3.new(0.152941, 0.27451, 0.176471)
  3808. Sound2.Name = "Fire"
  3809. Sound2.Parent = Part1
  3810. Sound2.SoundId = "rbxasset://sounds/swoosh.wav"
  3811. Sound2.Volume = 0.69999998807907
  3812. SpecialMesh3.Parent = Part1
  3813. SpecialMesh3.MeshId = "http://www.roblox.com/Asset/?id=10207236"
  3814. SpecialMesh3.Scale = Vector3.new(0.100000001, 0.100000001, 0.100000001)
  3815. SpecialMesh3.MeshType = Enum.MeshType.FileMesh
  3816. SpecialMesh3.Scale = Vector3.new(0.100000001, 0.100000001, 0.100000001)
  3817. LocalScript4.Name = "MainScript"
  3818. LocalScript4.Parent = Tool0
  3819. table.insert(cors,sandbox(LocalScript4,function()
  3820. -- A Samsung Galaxy Note 7 Rigged With Explodsives!
  3821.  
  3822. --Varibles--
  3823.  
  3824. Uses = 1 --How many uses availible until its useless--
  3825.  
  3826. CanKill = true -- Can it kill people? --
  3827.  
  3828.  
  3829.  
  3830.  
  3831.  
  3832.  
  3833.  
  3834.  
  3835.  
  3836.  
  3837.  
  3838.  
  3839.  
  3840.  
  3841.  
  3842.  
  3843.  
  3844.  
  3845.  
  3846.  
  3847.  
  3848.  
  3849.  
  3850.  
  3851.  
  3852.  
  3853.  
  3854.  
  3855.  
  3856.  
  3857.  
  3858. local tool = script.Parent
  3859.  
  3860. ammountofuses = Uses
  3861.  
  3862. function swing(mouse)
  3863.  
  3864. vCharacter = tool.Parent
  3865. vPlayer = game.Players:playerFromCharacter(vCharacter)
  3866.  
  3867.  
  3868. if ammountofuses > 0 then
  3869. ammountofuses = ammountofuses -1
  3870. print("Throwing a "..tool.Name.." from " ..vPlayer.Name.. "!")
  3871. tool.Handle.Fire:Play()
  3872. local explosive = tool.Handle:Clone()
  3873. --explosive.Position = tool.Handle.Position
  3874. explosive.CanCollide = true
  3875. explosive.Parent = workspace
  3876. explosive.RotVelocity=Vector3.new(0,0,0)
  3877. explosive.Velocity=(mouse.Hit.p-explosive.Position).unit*100+Vector3.new(0,10,0)
  3878. explosive.CFrame=CFrame.new(tool.Handle.Position,mouse.Hit.p)*CFrame.Angles(-math.pi/2,0,0)
  3879. if ammountofuses <= 0 then
  3880. script.Parent.Handle:Remove()
  3881. end
  3882. explode(explosive, tool)
  3883. end
  3884. end
  3885.  
  3886. function explode(part, weapon)
  3887. --[[local firesound = Instance.new("Sound", part)
  3888. firesound.SoundId = "rbxassetid://192104941"]]
  3889. local explodesound = Instance.new("Sound", part)
  3890. explodesound.SoundId = "rbxassetid://157878578"
  3891. --[[wait(1)
  3892. local smoke = Instance.new("Smoke", part)
  3893. smoke.Color = Color3.new(0, 0, 0)
  3894. wait(2)
  3895. local fire = Instance.new("Fire", part)
  3896. firesound:Play()]]
  3897. wait(3)
  3898. local explosion = Instance.new("Explosion", part)
  3899. explodesound:Play()
  3900. explosion.Position = part.Position
  3901. if CanKill == true then
  3902. explosion.BlastPressure = 100000
  3903. else
  3904. explosion.BlastPressure = 0
  3905. end
  3906. explosion.Hit:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") ~= nil then tagHumanoid(hit.Parent.Humanoid) delay(1, function() untagHumanoid(hit.Parent.Humanoid) end) end end)
  3907. wait(1)
  3908. part:Destroy()
  3909. if ammountofuses <= 0 then
  3910. weapon:Destroy()
  3911. end
  3912. end
  3913.  
  3914. --script.Parent.Activated:connect(swing)
  3915.  
  3916. tool.Equipped:connect(function(mouse)
  3917. if mouse==nil then
  3918. print("Mouse not found")
  3919. return
  3920. end
  3921. equipped=true
  3922. mouse.Icon="rbxasset://textures\\GunCursor.png"
  3923. mouse.Button1Down:connect(function()
  3924. swing(mouse)
  3925. end)
  3926. end)
  3927.  
  3928. function tagHumanoid(humanoid)
  3929. local tag = Instance.new("ObjectValue")
  3930. tag.Name = "creator"
  3931. tag.Value = vPlayer
  3932. tag.Parent = humanoid
  3933. local tag = Instance.new("StringValue")
  3934. tag.Name = "creatorType1"
  3935. tag.Value = tool.Name
  3936. tag.Parent = humanoid
  3937. local tag = Instance.new("StringValue")
  3938. tag.Name = "creatorType2"
  3939. tag.Value = "blown to pieces"
  3940. tag.Parent = humanoid
  3941. end
  3942.  
  3943.  
  3944. function untagHumanoid(humanoid)
  3945. if humanoid ~= nil then
  3946. local tag = humanoid:FindFirstChild("creator")
  3947. if tag ~= nil then
  3948. tag:Remove()
  3949. end
  3950. local tag = humanoid:FindFirstChild("creatorType1")
  3951. if tag ~= nil then
  3952. tag:Remove()
  3953. end
  3954. local tag = humanoid:FindFirstChild("creatorType2")
  3955. if tag ~= nil then
  3956. tag:Remove()
  3957. end
  3958. end
  3959. end
  3960.  
  3961.  
  3962. end))
  3963. for i,v in pairs(mas:GetChildren()) do
  3964. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  3965. pcall(function() v:MakeJoints() end)
  3966. end
  3967. mas:Destroy()
  3968. for i,v in pairs(cors) do
  3969. spawn(function()
  3970. pcall(v)
  3971. end)
  3972. end
  3973.  
  3974.  
  3975. end
  3976.  
  3977.  
  3978. function SpawnPhoneBomb()
  3979. -- A Samsung Galaxy Note 7 Rigged With Explodsives!
  3980. local runDummyScript = function(f,scri)
  3981. local oldenv = getfenv(f)
  3982. local newenv = setmetatable({}, {
  3983. __index = function(_, k)
  3984. if k:lower() == 'script' then
  3985. return scri
  3986. else
  3987. return oldenv[k]
  3988. end
  3989. end
  3990. })
  3991. setfenv(f, newenv)
  3992. ypcall(function() f() end)
  3993. end
  3994. cors = {}
  3995. mas = Instance.new("Model",game:GetService("Lighting"))
  3996. mas.Name = "CompiledModel"
  3997. o1 = Instance.new("Tool")
  3998. o2 = Instance.new("Part")
  3999. o3 = Instance.new("SpecialMesh")
  4000. o4 = Instance.new("Sound")
  4001. o5 = Instance.new("LocalScript")
  4002. o1.Name = "Phone Bomb"
  4003. o1.Parent = game.Players.LocalPlayer.Backpack
  4004. o1.TextureId = "rbxassetid://16370867"
  4005. o1.GripForward = Vector3.new(0.536952674, -0, -0.843612373)
  4006. o1.GripPos = Vector3.new(0, -0.375, 0.25)
  4007. o1.GripRight = Vector3.new(0.843612373, 0, 0.536952674)
  4008. o1.ToolTip = "A Samsung Galaxy Note 7 Rigged With Explodsives!"
  4009. o2.Name = "Handle"
  4010. o2.Parent = o1
  4011. o2.Position = Vector3.new(-4.320683, 0.855857015, -3.17578101)
  4012. o2.FormFactor = Enum.FormFactor.Custom
  4013. o2.Size = Vector3.new(0.75, 1.25, 0.200000003)
  4014. o2.CFrame = CFrame.new(-4.320683, 0.855857015, -3.17578101, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4015. o2.BottomSurface = Enum.SurfaceType.Smooth
  4016. o2.TopSurface = Enum.SurfaceType.Smooth
  4017. o2.Position = Vector3.new(-4.320683, 0.855857015, -3.17578101)
  4018. o3.Parent = o2
  4019. o3.MeshId = "http://www.roblox.com/asset/?id=268471347"
  4020. o3.Scale = Vector3.new(1.375, 1.375, 1.375)
  4021. o3.TextureId = "rbxassetid://637111231"
  4022. o3.MeshType = Enum.MeshType.FileMesh
  4023. o4.Name = "Fire"
  4024. o4.Parent = o2
  4025. o4.SoundId = "rbxasset://sounds/swoosh.wav"
  4026. o4.Volume = 0.69999998807907
  4027. o5.Name = "MainScript"
  4028. o5.Parent = o1
  4029. table.insert(cors,coroutine.create(function()
  4030. wait()
  4031. runDummyScript(function()
  4032. -- A Samsung Galaxy Note 7 Rigged With Explodsives!
  4033.  
  4034. --Varibles--
  4035.  
  4036. Uses = 1 --How many uses availible until its useless--
  4037.  
  4038. CanKill = true -- Can it kill people? --
  4039.  
  4040.  
  4041.  
  4042.  
  4043.  
  4044.  
  4045.  
  4046.  
  4047.  
  4048.  
  4049.  
  4050.  
  4051.  
  4052.  
  4053.  
  4054.  
  4055.  
  4056.  
  4057.  
  4058.  
  4059.  
  4060.  
  4061.  
  4062.  
  4063.  
  4064.  
  4065.  
  4066.  
  4067.  
  4068.  
  4069.  
  4070. local tool = o1
  4071.  
  4072. ammountofuses = Uses
  4073.  
  4074. function swing(mouse)
  4075.  
  4076. vCharacter = tool.Parent
  4077. vPlayer = game.Players:playerFromCharacter(vCharacter)
  4078.  
  4079.  
  4080. if ammountofuses > 0 then
  4081. ammountofuses = ammountofuses -1
  4082. print("Throwing a "..tool.Name.." from " ..vPlayer.Name.. "!")
  4083. tool.Handle.Fire:Play()
  4084. local explosive = tool.Handle:Clone()
  4085. --explosive.Position = tool.Handle.Position
  4086. explosive.CanCollide = true
  4087. explosive.Parent = workspace
  4088. explosive.RotVelocity=Vector3.new(0,0,0)
  4089. explosive.Velocity=(mouse.Hit.p-explosive.Position).unit*100+Vector3.new(0,10,0)
  4090. explosive.CFrame=CFrame.new(tool.Handle.Position,mouse.Hit.p)*CFrame.Angles(-math.pi/2,0,0)
  4091. if ammountofuses <= 0 then
  4092. script.Parent.Handle:Remove()
  4093. end
  4094. explode(explosive, tool)
  4095. end
  4096. end
  4097.  
  4098. function explode(part, weapon)
  4099. local firesound = Instance.new("Sound", part)
  4100. firesound.SoundId = "rbxassetid://192104941"
  4101. local explodesound = Instance.new("Sound", part)
  4102. explodesound.SoundId = "rbxassetid://157878578"
  4103. wait(1)
  4104. local smoke = Instance.new("Smoke", part)
  4105. smoke.Color = Color3.new(0, 0, 0)
  4106. wait(2)
  4107. local fire = Instance.new("Fire", part)
  4108. firesound:Play()
  4109. wait(3)
  4110. local explosion = Instance.new("Explosion", part)
  4111. explodesound:Play()
  4112. explosion.Position = part.Position
  4113. if CanKill == true then
  4114. explosion.BlastPressure = 100000
  4115. else
  4116. explosion.BlastPressure = 0
  4117. end
  4118. explosion.Hit:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") ~= nil then tagHumanoid(hit.Parent.Humanoid) delay(1, function() untagHumanoid(hit.Parent.Humanoid) end) end end)
  4119. wait(1)
  4120. part:Destroy()
  4121. if ammountofuses <= 0 then
  4122. weapon:Destroy()
  4123. end
  4124. end
  4125.  
  4126. --script.Parent.Activated:connect(swing)
  4127.  
  4128. tool.Equipped:connect(function(mouse)
  4129. if mouse==nil then
  4130. print("Mouse not found")
  4131. return
  4132. end
  4133. equipped=true
  4134. mouse.Icon="rbxasset://textures\\GunCursor.png"
  4135. mouse.Button1Down:connect(function()
  4136. swing(mouse)
  4137. end)
  4138. end)
  4139.  
  4140. function tagHumanoid(humanoid)
  4141. local tag = Instance.new("ObjectValue")
  4142. tag.Name = "creator"
  4143. tag.Value = vPlayer
  4144. tag.Parent = humanoid
  4145. local tag = Instance.new("StringValue")
  4146. tag.Name = "creatorType1"
  4147. tag.Value = tool.Name
  4148. tag.Parent = humanoid
  4149. local tag = Instance.new("StringValue")
  4150. tag.Name = "creatorType2"
  4151. tag.Value = "blown to pieces"
  4152. tag.Parent = humanoid
  4153. end
  4154.  
  4155.  
  4156. function untagHumanoid(humanoid)
  4157. if humanoid ~= nil then
  4158. local tag = humanoid:FindFirstChild("creator")
  4159. if tag ~= nil then
  4160. tag:Remove()
  4161. end
  4162. local tag = humanoid:FindFirstChild("creatorType1")
  4163. if tag ~= nil then
  4164. tag:Remove()
  4165. end
  4166. local tag = humanoid:FindFirstChild("creatorType2")
  4167. if tag ~= nil then
  4168. tag:Remove()
  4169. end
  4170. end
  4171. end
  4172.  
  4173.  
  4174. end,o5)
  4175. end))
  4176. mas.Parent = workspace
  4177. mas:MakeJoints()
  4178. local mas1 = mas:GetChildren()
  4179. for i=1,#mas1 do
  4180. mas1[i].Parent = workspace
  4181. ypcall(function() mas1[i]:MakeJoints() end)
  4182. end
  4183. mas:Destroy()
  4184. for i=1,#cors do
  4185. coroutine.resume(cors[i])
  4186. end
  4187. end
  4188.  
  4189. function SpawnFlashbang()
  4190.  
  4191. --Converted with ttyyuu12345's model to script plugin v4
  4192. function sandbox(var,func)
  4193. local env = getfenv(func)
  4194. local newenv = setmetatable({},{
  4195. __index = function(self,k)
  4196. if k=="script" then
  4197. return var
  4198. else
  4199. return env[k]
  4200. end
  4201. end,
  4202. })
  4203. setfenv(func,newenv)
  4204. return func
  4205. end
  4206. cors = {}
  4207. mas = Instance.new("Model",game:GetService("Lighting"))
  4208. Tool0 = Instance.new("Tool")
  4209. Part1 = Instance.new("Part")
  4210. Sound2 = Instance.new("Sound")
  4211. SpecialMesh3 = Instance.new("SpecialMesh")
  4212. LocalScript4 = Instance.new("LocalScript")
  4213. Tool0.Name = "Smoke Grenade"
  4214. Tool0.Parent = mas
  4215. Tool0.TextureId = "rbxassetid://16370867"
  4216. Tool0.GripForward = Vector3.new(0.536952674, -0, -0.843612373)
  4217. Tool0.GripPos = Vector3.new(0, -0.375, 0.25)
  4218. Tool0.GripRight = Vector3.new(0.843612373, 0, 0.536952674)
  4219. Tool0.ToolTip = "A Throwable Smoke Maker"
  4220. Part1.Name = "Handle"
  4221. Part1.Parent = Tool0
  4222. Part1.BrickColor = BrickColor.new("Earth green")
  4223. Part1.RotVelocity = Vector3.new(1.37593925e-05, -6.13289521e-05, 1.96380879e-05)
  4224. Part1.Velocity = Vector3.new(-0.000691075344, -0.0197487175, 0.000788206118)
  4225. Part1.FormFactor = Enum.FormFactor.Custom
  4226. Part1.Size = Vector3.new(1, 1, 1)
  4227. Part1.CFrame = CFrame.new(-4.41068363, 70.1459122, 0.824219227, 1.0000006, -5.28530109e-10, -6.98491931e-10, -5.28530109e-10, 0.999999881, -5.82076609e-11, -6.98491931e-10, -5.82076609e-11, 1)
  4228. Part1.BottomSurface = Enum.SurfaceType.Smooth
  4229. Part1.TopSurface = Enum.SurfaceType.Smooth
  4230. Part1.Color = Color3.new(0.152941, 0.27451, 0.176471)
  4231. Part1.Position = Vector3.new(-4.41068363, 70.1459122, 0.824219227)
  4232. Part1.Color = Color3.new(0.152941, 0.27451, 0.176471)
  4233. Sound2.Name = "Fire"
  4234. Sound2.Parent = Part1
  4235. Sound2.SoundId = "rbxasset://sounds/swoosh.wav"
  4236. Sound2.Volume = 0.69999998807907
  4237. SpecialMesh3.Parent = Part1
  4238. SpecialMesh3.MeshId = "http://www.roblox.com/asset/?id=16975131"
  4239. SpecialMesh3.Scale = Vector3.new(0.600000024, 0.649999976, 0.600000024)
  4240. SpecialMesh3.TextureId = "http://www.roblox.com/asset/?id=16975111"
  4241. SpecialMesh3.MeshType = Enum.MeshType.FileMesh
  4242. SpecialMesh3.Scale = Vector3.new(0.600000024, 0.649999976, 0.600000024)
  4243. LocalScript4.Name = "MainScript"
  4244. LocalScript4.Parent = Tool0
  4245. table.insert(cors,sandbox(LocalScript4,function()
  4246. -- A Samsung Galaxy Note 7 Rigged With Explodsives!
  4247.  
  4248. --Varibles--
  4249.  
  4250. Uses = 1 --How many uses availible until its useless--
  4251.  
  4252. CanKill = false -- Can it kill people? --
  4253.  
  4254.  
  4255.  
  4256.  
  4257.  
  4258.  
  4259.  
  4260.  
  4261.  
  4262.  
  4263.  
  4264.  
  4265.  
  4266.  
  4267.  
  4268.  
  4269.  
  4270.  
  4271.  
  4272.  
  4273.  
  4274.  
  4275.  
  4276.  
  4277.  
  4278.  
  4279.  
  4280.  
  4281.  
  4282.  
  4283.  
  4284. local tool = script.Parent
  4285.  
  4286. ammountofuses = Uses
  4287.  
  4288. function swing(mouse)
  4289.  
  4290. vCharacter = tool.Parent
  4291. vPlayer = game.Players:playerFromCharacter(vCharacter)
  4292.  
  4293.  
  4294. if ammountofuses > 0 then
  4295. ammountofuses = ammountofuses -1
  4296. print("Throwing a "..tool.Name.." from " ..vPlayer.Name.. "!")
  4297. tool.Handle.Fire:Play()
  4298. local explosive = tool.Handle:Clone()
  4299. --explosive.Position = tool.Handle.Position
  4300. explosive.CanCollide = true
  4301. explosive.Parent = workspace
  4302. explosive.RotVelocity=Vector3.new(0,0,0)
  4303. explosive.Velocity=(mouse.Hit.p-explosive.Position).unit*100+Vector3.new(0,10,0)
  4304. explosive.CFrame=CFrame.new(tool.Handle.Position,mouse.Hit.p)*CFrame.Angles(-math.pi/2,0,0)
  4305. if ammountofuses <= 0 then
  4306. script.Parent.Handle:Remove()
  4307. end
  4308. explode(explosive, tool)
  4309. end
  4310. end
  4311.  
  4312. function explode(part, weapon)
  4313. --[[local firesound = Instance.new("Sound", part)
  4314. firesound.SoundId = "rbxassetid://192104941"]]
  4315. local explodesound = Instance.new("Sound", part)
  4316. explodesound.SoundId = "rbxassetid://157878578"
  4317. --[[wait(1)
  4318. local smoke = Instance.new("Smoke", part)
  4319. smoke.Color = Color3.new(0, 0, 0)
  4320. wait(2)
  4321. local fire = Instance.new("Fire", part)
  4322. firesound:Play()]]
  4323. wait(3)
  4324. local explosion = Instance.new("Explosion", part)
  4325. explodesound:Play()
  4326. explosion.Position = part.Position
  4327. if CanKill == true then
  4328. explosion.BlastPressure = 100000
  4329. else
  4330. explosion.BlastPressure = 0
  4331. end
  4332. explosion.Hit:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") ~= nil then tagHumanoid(hit.Parent.Humanoid) delay(1, function() untagHumanoid(hit.Parent.Humanoid) end) end end)
  4333. wait(1)
  4334. local smoke = Instance.new("Smoke", part)
  4335. smoke.Color = Color3.new(255, 255, 255)
  4336. if ammountofuses <= 0 then
  4337. weapon:Destroy()
  4338. end
  4339. end
  4340.  
  4341. --script.Parent.Activated:connect(swing)
  4342.  
  4343. tool.Equipped:connect(function(mouse)
  4344. if mouse==nil then
  4345. print("Mouse not found")
  4346. return
  4347. end
  4348. equipped=true
  4349. mouse.Icon="rbxasset://textures\\GunCursor.png"
  4350. mouse.Button1Down:connect(function()
  4351. swing(mouse)
  4352. end)
  4353. end)
  4354.  
  4355. function tagHumanoid(humanoid)
  4356. local tag = Instance.new("ObjectValue")
  4357. tag.Name = "creator"
  4358. tag.Value = vPlayer
  4359. tag.Parent = humanoid
  4360. local tag = Instance.new("StringValue")
  4361. tag.Name = "creatorType1"
  4362. tag.Value = tool.Name
  4363. tag.Parent = humanoid
  4364. local tag = Instance.new("StringValue")
  4365. tag.Name = "creatorType2"
  4366. tag.Value = "blown to pieces"
  4367. tag.Parent = humanoid
  4368. end
  4369.  
  4370.  
  4371. function untagHumanoid(humanoid)
  4372. if humanoid ~= nil then
  4373. local tag = humanoid:FindFirstChild("creator")
  4374. if tag ~= nil then
  4375. tag:Remove()
  4376. end
  4377. local tag = humanoid:FindFirstChild("creatorType1")
  4378. if tag ~= nil then
  4379. tag:Remove()
  4380. end
  4381. local tag = humanoid:FindFirstChild("creatorType2")
  4382. if tag ~= nil then
  4383. tag:Remove()
  4384. end
  4385. end
  4386. end
  4387.  
  4388.  
  4389. end))
  4390. for i,v in pairs(mas:GetChildren()) do
  4391. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  4392. pcall(function() v:MakeJoints() end)
  4393. end
  4394. mas:Destroy()
  4395. for i,v in pairs(cors) do
  4396. spawn(function()
  4397. pcall(v)
  4398. end)
  4399. end
  4400.  
  4401. end
  4402.  
  4403.  
  4404. function SpawnTaser()
  4405.  
  4406. --Converted with ttyyuu12345's model to script plugin v4
  4407. function sandbox(var,func)
  4408. local env = getfenv(func)
  4409. local newenv = setmetatable({},{
  4410. __index = function(self,k)
  4411. if k=="script" then
  4412. return var
  4413. else
  4414. return env[k]
  4415. end
  4416. end,
  4417. })
  4418. setfenv(func,newenv)
  4419. return func
  4420. end
  4421. cors = {}
  4422. mas = Instance.new("Model",game:GetService("Lighting"))
  4423. Tool0 = Instance.new("Tool")
  4424. Part1 = Instance.new("Part")
  4425. SpecialMesh2 = Instance.new("SpecialMesh")
  4426. Sound3 = Instance.new("Sound")
  4427. LocalScript4 = Instance.new("LocalScript")
  4428. Tool0.Name = "Taser"
  4429. Tool0.Parent = mas
  4430. Tool0.GripPos = Vector3.new(0, -0.400000006, 0.400000006)
  4431. Tool0.ToolTip = "Taser"
  4432. Part1.Name = "Handle"
  4433. Part1.Parent = Tool0
  4434. Part1.BrickColor = BrickColor.new("Black")
  4435. Part1.Rotation = Vector3.new(-180, 0, -180)
  4436. Part1.FormFactor = Enum.FormFactor.Custom
  4437. Part1.Size = Vector3.new(1, 1.61800003, 0.617999971)
  4438. Part1.CFrame = CFrame.new(6.97999907, 0.809001982, -40.0199966, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  4439. Part1.BottomSurface = Enum.SurfaceType.Smooth
  4440. Part1.TopSurface = Enum.SurfaceType.Smooth
  4441. Part1.Color = Color3.new(0.105882, 0.164706, 0.207843)
  4442. Part1.Position = Vector3.new(6.97999907, 0.809001982, -40.0199966)
  4443. Part1.Orientation = Vector3.new(0, 180, 0)
  4444. Part1.Color = Color3.new(0.105882, 0.164706, 0.207843)
  4445. SpecialMesh2.Parent = Part1
  4446. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=82337638"
  4447. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=82337709"
  4448. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  4449. Sound3.Name = "Fire"
  4450. Sound3.Parent = Part1
  4451. Sound3.SoundId = "http://www.roblox.com/asset/?id=10756118"
  4452. LocalScript4.Parent = Tool0
  4453. table.insert(cors,sandbox(LocalScript4,function()
  4454. MaxDistance = 512
  4455. Tool = script.Parent
  4456. TouchDamage = 100
  4457. DirectDamage = 100
  4458.  
  4459. function fireLaser(pos, target, obj)
  4460.  
  4461. local part = Instance.new("Part")
  4462. part.Anchored = true
  4463. part.CanCollide = false
  4464. part.formFactor = "Symmetric"
  4465. part.TopSurface = 0
  4466. part.BottomSurface = 0
  4467. part.BrickColor = BrickColor.new("Institutional white")
  4468. part.Transparency = 0.5
  4469. part.Name = "Laser Shot"
  4470. part.Locked = true
  4471. part.Size = Vector3.new(1,1,(pos - obj.Position).magnitude)
  4472. part.CFrame = CFrame.new(((obj.Position + pos)/2) + 1 * (pos - obj.Position).unit, pos)
  4473.  
  4474. local mesh = Instance.new("BlockMesh")
  4475. mesh.Scale = Vector3.new(0.25,0.25,1)
  4476. mesh.Parent = part
  4477.  
  4478. part.Parent = workspace
  4479. --Optional: Laser will damage others than the target.
  4480. --part.Touched:connect(onTouch)
  4481. local h = getHumanoid(target.Parent)
  4482. local player = game.Players:findFirstChild(Tool.Parent.Name)
  4483. if player ~= nil and h ~= nil and target.Parent ~= Tool.Parent then
  4484. tagHumanoid(h, player)
  4485. h.PlatformStand = true
  4486. h.JumpPower = 0
  4487. h.WalkSpeed = 0
  4488. wait(0.05)
  4489. untagHumanoid(h)
  4490. elseif player ~= nil and h==nil and target.Parent ~= Tool.Parent then
  4491. if target:getMass() <= 216 then
  4492. --burn(target, part)
  4493. end
  4494. else
  4495. getTarget(pos)
  4496. end
  4497.  
  4498. for v=1, 10 do
  4499. part.Transparency = 0.1 * v
  4500. wait(0.05)
  4501. end
  4502.  
  4503. part:remove()
  4504. end
  4505.  
  4506. function burn(obj, laser)
  4507. local spark = Instance.new("Sparkles")
  4508. spark.Color = laser.Color
  4509. spark.Parent = obj
  4510. for i=1, 10, 1 do
  4511. local ex = Instance.new("Explosion")
  4512. ex.BlastRadius = 0
  4513. ex.Position = obj.Position
  4514. ex.Parent = workspace
  4515. obj.Transparency = 0.1 * i
  4516. wait(0.1)
  4517. end
  4518. obj:remove()
  4519. end
  4520.  
  4521. function getTarget(pos)
  4522. local child = workspace:getChildren()
  4523. for i,v in pairs(child) do
  4524. local h = getHumanoid(v)
  4525. if h ~= nil and v ~= Tool.Parent then
  4526. local torso = v:findFirstChild("Torso")
  4527. if torso ~= nil then
  4528. if (torso.Position - pos).magnitude <= 3 then
  4529. local player = game.Players:findFirstChild(Tool.Parent.Name)
  4530. if player ~= nil then
  4531. tagHumanoid(h, player)
  4532. end
  4533. h:takeDamage(DirectDamage)
  4534. wait(0.05)
  4535. untagHumanoid(h)
  4536. end
  4537. end
  4538. end
  4539. end
  4540. end
  4541.  
  4542.  
  4543. function getHumanoid(obj)
  4544. local child = obj:getChildren()
  4545. for i=1, #child do
  4546. if child[i].className == "Humanoid" then
  4547. return child[i]
  4548. end
  4549. end
  4550. return nil
  4551. end
  4552.  
  4553. db = false
  4554. function onTouch(hit)
  4555. if db then return end
  4556. db = true
  4557. if hit.Parent ~= Tool.Parent then
  4558. local h = getHumanoid(hit.Parent)
  4559. if h ~= nil then
  4560. local player = game.Players:findFirstChild(Tool.Parent.Name)
  4561. if player ~= nil then
  4562. tagHumanoid(h, player)
  4563. end
  4564. h:takeDamage(TouchDamage)
  4565. wait(0.1)
  4566. untagHumanoid(h)
  4567. end
  4568. end
  4569. wait(0.9)
  4570. db = false
  4571. end
  4572.  
  4573.  
  4574. function tagHumanoid(humanoid, player)
  4575. local creator_tag = Instance.new("ObjectValue")
  4576. creator_tag.Value = player
  4577. creator_tag.Name = "creator"
  4578. creator_tag.Parent = humanoid
  4579. end
  4580.  
  4581. function untagHumanoid(humanoid)
  4582. if humanoid ~= nil then
  4583. local tag = humanoid:findFirstChild("creator")
  4584. if tag ~= nil then
  4585. tag.Parent = nil
  4586. end
  4587. end
  4588. end
  4589.  
  4590. enabled = true
  4591. function onActivated(mouse)
  4592. if not enabled or mouse.Target == nil then return end
  4593. enabled = false
  4594. local handle = Tool:findFirstChild("Handle")
  4595. local human = Tool.Parent:findFirstChild("Humanoid")
  4596. if handle ~= nil and human ~= nil then
  4597. if (handle.Position - human.TargetPoint).magnitude <= MaxDistance then
  4598. handle.Fire:play()
  4599. fireLaser(human.TargetPoint, mouse.Target, handle)
  4600. end
  4601. end
  4602. enabled = true
  4603. end
  4604.  
  4605. mouseabled = true
  4606. function onButton1Down(mouse)
  4607. if not mouseabled or mouse.Target == nil then return end
  4608. mouseabled = false
  4609. mouse.Icon = "rbxasset://textures/GunWaitCursor.png"
  4610. wait(0.5)
  4611. mouseabled = true
  4612. mouse.Icon = "rbxasset://textures/GunCursor.png"
  4613. end
  4614.  
  4615. zoom = false
  4616. function onKeyDown(key)
  4617. key:lower()
  4618. if key == "q" then
  4619. if not zoom then
  4620. zoom = true
  4621.  
  4622. local obj = Instance.new("Part")
  4623. obj.Parent = Tool.Parent
  4624. obj.Size = Vector3.new(1,1,1)
  4625. obj.Transparency = 1
  4626. obj.CanCollide = false
  4627. obj.Anchored = true
  4628. obj.Name = "Zoom"
  4629. obj.CFrame = CFrame.new(Tool.Parent.Humanoid.TargetPoint)
  4630.  
  4631. cam = workspace.CurrentCamera:Clone()
  4632. cam.Parent = workspace
  4633. workspace.CurrentCamera.CameraSubject = obj
  4634. workspace.CurrentCamera.CameraType = 4
  4635. else
  4636. zoom = false
  4637.  
  4638. local check = Tool.Parent:findFirstChild("Zoom")
  4639. if check ~= nil then
  4640. check:remove()
  4641. end
  4642.  
  4643. workspace.CurrentCamera.CameraSubject = Tool.Parent.Humanoid
  4644. workspace.CurrentCamera:Remove()
  4645. workspace.CurrentCamera = cam
  4646. end
  4647. end
  4648. end
  4649.  
  4650. function onSelected(mouse)
  4651. connection = script.Parent.Activated:connect(function() onActivated(mouse) end)
  4652. mouse.KeyDown:connect(onKeyDown)
  4653. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  4654.  
  4655. mouse.Icon = "rbxasset://textures/GunCursor.png"
  4656. end
  4657.  
  4658. function onDeselected()
  4659. connection:disconnect()
  4660. end
  4661.  
  4662. script.Parent.Equipped:connect(onSelected)
  4663. script.Parent.Unequipped:connect(onDeselected)
  4664. end))
  4665. for i,v in pairs(mas:GetChildren()) do
  4666. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  4667. pcall(function() v:MakeJoints() end)
  4668. end
  4669. mas:Destroy()
  4670. for i,v in pairs(cors) do
  4671. spawn(function()
  4672. pcall(v)
  4673. end)
  4674. end
  4675.  
  4676. end
  4677.  
  4678. function SpawnG17()
  4679.  
  4680. --Converted with ttyyuu12345's model to script plugin v4
  4681. function sandbox(var,func)
  4682. local env = getfenv(func)
  4683. local newenv = setmetatable({},{
  4684. __index = function(self,k)
  4685. if k=="script" then
  4686. return var
  4687. else
  4688. return env[k]
  4689. end
  4690. end,
  4691. })
  4692. setfenv(func,newenv)
  4693. return func
  4694. end
  4695. cors = {}
  4696. mas = Instance.new("Model",game:GetService("Lighting"))
  4697. Tool0 = Instance.new("Tool")
  4698. Part1 = Instance.new("Part")
  4699. BlockMesh2 = Instance.new("BlockMesh")
  4700. PointLight3 = Instance.new("PointLight")
  4701. BillboardGui4 = Instance.new("BillboardGui")
  4702. ImageLabel5 = Instance.new("ImageLabel")
  4703. Script6 = Instance.new("Script")
  4704. Part7 = Instance.new("Part")
  4705. BlockMesh8 = Instance.new("BlockMesh")
  4706. LocalScript9 = Instance.new("LocalScript")
  4707. NumberValue10 = Instance.new("NumberValue")
  4708. NumberValue11 = Instance.new("NumberValue")
  4709. Smoke12 = Instance.new("Smoke")
  4710. Smoke13 = Instance.new("Smoke")
  4711. Smoke14 = Instance.new("Smoke")
  4712. Part15 = Instance.new("Part")
  4713. FileMesh16 = Instance.new("FileMesh")
  4714. Sound17 = Instance.new("Sound")
  4715. Sound18 = Instance.new("Sound")
  4716. Sound19 = Instance.new("Sound")
  4717. Sound20 = Instance.new("Sound")
  4718. Sound21 = Instance.new("Sound")
  4719. Part22 = Instance.new("Part")
  4720. FileMesh23 = Instance.new("FileMesh")
  4721. Part24 = Instance.new("Part")
  4722. FileMesh25 = Instance.new("FileMesh")
  4723. Tool0.Name = "Glock 17"
  4724. Tool0.Parent = mas
  4725. Tool0.GripForward = Vector3.new(0, 0, 1)
  4726. Tool0.GripRight = Vector3.new(-0.99999994, 0, 0)
  4727. Part1.Name = "SmokePart"
  4728. Part1.Parent = Tool0
  4729. Part1.Material = Enum.Material.SmoothPlastic
  4730. Part1.BrickColor = BrickColor.new("Dark stone grey")
  4731. Part1.Transparency = 1
  4732. Part1.Anchored = true
  4733. Part1.CanCollide = false
  4734. Part1.FormFactor = Enum.FormFactor.Custom
  4735. Part1.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  4736. Part1.CFrame = CFrame.new(9.1289444, -6.32531691, 18.8775139, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4737. Part1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  4738. Part1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  4739. Part1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  4740. Part1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  4741. Part1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  4742. Part1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  4743. Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
  4744. Part1.Position = Vector3.new(9.1289444, -6.32531691, 18.8775139)
  4745. Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
  4746. BlockMesh2.Parent = Part1
  4747. BlockMesh2.Scale = Vector3.new(0.658373058, 0.658372879, 0.658373058)
  4748. BlockMesh2.Scale = Vector3.new(0.658373058, 0.658372879, 0.658373058)
  4749. PointLight3.Name = "Flash"
  4750. PointLight3.Parent = Part1
  4751. PointLight3.Color = Color3.new(1, 0.666667, 0)
  4752. PointLight3.Enabled = false
  4753. PointLight3.Brightness = 3
  4754. PointLight3.Range = 10
  4755. PointLight3.Color = Color3.new(1, 0.666667, 0)
  4756. BillboardGui4.Name = "Light"
  4757. BillboardGui4.Parent = Part1
  4758. BillboardGui4.Size = UDim2.new(2.5, 0, 2.5, 0)
  4759. BillboardGui4.Active = true
  4760. ImageLabel5.Name = "Light"
  4761. ImageLabel5.Parent = BillboardGui4
  4762. ImageLabel5.Transparency = 1
  4763. ImageLabel5.Size = UDim2.new(2, 0, 2, 0)
  4764. ImageLabel5.Position = UDim2.new(-0.5, 0, -0.5, 0)
  4765. ImageLabel5.Active = true
  4766. ImageLabel5.Visible = false
  4767. ImageLabel5.BackgroundColor3 = Color3.new(0.756863, 0.752941, 0.764706)
  4768. ImageLabel5.BackgroundTransparency = 1
  4769. ImageLabel5.Image = "http://www.roblox.com/asset/?id=68683102"
  4770. Script6.Parent = BillboardGui4
  4771. table.insert(cors,sandbox(Script6,function()
  4772. script.Parent.Adornee = script.Parent.Parent
  4773. end))
  4774. Part7.Name = "AimPart"
  4775. Part7.Parent = Tool0
  4776. Part7.Material = Enum.Material.SmoothPlastic
  4777. Part7.BrickColor = BrickColor.new("Dark stone grey")
  4778. Part7.Transparency = 1
  4779. Part7.Anchored = true
  4780. Part7.CanCollide = false
  4781. Part7.FormFactor = Enum.FormFactor.Custom
  4782. Part7.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  4783. Part7.CFrame = CFrame.new(9.11491966, -6.07727814, 21.8804073, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4784. Part7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  4785. Part7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  4786. Part7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  4787. Part7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  4788. Part7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  4789. Part7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  4790. Part7.Color = Color3.new(0.388235, 0.372549, 0.384314)
  4791. Part7.Position = Vector3.new(9.11491966, -6.07727814, 21.8804073)
  4792. Part7.Color = Color3.new(0.388235, 0.372549, 0.384314)
  4793. BlockMesh8.Parent = Part7
  4794. BlockMesh8.Scale = Vector3.new(0.141079962, 0.357402384, 0.141079962)
  4795. BlockMesh8.Scale = Vector3.new(0.141079962, 0.357402384, 0.141079962)
  4796. --Gun Gui
  4797.  
  4798. -- Objects
  4799.  
  4800. local Gui = Instance.new("ScreenGui")
  4801. local Frame = Instance.new("Frame")
  4802. local AmmoDisplay = Instance.new("TextLabel")
  4803. local StoredAmmoDisplay = Instance.new("TextLabel")
  4804. local _000 = Instance.new("TextLabel")
  4805. local _000_2 = Instance.new("TextLabel")
  4806.  
  4807. -- Properties
  4808.  
  4809. Gui.Name = "Gui"
  4810. Gui.Parent = LocalScript9
  4811.  
  4812. Frame.Parent = Gui
  4813. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  4814. Frame.BackgroundTransparency = 1
  4815. Frame.BorderColor3 = Color3.new(0.466667, 0.466667, 0.466667)
  4816. Frame.BorderSizePixel = 0
  4817. Frame.Position = UDim2.new(0.125, -5, 1.14999998, -120)
  4818. Frame.Size = UDim2.new(-0.100000001, 0, -0.0399999991, 0)
  4819. Frame.SizeConstraint = Enum.SizeConstraint.RelativeXX
  4820.  
  4821. AmmoDisplay.Name = "AmmoDisplay"
  4822. AmmoDisplay.Parent = Frame
  4823. AmmoDisplay.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  4824. AmmoDisplay.BackgroundTransparency = 1
  4825. AmmoDisplay.Position = UDim2.new(-0.0599999987, 0, 0, 0)
  4826. AmmoDisplay.Size = UDim2.new(0.540000021, 0, 1.25, 0)
  4827. AmmoDisplay.ZIndex = 2
  4828. AmmoDisplay.Font = Enum.Font.SourceSansBold
  4829. AmmoDisplay.FontSize = Enum.FontSize.Size36
  4830. AmmoDisplay.Text = "30"
  4831. AmmoDisplay.TextColor3 = Color3.new(1, 1, 1)
  4832. AmmoDisplay.TextScaled = true
  4833. AmmoDisplay.TextSize = 36
  4834. AmmoDisplay.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  4835. AmmoDisplay.TextWrapped = true
  4836. AmmoDisplay.TextXAlignment = Enum.TextXAlignment.Right
  4837.  
  4838. StoredAmmoDisplay.Name = "StoredAmmoDisplay"
  4839. StoredAmmoDisplay.Parent = Frame
  4840. StoredAmmoDisplay.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  4841. StoredAmmoDisplay.BackgroundTransparency = 1
  4842. StoredAmmoDisplay.Position = UDim2.new(0.419999987, 0, 0.25, 0)
  4843. StoredAmmoDisplay.Size = UDim2.new(0.550000012, 0, 0.75, 0)
  4844. StoredAmmoDisplay.ZIndex = 2
  4845. StoredAmmoDisplay.Font = Enum.Font.SourceSans
  4846. StoredAmmoDisplay.FontSize = Enum.FontSize.Size14
  4847. StoredAmmoDisplay.Text = "360"
  4848. StoredAmmoDisplay.TextColor3 = Color3.new(1, 1, 1)
  4849. StoredAmmoDisplay.TextScaled = true
  4850. StoredAmmoDisplay.TextSize = 14
  4851. StoredAmmoDisplay.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  4852. StoredAmmoDisplay.TextWrapped = true
  4853. StoredAmmoDisplay.TextXAlignment = Enum.TextXAlignment.Right
  4854.  
  4855. _000.Name = "000"
  4856. _000.Parent = Frame
  4857. _000.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  4858. _000.BackgroundTransparency = 1
  4859. _000.Position = UDim2.new(0.419999987, 0, 0.25, 0)
  4860. _000.Size = UDim2.new(0.550000012, 0, 0.75, 0)
  4861. _000.ZIndex = 2
  4862. _000.Font = Enum.Font.SourceSans
  4863. _000.FontSize = Enum.FontSize.Size14
  4864. _000.Text = "000"
  4865. _000.TextColor3 = Color3.new(1, 1, 1)
  4866. _000.TextScaled = true
  4867. _000.TextSize = 14
  4868. _000.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  4869. _000.TextTransparency = 0.80000001192093
  4870. _000.TextWrapped = true
  4871. _000.TextXAlignment = Enum.TextXAlignment.Right
  4872.  
  4873. _000_2.Name = "000"
  4874. _000_2.Parent = Frame
  4875. _000_2.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  4876. _000_2.BackgroundTransparency = 1
  4877. _000_2.Position = UDim2.new(-0.25, 0, 0, 0)
  4878. _000_2.Size = UDim2.new(0.75, 0, 1.25, 0)
  4879. _000_2.ZIndex = 2
  4880. _000_2.Font = Enum.Font.SourceSansBold
  4881. _000_2.FontSize = Enum.FontSize.Size48
  4882. _000_2.Text = "000"
  4883. _000_2.TextColor3 = Color3.new(1, 1, 1)
  4884. _000_2.TextScaled = true
  4885. _000_2.TextSize = 48
  4886. _000_2.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  4887. _000_2.TextTransparency = 0.80000001192093
  4888. _000_2.TextWrapped = true
  4889. _000_2.TextXAlignment = Enum.TextXAlignment.Right
  4890. LocalScript9.Name = "Gun_Script"
  4891. LocalScript9.Parent = Tool0
  4892. table.insert(cors,sandbox(LocalScript9,function()
  4893. sp = script.Parent
  4894.  
  4895. Mesh = false -- If true will load BC 2.0 Arm meshes as well.
  4896. Shirt = true -- If true will load the user's shirt to the arms as well
  4897.  
  4898. function onEquipped(mouse)
  4899. local Player = game:GetService("Players").LocalPlayer
  4900. local Cam = game.Workspace.CurrentCamera
  4901.  
  4902. local Arms = Instance.new("Model")
  4903. Arms.Name = "Arms"
  4904. Arms.Parent = Cam
  4905.  
  4906. if Shirt == true then
  4907. local Humanoid = Instance.new("Humanoid")
  4908. Humanoid.MaxHealth = 0
  4909. Humanoid.Health = 0
  4910. Humanoid.Name = ""
  4911. Humanoid.Parent = Arms
  4912.  
  4913. local newShirt = Player.Character:FindFirstChild("Shirt"):clone()
  4914. newShirt.Parent = Arms
  4915. else end
  4916.  
  4917. local RightArm = Player.Character:FindFirstChild("Right Arm"):clone()
  4918. RightArm.Name = "Right Arm"
  4919. RightArm.Transparency = 0
  4920.  
  4921. local w = Instance.new("Weld")
  4922. w.Part0 = RightArm
  4923. w.Part1 = Player.Character:FindFirstChild("Right Arm")
  4924. w.C0 = CFrame.new()
  4925. w.C1 = CFrame.new()
  4926. w.Parent = RightArm
  4927. RightArm.Parent = Arms
  4928.  
  4929. local LeftArm = Player.Character:FindFirstChild("Left Arm"):clone()
  4930. LeftArm.Name = "Left Arm"
  4931. LeftArm.Transparency = 0
  4932.  
  4933. local w = Instance.new("Weld")
  4934. w.Part0 = LeftArm
  4935. w.Part1 = Player.Character:FindFirstChild("Left Arm")
  4936. w.C0 = CFrame.new()
  4937. w.C1 = CFrame.new()
  4938. w.Parent = LeftArm
  4939. LeftArm.Parent = Arms
  4940.  
  4941. if Mesh ~= false then
  4942. local LeftArmMesh = script:FindFirstChild("LeftArm")
  4943. LeftArmMesh.Parent = LeftArm
  4944. local RightArmMesh = script:FindFirstChild("RightArm")
  4945. RightArmMesh.Parent = RightArm
  4946. else end
  4947.  
  4948. end
  4949.  
  4950. function onUnequipped(mouse)
  4951. local Player = game:GetService("Players").LocalPlayer
  4952. local Cam = game.Workspace.CurrentCamera
  4953. for _, Model in pairs(Cam:GetChildren()) do
  4954. if Model.Name == "Arms" then
  4955. Model:remove()
  4956. else end
  4957. end
  4958. end
  4959.  
  4960. sp.Equipped:connect(onEquipped)
  4961. sp.Unequipped:connect(onUnequipped)
  4962.  
  4963. wait(0.5)
  4964. --Made by YouTubes--
  4965. --Edit settings below--
  4966. local Tool = script.Parent
  4967. local Settings = {
  4968. Range = 2500
  4969. ,Spread = 8
  4970. ,Damage = {15, 25}
  4971. ,HeadShotDamage = {60, 60}
  4972. ,Bullets = 1
  4973. ,FireRate = 0.068
  4974. ,Automatic = false
  4975. ,AntiTK = false
  4976. ,ImpactDuration = .5
  4977. --Reload
  4978. ,ReloadKey = "R"
  4979. ,ReloadTime = 1.63
  4980. ,Ammo = 17
  4981. ,IncludeChamberedBullet = true
  4982. --Gui
  4983. ,GuiPos = Vector2.new(script.Gui.Frame.Position.X.Scale, script.Gui.Frame.Position.Y.Scale)
  4984. --Arms
  4985. ,OneHanded = true
  4986. ,FakeArms = true
  4987. ,FakeArmTransparency = 0
  4988. -- (+Left to -Right, +Fward to -Bward, +Up to -Down) (+Up to -Down, +Left to -Right, +Counter to -Clock)
  4989. ,RightPos = CFrame.new(-0.75, -0.25, 0.45) * CFrame.Angles(math.rad(-90), 0, 0)
  4990. ,LeftPos = CFrame.new(1.2, 0.21, 0.55)* CFrame.Angles(math.rad(-90), math.rad(55), math.rad(5), 0)
  4991. ,AimPart = Tool.AimPart
  4992. ,AimPartOffset = CFrame.new()
  4993. ,AimGripOffset = Vector3.new(0, 0, 0)
  4994. ,LeftAimPos = CFrame.new(1, 0.9, 0.35) * CFrame.Angles(math.rad(-95), math.rad(20), math.rad(0), 00)
  4995. ,AimAnim = {
  4996. Enabled = false
  4997. ,Frames = 50
  4998. ,Time = 0.1
  4999. }
  5000. ,ChangeFOV = {true, 45}
  5001. ,SpreadReduction = 8
  5002. --Weld
  5003. ,Weld = true
  5004. --Mouse
  5005. ,Icons = {
  5006. Idle = "rbxassetid://70288585"
  5007. ,Fire1 = "rbxassetid://70288578"
  5008. ,Fire2 = "rbxassetid://70288572"
  5009. ,Fire3 = "rbxassetid://70288578"
  5010. ,Reload = "rbxassetid://70288599"
  5011. ,Aim = "rbxasset://textures/Blank.png"
  5012. }
  5013. ,FireMouseAnimTime = 0.15
  5014. --Recoil
  5015. ,Recoil = math.rad(0.79)
  5016. --Smoke
  5017. ,Smoke = true
  5018. ,SmokePart = Tool.SmokePart
  5019. ,Smokes = {{script.Smoke, 6, 0.01}, {script.Smoke1, 0.01}, {script.Smoke2, 0.01}}
  5020. --Sprint
  5021. ,Sprint = true
  5022. ,SprintSpeed = 25
  5023. ,SprintKey = "0"
  5024. ,SprintSpreadIncrease = 40
  5025. ,SprintArmOffset = CFrame.new(0.25, 0.125, 0.25) * CFrame.Angles(math.rad(-30), math.rad(35), 0)
  5026. ,DropHats = true
  5027. }
  5028.  
  5029. --Do not edit below this lign--
  5030.  
  5031. local Orig_Spread = Settings.Spread
  5032. local Orig_Grip = Tool.GripPos
  5033.  
  5034. local Player = game.Players.LocalPlayer
  5035. local Character = Player.Character
  5036.  
  5037. local Camera = workspace.CurrentCamera
  5038.  
  5039. local Ammo, StoredAmmo = script.Ammo, script.StoredAmmo
  5040.  
  5041. local Gui, CanUpdateGui = nil, true
  5042.  
  5043. local Sprinting, Equipped
  5044.  
  5045. function Update_Gui()
  5046. if Gui and CanUpdateGui then
  5047. Gui.Frame.AmmoDisplay.Text = Ammo.Value
  5048. Gui.Frame.StoredAmmoDisplay.Text = StoredAmmo.Value
  5049. end
  5050. end
  5051.  
  5052. local Welded
  5053. if Settings.Weld then
  5054. delay(0, function()
  5055. local weldC0s = {}
  5056. for i, v in pairs(Tool:GetChildren()) do
  5057. if v:IsA("BasePart") and v ~= Tool.Handle then
  5058. table.insert(weldC0s, {v, Tool.Handle.CFrame:toObjectSpace(v.CFrame)})
  5059. v.Anchored = false
  5060. end
  5061. end
  5062. Tool.Handle.Anchored = false
  5063. local welds = {}
  5064. Tool.Equipped:connect(function()
  5065. for i, v in ipairs(welds) do
  5066. v.Part1 = nil
  5067. v:Destroy()
  5068. end
  5069. for i, v in ipairs(weldC0s) do
  5070. if v[1] and v[2] then
  5071. local w = Instance.new("Weld", Tool.Handle)
  5072. w.Part0 = Tool.Handle
  5073. w.Part1 = v[1]
  5074. w.C0 = v[2]
  5075. table.insert(welds, w)
  5076. end
  5077. end
  5078. end)
  5079. wait()
  5080. Welded = true
  5081. end)
  5082. end
  5083.  
  5084. local Left_Weld, Right_Weld
  5085.  
  5086. Ammo.Changed:connect(Update_Gui)
  5087. StoredAmmo.Changed:connect(Update_Gui)
  5088.  
  5089. Settings.Range = math.min(Settings.Range, 999)
  5090.  
  5091. local Ignore_Model = workspace:FindFirstChild("Ray_Ignore") or Instance.new("Model", workspace)
  5092. Ignore_Model.Name = "Ray_Ignore"
  5093.  
  5094. local Ray_Ignore = {Character, Ignore_Model, Camera}
  5095.  
  5096. Character.Humanoid.Died:connect(function()
  5097. Tool.Parent = Player.Backpack
  5098. end)
  5099.  
  5100. function Fire(Mouse)
  5101. local Spread = CFrame.Angles(math.rad(math.random(-Settings.Spread, Settings.Spread)/10), math.rad(math.random(-Settings.Spread, Settings.Spread)/10), math.rad(math.random(-Settings.Spread, Settings.Spread)/10))
  5102. local Ray = Ray.new(Character.Head.Position, (CFrame.new(Character.Head.Position, Mouse.Hit.p) * Spread).lookVector.unit * Settings.Range)
  5103. local Hit, Pos = workspace:FindPartOnRayWithIgnoreList(Ray, Ray_Ignore)
  5104. if Hit and Hit.Parent:FindFirstChild("Humanoid") then
  5105. local Hit_Player = game.Players:GetPlayerFromCharacter(Hit.Parent)
  5106. if Settings.AntiTK and not Hit_Player.Neutral and Hit_Player.TeamColor == Player.TeamColor then
  5107. return
  5108. end
  5109. local Humanoid = Hit.Parent.Humanoid
  5110. local c = Instance.new("ObjectValue")
  5111. c.Name = "creator"
  5112. c.Value = Player
  5113. game.Debris:AddItem(c, 3)
  5114. c.Parent = Humanoid
  5115. if Hit.Name == "Head" then
  5116. Humanoid.Health = Humanoid.Health - math.random(Settings.HeadShotDamage[1], Settings.HeadShotDamage[2])
  5117. else
  5118. Humanoid.Health = Humanoid.Health - math.random(Settings.Damage[1], Settings.Damage[2])
  5119. end
  5120. elseif Hit then
  5121. local Hit_Part = Instance.new("Part", Ignore_Model)
  5122. Hit_Part.FormFactor = "Custom"
  5123. Hit_Part.TopSurface = 0
  5124. Hit_Part.BottomSurface = 0
  5125. Hit_Part.Anchored = true
  5126. Hit_Part.CanCollide = false
  5127. Hit_Part.Size = Vector3.new()
  5128. Hit_Part.CFrame = CFrame.new(Pos) * CFrame.Angles(math.random(0, 360), math.random(0, 360), math.random(0, 360))
  5129. Hit_Part.BrickColor = BrickColor.new("Black")
  5130. Hit_Part.Material = "Metal"
  5131. local Meta = Instance.new("Sound")
  5132. Meta.Name = "Crack"
  5133. Meta.SoundId = "rbxassetid://151284431"
  5134. Meta.Volume = 0.3
  5135. Meta.Pitch = 2
  5136. Meta.Parent = Hit_Part
  5137. Meta:play()
  5138. local Cur = Instance.new("SpecialMesh")
  5139. Cur.MeshType = "Sphere"
  5140. Cur.Parent = Hit_Part
  5141. Cur.Scale = Vector3.new(0.5,0.5,0.5)
  5142. Instance.new("Smoke", Hit_Part).Opacity = 15
  5143. local g = Instance.new("PointLight", Hit_Part)
  5144. g.Color = Color3.new(0, 0, 0)
  5145. g.Range = 0
  5146. g.Shadows = true
  5147. local PE = Instance.new("ParticleEmitter")
  5148. PE.Parent = Hit_Part
  5149. PE.Size = NumberSequence.new(0.75)
  5150. PE.LightEmission = 0
  5151. PE.Lifetime = NumberRange.new(5)
  5152. PE.ZOffset = 0.5
  5153. PE.Texture = "http://www.roblox.com/asset/?id=133619974"
  5154. PE.Rate = 50
  5155. PE.Speed = NumberRange.new(2.5)
  5156. PE.VelocitySpread = NumberSequence.new(-0.05)
  5157. PE.Transparency = NumberSequence.new(-1)
  5158. game.Debris:AddItem(Hit_Part, Settings.ImpactDuration)
  5159. game.Debris:AddItem(PE, 0.17)
  5160. --[[ if not Hit.Anchored then
  5161. local w = Instance.new("Weld", Hit_Part)
  5162. w.Part0 = Hit
  5163. w.Part1 = Hit_Part
  5164. w.C0 = Hit.CFrame:toObjectSpace(Hit_Part.CFrame)
  5165. Hit_Part.Anchored = false
  5166. end]]
  5167. if Hit.Transparency >= 0.1 then
  5168. Hit:BreakJoints()
  5169. Hit.Anchored = false
  5170. Hit.Size = Hit.Size /2
  5171. local sound = Instance.new("Sound", Hit)
  5172. sound.Volume = 10
  5173. sound.SoundId = "rbxassetid://138122923"
  5174. sound:Play()
  5175. for i=1, 4, 1 do
  5176. local clone = Hit:Clone()
  5177. clone.Parent = workspace
  5178. game.Debris:AddItem(clone, 3)
  5179. end
  5180. game.Debris:AddItem(Hit, 1)
  5181. end
  5182. if Hit.Parent:IsA("Hat") or Hit.Parent:IsA("Accessory") and Settings.DropHats then
  5183. Hit.Parent.Parent = workspace
  5184. game.Debris:AddItem(Hit, 3)
  5185. end
  5186. end
  5187. end
  5188.  
  5189.  
  5190. local Can_Shoot = true
  5191. local Reloading = false
  5192.  
  5193. local First_Person = false
  5194.  
  5195. local Mouse_Held
  5196.  
  5197. Tool.Equipped:connect(function(Mouse)
  5198. Equipped = true
  5199. if Settings.Weld and not Welded then
  5200. wait()
  5201. Tool.Parent = Player.Backpack
  5202. end
  5203. Character = Player.Character
  5204. if Gui then
  5205. return
  5206. end
  5207. Ray_Ignore = {Character, Ignore_Model, Camera}
  5208. Mouse.Icon = Settings.Icons.Idle
  5209. Gui = script.Gui:Clone()
  5210. Gui.Parent = Player.PlayerGui
  5211. Gui.Frame.Position = UDim2.new(Settings.GuiPos.X, Gui.Frame.Position.X.Offset, 1.1, Gui.Frame.Position.Y.Offset)
  5212. Gui.Frame:TweenPosition(UDim2.new(Settings.GuiPos.X, Gui.Frame.Position.X.Offset, Settings.GuiPos.Y, Gui.Frame.Position.Y.Offset), "Out", "Bounce", 1)
  5213. CanUpdateGui = true
  5214. Update_Gui()
  5215. Mouse.Button1Down:connect(function()
  5216. if Can_Shoot and Ammo.Value > 0 and Character.Humanoid.Health > 0 then
  5217. Mouse_Held = true
  5218. while true do
  5219. Can_Shoot = false
  5220. delay(0, function()
  5221. local t = math.min(Settings.FireMouseAnimTime/3, Settings.FireRate/3)
  5222. if not Aiming then
  5223. Mouse.Icon = Settings.Icons.Fire1
  5224. end
  5225. wait(t)
  5226. if not Aiming then
  5227. if Reloading then return end
  5228. Mouse.Icon = Settings.Icons.Fire2
  5229. end
  5230. wait(t)
  5231. if not Aiming then
  5232. if Reloading then return end
  5233. Mouse.Icon = Settings.Icons.Fire3
  5234. end
  5235. wait(t)
  5236. if not Aiming then
  5237. if Reloading then return end
  5238. Mouse.Icon = Settings.Icons.Idle
  5239. end
  5240. end)
  5241. for _ = 1, Settings.Bullets do
  5242. Fire(Mouse)
  5243. end
  5244. local bg = Instance.new("BillboardGui", Settings.SmokePart)
  5245. bg.Adornee = Settings.SmokePart
  5246. local flashsize = math.random(5, 8)/10
  5247. bg.Size = UDim2.new(flashsize, 0, flashsize, 0)
  5248. local flash = Instance.new("ImageLabel", bg)
  5249. flash.BackgroundTransparency = 1
  5250. flash.Size = UDim2.new(1, 0, 1, 0)
  5251. flash.Image = "rbxassetid://172841900"
  5252. flash.Rotation = math.random(0, 360)
  5253. game.Debris:AddItem(bg, 0.025)
  5254. delay(0, function()
  5255. local r = math.abs(Settings.Recoil)
  5256. local ran = math.random(-1, 1)
  5257. Camera.CoordinateFrame = CFrame.new(Camera.Focus.p) * (Camera.CoordinateFrame - Camera.CoordinateFrame.p) * CFrame.Angles(r, r*ran, 0) * CFrame.new(0, 0, (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude)
  5258. local c = -r/20
  5259. local cx = -(r*ran)/20
  5260. for i = 1, math.random(15, 25) do
  5261. if EquipId == curId then
  5262. Camera.CoordinateFrame = CFrame.new(Camera.Focus.p) * (Camera.CoordinateFrame - Camera.CoordinateFrame.p) * CFrame.Angles(c, cx, 0) * CFrame.new(0, 0, (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude)
  5263. wait()
  5264. else
  5265. break
  5266. end
  5267. end
  5268. end)
  5269. if Tool.Handle:FindFirstChild("Shoot") then
  5270. Tool.Handle.Shoot:Play()
  5271. end
  5272. Ammo.Value = Ammo.Value - 1
  5273. --Tool.Bolt.Transparency = 1
  5274. --Tool.Bolt1.Transparency = 0
  5275. wait(Settings.FireRate)
  5276. -- Tool.Bolt.Transparency = 0
  5277. --Tool.Bolt1.Transparency = 1
  5278. if not Settings.Automatic or Ammo.Value <= 0 or Character.Humanoid.Health <= 0 or not Mouse_Held then
  5279. break
  5280. end
  5281. end
  5282. Can_Shoot = true
  5283. elseif Can_Shoot and Character.Humanoid.Health > 0 and Tool.Handle:FindFirstChild("Click") then
  5284. Tool.Handle.Click:Play()
  5285. end
  5286. end)
  5287. Mouse.Button1Up:connect(function()
  5288. Mouse_Held = false
  5289. end)
  5290. Mouse.KeyDown:connect(function(Key)
  5291. if Key:upper() == Settings.ReloadKey:upper() and Can_Shoot and StoredAmmo.Value > 0 and not Aiming then
  5292. if Settings.IncludeChamberedBullet and Ammo.Value == Settings.Ammo + 1 or not Settings.IncludeChamberedBullet and Ammo.Value == Settings.Ammo then
  5293. return
  5294. end
  5295. Can_Shoot = false
  5296. Reloading = true
  5297. local TextLabel = Gui.Frame.AmmoDisplay
  5298. delay(0, function()
  5299. CanUpdateGui = false
  5300. TextLabel.Text = "000"
  5301. wait(Settings.ReloadTime/3)
  5302. if TextLabel then
  5303. TextLabel.Text = "000"
  5304. end
  5305. wait(Settings.ReloadTime/3)
  5306. if TextLabel then
  5307. TextLabel.Text = "000"
  5308. end
  5309. end)
  5310. Mouse.Icon = Settings.Icons.Reload
  5311. -- (+Left to -Right, +Fward to -Bward, +Up to -Down) (+Up to -Down, +Left to -Right, +Counter to -Clock)
  5312. Right_Weld.C1 = CFrame.new(-0.75, -0.2, 0.5) * CFrame.Angles(math.rad(-90), 0, 0.1)
  5313. Left_Weld.C1 = CFrame.new(1.2, 0.6, 0.45) * CFrame.Angles(math.rad(-90), math.rad(45), math.rad(0), 0)
  5314. wait(.02)
  5315. Right_Weld.C1 = CFrame.new(-0.75, -0.15, 0.55) * CFrame.Angles(math.rad(-90), 0, 0.15)
  5316. Left_Weld.C1 = CFrame.new(1.2, 0.5, 0.45) * CFrame.Angles(math.rad(-90), math.rad(50), math.rad(0), 0)
  5317. wait(.02)
  5318. Right_Weld.C1 = CFrame.new(-0.75, -0.1, 0.6) * CFrame.Angles(math.rad(-90), 0, 0.2)
  5319. Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.45) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(0), 0)
  5320. wait(0.02)
  5321.  
  5322. Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.40) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(0), 0)
  5323. Tool.Handle.MagOut:play()
  5324. Tool.Mag.Transparency = 1
  5325.  
  5326. wait(0.03)
  5327. Left_Weld.C1 = CFrame.new(1.2, 0.35, 0.35) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(5), 0)
  5328. wait(0.03)
  5329. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.30) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(10), 0)
  5330. wait(0.03)
  5331. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.25) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(15), 0)
  5332. wait(0.03)
  5333. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.20) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(20), 0)
  5334. wait(0.03)
  5335. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.15) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(25), 0)
  5336. wait(0.03)
  5337. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.10) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(30), 0)
  5338. wait(0.03)
  5339. Left_Weld.C1 = CFrame.new(1.2, 0.25, 0.05) * CFrame.Angles(math.rad(-90), math.rad(60), math.rad(35), 0)
  5340. wait(0.03)
  5341. Left_Weld.C1 = CFrame.new(1.2, 0.2, 0) * CFrame.Angles(math.rad(-90), math.rad(65), math.rad(40), 0)
  5342. wait(0.03)
  5343. Left_Weld.C1 = CFrame.new(1.2, 0.15, 0) * CFrame.Angles(math.rad(-90), math.rad(70), math.rad(45), 0)
  5344. wait(0.03)
  5345. Left_Weld.C1 = CFrame.new(1.2, 0.1, 0) * CFrame.Angles(math.rad(-90), math.rad(75), math.rad(50), 0)
  5346. wait(0.5)
  5347.  
  5348. Left_Weld.C1 = CFrame.new(1.2, 0.1, 0.0) * CFrame.Angles(math.rad(-90), math.rad(75), math.rad(40), 0)
  5349. Tool.Handle.MagIn:play()
  5350. Tool.Mag.Transparency = 0
  5351.  
  5352. wait(0.03)
  5353. Left_Weld.C1 = CFrame.new(1.2, 0.15, 0.05) * CFrame.Angles(math.rad(-90), math.rad(70), math.rad(35), 0)
  5354. wait(0.03)
  5355. Left_Weld.C1 = CFrame.new(1.2, 0.2, 0.10) * CFrame.Angles(math.rad(-90), math.rad(65), math.rad(30), 0)
  5356. wait(0.03)
  5357. Left_Weld.C1 = CFrame.new(1.2, 0.25, 0.15) * CFrame.Angles(math.rad(-90), math.rad(60), math.rad(25), 0)
  5358. wait(0.03)
  5359. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.20) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(20), 0)
  5360. wait(0.03)
  5361. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.25) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(15), 0)
  5362. wait(0.03)
  5363. Right_Weld.C1 = CFrame.new(-0.75, -0.1, 0.6) * CFrame.Angles(math.rad(-90), 0, 0.2)
  5364. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.30) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(10), 0)
  5365. wait(0.03)
  5366. Right_Weld.C1 = CFrame.new(-0.75, -0.15, 0.55) * CFrame.Angles(math.rad(-90), 0, 0.15)
  5367. Left_Weld.C1 = CFrame.new(1.2, 0.35, 0.35) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(05), 0)
  5368. wait(0.03)
  5369. Right_Weld.C1 = CFrame.new(-0.75, -0.2, 0.5) * CFrame.Angles(math.rad(-90), 0, 0.1)
  5370. Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.40) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(0), 0)
  5371. wait(0.03)
  5372.  
  5373. Right_Weld.C1 = CFrame.new(-0.75, -0.25, 0.45) * CFrame.Angles(math.rad(-90), 0, 0)
  5374. Left_Weld.C1 = CFrame.new(1.2, 0.21, 0.55)* CFrame.Angles(math.rad(-90), math.rad(55), math.rad(5), 0)
  5375.  
  5376. Mouse.Icon = Settings.Icons.Idle
  5377. CanUpdateGui = true
  5378. local m = Settings.Ammo
  5379. if Ammo.Value > 0 and Settings.IncludeChamberedBullet then
  5380. m = m + 1
  5381. end
  5382. if (StoredAmmo.Value - (m - Ammo.Value)) <= 0 then
  5383. Ammo.Value = Ammo.Value + StoredAmmo.Value
  5384. StoredAmmo.Value = 0
  5385. else
  5386. StoredAmmo.Value = StoredAmmo.Value - (m - Ammo.Value)
  5387. Ammo.Value = m
  5388. end
  5389. Can_Shoot = true
  5390. Reloading = false
  5391. elseif Key:upper() == Settings.SprintKey:upper() and Settings.Sprint and not Aiming then
  5392. Sprinting = true
  5393. Character.Humanoid.WalkSpeed = Settings.SprintSpeed
  5394. Settings.Spread = Settings.Spread + Settings.SprintSpreadIncrease
  5395. end
  5396. end)
  5397. Mouse.KeyUp:connect(function(Key)
  5398. if Key:upper() == Settings.SprintKey:upper() and Sprinting then
  5399. Sprinting = false
  5400. Character.Humanoid.WalkSpeed = 16
  5401. Settings.Spread = Settings.Spread - Settings.SprintSpreadIncrease
  5402. Right_Weld.C0 = CFrame.new(0, -1.5, 0)
  5403. end
  5404. end)
  5405. Mouse.Button2Down:connect(function()
  5406. if not Reloading and not Sprinting and not Aiming and (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 then
  5407. Aiming = true
  5408. _G.MouseSensitivity = 0.3
  5409. Mouse.Icon = Settings.Icons.Aim
  5410.  
  5411. if Settings.AimAnim.Enabled then
  5412. Right_Weld.C1 = CFrame.new()
  5413. Right_Weld.C0 = CFrame.new()
  5414. delay(0, function()
  5415. Tween_C0(Right_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Right_Weld.C0, Character.Head.CFrame:toObjectSpace(Settings.AimPart.CFrame))
  5416. end)
  5417. delay(0, function()
  5418. Tween_C1(Left_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Left_Weld.C1, Settings.LeftAimPos)
  5419. end)
  5420. delay(0, function()
  5421. if Settings.ChangeFOV[1] then
  5422. Camera.FieldOfView = 70
  5423. local Cam_Dif, T_F = 70 - Settings.ChangeFOV[2], Settings.AimAnim.Time * Settings.AimAnim.Frames
  5424. for i = 1, T_F do
  5425. local FOV = 70 - Cam_Dif/T_F * i
  5426. Camera.FieldOfView = FOV
  5427. wait(Settings.AimAnim.Time/Settings.AimAnim.Frames)
  5428. if not Aiming then
  5429. return
  5430. end
  5431. end
  5432. Camera.FieldOfView = Settings.ChangeFOV[2]
  5433. end
  5434. end)
  5435. else
  5436. Right_Weld.C1 = CFrame.new()
  5437. Right_Weld.C0 = CFrame.new()
  5438. Right_Weld.C1 = Character.Head.CFrame:toObjectSpace(Settings.AimPart.CFrame)
  5439. Left_Weld.C1 = Settings.LeftAimPos
  5440. if Settings.ChangeFOV[1] then
  5441. Camera.FieldOfView = Settings.ChangeFOV[2]
  5442. end
  5443. end
  5444. Tool.GripPos = Orig_Grip + Settings.AimGripOffset
  5445. Settings.Spread = Settings.Spread - Settings.SpreadReduction
  5446. end
  5447. end)
  5448. Mouse.Button2Up:connect(function()
  5449. if Aiming then
  5450. Mouse.Icon = Settings.Icons.Idle
  5451.  
  5452. Tool.GripPos = Orig_Grip
  5453. if Settings.AimAnim.Enabled then
  5454. delay(0, function()
  5455. Tween_C0(Right_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Right_Weld.C0, CFrame.new(0, -1.5, 0))
  5456. end)
  5457. delay(0, function()
  5458. Tween_C1(Left_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Left_Weld.C1, Settings.LeftPos)
  5459. end)
  5460. else
  5461. Right_Weld.C1 = Settings.RightPos
  5462. Right_Weld.C0 = CFrame.new(0, -1.5, 0)
  5463. Left_Weld.C1 = Settings.LeftPos
  5464. end
  5465. if Settings.ChangeFOV[1] then
  5466. Camera.FieldOfView = 70
  5467. end
  5468. Settings.Spread = Settings.Spread + Settings.SpreadReduction
  5469. Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  5470. Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  5471. wait(0.25)
  5472. Aiming = false
  5473. _G.MouseSensitivity = 1
  5474. end
  5475. end)
  5476. wait()
  5477. Camera.Changed:connect(function()
  5478. if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 and Equipped then
  5479. Mouse.TargetFilter = workspace
  5480. Character.Torso.Neck.C1 = CFrame.new()
  5481. Character.Torso.Neck.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.asin((Mouse.Hit.p - Mouse.Origin.p).unit.y), 0, 0)
  5482. end
  5483. end)
  5484. Mouse.Idle:connect(function()
  5485. if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 and Equipped then
  5486. Mouse.TargetFilter = workspace
  5487. Character.Torso.Neck.C1 = CFrame.new()
  5488. Character.Torso.Neck.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.asin((Mouse.Hit.p - Mouse.Origin.p).unit.y), 0, 0)
  5489. end
  5490. end)
  5491. while wait() and Equipped do
  5492. if Sprinting then
  5493. Can_Shoot = false
  5494. Right_Weld.C0 = CFrame.new(0, -1.5, 0) * Settings.SprintArmOffset
  5495. Left_Weld.C0 = CFrame.new(0, -1.5, 0) * Settings.SprintArmOffset
  5496. elseif not Aiming and not Sprinting then
  5497. Can_Shoot = true
  5498. Left_Weld.C0 = CFrame.new(0, -1.5, 0)
  5499. end
  5500. if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude > 1 and Equipped then
  5501. Mouse.TargetFilter = nil
  5502. Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  5503. Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  5504. end
  5505. end
  5506. end)
  5507.  
  5508. local Arms_Made
  5509. local Fake_Arm_Right, Fake_Arm_Left, Fake_Arm_Model
  5510.  
  5511. Tool.Equipped:connect(function(Mouse)
  5512. if Character and not Arms_Made then
  5513. Arms_Made = true
  5514. local Torso = Character.Torso
  5515. Torso["Right Shoulder"].Part1 = nil
  5516. Left_Weld = Instance.new("Weld", Torso)
  5517. Left_Weld.Name = "Left_Weld"
  5518. Left_Weld.Part0 = Character.Head
  5519. Left_Weld.C0 = CFrame.new(0, -1.5, 0)
  5520. if not Settings.OneHanded then
  5521. Torso["Left Shoulder"].Part1 = nil
  5522. Left_Weld.Part1 = Character["Left Arm"]
  5523. end
  5524. Right_Weld = Instance.new("Weld", Torso)
  5525. Right_Weld.Name = "Right_Weld"
  5526. Right_Weld.Part0 = Character.Head
  5527. Right_Weld.Part1 = Character["Right Arm"]
  5528. Right_Weld.C0 = CFrame.new(0, -1.5, 0)
  5529. Left_Weld.C1 = Settings.LeftPos
  5530. Right_Weld.C1 = Settings.RightPos
  5531. end
  5532. if Settings.FakeArms and not Fake_Arm_Right then
  5533. Fake_Arm_Right, Fake_Arm_Left = Character["Right Arm"]:Clone(), Character["Left Arm"]:Clone()
  5534. Fake_Arm_Right.FormFactor, Fake_Arm_Left.FormFactor = "Custom", "Custom"
  5535. Fake_Arm_Right.Size, Fake_Arm_Left.Size = Vector3.new(), Vector3.new()
  5536. local fakeArms = {Fake_Arm_Right, Fake_Arm_Left}
  5537. for i = 1, 2 do
  5538. local w = Instance.new("Weld", fakeArms[i])
  5539. w.Part0 = Character[fakeArms[i].Name]
  5540. w.Part1 = fakeArms[i]
  5541. fakeArms[i].Transparency = Settings.FakeArmTransparency
  5542. end
  5543. Fake_Arm_Model = Instance.new("Model", Camera)
  5544. Fake_Arm_Right.Parent = Fake_Arm_Model
  5545. if not Settings.OneHanded then
  5546. Fake_Arm_Left.Parent = Fake_Arm_Model
  5547. end
  5548. Fake_Arm_Model.Name = "FakeArms"
  5549. if Settings.CharacterMeshes then
  5550. for i, v in pairs(Character:GetChildren()) do
  5551. if v:IsA("CharacterMesh") and v.BodyPart == Enum.BodyPart.LeftArm or v:IsA("CharacterMesh") and v.BodyPart == Enum.BodyPart.RightArm then
  5552. v:Clone().Parent = Fake_Arm_Model
  5553. end
  5554. end
  5555. end
  5556. if Character:FindFirstChild("Shirt") then
  5557. Instance.new("Humanoid", Fake_Arm_Model)
  5558. Character.Shirt:Clone().Parent = Fake_Arm_Model
  5559. else
  5560. local Arm_Mesh = Instance.new("SpecialMesh", Fake_Arm_Right)
  5561. Arm_Mesh.MeshType, Arm_Mesh.Scale = "Brick", Vector3.new(1, 2, 1)
  5562. local Arm_Mesh2 = Instance.new("SpecialMesh", Fake_Arm_Left)
  5563. Arm_Mesh2.MeshType, Arm_Mesh2.Scale = "Brick", Vector3.new(1, 2, 1)
  5564. end
  5565. end
  5566. end)
  5567.  
  5568. Tool.Unequipped:connect(function()
  5569. Equipped = false
  5570. Tool.GripPos = Orig_Grip
  5571. Aiming = false
  5572. Settings.Spread = Orig_Spread
  5573. if Settings.ChangeFOV[1] then
  5574. Camera.FieldOfView = 70
  5575. end
  5576. if Gui then
  5577. Gui:Destroy()
  5578. Gui = nil
  5579. end
  5580. for i, v in pairs(Tool.Handle:GetChildren()) do
  5581. if v:IsA("Sound") then
  5582. v:Stop()
  5583. end
  5584. end
  5585. if Fake_Arm_Right and Fake_Arm_Left and Fake_Arm_Model then
  5586. Fake_Arm_Model:Destroy()
  5587. Fake_Arm_Right, Fake_Arm_Left, Fake_Arm_Model = nil, nil, nil
  5588. end
  5589. if Character and Left_Weld and Right_Weld then
  5590. Arms_Made = false
  5591. local Torso = Character.Torso
  5592. Torso["Right Shoulder"].Part1, Torso["Left Shoulder"].Part1 = Character["Right Arm"], Character["Left Arm"]
  5593. Left_Weld:Destroy()
  5594. Right_Weld:Destroy()
  5595. end
  5596. Sprinting = false
  5597. Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  5598. Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  5599. Character.Humanoid.WalkSpeed = 16
  5600. end)
  5601. end))
  5602. NumberValue10.Name = "StoredAmmo"
  5603. NumberValue10.Parent = LocalScript9
  5604. NumberValue10.Value = 999
  5605. NumberValue11.Name = "Ammo"
  5606. NumberValue11.Parent = LocalScript9
  5607. NumberValue11.Value = 17
  5608. Smoke12.Parent = LocalScript9
  5609. Smoke12.Size = 0.25
  5610. Smoke12.Color = Color3.new(0.807843, 0.807843, 0.807843)
  5611. Smoke12.Enabled = false
  5612. Smoke12.Opacity = 0.10000000149012
  5613. Smoke12.RiseVelocity = 10
  5614. Smoke12.Color = Color3.new(0.807843, 0.807843, 0.807843)
  5615. Smoke13.Name = "Smoke1"
  5616. Smoke13.Parent = LocalScript9
  5617. Smoke13.Size = 0.25
  5618. Smoke13.Color = Color3.new(0.807843, 0.807843, 0.807843)
  5619. Smoke13.Enabled = false
  5620. Smoke13.Opacity = 0.10000000149012
  5621. Smoke13.RiseVelocity = 10
  5622. Smoke13.Color = Color3.new(0.807843, 0.807843, 0.807843)
  5623. Smoke14.Name = "Smoke2"
  5624. Smoke14.Parent = LocalScript9
  5625. Smoke14.Size = 0.25
  5626. Smoke14.Color = Color3.new(0.807843, 0.807843, 0.807843)
  5627. Smoke14.Enabled = false
  5628. Smoke14.Opacity = 0.10000000149012
  5629. Smoke14.RiseVelocity = 10
  5630. Smoke14.Color = Color3.new(0.807843, 0.807843, 0.807843)
  5631. Part15.Name = "Handle"
  5632. Part15.Parent = Tool0
  5633. Part15.Rotation = Vector3.new(-180, 0, -180)
  5634. Part15.Anchored = true
  5635. Part15.Size = Vector3.new(0.381999999, 1.28199995, 2.3829999)
  5636. Part15.CFrame = CFrame.new(9.13755798, -6.86499977, 20.1830006, -1, 0, 8.74227908e-08, 0, 1, 0, -8.74227908e-08, 0, -1)
  5637. Part15.Position = Vector3.new(9.13755798, -6.86499977, 20.1830006)
  5638. Part15.Orientation = Vector3.new(0, 180, 0)
  5639. FileMesh16.Parent = Part15
  5640. FileMesh16.MeshId = "rbxassetid://430349699"
  5641. FileMesh16.Scale = Vector3.new(0.00300000003, 0.00300000003, 0.00300000003)
  5642. FileMesh16.TextureId = "rbxassetid://430348267"
  5643. FileMesh16.Scale = Vector3.new(0.00300000003, 0.00300000003, 0.00300000003)
  5644. Sound17.Name = "Bolt"
  5645. Sound17.Parent = Part15
  5646. Sound17.SoundId = "http://roblox.com/asset/?id=166238161"
  5647. Sound17.Volume = 0.20000000298023
  5648. Sound18.Name = "Click"
  5649. Sound18.Parent = Part15
  5650. Sound18.SoundId = "http://www.roblox.com/asset/?id=146501511"
  5651. Sound19.Name = "MagIn"
  5652. Sound19.Parent = Part15
  5653. Sound19.Pitch = 1.3999999761581
  5654. Sound19.SoundId = "http://www.roblox.com/asset/?id=131045429"
  5655. Sound20.Name = "MagOut"
  5656. Sound20.Parent = Part15
  5657. Sound20.Pitch = 1.3999999761581
  5658. Sound20.SoundId = "http://www.roblox.com/asset/?id=131045401"
  5659. Sound21.Name = "Shoot"
  5660. Sound21.Parent = Part15
  5661. Sound21.SoundId = "rbxassetid://131070686"
  5662. Sound21.Volume = 1
  5663. Part22.Name = "Mag"
  5664. Part22.Parent = Tool0
  5665. Part22.Rotation = Vector3.new(-180, 0, -180)
  5666. Part22.Anchored = true
  5667. Part22.Size = Vector3.new(0.316000015, 1.30400002, 0.842999995)
  5668. Part22.CFrame = CFrame.new(9.13755798, -6.98799992, 20.8470001, -1, 0, 8.74227766e-08, 0, 1, 0, -8.74227766e-08, 0, -1)
  5669. Part22.Position = Vector3.new(9.13755798, -6.98799992, 20.8470001)
  5670. Part22.Orientation = Vector3.new(0, 180, 0)
  5671. FileMesh23.Parent = Part22
  5672. FileMesh23.MeshId = "rbxassetid://430349765"
  5673. FileMesh23.Scale = Vector3.new(0.00300000003, 0.00300000003, 0.00300000003)
  5674. FileMesh23.TextureId = "rbxassetid://430348267"
  5675. FileMesh23.Scale = Vector3.new(0.00300000003, 0.00300000003, 0.00300000003)
  5676. Part24.Name = "Bolt"
  5677. Part24.Parent = Tool0
  5678. Part24.Rotation = Vector3.new(-180, 0, -180)
  5679. Part24.Anchored = true
  5680. Part24.Size = Vector3.new(0.282999992, 0.451999992, 2.35899997)
  5681. Part24.CFrame = CFrame.new(9.13555908, -6.39799976, 20.1800003, -1, 0, 9.23857442e-07, -0, 1, 0, -9.23857442e-07, 0, -1)
  5682. Part24.Position = Vector3.new(9.13555908, -6.39799976, 20.1800003)
  5683. Part24.Orientation = Vector3.new(0, 180, 0)
  5684. FileMesh25.Parent = Part24
  5685. FileMesh25.MeshId = "rbxassetid://430349880"
  5686. FileMesh25.Scale = Vector3.new(0.00300000003, 0.00300000003, 0.00300000003)
  5687. FileMesh25.TextureId = "rbxassetid://430348267"
  5688. FileMesh25.Scale = Vector3.new(0.00300000003, 0.00300000003, 0.00300000003)
  5689. for i,v in pairs(mas:GetChildren()) do
  5690. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  5691. pcall(function() v:MakeJoints() end)
  5692. end
  5693. mas:Destroy()
  5694. for i,v in pairs(cors) do
  5695. spawn(function()
  5696. pcall(v)
  5697. end)
  5698. end
  5699.  
  5700. end
  5701.  
  5702. function Spawn1911()
  5703.  
  5704. --Converted with ttyyuu12345's model to script plugin v4
  5705. function sandbox(var,func)
  5706. local env = getfenv(func)
  5707. local newenv = setmetatable({},{
  5708. __index = function(self,k)
  5709. if k=="script" then
  5710. return var
  5711. else
  5712. return env[k]
  5713. end
  5714. end,
  5715. })
  5716. setfenv(func,newenv)
  5717. return func
  5718. end
  5719. cors = {}
  5720. mas = Instance.new("Model",game:GetService("Lighting"))
  5721. Tool0 = Instance.new("Tool")
  5722. Part1 = Instance.new("Part")
  5723. BlockMesh2 = Instance.new("BlockMesh")
  5724. PointLight3 = Instance.new("PointLight")
  5725. BillboardGui4 = Instance.new("BillboardGui")
  5726. ImageLabel5 = Instance.new("ImageLabel")
  5727. Script6 = Instance.new("Script")
  5728. Part7 = Instance.new("Part")
  5729. BlockMesh8 = Instance.new("BlockMesh")
  5730. Part9 = Instance.new("Part")
  5731. Sound10 = Instance.new("Sound")
  5732. Sound11 = Instance.new("Sound")
  5733. Sound12 = Instance.new("Sound")
  5734. Sound13 = Instance.new("Sound")
  5735. Sound14 = Instance.new("Sound")
  5736. Part15 = Instance.new("Part")
  5737. SpecialMesh16 = Instance.new("SpecialMesh")
  5738. Part17 = Instance.new("Part")
  5739. SpecialMesh18 = Instance.new("SpecialMesh")
  5740. LocalScript19 = Instance.new("LocalScript")
  5741. NumberValue20 = Instance.new("NumberValue")
  5742. NumberValue21 = Instance.new("NumberValue")
  5743. Smoke22 = Instance.new("Smoke")
  5744. Smoke23 = Instance.new("Smoke")
  5745. Smoke24 = Instance.new("Smoke")
  5746. Tool0.Name = "M1911"
  5747. Tool0.Parent = mas
  5748. Tool0.TextureId = "rbxassetid://245265452"
  5749. Part1.Name = "SmokePart"
  5750. Part1.Parent = Tool0
  5751. Part1.BrickColor = BrickColor.new("Bright orange")
  5752. Part1.Transparency = 1
  5753. Part1.Rotation = Vector3.new(90, 0, -180)
  5754. Part1.Anchored = true
  5755. Part1.CanCollide = false
  5756. Part1.FormFactor = Enum.FormFactor.Custom
  5757. Part1.Size = Vector3.new(0.200000003, 0.478571415, 0.200000003)
  5758. Part1.CFrame = CFrame.new(1.44665051, 0.703978181, 16.5859318, -1, 7.15255624e-07, -5.53527059e-07, 5.53528764e-07, 2.44172543e-06, -1, -7.15254259e-07, -1, -2.44172611e-06)
  5759. Part1.BottomSurface = Enum.SurfaceType.Smooth
  5760. Part1.TopSurface = Enum.SurfaceType.Smooth
  5761. Part1.Color = Color3.new(0.854902, 0.521569, 0.254902)
  5762. Part1.Position = Vector3.new(1.44665051, 0.703978181, 16.5859318)
  5763. Part1.Orientation = Vector3.new(90, 180, 0)
  5764. Part1.Color = Color3.new(0.854902, 0.521569, 0.254902)
  5765. BlockMesh2.Parent = Part1
  5766. PointLight3.Name = "Flash"
  5767. PointLight3.Parent = Part1
  5768. PointLight3.Color = Color3.new(1, 0.666667, 0)
  5769. PointLight3.Enabled = false
  5770. PointLight3.Brightness = 3
  5771. PointLight3.Range = 10
  5772. PointLight3.Color = Color3.new(1, 0.666667, 0)
  5773. BillboardGui4.Name = "Light"
  5774. BillboardGui4.Parent = Part1
  5775. BillboardGui4.Size = UDim2.new(2.5, 0, 2.5, 0)
  5776. BillboardGui4.Active = true
  5777. ImageLabel5.Name = "Light"
  5778. ImageLabel5.Parent = BillboardGui4
  5779. ImageLabel5.Transparency = 1
  5780. ImageLabel5.Size = UDim2.new(2, 0, 2, 0)
  5781. ImageLabel5.Position = UDim2.new(-0.5, 0, -0.5, 0)
  5782. ImageLabel5.Active = true
  5783. ImageLabel5.Visible = false
  5784. ImageLabel5.BackgroundColor3 = Color3.new(0.756863, 0.752941, 0.764706)
  5785. ImageLabel5.BackgroundTransparency = 1
  5786. ImageLabel5.Image = "http://www.roblox.com/asset/?id=68683102"
  5787. Script6.Parent = BillboardGui4
  5788. table.insert(cors,sandbox(Script6,function()
  5789. script.Parent.Adornee = script.Parent.Parent
  5790. end))
  5791. Part7.Name = "AimPart"
  5792. Part7.Parent = Tool0
  5793. Part7.BrickColor = BrickColor.new("Dark stone grey")
  5794. Part7.Transparency = 1
  5795. Part7.Anchored = true
  5796. Part7.CanCollide = false
  5797. Part7.FormFactor = Enum.FormFactor.Custom
  5798. Part7.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  5799. Part7.CFrame = CFrame.new(1.44665051, 0.903979182, 18.1359978, 1, 5.53527684e-07, -7.30156273e-07, -5.53528821e-07, 1, -1.58907233e-06, 7.30155421e-07, 1.58907267e-06, 1)
  5800. Part7.BottomSurface = Enum.SurfaceType.Smooth
  5801. Part7.TopSurface = Enum.SurfaceType.Smooth
  5802. Part7.Color = Color3.new(0.388235, 0.372549, 0.384314)
  5803. Part7.Position = Vector3.new(1.44665051, 0.903979182, 18.1359978)
  5804. Part7.Color = Color3.new(0.388235, 0.372549, 0.384314)
  5805. BlockMesh8.Parent = Part7
  5806. Part9.Name = "Handle"
  5807. Part9.Parent = Tool0
  5808. Part9.BrickColor = BrickColor.new("Really black")
  5809. Part9.Transparency = 1
  5810. Part9.Rotation = Vector3.new(0.0199999996, 0, 0)
  5811. Part9.Anchored = true
  5812. Part9.CanCollide = false
  5813. Part9.FormFactor = Enum.FormFactor.Custom
  5814. Part9.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  5815. Part9.CFrame = CFrame.new(1.44665051, 0.00397720933, 17.4859734, 1, 8.55040923e-07, -7.46405703e-07, -8.55299845e-07, 0.99999994, -0.000346982124, 7.46108981e-07, 0.000346982095, 0.99999994)
  5816. Part9.BottomSurface = Enum.SurfaceType.Smooth
  5817. Part9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  5818. Part9.TopSurface = Enum.SurfaceType.Smooth
  5819. Part9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  5820. Part9.Position = Vector3.new(1.44665051, 0.00397720933, 17.4859734)
  5821. Part9.Orientation = Vector3.new(0.0199999996, 0, 0)
  5822. Part9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  5823. Sound10.Name = "Shoot"
  5824. Sound10.Parent = Part9
  5825. Sound10.SoundId = "rbxassetid://131257506"
  5826. Sound10.Volume = 10
  5827. Sound11.Name = "Bolt"
  5828. Sound11.Parent = Part9
  5829. Sound11.SoundId = "http://roblox.com/asset/?id=166238161"
  5830. Sound11.Volume = 0.20000000298023
  5831. Sound12.Name = "Click"
  5832. Sound12.Parent = Part9
  5833. Sound12.SoundId = "http://www.roblox.com/asset/?id=146501511"
  5834. Sound13.Name = "MagIn"
  5835. Sound13.Parent = Part9
  5836. Sound13.Pitch = 1.3999999761581
  5837. Sound13.SoundId = "http://www.roblox.com/asset/?id=131045429"
  5838. Sound14.Name = "MagOut"
  5839. Sound14.Parent = Part9
  5840. Sound14.Pitch = 1.3999999761581
  5841. Sound14.SoundId = "http://www.roblox.com/asset/?id=131045401"
  5842. Part15.Name = "Mag"
  5843. Part15.Parent = Tool0
  5844. Part15.BrickColor = BrickColor.new("Black")
  5845. Part15.Rotation = Vector3.new(169.849991, 0, 180)
  5846. Part15.Anchored = true
  5847. Part15.CanCollide = false
  5848. Part15.FormFactor = Enum.FormFactor.Custom
  5849. Part15.Size = Vector3.new(0.200000003, 0.599999964, 0.200000003)
  5850. Part15.CFrame = CFrame.new(1.44663525, 0.271926194, 17.795517, -1.00000882, -9.37858147e-08, 8.36750701e-07, -2.39778871e-07, 0.984353244, -0.176231131, -8.07122547e-07, -0.176231131, -0.984353244)
  5851. Part15.BottomSurface = Enum.SurfaceType.Smooth
  5852. Part15.TopSurface = Enum.SurfaceType.Smooth
  5853. Part15.Color = Color3.new(0.105882, 0.164706, 0.207843)
  5854. Part15.Position = Vector3.new(1.44663525, 0.271926194, 17.795517)
  5855. Part15.Orientation = Vector3.new(10.1499996, 180, 0)
  5856. Part15.Color = Color3.new(0.105882, 0.164706, 0.207843)
  5857. SpecialMesh16.Parent = Part15
  5858. SpecialMesh16.MeshId = "rbxassetid://27839686"
  5859. SpecialMesh16.Scale = Vector3.new(0.129999995, 0.300000012, 0.200000003)
  5860. SpecialMesh16.TextureId = "rbxassetid://271708747"
  5861. SpecialMesh16.MeshType = Enum.MeshType.FileMesh
  5862. SpecialMesh16.Scale = Vector3.new(0.129999995, 0.300000012, 0.200000003)
  5863. Part17.Name = "Gun"
  5864. Part17.Parent = Tool0
  5865. Part17.BrickColor = BrickColor.new("Pastel yellow")
  5866. Part17.Rotation = Vector3.new(-90, 0, 0)
  5867. Part17.Anchored = true
  5868. Part17.CanCollide = false
  5869. Part17.FormFactor = Enum.FormFactor.Custom
  5870. Part17.Size = Vector3.new(0.200000003, 1.20000005, 0.800000012)
  5871. Part17.CFrame = CFrame.new(1.44663525, 0.403745204, 17.385952, 1.00000441, -1.79147608e-09, -1.02596701e-07, 1.02596857e-07, 2.38419517e-07, 1.00000572, -3.15940909e-08, -1.00000346, 2.38287697e-07)
  5872. Part17.Color = Color3.new(1, 1, 0.8)
  5873. Part17.Position = Vector3.new(1.44663525, 0.403745204, 17.385952)
  5874. Part17.Orientation = Vector3.new(-90, 0, 0)
  5875. Part17.Color = Color3.new(1, 1, 0.8)
  5876. SpecialMesh18.Parent = Part17
  5877. SpecialMesh18.MeshId = "http://www.roblox.com/asset/?id=72012879"
  5878. SpecialMesh18.Scale = Vector3.new(1.25, 1.5, 1.5)
  5879. SpecialMesh18.TextureId = "rbxassetid://72012859"
  5880. SpecialMesh18.VertexColor = Vector3.new(2, 2, 2)
  5881. SpecialMesh18.MeshType = Enum.MeshType.FileMesh
  5882. SpecialMesh18.Scale = Vector3.new(1.25, 1.5, 1.5)
  5883. --Gun Gui
  5884.  
  5885. -- Objects
  5886.  
  5887. local Gui = Instance.new("ScreenGui")
  5888. local Frame = Instance.new("Frame")
  5889. local AmmoDisplay = Instance.new("TextLabel")
  5890. local StoredAmmoDisplay = Instance.new("TextLabel")
  5891. local _000 = Instance.new("TextLabel")
  5892. local _000_2 = Instance.new("TextLabel")
  5893.  
  5894. -- Properties
  5895.  
  5896. Gui.Name = "Gui"
  5897. Gui.Parent = LocalScript19
  5898.  
  5899. Frame.Parent = Gui
  5900. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  5901. Frame.BackgroundTransparency = 1
  5902. Frame.BorderColor3 = Color3.new(0.466667, 0.466667, 0.466667)
  5903. Frame.BorderSizePixel = 0
  5904. Frame.Position = UDim2.new(0.125, -5, 1.14999998, -120)
  5905. Frame.Size = UDim2.new(-0.100000001, 0, -0.0399999991, 0)
  5906. Frame.SizeConstraint = Enum.SizeConstraint.RelativeXX
  5907.  
  5908. AmmoDisplay.Name = "AmmoDisplay"
  5909. AmmoDisplay.Parent = Frame
  5910. AmmoDisplay.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  5911. AmmoDisplay.BackgroundTransparency = 1
  5912. AmmoDisplay.Position = UDim2.new(-0.0599999987, 0, 0, 0)
  5913. AmmoDisplay.Size = UDim2.new(0.540000021, 0, 1.25, 0)
  5914. AmmoDisplay.ZIndex = 2
  5915. AmmoDisplay.Font = Enum.Font.SourceSansBold
  5916. AmmoDisplay.FontSize = Enum.FontSize.Size36
  5917. AmmoDisplay.Text = "30"
  5918. AmmoDisplay.TextColor3 = Color3.new(1, 1, 1)
  5919. AmmoDisplay.TextScaled = true
  5920. AmmoDisplay.TextSize = 36
  5921. AmmoDisplay.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  5922. AmmoDisplay.TextWrapped = true
  5923. AmmoDisplay.TextXAlignment = Enum.TextXAlignment.Right
  5924.  
  5925. StoredAmmoDisplay.Name = "StoredAmmoDisplay"
  5926. StoredAmmoDisplay.Parent = Frame
  5927. StoredAmmoDisplay.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  5928. StoredAmmoDisplay.BackgroundTransparency = 1
  5929. StoredAmmoDisplay.Position = UDim2.new(0.419999987, 0, 0.25, 0)
  5930. StoredAmmoDisplay.Size = UDim2.new(0.550000012, 0, 0.75, 0)
  5931. StoredAmmoDisplay.ZIndex = 2
  5932. StoredAmmoDisplay.Font = Enum.Font.SourceSans
  5933. StoredAmmoDisplay.FontSize = Enum.FontSize.Size14
  5934. StoredAmmoDisplay.Text = "360"
  5935. StoredAmmoDisplay.TextColor3 = Color3.new(1, 1, 1)
  5936. StoredAmmoDisplay.TextScaled = true
  5937. StoredAmmoDisplay.TextSize = 14
  5938. StoredAmmoDisplay.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  5939. StoredAmmoDisplay.TextWrapped = true
  5940. StoredAmmoDisplay.TextXAlignment = Enum.TextXAlignment.Right
  5941.  
  5942. _000.Name = "000"
  5943. _000.Parent = Frame
  5944. _000.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  5945. _000.BackgroundTransparency = 1
  5946. _000.Position = UDim2.new(0.419999987, 0, 0.25, 0)
  5947. _000.Size = UDim2.new(0.550000012, 0, 0.75, 0)
  5948. _000.ZIndex = 2
  5949. _000.Font = Enum.Font.SourceSans
  5950. _000.FontSize = Enum.FontSize.Size14
  5951. _000.Text = "000"
  5952. _000.TextColor3 = Color3.new(1, 1, 1)
  5953. _000.TextScaled = true
  5954. _000.TextSize = 14
  5955. _000.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  5956. _000.TextTransparency = 0.80000001192093
  5957. _000.TextWrapped = true
  5958. _000.TextXAlignment = Enum.TextXAlignment.Right
  5959.  
  5960. _000_2.Name = "000"
  5961. _000_2.Parent = Frame
  5962. _000_2.BackgroundColor3 = Color3.new(0.501961, 0, 0)
  5963. _000_2.BackgroundTransparency = 1
  5964. _000_2.Position = UDim2.new(-0.25, 0, 0, 0)
  5965. _000_2.Size = UDim2.new(0.75, 0, 1.25, 0)
  5966. _000_2.ZIndex = 2
  5967. _000_2.Font = Enum.Font.SourceSansBold
  5968. _000_2.FontSize = Enum.FontSize.Size48
  5969. _000_2.Text = "000"
  5970. _000_2.TextColor3 = Color3.new(1, 1, 1)
  5971. _000_2.TextScaled = true
  5972. _000_2.TextSize = 48
  5973. _000_2.TextStrokeColor3 = Color3.new(0.647059, 0, 0.129412)
  5974. _000_2.TextTransparency = 0.80000001192093
  5975. _000_2.TextWrapped = true
  5976. _000_2.TextXAlignment = Enum.TextXAlignment.Right
  5977. LocalScript19.Name = "Gun_Script"
  5978. LocalScript19.Parent = Tool0
  5979. table.insert(cors,sandbox(LocalScript19,function()
  5980. sp = script.Parent
  5981.  
  5982. Mesh = false -- If true will load BC 2.0 Arm meshes as well.
  5983. Shirt = true -- If true will load the user's shirt to the arms as well
  5984.  
  5985. function onEquipped(mouse)
  5986. local Player = game:GetService("Players").LocalPlayer
  5987. local Cam = game.Workspace.CurrentCamera
  5988.  
  5989. local Arms = Instance.new("Model")
  5990. Arms.Name = "Arms"
  5991. Arms.Parent = Cam
  5992.  
  5993. if Shirt == true then
  5994. local Humanoid = Instance.new("Humanoid")
  5995. Humanoid.MaxHealth = 0
  5996. Humanoid.Health = 0
  5997. Humanoid.Name = ""
  5998. Humanoid.Parent = Arms
  5999.  
  6000. local newShirt = Player.Character:FindFirstChild("Shirt"):clone()
  6001. newShirt.Parent = Arms
  6002. else end
  6003.  
  6004. local RightArm = Player.Character:FindFirstChild("Right Arm"):clone()
  6005. RightArm.Name = "Right Arm"
  6006. RightArm.Transparency = 0
  6007.  
  6008. local w = Instance.new("Weld")
  6009. w.Part0 = RightArm
  6010. w.Part1 = Player.Character:FindFirstChild("Right Arm")
  6011. w.C0 = CFrame.new()
  6012. w.C1 = CFrame.new()
  6013. w.Parent = RightArm
  6014. RightArm.Parent = Arms
  6015.  
  6016. local LeftArm = Player.Character:FindFirstChild("Left Arm"):clone()
  6017. LeftArm.Name = "Left Arm"
  6018. LeftArm.Transparency = 0
  6019.  
  6020. local w = Instance.new("Weld")
  6021. w.Part0 = LeftArm
  6022. w.Part1 = Player.Character:FindFirstChild("Left Arm")
  6023. w.C0 = CFrame.new()
  6024. w.C1 = CFrame.new()
  6025. w.Parent = LeftArm
  6026. LeftArm.Parent = Arms
  6027.  
  6028. if Mesh ~= false then
  6029. local LeftArmMesh = script:FindFirstChild("LeftArm")
  6030. LeftArmMesh.Parent = LeftArm
  6031. local RightArmMesh = script:FindFirstChild("RightArm")
  6032. RightArmMesh.Parent = RightArm
  6033. else end
  6034.  
  6035. end
  6036.  
  6037. function onUnequipped(mouse)
  6038. local Player = game:GetService("Players").LocalPlayer
  6039. local Cam = game.Workspace.CurrentCamera
  6040. for _, Model in pairs(Cam:GetChildren()) do
  6041. if Model.Name == "Arms" then
  6042. Model:remove()
  6043. else end
  6044. end
  6045. end
  6046.  
  6047. sp.Equipped:connect(onEquipped)
  6048. sp.Unequipped:connect(onUnequipped)
  6049.  
  6050. wait(0.5)
  6051. --Made by YouTubes--
  6052. --Edit settings below--
  6053. local Tool = script.Parent
  6054. local Settings = {
  6055. Range = 2500
  6056. ,Spread = 8
  6057. ,Damage = {30, 35}
  6058. ,HeadShotDamage = {60, 70}
  6059. ,Bullets = 1
  6060. ,FireRate = 0.068
  6061. ,Automatic = false
  6062. ,AntiTK = false
  6063. ,ImpactDuration = .5
  6064. --Reload
  6065. ,ReloadKey = "R"
  6066. ,ReloadTime = 1.63
  6067. ,Ammo = 7
  6068. ,IncludeChamberedBullet = true
  6069. --Gui
  6070. ,GuiPos = Vector2.new(script.Gui.Frame.Position.X.Scale, script.Gui.Frame.Position.Y.Scale)
  6071. --Arms
  6072. ,OneHanded = true
  6073. ,FakeArms = true
  6074. ,FakeArmTransparency = 0
  6075. -- (+Left to -Right, +Fward to -Bward, +Up to -Down) (+Up to -Down, +Left to -Right, +Counter to -Clock)
  6076. ,RightPos = CFrame.new(-0.75, -0.25, 0.45) * CFrame.Angles(math.rad(-90), 0, 0)
  6077. ,LeftPos = CFrame.new(1.2, 0.21, 0.55)* CFrame.Angles(math.rad(-90), math.rad(55), math.rad(5), 0)
  6078. ,AimPart = Tool.AimPart
  6079. ,AimPartOffset = CFrame.new()
  6080. ,AimGripOffset = Vector3.new(0, 0, 0)
  6081. ,LeftAimPos = CFrame.new(1, 0.9, 0.35) * CFrame.Angles(math.rad(-95), math.rad(20), math.rad(0), 00)
  6082. ,AimAnim = {
  6083. Enabled = false
  6084. ,Frames = 50
  6085. ,Time = 0.1
  6086. }
  6087. ,ChangeFOV = {true, 45}
  6088. ,SpreadReduction = 8
  6089. --Weld
  6090. ,Weld = true
  6091. --Mouse
  6092. ,Icons = {
  6093. Idle = "rbxassetid://70288585"
  6094. ,Fire1 = "rbxassetid://70288578"
  6095. ,Fire2 = "rbxassetid://70288572"
  6096. ,Fire3 = "rbxassetid://70288578"
  6097. ,Reload = "rbxassetid://70288599"
  6098. ,Aim = "rbxasset://textures/Blank.png"
  6099. }
  6100. ,FireMouseAnimTime = 0.15
  6101. --Recoil
  6102. ,Recoil = math.rad(0.79)
  6103. --Smoke
  6104. ,Smoke = true
  6105. ,SmokePart = Tool.SmokePart
  6106. ,Smokes = {{script.Smoke, 6, 0.01}, {script.Smoke1, 0.01}, {script.Smoke2, 0.01}}
  6107. --Sprint
  6108. ,Sprint = true
  6109. ,SprintSpeed = 25
  6110. ,SprintKey = "0"
  6111. ,SprintSpreadIncrease = 40
  6112. ,SprintArmOffset = CFrame.new(0.25, 0.125, 0.25) * CFrame.Angles(math.rad(-30), math.rad(35), 0)
  6113. ,DropHats = true
  6114. }
  6115.  
  6116. --Do not edit below this lign--
  6117.  
  6118. local Orig_Spread = Settings.Spread
  6119. local Orig_Grip = Tool.GripPos
  6120.  
  6121. local Player = game.Players.LocalPlayer
  6122. local Character = Player.Character
  6123.  
  6124. local Camera = workspace.CurrentCamera
  6125.  
  6126. local Ammo, StoredAmmo = script.Ammo, script.StoredAmmo
  6127.  
  6128. local Gui, CanUpdateGui = nil, true
  6129.  
  6130. local Sprinting, Equipped
  6131.  
  6132. function Update_Gui()
  6133. if Gui and CanUpdateGui then
  6134. Gui.Frame.AmmoDisplay.Text = Ammo.Value
  6135. Gui.Frame.StoredAmmoDisplay.Text = StoredAmmo.Value
  6136. end
  6137. end
  6138.  
  6139. local Welded
  6140. if Settings.Weld then
  6141. delay(0, function()
  6142. local weldC0s = {}
  6143. for i, v in pairs(Tool:GetChildren()) do
  6144. if v:IsA("BasePart") and v ~= Tool.Handle then
  6145. table.insert(weldC0s, {v, Tool.Handle.CFrame:toObjectSpace(v.CFrame)})
  6146. v.Anchored = false
  6147. end
  6148. end
  6149. Tool.Handle.Anchored = false
  6150. local welds = {}
  6151. Tool.Equipped:connect(function()
  6152. for i, v in ipairs(welds) do
  6153. v.Part1 = nil
  6154. v:Destroy()
  6155. end
  6156. for i, v in ipairs(weldC0s) do
  6157. if v[1] and v[2] then
  6158. local w = Instance.new("Weld", Tool.Handle)
  6159. w.Part0 = Tool.Handle
  6160. w.Part1 = v[1]
  6161. w.C0 = v[2]
  6162. table.insert(welds, w)
  6163. end
  6164. end
  6165. end)
  6166. wait()
  6167. Welded = true
  6168. end)
  6169. end
  6170.  
  6171. local Left_Weld, Right_Weld
  6172.  
  6173. Ammo.Changed:connect(Update_Gui)
  6174. StoredAmmo.Changed:connect(Update_Gui)
  6175.  
  6176. Settings.Range = math.min(Settings.Range, 999)
  6177.  
  6178. local Ignore_Model = workspace:FindFirstChild("Ray_Ignore") or Instance.new("Model", workspace)
  6179. Ignore_Model.Name = "Ray_Ignore"
  6180.  
  6181. local Ray_Ignore = {Character, Ignore_Model, Camera}
  6182.  
  6183. Character.Humanoid.Died:connect(function()
  6184. Tool.Parent = Player.Backpack
  6185. end)
  6186.  
  6187. function Fire(Mouse)
  6188. local Spread = CFrame.Angles(math.rad(math.random(-Settings.Spread, Settings.Spread)/10), math.rad(math.random(-Settings.Spread, Settings.Spread)/10), math.rad(math.random(-Settings.Spread, Settings.Spread)/10))
  6189. local Ray = Ray.new(Character.Head.Position, (CFrame.new(Character.Head.Position, Mouse.Hit.p) * Spread).lookVector.unit * Settings.Range)
  6190. local Hit, Pos = workspace:FindPartOnRayWithIgnoreList(Ray, Ray_Ignore)
  6191. if Hit and Hit.Parent:FindFirstChild("Humanoid") then
  6192. local Hit_Player = game.Players:GetPlayerFromCharacter(Hit.Parent)
  6193. if Settings.AntiTK and not Hit_Player.Neutral and Hit_Player.TeamColor == Player.TeamColor then
  6194. return
  6195. end
  6196. local Humanoid = Hit.Parent.Humanoid
  6197. local c = Instance.new("ObjectValue")
  6198. c.Name = "creator"
  6199. c.Value = Player
  6200. game.Debris:AddItem(c, 3)
  6201. c.Parent = Humanoid
  6202. if Hit.Name == "Head" then
  6203. Humanoid.Health = Humanoid.Health - math.random(Settings.HeadShotDamage[1], Settings.HeadShotDamage[2])
  6204. else
  6205. Humanoid.Health = Humanoid.Health - math.random(Settings.Damage[1], Settings.Damage[2])
  6206. end
  6207. elseif Hit then
  6208. local Hit_Part = Instance.new("Part", Ignore_Model)
  6209. Hit_Part.FormFactor = "Custom"
  6210. Hit_Part.TopSurface = 0
  6211. Hit_Part.BottomSurface = 0
  6212. Hit_Part.Anchored = true
  6213. Hit_Part.CanCollide = false
  6214. Hit_Part.Size = Vector3.new()
  6215. Hit_Part.CFrame = CFrame.new(Pos) * CFrame.Angles(math.random(0, 360), math.random(0, 360), math.random(0, 360))
  6216. Hit_Part.BrickColor = BrickColor.new("Black")
  6217. Hit_Part.Material = "Metal"
  6218. local Meta = Instance.new("Sound")
  6219. Meta.Name = "Crack"
  6220. Meta.SoundId = "rbxassetid://151284431"
  6221. Meta.Volume = 0.3
  6222. Meta.Pitch = 2
  6223. Meta.Parent = Hit_Part
  6224. Meta:play()
  6225. local Cur = Instance.new("SpecialMesh")
  6226. Cur.MeshType = "Sphere"
  6227. Cur.Parent = Hit_Part
  6228. Cur.Scale = Vector3.new(0.5,0.5,0.5)
  6229. Instance.new("Smoke", Hit_Part).Opacity = 15
  6230. local g = Instance.new("PointLight", Hit_Part)
  6231. g.Color = Color3.new(0, 0, 0)
  6232. g.Range = 0
  6233. g.Shadows = true
  6234. local PE = Instance.new("ParticleEmitter")
  6235. PE.Parent = Hit_Part
  6236. PE.Size = NumberSequence.new(0.75)
  6237. PE.LightEmission = 0
  6238. PE.Lifetime = NumberRange.new(5)
  6239. PE.ZOffset = 0.5
  6240. PE.Texture = "http://www.roblox.com/asset/?id=133619974"
  6241. PE.Rate = 50
  6242. PE.Speed = NumberRange.new(2.5)
  6243. PE.VelocitySpread = NumberSequence.new(-0.05)
  6244. PE.Transparency = NumberSequence.new(-1)
  6245. game.Debris:AddItem(Hit_Part, Settings.ImpactDuration)
  6246. game.Debris:AddItem(PE, 0.17)
  6247. --[[ if not Hit.Anchored then
  6248. local w = Instance.new("Weld", Hit_Part)
  6249. w.Part0 = Hit
  6250. w.Part1 = Hit_Part
  6251. w.C0 = Hit.CFrame:toObjectSpace(Hit_Part.CFrame)
  6252. Hit_Part.Anchored = false
  6253. end]]
  6254. if Hit.Transparency >= 0.1 then
  6255. Hit:BreakJoints()
  6256. Hit.Anchored = false
  6257. Hit.Size = Hit.Size /2
  6258. local sound = Instance.new("Sound", Hit)
  6259. sound.Volume = 10
  6260. sound.SoundId = "rbxassetid://138122923"
  6261. sound:Play()
  6262. for i=1, 4, 1 do
  6263. local clone = Hit:Clone()
  6264. clone.Parent = workspace
  6265. game.Debris:AddItem(clone, 3)
  6266. end
  6267. game.Debris:AddItem(Hit, 1)
  6268. end
  6269. if Hit.Parent:IsA("Hat") or Hit.Parent:IsA("Accessory") and Settings.DropHats then
  6270. Hit.Parent.Parent = workspace
  6271. game.Debris:AddItem(Hit, 3)
  6272. end
  6273. end
  6274. end
  6275.  
  6276.  
  6277. local Can_Shoot = true
  6278. local Reloading = false
  6279.  
  6280. local First_Person = false
  6281.  
  6282. local Mouse_Held
  6283.  
  6284. Tool.Equipped:connect(function(Mouse)
  6285. Equipped = true
  6286. if Settings.Weld and not Welded then
  6287. wait()
  6288. Tool.Parent = Player.Backpack
  6289. end
  6290. Character = Player.Character
  6291. if Gui then
  6292. return
  6293. end
  6294. Ray_Ignore = {Character, Ignore_Model, Camera}
  6295. Mouse.Icon = Settings.Icons.Idle
  6296. Gui = script.Gui:Clone()
  6297. Gui.Parent = Player.PlayerGui
  6298. Gui.Frame.Position = UDim2.new(Settings.GuiPos.X, Gui.Frame.Position.X.Offset, 1.1, Gui.Frame.Position.Y.Offset)
  6299. Gui.Frame:TweenPosition(UDim2.new(Settings.GuiPos.X, Gui.Frame.Position.X.Offset, Settings.GuiPos.Y, Gui.Frame.Position.Y.Offset), "Out", "Bounce", 1)
  6300. CanUpdateGui = true
  6301. Update_Gui()
  6302. Mouse.Button1Down:connect(function()
  6303. if Can_Shoot and Ammo.Value > 0 and Character.Humanoid.Health > 0 then
  6304. Mouse_Held = true
  6305. while true do
  6306. Can_Shoot = false
  6307. delay(0, function()
  6308. local t = math.min(Settings.FireMouseAnimTime/3, Settings.FireRate/3)
  6309. if not Aiming then
  6310. Mouse.Icon = Settings.Icons.Fire1
  6311. end
  6312. wait(t)
  6313. if not Aiming then
  6314. if Reloading then return end
  6315. Mouse.Icon = Settings.Icons.Fire2
  6316. end
  6317. wait(t)
  6318. if not Aiming then
  6319. if Reloading then return end
  6320. Mouse.Icon = Settings.Icons.Fire3
  6321. end
  6322. wait(t)
  6323. if not Aiming then
  6324. if Reloading then return end
  6325. Mouse.Icon = Settings.Icons.Idle
  6326. end
  6327. end)
  6328. for _ = 1, Settings.Bullets do
  6329. Fire(Mouse)
  6330. end
  6331. local bg = Instance.new("BillboardGui", Settings.SmokePart)
  6332. bg.Adornee = Settings.SmokePart
  6333. local flashsize = math.random(5, 8)/10
  6334. bg.Size = UDim2.new(flashsize, 0, flashsize, 0)
  6335. local flash = Instance.new("ImageLabel", bg)
  6336. flash.BackgroundTransparency = 1
  6337. flash.Size = UDim2.new(1, 0, 1, 0)
  6338. flash.Image = "rbxassetid://172841900"
  6339. flash.Rotation = math.random(0, 360)
  6340. game.Debris:AddItem(bg, 0.025)
  6341. delay(0, function()
  6342. local r = math.abs(Settings.Recoil)
  6343. local ran = math.random(-1, 1)
  6344. Camera.CoordinateFrame = CFrame.new(Camera.Focus.p) * (Camera.CoordinateFrame - Camera.CoordinateFrame.p) * CFrame.Angles(r, r*ran, 0) * CFrame.new(0, 0, (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude)
  6345. local c = -r/20
  6346. local cx = -(r*ran)/20
  6347. for i = 1, math.random(15, 25) do
  6348. if EquipId == curId then
  6349. Camera.CoordinateFrame = CFrame.new(Camera.Focus.p) * (Camera.CoordinateFrame - Camera.CoordinateFrame.p) * CFrame.Angles(c, cx, 0) * CFrame.new(0, 0, (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude)
  6350. wait()
  6351. else
  6352. break
  6353. end
  6354. end
  6355. end)
  6356. if Tool.Handle:FindFirstChild("Shoot") then
  6357. Tool.Handle.Shoot:Play()
  6358. end
  6359. Ammo.Value = Ammo.Value - 1
  6360. --Tool.Bolt.Transparency = 1
  6361. --Tool.Bolt1.Transparency = 0
  6362. wait(Settings.FireRate)
  6363. -- Tool.Bolt.Transparency = 0
  6364. --Tool.Bolt1.Transparency = 1
  6365. if not Settings.Automatic or Ammo.Value <= 0 or Character.Humanoid.Health <= 0 or not Mouse_Held then
  6366. break
  6367. end
  6368. end
  6369. Can_Shoot = true
  6370. elseif Can_Shoot and Character.Humanoid.Health > 0 and Tool.Handle:FindFirstChild("Click") then
  6371. Tool.Handle.Click:Play()
  6372. end
  6373. end)
  6374. Mouse.Button1Up:connect(function()
  6375. Mouse_Held = false
  6376. end)
  6377. Mouse.KeyDown:connect(function(Key)
  6378. if Key:upper() == Settings.ReloadKey:upper() and Can_Shoot and StoredAmmo.Value > 0 and not Aiming then
  6379. if Settings.IncludeChamberedBullet and Ammo.Value == Settings.Ammo + 1 or not Settings.IncludeChamberedBullet and Ammo.Value == Settings.Ammo then
  6380. return
  6381. end
  6382. Can_Shoot = false
  6383. Reloading = true
  6384. local TextLabel = Gui.Frame.AmmoDisplay
  6385. delay(0, function()
  6386. CanUpdateGui = false
  6387. TextLabel.Text = "000"
  6388. wait(Settings.ReloadTime/3)
  6389. if TextLabel then
  6390. TextLabel.Text = "000"
  6391. end
  6392. wait(Settings.ReloadTime/3)
  6393. if TextLabel then
  6394. TextLabel.Text = "000"
  6395. end
  6396. end)
  6397. Mouse.Icon = Settings.Icons.Reload
  6398. -- (+Left to -Right, +Fward to -Bward, +Up to -Down) (+Up to -Down, +Left to -Right, +Counter to -Clock)
  6399. Right_Weld.C1 = CFrame.new(-0.75, -0.2, 0.5) * CFrame.Angles(math.rad(-90), 0, 0.1)
  6400. Left_Weld.C1 = CFrame.new(1.2, 0.6, 0.45) * CFrame.Angles(math.rad(-90), math.rad(45), math.rad(0), 0)
  6401. wait(.02)
  6402. Right_Weld.C1 = CFrame.new(-0.75, -0.15, 0.55) * CFrame.Angles(math.rad(-90), 0, 0.15)
  6403. Left_Weld.C1 = CFrame.new(1.2, 0.5, 0.45) * CFrame.Angles(math.rad(-90), math.rad(50), math.rad(0), 0)
  6404. wait(.02)
  6405. Right_Weld.C1 = CFrame.new(-0.75, -0.1, 0.6) * CFrame.Angles(math.rad(-90), 0, 0.2)
  6406. Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.45) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(0), 0)
  6407. wait(0.02)
  6408.  
  6409. Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.40) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(0), 0)
  6410. Tool.Handle.MagOut:play()
  6411. Tool.Mag.Transparency = 1
  6412.  
  6413. wait(0.03)
  6414. Left_Weld.C1 = CFrame.new(1.2, 0.35, 0.35) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(5), 0)
  6415. wait(0.03)
  6416. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.30) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(10), 0)
  6417. wait(0.03)
  6418. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.25) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(15), 0)
  6419. wait(0.03)
  6420. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.20) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(20), 0)
  6421. wait(0.03)
  6422. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.15) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(25), 0)
  6423. wait(0.03)
  6424. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.10) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(30), 0)
  6425. wait(0.03)
  6426. Left_Weld.C1 = CFrame.new(1.2, 0.25, 0.05) * CFrame.Angles(math.rad(-90), math.rad(60), math.rad(35), 0)
  6427. wait(0.03)
  6428. Left_Weld.C1 = CFrame.new(1.2, 0.2, 0) * CFrame.Angles(math.rad(-90), math.rad(65), math.rad(40), 0)
  6429. wait(0.03)
  6430. Left_Weld.C1 = CFrame.new(1.2, 0.15, 0) * CFrame.Angles(math.rad(-90), math.rad(70), math.rad(45), 0)
  6431. wait(0.03)
  6432. Left_Weld.C1 = CFrame.new(1.2, 0.1, 0) * CFrame.Angles(math.rad(-90), math.rad(75), math.rad(50), 0)
  6433. wait(0.5)
  6434.  
  6435. Left_Weld.C1 = CFrame.new(1.2, 0.1, 0.0) * CFrame.Angles(math.rad(-90), math.rad(75), math.rad(40), 0)
  6436. Tool.Handle.MagIn:play()
  6437. Tool.Mag.Transparency = 0
  6438.  
  6439. wait(0.03)
  6440. Left_Weld.C1 = CFrame.new(1.2, 0.15, 0.05) * CFrame.Angles(math.rad(-90), math.rad(70), math.rad(35), 0)
  6441. wait(0.03)
  6442. Left_Weld.C1 = CFrame.new(1.2, 0.2, 0.10) * CFrame.Angles(math.rad(-90), math.rad(65), math.rad(30), 0)
  6443. wait(0.03)
  6444. Left_Weld.C1 = CFrame.new(1.2, 0.25, 0.15) * CFrame.Angles(math.rad(-90), math.rad(60), math.rad(25), 0)
  6445. wait(0.03)
  6446. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.20) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(20), 0)
  6447. wait(0.03)
  6448. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.25) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(15), 0)
  6449. wait(0.03)
  6450. Right_Weld.C1 = CFrame.new(-0.75, -0.1, 0.6) * CFrame.Angles(math.rad(-90), 0, 0.2)
  6451. Left_Weld.C1 = CFrame.new(1.2, 0.3, 0.30) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(10), 0)
  6452. wait(0.03)
  6453. Right_Weld.C1 = CFrame.new(-0.75, -0.15, 0.55) * CFrame.Angles(math.rad(-90), 0, 0.15)
  6454. Left_Weld.C1 = CFrame.new(1.2, 0.35, 0.35) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(05), 0)
  6455. wait(0.03)
  6456. Right_Weld.C1 = CFrame.new(-0.75, -0.2, 0.5) * CFrame.Angles(math.rad(-90), 0, 0.1)
  6457. Left_Weld.C1 = CFrame.new(1.2, 0.4, 0.40) * CFrame.Angles(math.rad(-90), math.rad(55), math.rad(0), 0)
  6458. wait(0.03)
  6459.  
  6460. Right_Weld.C1 = CFrame.new(-0.75, -0.25, 0.45) * CFrame.Angles(math.rad(-90), 0, 0)
  6461. Left_Weld.C1 = CFrame.new(1.2, 0.21, 0.55)* CFrame.Angles(math.rad(-90), math.rad(55), math.rad(5), 0)
  6462.  
  6463. Mouse.Icon = Settings.Icons.Idle
  6464. CanUpdateGui = true
  6465. local m = Settings.Ammo
  6466. if Ammo.Value > 0 and Settings.IncludeChamberedBullet then
  6467. m = m + 1
  6468. end
  6469. if (StoredAmmo.Value - (m - Ammo.Value)) <= 0 then
  6470. Ammo.Value = Ammo.Value + StoredAmmo.Value
  6471. StoredAmmo.Value = 0
  6472. else
  6473. StoredAmmo.Value = StoredAmmo.Value - (m - Ammo.Value)
  6474. Ammo.Value = m
  6475. end
  6476. Can_Shoot = true
  6477. Reloading = false
  6478. elseif Key:upper() == Settings.SprintKey:upper() and Settings.Sprint and not Aiming then
  6479. Sprinting = true
  6480. Character.Humanoid.WalkSpeed = Settings.SprintSpeed
  6481. Settings.Spread = Settings.Spread + Settings.SprintSpreadIncrease
  6482. end
  6483. end)
  6484. Mouse.KeyUp:connect(function(Key)
  6485. if Key:upper() == Settings.SprintKey:upper() and Sprinting then
  6486. Sprinting = false
  6487. Character.Humanoid.WalkSpeed = 16
  6488. Settings.Spread = Settings.Spread - Settings.SprintSpreadIncrease
  6489. Right_Weld.C0 = CFrame.new(0, -1.5, 0)
  6490. end
  6491. end)
  6492. Mouse.Button2Down:connect(function()
  6493. if not Reloading and not Sprinting and not Aiming and (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 then
  6494. Aiming = true
  6495. _G.MouseSensitivity = 0.3
  6496. Mouse.Icon = Settings.Icons.Aim
  6497.  
  6498. if Settings.AimAnim.Enabled then
  6499. Right_Weld.C1 = CFrame.new()
  6500. Right_Weld.C0 = CFrame.new()
  6501. delay(0, function()
  6502. Tween_C0(Right_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Right_Weld.C0, Character.Head.CFrame:toObjectSpace(Settings.AimPart.CFrame))
  6503. end)
  6504. delay(0, function()
  6505. Tween_C1(Left_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Left_Weld.C1, Settings.LeftAimPos)
  6506. end)
  6507. delay(0, function()
  6508. if Settings.ChangeFOV[1] then
  6509. Camera.FieldOfView = 70
  6510. local Cam_Dif, T_F = 70 - Settings.ChangeFOV[2], Settings.AimAnim.Time * Settings.AimAnim.Frames
  6511. for i = 1, T_F do
  6512. local FOV = 70 - Cam_Dif/T_F * i
  6513. Camera.FieldOfView = FOV
  6514. wait(Settings.AimAnim.Time/Settings.AimAnim.Frames)
  6515. if not Aiming then
  6516. return
  6517. end
  6518. end
  6519. Camera.FieldOfView = Settings.ChangeFOV[2]
  6520. end
  6521. end)
  6522. else
  6523. Right_Weld.C1 = CFrame.new()
  6524. Right_Weld.C0 = CFrame.new()
  6525. Right_Weld.C1 = Character.Head.CFrame:toObjectSpace(Settings.AimPart.CFrame)
  6526. Left_Weld.C1 = Settings.LeftAimPos
  6527. if Settings.ChangeFOV[1] then
  6528. Camera.FieldOfView = Settings.ChangeFOV[2]
  6529. end
  6530. end
  6531. Tool.GripPos = Orig_Grip + Settings.AimGripOffset
  6532. Settings.Spread = Settings.Spread - Settings.SpreadReduction
  6533. end
  6534. end)
  6535. Mouse.Button2Up:connect(function()
  6536. if Aiming then
  6537. Mouse.Icon = Settings.Icons.Idle
  6538.  
  6539. Tool.GripPos = Orig_Grip
  6540. if Settings.AimAnim.Enabled then
  6541. delay(0, function()
  6542. Tween_C0(Right_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Right_Weld.C0, CFrame.new(0, -1.5, 0))
  6543. end)
  6544. delay(0, function()
  6545. Tween_C1(Left_Weld, Settings.AimAnim.Frames, Settings.AimAnim.Time, Left_Weld.C1, Settings.LeftPos)
  6546. end)
  6547. else
  6548. Right_Weld.C1 = Settings.RightPos
  6549. Right_Weld.C0 = CFrame.new(0, -1.5, 0)
  6550. Left_Weld.C1 = Settings.LeftPos
  6551. end
  6552. if Settings.ChangeFOV[1] then
  6553. Camera.FieldOfView = 70
  6554. end
  6555. Settings.Spread = Settings.Spread + Settings.SpreadReduction
  6556. Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  6557. Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  6558. wait(0.25)
  6559. Aiming = false
  6560. _G.MouseSensitivity = 1
  6561. end
  6562. end)
  6563. wait()
  6564. Camera.Changed:connect(function()
  6565. if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 and Equipped then
  6566. Mouse.TargetFilter = workspace
  6567. Character.Torso.Neck.C1 = CFrame.new()
  6568. Character.Torso.Neck.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.asin((Mouse.Hit.p - Mouse.Origin.p).unit.y), 0, 0)
  6569. end
  6570. end)
  6571. Mouse.Idle:connect(function()
  6572. if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 and Equipped then
  6573. Mouse.TargetFilter = workspace
  6574. Character.Torso.Neck.C1 = CFrame.new()
  6575. Character.Torso.Neck.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.asin((Mouse.Hit.p - Mouse.Origin.p).unit.y), 0, 0)
  6576. end
  6577. end)
  6578. while wait() and Equipped do
  6579. if Sprinting then
  6580. Can_Shoot = false
  6581. Right_Weld.C0 = CFrame.new(0, -1.5, 0) * Settings.SprintArmOffset
  6582. Left_Weld.C0 = CFrame.new(0, -1.5, 0) * Settings.SprintArmOffset
  6583. elseif not Aiming and not Sprinting then
  6584. Can_Shoot = true
  6585. Left_Weld.C0 = CFrame.new(0, -1.5, 0)
  6586. end
  6587. if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude > 1 and Equipped then
  6588. Mouse.TargetFilter = nil
  6589. Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  6590. Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  6591. end
  6592. end
  6593. end)
  6594.  
  6595. local Arms_Made
  6596. local Fake_Arm_Right, Fake_Arm_Left, Fake_Arm_Model
  6597.  
  6598. Tool.Equipped:connect(function(Mouse)
  6599. if Character and not Arms_Made then
  6600. Arms_Made = true
  6601. local Torso = Character.Torso
  6602. Torso["Right Shoulder"].Part1 = nil
  6603. Left_Weld = Instance.new("Weld", Torso)
  6604. Left_Weld.Name = "Left_Weld"
  6605. Left_Weld.Part0 = Character.Head
  6606. Left_Weld.C0 = CFrame.new(0, -1.5, 0)
  6607. if not Settings.OneHanded then
  6608. Torso["Left Shoulder"].Part1 = nil
  6609. Left_Weld.Part1 = Character["Left Arm"]
  6610. end
  6611. Right_Weld = Instance.new("Weld", Torso)
  6612. Right_Weld.Name = "Right_Weld"
  6613. Right_Weld.Part0 = Character.Head
  6614. Right_Weld.Part1 = Character["Right Arm"]
  6615. Right_Weld.C0 = CFrame.new(0, -1.5, 0)
  6616. Left_Weld.C1 = Settings.LeftPos
  6617. Right_Weld.C1 = Settings.RightPos
  6618. end
  6619. if Settings.FakeArms and not Fake_Arm_Right then
  6620. Fake_Arm_Right, Fake_Arm_Left = Character["Right Arm"]:Clone(), Character["Left Arm"]:Clone()
  6621. Fake_Arm_Right.FormFactor, Fake_Arm_Left.FormFactor = "Custom", "Custom"
  6622. Fake_Arm_Right.Size, Fake_Arm_Left.Size = Vector3.new(), Vector3.new()
  6623. local fakeArms = {Fake_Arm_Right, Fake_Arm_Left}
  6624. for i = 1, 2 do
  6625. local w = Instance.new("Weld", fakeArms[i])
  6626. w.Part0 = Character[fakeArms[i].Name]
  6627. w.Part1 = fakeArms[i]
  6628. fakeArms[i].Transparency = Settings.FakeArmTransparency
  6629. end
  6630. Fake_Arm_Model = Instance.new("Model", Camera)
  6631. Fake_Arm_Right.Parent = Fake_Arm_Model
  6632. if not Settings.OneHanded then
  6633. Fake_Arm_Left.Parent = Fake_Arm_Model
  6634. end
  6635. Fake_Arm_Model.Name = "FakeArms"
  6636. if Settings.CharacterMeshes then
  6637. for i, v in pairs(Character:GetChildren()) do
  6638. if v:IsA("CharacterMesh") and v.BodyPart == Enum.BodyPart.LeftArm or v:IsA("CharacterMesh") and v.BodyPart == Enum.BodyPart.RightArm then
  6639. v:Clone().Parent = Fake_Arm_Model
  6640. end
  6641. end
  6642. end
  6643. if Character:FindFirstChild("Shirt") then
  6644. Instance.new("Humanoid", Fake_Arm_Model)
  6645. Character.Shirt:Clone().Parent = Fake_Arm_Model
  6646. else
  6647. local Arm_Mesh = Instance.new("SpecialMesh", Fake_Arm_Right)
  6648. Arm_Mesh.MeshType, Arm_Mesh.Scale = "Brick", Vector3.new(1, 2, 1)
  6649. local Arm_Mesh2 = Instance.new("SpecialMesh", Fake_Arm_Left)
  6650. Arm_Mesh2.MeshType, Arm_Mesh2.Scale = "Brick", Vector3.new(1, 2, 1)
  6651. end
  6652. end
  6653. end)
  6654.  
  6655. Tool.Unequipped:connect(function()
  6656. Equipped = false
  6657. Tool.GripPos = Orig_Grip
  6658. Aiming = false
  6659. Settings.Spread = Orig_Spread
  6660. if Settings.ChangeFOV[1] then
  6661. Camera.FieldOfView = 70
  6662. end
  6663. if Gui then
  6664. Gui:Destroy()
  6665. Gui = nil
  6666. end
  6667. for i, v in pairs(Tool.Handle:GetChildren()) do
  6668. if v:IsA("Sound") then
  6669. v:Stop()
  6670. end
  6671. end
  6672. if Fake_Arm_Right and Fake_Arm_Left and Fake_Arm_Model then
  6673. Fake_Arm_Model:Destroy()
  6674. Fake_Arm_Right, Fake_Arm_Left, Fake_Arm_Model = nil, nil, nil
  6675. end
  6676. if Character and Left_Weld and Right_Weld then
  6677. Arms_Made = false
  6678. local Torso = Character.Torso
  6679. Torso["Right Shoulder"].Part1, Torso["Left Shoulder"].Part1 = Character["Right Arm"], Character["Left Arm"]
  6680. Left_Weld:Destroy()
  6681. Right_Weld:Destroy()
  6682. end
  6683. Sprinting = false
  6684. Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  6685. Character.Torso.Neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  6686. Character.Humanoid.WalkSpeed = 16
  6687. end)
  6688. end))
  6689. NumberValue20.Name = "StoredAmmo"
  6690. NumberValue20.Parent = LocalScript19
  6691. NumberValue20.Value = 999
  6692. NumberValue21.Name = "Ammo"
  6693. NumberValue21.Parent = LocalScript19
  6694. NumberValue21.Value = 7
  6695. Smoke22.Parent = LocalScript19
  6696. Smoke22.Size = 0.25
  6697. Smoke22.Color = Color3.new(0.807843, 0.807843, 0.807843)
  6698. Smoke22.Enabled = false
  6699. Smoke22.Opacity = 0.10000000149012
  6700. Smoke22.RiseVelocity = 10
  6701. Smoke22.Color = Color3.new(0.807843, 0.807843, 0.807843)
  6702. Smoke23.Name = "Smoke1"
  6703. Smoke23.Parent = LocalScript19
  6704. Smoke23.Size = 0.25
  6705. Smoke23.Color = Color3.new(0.807843, 0.807843, 0.807843)
  6706. Smoke23.Enabled = false
  6707. Smoke23.Opacity = 0.10000000149012
  6708. Smoke23.RiseVelocity = 10
  6709. Smoke23.Color = Color3.new(0.807843, 0.807843, 0.807843)
  6710. Smoke24.Name = "Smoke2"
  6711. Smoke24.Parent = LocalScript19
  6712. Smoke24.Size = 0.25
  6713. Smoke24.Color = Color3.new(0.807843, 0.807843, 0.807843)
  6714. Smoke24.Enabled = false
  6715. Smoke24.Opacity = 0.10000000149012
  6716. Smoke24.RiseVelocity = 10
  6717. Smoke24.Color = Color3.new(0.807843, 0.807843, 0.807843)
  6718. for i,v in pairs(mas:GetChildren()) do
  6719. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  6720. pcall(function() v:MakeJoints() end)
  6721. end
  6722. mas:Destroy()
  6723. for i,v in pairs(cors) do
  6724. spawn(function()
  6725. pcall(v)
  6726. end)
  6727. end
  6728.  
  6729. end
  6730.  
  6731.  
  6732. function SpawnArrest()
  6733.  
  6734. --Converted with ttyyuu12345's model to script plugin v4
  6735. function sandbox(var,func)
  6736. local env = getfenv(func)
  6737. local newenv = setmetatable({},{
  6738. __index = function(self,k)
  6739. if k=="script" then
  6740. return var
  6741. else
  6742. return env[k]
  6743. end
  6744. end,
  6745. })
  6746. setfenv(func,newenv)
  6747. return func
  6748. end
  6749. cors = {}
  6750. mas = Instance.new("Model",game:GetService("Lighting"))
  6751. Tool0 = Instance.new("Tool")
  6752. Part1 = Instance.new("Part")
  6753. SpecialMesh2 = Instance.new("SpecialMesh")
  6754. Script3 = Instance.new("Script")
  6755. Tool0.Name = "Arrest"
  6756. Tool0.Parent = mas
  6757. Tool0.GripForward = Vector3.new(-0.77155745, 0.462976098, 0.43629396)
  6758. Tool0.GripPos = Vector3.new(0.899999976, 0.5, 0.400000006)
  6759. Tool0.GripRight = Vector3.new(0.632408082, 0.63257581, 0.447110623)
  6760. Tool0.GripUp = Vector3.new(0.0689874813, -0.620887339, 0.780858338)
  6761. Tool0.ToolTip = "Take those skids to gulag!"
  6762. Tool0.CanBeDropped = false
  6763. Part1.Name = "Handle"
  6764. Part1.Parent = Tool0
  6765. Part1.FormFactor = Enum.FormFactor.Custom
  6766. Part1.Size = Vector3.new(2, 2, 2)
  6767. Part1.CFrame = CFrame.new(1.70000003e-05, 1.00001395, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  6768. Part1.Position = Vector3.new(1.70000003e-05, 1.00001395, 0)
  6769. SpecialMesh2.Parent = Part1
  6770. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=88046657"
  6771. SpecialMesh2.Scale = Vector3.new(2, 2, 2)
  6772. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=88046679"
  6773. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  6774. SpecialMesh2.Scale = Vector3.new(2, 2, 2)
  6775. Script3.Parent = Part1
  6776. debounce = false
  6777. player = game.Players.LocalPlayer
  6778. mouse = player:GetMouse()
  6779.  
  6780. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50
  6781.  
  6782.  
  6783. table.insert(cors,sandbox(Script3,function()
  6784. function arrest(hit)
  6785. print(1)
  6786. hit = mouse.Target
  6787. if hit.Parent ~= nil and hit.Parent:FindFirstChild("Head") ~= nil and hit.Parent.Name ~= game.Players.LocalPlayer.Name and debounce ~= true and hit.Parent.Head:FindFirstChild("ArrestedGui") == nil then
  6788. debounce = true
  6789. num = math.random(1,99)
  6790. local message = Instance.new("Hint",workspace)
  6791. message.Text = hit.Parent.Name.." Has been arrested by "..game.Players.LocalPlayer.Name.."! He or she has to spend "..num.." years in jail!"
  6792. --hit.Parent:Destroy()
  6793.  
  6794.  
  6795. hit.Parent.Humanoid.MaxHealth = math.huge
  6796. print("Godded!")
  6797. a = Instance.new("ForceField", hit.Parent)
  6798. a.Visible = false
  6799. print("FFed!")
  6800.  
  6801. hit.Parent.Humanoid.PlatformStand = true
  6802. hit.Parent.Head.Anchored = true
  6803. local hum = Instance.new("Model", hit.Parent)
  6804. hum.Name = hit.Parent.Name.."| Arrested | "..num.. " Years until release"
  6805. local anotherhum = Instance.new("Humanoid", hum)
  6806. local par = Instance.new("Part", hum)
  6807. par.Size = Vector3.new(2,1,1)
  6808. par.Name = "Head"
  6809. par.BrickColor = hit.Parent.Head.BrickColor
  6810. par.Transparency = 0
  6811. par.Anchored = true
  6812. par.CanCollide = false
  6813. par.Position = hit.Parent.Head.Position
  6814. local hide = Instance.new("SpecialMesh", par)
  6815. hide.Scale = Vector3.new(1.25, 1.25, 1.25)
  6816.  
  6817.  
  6818. hit.Parent.Head.Transparency = 1
  6819.  
  6820. local SOUND = Instance.new("Sound", script.Parent)
  6821. SOUND.SoundId = "rbxassetid://460919688"
  6822. SOUND.Volume = 10
  6823. SOUND:Play()
  6824.  
  6825. --[[BillboardGui0 = Instance.new("BillboardGui")
  6826. TextLabel1 = Instance.new("TextLabel")
  6827. BillboardGui0.Name = "ArrestedGui"
  6828. BillboardGui0.Parent = hit.Parent.Head
  6829. BillboardGui0.Size = UDim2.new(10, 0, 2, 0)
  6830. BillboardGui0.StudsOffset = Vector3.new(0, 3, 0)
  6831. TextLabel1.Name = "Text"
  6832. TextLabel1.Parent = BillboardGui0
  6833. TextLabel1.Transparency = 1
  6834. TextLabel1.Size = UDim2.new(1, 0, 1, 0)
  6835. TextLabel1.Text = hit.Parent.Name.."| Arrested | "..num.. " Years until release"
  6836. TextLabel1.BackgroundColor3 = Color3.new(1, 1, 1)
  6837. TextLabel1.BackgroundTransparency = 1
  6838. TextLabel1.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  6839. TextLabel1.Font = Enum.Font.ArialBold
  6840. TextLabel1.FontSize = Enum.FontSize.Size48
  6841. TextLabel1.TextColor3 = Color3.new(1, 1, 1)
  6842. TextLabel1.TextScaled = true
  6843. TextLabel1.TextStrokeTransparency = 0
  6844. TextLabel1.TextWrapped = true
  6845. TextLabel1.TextYAlignment = Enum.TextYAlignment.Top]]
  6846. game:GetService("Debris"):AddItem(SOUND,5)
  6847. game:GetService("Debris"):AddItem(message,5)
  6848. --hit.Parent.Humanoid:Destroy()
  6849. --jailtime(hit.Parent)
  6850. wait(3)
  6851. debounce = false
  6852. end
  6853. end
  6854. Tool0.Activated:connect(arrest)
  6855. end))
  6856.  
  6857. --[[function jailtime(char)
  6858. for i = num, 0, -1 do
  6859. wait(1)
  6860. TextLabel1.Text = char.Name.."| Arrested | "..i.. " Years until release"
  6861. end
  6862.  
  6863. char.Humanoid.MaxHealth = 100
  6864. print("Godded!")
  6865. char.ForceField:Destroy()
  6866. print("UNFFed!")
  6867.  
  6868. char.Humanoid.PlatformStand = false
  6869.  
  6870. BillboardGui0:Destroy()
  6871. end
  6872.  
  6873. script.Parent.Touched:connect(arrest)
  6874. end))]]
  6875.  
  6876. for i,v in pairs(mas:GetChildren()) do
  6877. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  6878. pcall(function() v:MakeJoints() end)
  6879. end
  6880. mas:Destroy()
  6881. for i,v in pairs(cors) do
  6882. spawn(function()
  6883. pcall(v)
  6884. end)
  6885. end
  6886.  
  6887. end
  6888.  
  6889.  
  6890. -----RAGDOLL-----
  6891. --0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0
  6892. --0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0
  6893. --[[
  6894. local vel = Instance.new("BodyVelocity", game.Players.LocalPlayer.Character.Torso)
  6895. vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * -5
  6896. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  6897. ]]
  6898.  
  6899. --By Rufus14 (FINALLY I KNOW HOW TO MAKE A RAGDOLL :D)
  6900. --die plz
  6901. mouse = game.Players.LocalPlayer:GetMouse()
  6902. function ragdoll()
  6903. game.Players.LocalPlayer.Character.Archivable = true
  6904. clone = game.Players.LocalPlayer.Character:Clone()
  6905. clone.Parent = workspace
  6906. for i,v in pairs(clone:GetChildren()) do
  6907. if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  6908. v:destroy()
  6909. end
  6910. for i,p in pairs(v:GetChildren()) do
  6911. if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
  6912. p:destroy()
  6913. end
  6914. end
  6915. end
  6916. for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  6917. if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
  6918. t:destroy()
  6919. end
  6920. end
  6921. vel = Instance.new("BodyVelocity", clone.Torso)
  6922. vel.Velocity = clone.Torso.CFrame.lookVector * -5
  6923. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  6924. clone.Head.face.Texture = "http://www.roblox.com/asset/?id=161061608"
  6925. using = false
  6926. hit = Instance.new("Sound", clone.Torso)
  6927. hit.SoundId = "rbxassetid://260430060"
  6928. hit.Volume = 5
  6929. hit1 = Instance.new("Sound", clone.Torso)
  6930. hit1.SoundId = "rbxassetid://138087186"
  6931. hit1.Volume = 5
  6932. hit2 = Instance.new("Sound", clone.Torso)
  6933. hit2.SoundId = "rbxassetid://131237241"
  6934. hit2.Volume = 5
  6935. hit3 = Instance.new("Sound", clone.Torso)
  6936. hit3.SoundId = "rbxassetid://278062209"
  6937. hit3.Volume = 5
  6938. hit3.TimePosition = 0.33
  6939. ded = Instance.new("Sound", clone.Torso)
  6940. ded.SoundId = "rbxassetid://418892870"
  6941. ded.Volume = 5
  6942. local leftarm = clone:findFirstChild("Left Arm")
  6943. local rightrm = clone:findFirstChild("Right Arm")
  6944. local leftleg = clone:findFirstChild("Left Leg")
  6945. local rightleg = clone:findFirstChild("Right Leg")
  6946. local head = clone:findFirstChild("Head")
  6947. for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  6948. if g.ClassName == "Part" then
  6949. g:destroy()
  6950. end
  6951. end
  6952. for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  6953. if h.ClassName == "Accesory" then
  6954. h:destroy()
  6955. end
  6956. end
  6957. game.Workspace.CurrentCamera.CameraSubject = head
  6958. if head ~= nil then
  6959. local glue13 = Instance.new("Glue", clone.Torso)
  6960. glue13.Part0 = clone.Torso
  6961. glue13.Part1 = head
  6962. glue13.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  6963. glue13.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  6964. local collider13 = Instance.new("Part", head)
  6965. collider13.Position = Vector3.new(0,999,0)
  6966. collider13.Size = Vector3.new(0.5, 0.9, 0.9)
  6967. collider13.Shape = "Cylinder"
  6968. collider13.Transparency = 1
  6969. local weld = Instance.new("Weld", collider13)
  6970. weld.Part0 = head
  6971. weld.Part1 = collider13
  6972. weld.C0 = weld.C0 * CFrame.new(0,0.2,0) * CFrame.Angles(0, 0, 80)
  6973. collider13.TopSurface = "Smooth"
  6974. collider13.BottomSurface = "Smooth"
  6975. collider13.formFactor = "Symmetric"
  6976. end
  6977. if leftleg ~= nil then
  6978. local glue = Instance.new("Glue", clone.Torso)
  6979. glue.Part0 = clone.Torso
  6980. glue.Part1 = leftleg
  6981. glue.Name = "Left leg"
  6982. local collider = Instance.new("Part", leftleg)
  6983. collider.Position = Vector3.new(0,999,0)
  6984. collider.Size = Vector3.new(1.7, 1, 1)
  6985. collider.Shape = "Cylinder"
  6986. local weld = Instance.new("Weld", collider)
  6987. weld.Part0 = leftleg
  6988. weld.Part1 = collider
  6989. weld.C0 = CFrame.Angles(0, 0, 80)
  6990. collider.TopSurface = "Smooth"
  6991. collider.BottomSurface = "Smooth"
  6992. collider.formFactor = "Symmetric"
  6993. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  6994. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  6995. collider.Transparency = 1
  6996. end
  6997. ------------
  6998. if rightleg ~= nil then
  6999. local glue1 = Instance.new("Glue", clone.Torso)
  7000. glue1.Part0 = clone.Torso
  7001. glue1.Part1 = rightleg
  7002. glue1.Name = "Right leg"
  7003. local collider1 = Instance.new("Part", rightleg)
  7004. collider1.Position = Vector3.new(0,999,0)
  7005. collider1.Size = Vector3.new(1.7, 1, 1)
  7006. collider1.Shape = "Cylinder"
  7007. local weld1 = Instance.new("Weld", collider1)
  7008. weld1.Part0 = rightleg
  7009. weld1.Part1 = collider1
  7010. weld1.C0 = CFrame.Angles(0, 0, 80)
  7011. collider1.TopSurface = "Smooth"
  7012. collider1.BottomSurface = "Smooth"
  7013. collider1.formFactor = "Symmetric"
  7014. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  7015. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  7016. collider1.Transparency = 1
  7017. end
  7018. ------------
  7019. if rightrm ~= nil then
  7020. local glue11 = Instance.new("Glue", clone.Torso)
  7021. glue11.Part0 = clone.Torso
  7022. glue11.Part1 = rightrm
  7023. glue11.Name = "Right shoulder"
  7024. local collider11 = Instance.new("Part", rightrm)
  7025. collider11.Position = Vector3.new(0,9999,0)
  7026. collider11.Size = Vector3.new(1.8,1,1)
  7027. collider11.Shape = "Cylinder"
  7028. local weld11 = Instance.new("Weld", collider11)
  7029. weld11.Part0 = rightrm
  7030. weld11.Part1 = collider11
  7031. weld11.C0 = CFrame.Angles(0, 0, 80)
  7032. collider11.TopSurface = "Smooth"
  7033. collider11.BottomSurface = "Smooth"
  7034. collider11.formFactor = "Symmetric"
  7035. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  7036. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  7037. collider11.Transparency = 1
  7038. end
  7039. ------------
  7040. if leftarm ~= nil then
  7041. local glue111 = Instance.new("Glue", clone.Torso)
  7042. glue111.Part0 = clone.Torso
  7043. glue111.Part1 = leftarm
  7044. glue111.Name = "Left shoulder"
  7045. local collider111 = Instance.new("Part", leftarm)
  7046. collider111.Position = Vector3.new(0,9999,0)
  7047. collider111.Size = Vector3.new(1.8,1,1)
  7048. collider111.Shape = "Cylinder"
  7049. local weld111 = Instance.new("Weld", collider111)
  7050. weld111.Part0 = leftarm
  7051. weld111.Part1 = collider111
  7052. weld111.C0 = CFrame.Angles(0, 0, 80)
  7053. collider111.TopSurface = "Smooth"
  7054. collider111.BottomSurface = "Smooth"
  7055. collider111.formFactor = "Symmetric"
  7056. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  7057. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  7058. collider111.Transparency = 1
  7059. ----------------
  7060. sensoring = Instance.new("Part", clone.Torso)
  7061. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  7062. sensoring.CanCollide = false
  7063. sensoring.Position = clone.Torso.Position
  7064. local welder = Instance.new("Weld", sensoring)
  7065. welder.Part0 = clone.Torso
  7066. welder.Part1 = sensoring
  7067. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  7068. sensoring.Transparency = 1
  7069. -----------------
  7070. sensoring1 = Instance.new("Part", clone.Torso)
  7071. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  7072. sensoring1.CanCollide = false
  7073. sensoring1.Position = clone.Torso.Position
  7074. local welder1 = Instance.new("Weld", sensoring)
  7075. welder1.Part0 = clone.Torso
  7076. welder1.Part1 = sensoring1
  7077. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  7078. sensoring1.Transparency = 1
  7079. end
  7080. clone.Name = game.Players.LocalPlayer.Character.Name.." (DEAD)"
  7081. ded:Play()
  7082. vel:destroy()
  7083. wait(0.5)
  7084. local function touch()
  7085. if not using then
  7086. using = true
  7087. local Math = math.random(1,4)
  7088. if Math == 1 then
  7089. hit:Play()
  7090. end
  7091. if Math == 2 then
  7092. hit1:Play()
  7093. end
  7094. if Math == 3 then
  7095. hit2:Play()
  7096. end
  7097. if Math == 4 then
  7098. hit3:Play()
  7099. end
  7100. wait(0.1)
  7101. using = false
  7102. end
  7103. end
  7104. sensoring.Touched:connect(touch)
  7105. sensoring1.Touched:connect(touch)
  7106. wait(4.47)
  7107. hit1.Volume = 0
  7108. hit2.Volume = 0
  7109. hit3.Volume = 0
  7110. hit.Volume = 0
  7111. end
  7112.  
  7113. game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll)
  7114.  
  7115. --di ent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement