Advertisement
Guest User

Untitled

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