Advertisement
brandonflex123

Untitled

Feb 12th, 2017
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.48 KB | None | 0 0
  1. me = game.Players.brandonflex123
  2.  
  3. --[[ Values --]]
  4. ToolName = "Pistol"
  5.  
  6. if me == nil then
  7. script:Remove()
  8. end
  9. if me ~= nil then
  10. backpack = me:findFirstChild("Backpack")
  11. if backpack ~= nil then
  12. remove = backpack:GetChildren()
  13. for i = 1 , #remove do
  14. if remove[i].Name == ToolName then
  15. remove[i]:Remove()
  16. end
  17. end
  18. remove = me.Character:GetChildren()
  19. for i = 1 , #remove do
  20. if remove[i].Name == ToolName then
  21. remove[i]:Remove()
  22. end
  23. end
  24. gun = Instance.new("Tool")
  25. gun.Parent = backpack
  26. gun.Name = ToolName
  27.  
  28. --[[ Gun Parts --]]
  29.  
  30. handle = Instance.new("Part")
  31. handle.Parent = gun
  32. handle.Transparency = 1
  33. handle.CanCollide = false
  34. handle.Name = "Handle"
  35. handle.formFactor = "Symmetric"
  36. handle.BrickColor = BrickColor.new(26)
  37. handle.TopSurface = "Smooth"
  38. handle.BottomSurface = "Smooth"
  39. handle.Locked = true
  40. handle.Size = Vector3.new(1, 1, 1)
  41. handle2 = Instance.new("Part")
  42. handle2.Parent = gun
  43. handle2.Transparency = 0
  44. handle2.formFactor = "Symmetric"
  45. handle2.BrickColor = BrickColor.new(26)
  46. handle2.TopSurface = "Smooth"
  47. handle2.CanCollide = false
  48. handle2.BottomSurface = "Smooth"
  49. handle2.Locked = true
  50. handle2.Size = Vector3.new(1, 1, 1)
  51. mesh = Instance.new("SpecialMesh")
  52. mesh.Parent = handle2
  53. mesh.MeshType = "Brick"
  54. mesh.Scale = Vector3.new(0.5, 1.03, 0.5)
  55. weld = Instance.new("Weld")
  56. weld.Part0 = handle
  57. weld.Part1 = handle2
  58. weld.Parent = handle
  59. weld.C0 = CFrame.new(0, 0, 0.05) * CFrame.fromEulerAnglesXYZ(-0.1, 0, 0)
  60. handle3 = Instance.new("Part")
  61. handle3.Parent = gun
  62. handle3.CanCollide = false
  63. handle3.formFactor = "Symmetric"
  64. handle3.Transparency = 0
  65. handle3.BrickColor = BrickColor.new(26)
  66. handle3.TopSurface = "Smooth"
  67. handle3.BottomSurface = "Smooth"
  68. handle3.Locked = true
  69. handle3.Size = Vector3.new(1, 1, 1)
  70. mesh = Instance.new("CylinderMesh")
  71. mesh.Parent = handle3
  72. mesh.Scale = Vector3.new(0.15, 0.51, 0.15)
  73. weld = Instance.new("Weld")
  74. weld.Part0 = handle
  75. weld.Part1 = handle3
  76. weld.Parent = handle
  77. weld.C0 = CFrame.new(0, -0.3, 0.2) * CFrame.fromEulerAnglesXYZ(-0.1, 0, 1.57)
  78. handle4 = Instance.new("Part")
  79. handle4.Parent = gun
  80. handle4.CanCollide = false
  81. handle4.formFactor = "Symmetric"
  82. handle4.Transparency = 0
  83. handle4.BrickColor = BrickColor.new(26)
  84. handle4.TopSurface = "Smooth"
  85. handle4.BottomSurface = "Smooth"
  86. handle4.Locked = true
  87. handle4.Size = Vector3.new(1, 1, 1)
  88. mesh = Instance.new("CylinderMesh")
  89. mesh.Parent = handle4
  90. mesh.Scale = Vector3.new(0.15, 0.51, 0.15)
  91. weld = Instance.new("Weld")
  92. weld.Part0 = handle3
  93. weld.Part1 = handle4
  94. weld.Parent = handle3
  95. weld.C0 = CFrame.new(0.6, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  96. handle5 = Instance.new("Part")
  97. handle5.Parent = gun
  98. handle5.Transparency = 0
  99. handle5.formFactor = "Symmetric"
  100. handle5.BrickColor = BrickColor.new(26)
  101. handle5.TopSurface = "Smooth"
  102. handle5.CanCollide = false
  103. handle5.BottomSurface = "Smooth"
  104. handle5.Locked = true
  105. handle5.Size = Vector3.new(1, 1, 1)
  106. mesh = Instance.new("SpecialMesh")
  107. mesh.Parent = handle5
  108. mesh.MeshType = "Brick"
  109. mesh.Scale = Vector3.new(0.5, 0.3, 1.2)
  110. weld = Instance.new("Weld")
  111. weld.Part0 = handle
  112. weld.Part1 = handle5
  113. weld.Parent = handle
  114. weld.C0 = CFrame.new(0, 0.4, -0.3) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  115. handle6 = Instance.new("Part")
  116. handle6.Parent = gun
  117. handle6.Transparency = 0
  118. handle6.formFactor = "Symmetric"
  119. handle6.BrickColor = BrickColor.new(26)
  120. handle6.TopSurface = "Smooth"
  121. handle6.CanCollide = false
  122. handle6.BottomSurface = "Smooth"
  123. handle6.Locked = true
  124. handle6.Size = Vector3.new(1, 1, 1)
  125. mesh = Instance.new("SpecialMesh")
  126. mesh.Parent = handle6
  127. mesh.MeshType = "Brick"
  128. mesh.Scale = Vector3.new(0.3, 0.1, 0.73)
  129. weld = Instance.new("Weld")
  130. weld.Part0 = handle
  131. weld.Part1 = handle6
  132. weld.Parent = handle
  133. weld.C0 = CFrame.new(0, -0.05, -0.3) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  134. handle7 = Instance.new("Part")
  135. handle7.Parent = gun
  136. handle7.Transparency = 0
  137. handle7.formFactor = "Symmetric"
  138. handle7.BrickColor = BrickColor.new(26)
  139. handle7.TopSurface = "Smooth"
  140. handle7.CanCollide = false
  141. handle7.BottomSurface = "Smooth"
  142. handle7.Locked = true
  143. handle7.Size = Vector3.new(1, 1, 1)
  144. mesh = Instance.new("SpecialMesh")
  145. mesh.Parent = handle7
  146. mesh.MeshType = "Brick"
  147. mesh.Scale = Vector3.new(0.3, 0.1, 0.39)
  148. weld = Instance.new("Weld")
  149. weld.Part0 = handle
  150. weld.Part1 = handle7
  151. weld.Parent = handle
  152. weld.C0 = CFrame.new(0, 0.1, -0.7) * CFrame.fromEulerAnglesXYZ(1.2, 0, 0)
  153. handle8 = Instance.new("Part")
  154. handle8.Parent = gun
  155. handle8.Transparency = 0
  156. handle8.formFactor = "Symmetric"
  157. handle8.BrickColor = BrickColor.new(26)
  158. handle8.TopSurface = "Smooth"
  159. handle8.CanCollide = false
  160. handle8.BottomSurface = "Smooth"
  161. handle8.Locked = true
  162. handle8.Size = Vector3.new(1, 1, 1)
  163. mesh = Instance.new("SpecialMesh")
  164. mesh.Parent = handle8
  165. mesh.MeshType = "Wedge"
  166. mesh.Scale = Vector3.new(0.3, 0.15, 0.15)
  167. weld = Instance.new("Weld")
  168. weld.Part0 = handle
  169. weld.Part1 = handle8
  170. weld.Parent = handle
  171. weld.C0 = CFrame.new(0, 0, -0.28) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  172. handle9 = Instance.new("Part")
  173. handle9.Parent = gun
  174. handle9.Transparency = 0
  175. handle9.formFactor = "Symmetric"
  176. handle9.BrickColor = BrickColor.new(26)
  177. handle9.TopSurface = "Smooth"
  178. handle9.CanCollide = false
  179. handle9.BottomSurface = "Smooth"
  180. handle9.Locked = true
  181. handle9.Size = Vector3.new(1, 1, 1)
  182. mesh = Instance.new("SpecialMesh")
  183. mesh.Parent = handle9
  184. mesh.MeshType = "Wedge"
  185. mesh.Scale = Vector3.new(0.3, 0.15, 0.15)
  186. weld = Instance.new("Weld")
  187. weld.Part0 = handle
  188. weld.Part1 = handle9
  189. weld.Parent = handle
  190. weld.C0 = CFrame.new(0, 0.25, -0.3) * CFrame.fromEulerAnglesXYZ(0, 0, 3.14)
  191. handle10 = Instance.new("Part")
  192. handle10.Parent = gun
  193. handle10.Transparency = 0
  194. handle10.formFactor = "Symmetric"
  195. handle10.BrickColor = BrickColor.new(26)
  196. handle10.TopSurface = "Smooth"
  197. handle10.CanCollide = false
  198. handle10.BottomSurface = "Smooth"
  199. handle10.Locked = true
  200. handle10.Size = Vector3.new(1, 1, 1)
  201. mesh = Instance.new("SpecialMesh")
  202. mesh.Parent = handle10
  203. mesh.MeshType = "Wedge"
  204. mesh.Scale = Vector3.new(0.3, 0.15, 0.15)
  205. weld = Instance.new("Weld")
  206. weld.Part0 = handle
  207. weld.Part1 = handle10
  208. weld.Parent = handle
  209. weld.C0 = CFrame.new(0, 0, -0.56) * CFrame.fromEulerAnglesXYZ(0, 3.14, 0)
  210. handle11 = Instance.new("Part")
  211. handle11.Parent = gun
  212. handle11.Transparency = 0
  213. handle11.formFactor = "Symmetric"
  214. handle11.BrickColor = BrickColor.new(26)
  215. handle11.TopSurface = "Smooth"
  216. handle11.CanCollide = false
  217. handle11.BottomSurface = "Smooth"
  218. handle11.Locked = true
  219. handle11.Size = Vector3.new(1, 1, 1)
  220. mesh = Instance.new("SpecialMesh")
  221. mesh.Parent = handle11
  222. mesh.MeshType = "Brick"
  223. mesh.Scale = Vector3.new(0.1, 0.05, 0.125)
  224. weld2 = Instance.new("Weld")
  225. weld2.Part0 = handle
  226. weld2.Part1 = handle11
  227. weld2.Parent = handle
  228. weld2.C0 = CFrame.new(0, 0.2, -0.3) * CFrame.fromEulerAnglesXYZ(-0.9, 0, 0)
  229. handle12 = Instance.new("Part")
  230. handle12.Parent = gun
  231. handle12.Transparency = 0
  232. handle12.formFactor = "Symmetric"
  233. handle12.BrickColor = BrickColor.new(26)
  234. handle12.TopSurface = "Smooth"
  235. handle12.CanCollide = false
  236. handle12.BottomSurface = "Smooth"
  237. handle12.Locked = true
  238. handle12.Size = Vector3.new(1, 1, 1)
  239. mesh = Instance.new("SpecialMesh")
  240. mesh.Parent = handle12
  241. mesh.MeshType = "Brick"
  242. mesh.Scale = Vector3.new(0.1, 0.05, 0.13)
  243. weld = Instance.new("Weld")
  244. weld.Part0 = handle11
  245. weld.Part1 = handle12
  246. weld.Parent = handle11
  247. weld.C0 = CFrame.new(0, 0, -0.05) * CFrame.fromEulerAnglesXYZ(-0.9, 0, 0)
  248. handle13 = Instance.new("Part")
  249. handle13.Parent = gun
  250. handle13.Transparency = 0
  251. handle13.formFactor = "Symmetric"
  252. handle13.BrickColor = BrickColor.new(26)
  253. handle13.TopSurface = "Smooth"
  254. handle13.CanCollide = false
  255. handle13.BottomSurface = "Smooth"
  256. handle13.Locked = true
  257. handle13.Size = Vector3.new(1, 1, 1)
  258. mesh = Instance.new("SpecialMesh")
  259. mesh.Parent = handle13
  260. mesh.MeshType = "Brick"
  261. mesh.Scale = Vector3.new(0.1, 0.05, 0.08)
  262. weld = Instance.new("Weld")
  263. weld.Part0 = handle11
  264. weld.Part1 = handle13
  265. weld.Parent = handle11
  266. weld.C0 = CFrame.new(0, -0.045, -0.11) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  267. handle14 = Instance.new("Part")
  268. handle14.Parent = gun
  269. handle14.CanCollide = false
  270. handle14.formFactor = "Symmetric"
  271. handle14.Transparency = 0
  272. handle14.BrickColor = BrickColor.new(26)
  273. handle14.TopSurface = "Smooth"
  274. handle14.BottomSurface = "Smooth"
  275. handle14.Locked = true
  276. handle14.Size = Vector3.new(1, 1, 1)
  277. mesh = Instance.new("CylinderMesh")
  278. mesh.Parent = handle14
  279. mesh.Scale = Vector3.new(0.15, 0.51, 0.15)
  280. weld = Instance.new("Weld")
  281. weld.Part0 = handle
  282. weld.Part1 = handle14
  283. weld.Parent = handle
  284. weld.C0 = CFrame.new(0, 0.4, -0.1) * CFrame.fromEulerAnglesXYZ(0, 0, 1.57)
  285. handle15 = Instance.new("Part")
  286. handle15.Parent = gun
  287. handle15.CanCollide = false
  288. handle15.formFactor = "Symmetric"
  289. handle15.Transparency = 0
  290. handle15.BrickColor = BrickColor.new(26)
  291. handle15.TopSurface = "Smooth"
  292. handle15.BottomSurface = "Smooth"
  293. handle15.Locked = true
  294. handle15.Size = Vector3.new(1, 1, 1)
  295. mesh = Instance.new("CylinderMesh")
  296. mesh.Parent = handle15
  297. mesh.Scale = Vector3.new(0.15, 0.51, 0.15)
  298. weld = Instance.new("Weld")
  299. weld.Part0 = handle
  300. weld.Part1 = handle15
  301. weld.Parent = handle
  302. weld.C0 = CFrame.new(0, 0.4, -0.8) * CFrame.fromEulerAnglesXYZ(0, 0, 1.57)
  303. handle16 = Instance.new("Part")
  304. handle16.Parent = gun
  305. handle16.CanCollide = false
  306. handle16.formFactor = "Symmetric"
  307. handle16.Transparency = 0
  308. handle16.BrickColor = BrickColor.new(26)
  309. handle16.TopSurface = "Smooth"
  310. handle16.BottomSurface = "Smooth"
  311. handle16.Locked = true
  312. handle16.Size = Vector3.new(1, 1, 1)
  313. mesh = Instance.new("SpecialMesh")
  314. mesh.Parent = handle16
  315. mesh.MeshType = "Brick"
  316. mesh.Scale = Vector3.new(0.05, 0.51, 0.6)
  317. weld = Instance.new("Weld")
  318. weld.Part0 = handle
  319. weld.Part1 = handle16
  320. weld.Parent = handle
  321. weld.C0 = CFrame.new(0, 0.4, -0.45) * CFrame.fromEulerAnglesXYZ(0, 0, 1.57)
  322. handle17 = Instance.new("Part")
  323. handle17.Parent = gun
  324. handle17.Transparency = 0
  325. handle17.formFactor = "Symmetric"
  326. handle17.BrickColor = BrickColor.new(26)
  327. handle17.TopSurface = "Smooth"
  328. handle17.CanCollide = false
  329. handle17.BottomSurface = "Smooth"
  330. handle17.Locked = true
  331. handle17.Size = Vector3.new(1, 1, 1)
  332. mesh = Instance.new("SpecialMesh")
  333. mesh.Parent = handle17
  334. mesh.MeshType = "Wedge"
  335. mesh.Scale = Vector3.new(0.5, 0.3, 0.2)
  336. weld = Instance.new("Weld")
  337. weld.Part0 = handle
  338. weld.Part1 = handle17
  339. weld.Parent = handle
  340. weld.C0 = CFrame.new(0, 0.4, -1) * CFrame.fromEulerAnglesXYZ(0, 0, 3.14)
  341. handle17 = Instance.new("Part")
  342. handle17.Parent = gun
  343. handle17.Transparency = 0
  344. handle17.formFactor = "Symmetric"
  345. handle17.BrickColor = BrickColor.new(26)
  346. handle17.TopSurface = "Smooth"
  347. handle17.CanCollide = false
  348. handle17.BottomSurface = "Smooth"
  349. handle17.Locked = true
  350. handle17.Size = Vector3.new(1, 1, 1)
  351. mesh = Instance.new("SpecialMesh")
  352. mesh.Parent = handle17
  353. mesh.MeshType = "Brick"
  354. mesh.Scale = Vector3.new(0.4, 0.4, 2.6)
  355. weld = Instance.new("Weld")
  356. weld.Part0 = handle
  357. weld.Part1 = handle17
  358. weld.Parent = handle
  359. weld.C0 = CFrame.new(0, 0.75, -0.8) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  360. handle17 = Instance.new("Part")
  361. handle17.Parent = gun
  362. handle17.Transparency = 0
  363. handle17.formFactor = "Symmetric"
  364. handle17.BrickColor = BrickColor.new(26)
  365. handle17.TopSurface = "Smooth"
  366. handle17.CanCollide = false
  367. handle17.BottomSurface = "Smooth"
  368. handle17.Locked = true
  369. handle17.Size = Vector3.new(1, 1, 1)
  370. mesh = Instance.new("CylinderMesh")
  371. mesh.Parent = handle17
  372. mesh.Scale = Vector3.new(0.1, 2.6, 0.1)
  373. weld = Instance.new("Weld")
  374. weld.Part0 = handle
  375. weld.Part1 = handle17
  376. weld.Parent = handle
  377. weld.C0 = CFrame.new(0.2, 0.6, -0.8) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0)
  378. handle18 = Instance.new("Part")
  379. handle18.Parent = gun
  380. handle18.Transparency = 0
  381. handle18.formFactor = "Symmetric"
  382. handle18.BrickColor = BrickColor.new(26)
  383. handle18.TopSurface = "Smooth"
  384. handle18.CanCollide = false
  385. handle18.BottomSurface = "Smooth"
  386. handle18.Locked = true
  387. handle18.Size = Vector3.new(1, 1, 1)
  388. mesh = Instance.new("CylinderMesh")
  389. mesh.Parent = handle18
  390. mesh.Scale = Vector3.new(0.1, 2.6, 0.1)
  391. weld = Instance.new("Weld")
  392. weld.Part0 = handle
  393. weld.Part1 = handle18
  394. weld.Parent = handle
  395. weld.C0 = CFrame.new(0.2, 0.9, -0.8) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0)
  396. handle19 = Instance.new("Part")
  397. handle19.Parent = gun
  398. handle19.Transparency = 0
  399. handle19.formFactor = "Symmetric"
  400. handle19.BrickColor = BrickColor.new(26)
  401. handle19.TopSurface = "Smooth"
  402. handle19.CanCollide = false
  403. handle19.BottomSurface = "Smooth"
  404. handle19.Locked = true
  405. handle19.Size = Vector3.new(1, 1, 1)
  406. mesh = Instance.new("CylinderMesh")
  407. mesh.Parent = handle19
  408. mesh.Scale = Vector3.new(0.1, 2.6, 0.1)
  409. weld = Instance.new("Weld")
  410. weld.Part0 = handle
  411. weld.Part1 = handle19
  412. weld.Parent = handle
  413. weld.C0 = CFrame.new(-0.2, 0.6, -0.8) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0)
  414. handle20 = Instance.new("Part")
  415. handle20.Parent = gun
  416. handle20.Transparency = 0
  417. handle20.formFactor = "Symmetric"
  418. handle20.BrickColor = BrickColor.new(26)
  419. handle20.TopSurface = "Smooth"
  420. handle20.CanCollide = false
  421. handle20.BottomSurface = "Smooth"
  422. handle20.Locked = true
  423. handle20.Size = Vector3.new(1, 1, 1)
  424. mesh = Instance.new("CylinderMesh")
  425. mesh.Parent = handle20
  426. mesh.Scale = Vector3.new(0.1, 2.6, 0.1)
  427. weld = Instance.new("Weld")
  428. weld.Part0 = handle
  429. weld.Part1 = handle20
  430. weld.Parent = handle
  431. weld.C0 = CFrame.new(-0.2, 0.9, -0.8) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0)
  432. handle21 = Instance.new("Part")
  433. handle21.Parent = gun
  434. handle21.Transparency = 0
  435. handle21.formFactor = "Symmetric"
  436. handle21.BrickColor = BrickColor.new(26)
  437. handle21.TopSurface = "Smooth"
  438. handle21.CanCollide = false
  439. handle21.BottomSurface = "Smooth"
  440. handle21.Locked = true
  441. handle21.Size = Vector3.new(1, 1, 1)
  442. mesh = Instance.new("SpecialMesh")
  443. mesh.Parent = handle21
  444. mesh.MeshType = "Brick"
  445. mesh.Scale = Vector3.new(0.5, 0.3, 2.6)
  446. weld = Instance.new("Weld")
  447. weld.Part0 = handle
  448. weld.Part1 = handle21
  449. weld.Parent = handle
  450. weld.C0 = CFrame.new(0, 0.75, -0.8) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  451. handle22 = Instance.new("Part")
  452. handle22.Parent = gun
  453. handle22.Transparency = 0
  454. handle22.formFactor = "Symmetric"
  455. handle22.BrickColor = BrickColor.new(26)
  456. handle22.TopSurface = "Smooth"
  457. handle22.CanCollide = false
  458. handle22.BottomSurface = "Smooth"
  459. handle22.Locked = true
  460. handle22.Size = Vector3.new(1, 1, 1)
  461. mesh = Instance.new("SpecialMesh")
  462. mesh.Parent = handle22
  463. mesh.MeshType = "Brick"
  464. mesh.Scale = Vector3.new(0.2, 0.3, 2.6)
  465. weld = Instance.new("Weld")
  466. weld.Part0 = handle
  467. weld.Part1 = handle22
  468. weld.Parent = handle
  469. weld.C0 = CFrame.new(0, 0.95, -0.8) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  470. handle23 = Instance.new("Part")
  471. handle23.Parent = gun
  472. handle23.Transparency = 0
  473. handle23.formFactor = "Symmetric"
  474. handle23.BrickColor = BrickColor.new(26)
  475. handle23.TopSurface = "Smooth"
  476. handle23.CanCollide = false
  477. handle23.BottomSurface = "Smooth"
  478. handle23.Locked = true
  479. handle23.Size = Vector3.new(1, 1, 1)
  480. mesh = Instance.new("CylinderMesh")
  481. mesh.Parent = handle23
  482. mesh.Scale = Vector3.new(0.2, 0.3, 0.2)
  483. weld = Instance.new("Weld")
  484. weld.Part0 = handle
  485. weld.Part1 = handle23
  486. weld.Parent = handle
  487. weld.C0 = CFrame.new(0, 1, -0.2) * CFrame.fromEulerAnglesXYZ(1.57, 0, 1.57)
  488. handle24 = Instance.new("Part")
  489. handle24.Parent = gun
  490. handle24.Transparency = 0
  491. handle24.formFactor = "Symmetric"
  492. handle24.BrickColor = BrickColor.new(26)
  493. handle24.TopSurface = "Smooth"
  494. handle24.CanCollide = false
  495. handle24.BottomSurface = "Smooth"
  496. handle24.Locked = true
  497. handle24.Size = Vector3.new(1, 1, 1)
  498. mesh = Instance.new("CylinderMesh")
  499. mesh.Parent = handle24
  500. mesh.Scale = Vector3.new(0.2, 0.3, 0.2)
  501. weld = Instance.new("Weld")
  502. weld.Part0 = handle
  503. weld.Part1 = handle24
  504. weld.Parent = handle
  505. weld.C0 = CFrame.new(0, 1, -0.7) * CFrame.fromEulerAnglesXYZ(1.57, 0, 1.57)
  506. handle25 = Instance.new("Part")
  507. handle25.Parent = gun
  508. handle25.Transparency = 0
  509. handle25.formFactor = "Symmetric"
  510. handle25.BrickColor = BrickColor.new(26)
  511. handle25.TopSurface = "Smooth"
  512. handle25.CanCollide = false
  513. handle25.BottomSurface = "Smooth"
  514. handle25.Locked = true
  515. handle25.Size = Vector3.new(1, 1, 1)
  516. mesh = Instance.new("SpecialMesh")
  517. mesh.MeshType = "Brick"
  518. mesh.Parent = handle25
  519. mesh.Scale = Vector3.new(0.5, 0.3, 0.2)
  520. weld = Instance.new("Weld")
  521. weld.Part0 = handle
  522. weld.Part1 = handle25
  523. weld.Parent = handle
  524. weld.C0 = CFrame.new(0, 1, -0.45) * CFrame.fromEulerAnglesXYZ(1.57, 0, 1.57)
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531. handle17 = Instance.new("Part")
  532. handle17.Parent = gun
  533. handle17.Transparency = 0
  534. handle17.formFactor = "Symmetric"
  535. handle17.BrickColor = BrickColor.new(26)
  536. handle17.TopSurface = "Smooth"
  537. handle17.CanCollide = false
  538. handle17.BottomSurface = "Smooth"
  539. handle17.Locked = true
  540. handle17.Size = Vector3.new(1, 1, 1)
  541. mesh = Instance.new("SpecialMesh")
  542. mesh.Parent = handle17
  543. mesh.MeshType = "Brick"
  544. mesh.Scale = Vector3.new(0.4, 0.4, 2.6)
  545. weld = Instance.new("Weld")
  546. weld.Part0 = handle
  547. weld.Part1 = handle17
  548. weld.Parent = handle
  549. weld.C0 = CFrame.new(0, 1.15, -0.8) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  550. handle17 = Instance.new("Part")
  551. handle17.Parent = gun
  552. handle17.Transparency = 0
  553. handle17.formFactor = "Symmetric"
  554. handle17.BrickColor = BrickColor.new(26)
  555. handle17.TopSurface = "Smooth"
  556. handle17.CanCollide = false
  557. handle17.BottomSurface = "Smooth"
  558. handle17.Locked = true
  559. handle17.Size = Vector3.new(1, 1, 1)
  560. mesh = Instance.new("CylinderMesh")
  561. mesh.Parent = handle17
  562. mesh.Scale = Vector3.new(0.1, 2.6, 0.1)
  563. weld = Instance.new("Weld")
  564. weld.Part0 = handle
  565. weld.Part1 = handle17
  566. weld.Parent = handle
  567. weld.C0 = CFrame.new(0.2, 1.3, -0.8) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0)
  568. handle18 = Instance.new("Part")
  569. handle18.Parent = gun
  570. handle18.Transparency = 0
  571. handle18.formFactor = "Symmetric"
  572. handle18.BrickColor = BrickColor.new(26)
  573. handle18.TopSurface = "Smooth"
  574. handle18.CanCollide = false
  575. handle18.BottomSurface = "Smooth"
  576. handle18.Locked = true
  577. handle18.Size = Vector3.new(1, 1, 1)
  578. mesh = Instance.new("CylinderMesh")
  579. mesh.Parent = handle18
  580. mesh.Scale = Vector3.new(0.1, 2.6, 0.1)
  581. weld = Instance.new("Weld")
  582. weld.Part0 = handle
  583. weld.Part1 = handle18
  584. weld.Parent = handle
  585. weld.C0 = CFrame.new(0.2, 1, -0.8) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0)
  586. handle19 = Instance.new("Part")
  587. handle19.Parent = gun
  588. handle19.Transparency = 0
  589. handle19.formFactor = "Symmetric"
  590. handle19.BrickColor = BrickColor.new(26)
  591. handle19.TopSurface = "Smooth"
  592. handle19.CanCollide = false
  593. handle19.BottomSurface = "Smooth"
  594. handle19.Locked = true
  595. handle19.Size = Vector3.new(1, 1, 1)
  596. mesh = Instance.new("CylinderMesh")
  597. mesh.Parent = handle19
  598. mesh.Scale = Vector3.new(0.1, 2.6, 0.1)
  599. weld = Instance.new("Weld")
  600. weld.Part0 = handle
  601. weld.Part1 = handle19
  602. weld.Parent = handle
  603. weld.C0 = CFrame.new(-0.2, 1, -0.8) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0)
  604. handle20 = Instance.new("Part")
  605. handle20.Parent = gun
  606. handle20.Transparency = 0
  607. handle20.formFactor = "Symmetric"
  608. handle20.BrickColor = BrickColor.new(26)
  609. handle20.TopSurface = "Smooth"
  610. handle20.CanCollide = false
  611. handle20.BottomSurface = "Smooth"
  612. handle20.Locked = true
  613. handle20.Size = Vector3.new(1, 1, 1)
  614. mesh = Instance.new("CylinderMesh")
  615. mesh.Parent = handle20
  616. mesh.Scale = Vector3.new(0.1, 2.6, 0.1)
  617. weld = Instance.new("Weld")
  618. weld.Part0 = handle
  619. weld.Part1 = handle20
  620. weld.Parent = handle
  621. weld.C0 = CFrame.new(-0.2, 1.3, -0.8) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0)
  622. handle21 = Instance.new("Part")
  623. handle21.Parent = gun
  624. handle21.Transparency = 0
  625. handle21.formFactor = "Symmetric"
  626. handle21.BrickColor = BrickColor.new(26)
  627. handle21.TopSurface = "Smooth"
  628. handle21.CanCollide = false
  629. handle21.BottomSurface = "Smooth"
  630. handle21.Locked = true
  631. handle21.Size = Vector3.new(1, 1, 1)
  632. mesh = Instance.new("SpecialMesh")
  633. mesh.Parent = handle21
  634. mesh.MeshType = "Brick"
  635. mesh.Scale = Vector3.new(0.5, 0.3, 2.6)
  636. weld = Instance.new("Weld")
  637. weld.Part0 = handle
  638. weld.Part1 = handle21
  639. weld.Parent = handle
  640. weld.C0 = CFrame.new(0, 1.15, -0.8) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  641.  
  642. handle17 = Instance.new("Part")
  643. handle17.Parent = gun
  644. handle17.Transparency = 0
  645. handle17.formFactor = "Symmetric"
  646. handle17.BrickColor = BrickColor.new(26)
  647. handle17.TopSurface = "Smooth"
  648. handle17.CanCollide = false
  649. handle17.BottomSurface = "Smooth"
  650. handle17.Locked = true
  651. handle17.Size = Vector3.new(1, 1, 1)
  652. mesh = Instance.new("SpecialMesh")
  653. mesh.Parent = handle17
  654. mesh.MeshType = "Brick"
  655. mesh.Scale = Vector3.new(0.2, 0.4, 1.2)
  656. weld = Instance.new("Weld")
  657. weld.Part0 = handle
  658. weld.Part1 = handle17
  659. weld.Parent = handle
  660. weld.C0 = CFrame.new(0, 1.17, -0.6) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  661.  
  662. handle17 = Instance.new("Part")
  663. handle17.Parent = gun
  664. handle17.Transparency = 0
  665. handle17.formFactor = "Symmetric"
  666. handle17.BrickColor = BrickColor.new(26)
  667. handle17.TopSurface = "Smooth"
  668. handle17.CanCollide = false
  669. handle17.BottomSurface = "Smooth"
  670. handle17.Locked = true
  671. handle17.Size = Vector3.new(1, 1, 1)
  672. mesh = Instance.new("CylinderMesh")
  673. mesh.Parent = handle17
  674. mesh.Scale = Vector3.new(0.2, 0.4, 0.2)
  675. weld = Instance.new("Weld")
  676. weld.Part0 = handle
  677. weld.Part1 = handle17
  678. weld.Parent = handle
  679. weld.C0 = CFrame.new(0, 1.17, -1.2) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  680.  
  681. handle17 = Instance.new("Part")
  682. handle17.Parent = gun
  683. handle17.Transparency = 0
  684. handle17.formFactor = "Symmetric"
  685. handle17.BrickColor = BrickColor.new(26)
  686. handle17.TopSurface = "Smooth"
  687. handle17.CanCollide = false
  688. handle17.BottomSurface = "Smooth"
  689. handle17.Locked = true
  690. handle17.Size = Vector3.new(1, 1, 1)
  691. mesh = Instance.new("CylinderMesh")
  692. mesh.Parent = handle17
  693. mesh.Scale = Vector3.new(0.2, 0.4, 0.2)
  694. weld = Instance.new("Weld")
  695. weld.Part0 = handle
  696. weld.Part1 = handle17
  697. weld.Parent = handle
  698. weld.C0 = CFrame.new(0, 1.17, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  699.  
  700. handle17 = Instance.new("Part")
  701. handle17.Parent = gun
  702. handle17.Transparency = 0
  703. handle17.formFactor = "Symmetric"
  704. handle17.BrickColor = BrickColor.new(26)
  705. handle17.TopSurface = "Smooth"
  706. handle17.CanCollide = false
  707. handle17.BottomSurface = "Smooth"
  708. handle17.Locked = true
  709. handle17.Size = Vector3.new(1, 1, 1)
  710. mesh = Instance.new("SpecialMesh")
  711. mesh.Parent = handle17
  712. mesh.MeshType = "Wedge"
  713. mesh.Scale = Vector3.new(0.1, 0.55, 0.5)
  714. weld = Instance.new("Weld")
  715. weld.Part0 = handle
  716. weld.Part1 = handle17
  717. weld.Parent = handle
  718. weld.C0 = CFrame.new(0, 1.17, -1.2) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  719.  
  720.  
  721. handle17 = Instance.new("Part")
  722. handle17.Parent = gun
  723. handle17.Transparency = 0
  724. handle17.formFactor = "Symmetric"
  725. handle17.BrickColor = BrickColor.new(26)
  726. handle17.TopSurface = "Smooth"
  727. handle17.CanCollide = false
  728. handle17.BottomSurface = "Smooth"
  729. handle17.Locked = true
  730. handle17.Size = Vector3.new(1, 1, 1)
  731. mesh = Instance.new("SpecialMesh")
  732. mesh.Parent = handle17
  733. mesh.MeshType = "Brick"
  734. mesh.Scale = Vector3.new(0.1, 0.55, 0.9)
  735. weld = Instance.new("Weld")
  736. weld.Part0 = handle
  737. weld.Part1 = handle17
  738. weld.Parent = handle
  739. weld.C0 = CFrame.new(0, 1.17, -0.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  740.  
  741.  
  742. handle17 = Instance.new("Part")
  743. handle17.Parent = gun
  744. handle17.Transparency = 0
  745. handle17.formFactor = "Symmetric"
  746. handle17.BrickColor = BrickColor.new(26)
  747. handle17.TopSurface = "Smooth"
  748. handle17.CanCollide = false
  749. handle17.BottomSurface = "Smooth"
  750. handle17.Locked = true
  751. handle17.Size = Vector3.new(1, 1, 1)
  752. mesh = Instance.new("SpecialMesh")
  753. mesh.Parent = handle17
  754. mesh.MeshType = "Wedge"
  755. mesh.Scale = Vector3.new(0.1, 0.55, 0.5)
  756. weld = Instance.new("Weld")
  757. weld.Part0 = handle
  758. weld.Part1 = handle17
  759. weld.Parent = handle
  760. weld.C0 = CFrame.new(0, 1.17, 0.2) * CFrame.fromEulerAnglesXYZ(0, 3.14, 0)
  761.  
  762.  
  763.  
  764. handle17 = Instance.new("Part")
  765. handle17.Parent = gun
  766. handle17.Transparency = 0
  767. handle17.formFactor = "Symmetric"
  768. handle17.BrickColor = BrickColor.new("Really black")
  769. handle17.TopSurface = "Smooth"
  770. handle17.CanCollide = false
  771. handle17.BottomSurface = "Smooth"
  772. handle17.Locked = true
  773. handle17.Size = Vector3.new(1, 1, 1)
  774. mesh = Instance.new("CylinderMesh")
  775. mesh.Parent = handle17
  776. mesh.Scale = Vector3.new(0.36, 1, 0.36)
  777. weld = Instance.new("Weld")
  778. weld.Part0 = handle
  779. weld.Part1 = handle17
  780. weld.Parent = handle
  781. weld.C0 = CFrame.new(0, 1.15, -1.61) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0)
  782.  
  783.  
  784. handle117 = Instance.new("Part")
  785. handle117.Parent = gun
  786. handle117.Transparency = 1
  787. handle117.formFactor = "Symmetric"
  788. handle117.BrickColor = BrickColor.new("Really black")
  789. handle117.TopSurface = "Smooth"
  790. handle117.CanCollide = false
  791. handle117.BottomSurface = "Smooth"
  792. handle117.Locked = true
  793. handle117.Size = Vector3.new(1, 1, 1)
  794. mesh = Instance.new("CylinderMesh")
  795. mesh.Parent = handle117
  796. mesh.Scale = Vector3.new(0.36, 1, 0.36)
  797. weld = Instance.new("Weld")
  798. weld.Part0 = handle
  799. weld.Part1 = handle117
  800. weld.Parent = handle
  801. weld.C0 = CFrame.new(0, 1.15, -2.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  802.  
  803. handle17 = Instance.new("Part")
  804. handle17.Parent = gun
  805. handle17.Transparency = 0.7
  806. handle17.formFactor = "Symmetric"
  807. handle17.BrickColor = me.Character.Head.BrickColor
  808. handle17.TopSurface = "Smooth"
  809. handle17.CanCollide = false
  810. handle17.BottomSurface = "Smooth"
  811. handle17.Locked = true
  812. handle17.Size = Vector3.new(1, 1, 1)
  813. mesh = Instance.new("CylinderMesh")
  814. mesh.Parent = handle17
  815. mesh.Offset = Vector3.new(0, -100, 0)
  816. mesh.Scale = Vector3.new(0.15, 200, 0.15)
  817. weld = Instance.new("Weld")
  818. weld.Part0 = handle
  819. weld.Part1 = handle17
  820. weld.Parent = handle
  821. weld.C0 = CFrame.new(0, 1.15, -1) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0)
  822.  
  823.  
  824. --[[ Shooting Part --]]
  825.  
  826. ammo = 20
  827. maxammo = 20
  828. clips = 9000
  829. damage = 10
  830. rightshoulder = me.Character.Torso:findFirstChild("Right Shoulder")
  831.  
  832. headshot = Instance.new("Sound")
  833. headshot.SoundId = "a486994e6ff9237acd5c540e45cbe8d5"
  834. headshot.Volume = 0.7
  835. shotsound = Instance.new("Sound")
  836. shotsound.SoundId = "http://www.roblox.com/asset?id=134437784"
  837. shotsound.Pitch = 1
  838. shotsound.Volume = 1
  839. shotsound.Parent = handle
  840. reload = Instance.new("Sound")
  841. reload.SoundId = "http://www.roblox.com/asset/?id=134842220"
  842. reload.Pitch = 1
  843. reload.Parent = handle
  844.  
  845.  
  846. shot = false
  847. function onActivated()
  848. if shot == false then
  849.  
  850. if ammo >= 1 then
  851. shot = true
  852. ammo = ammo - 1
  853. me.PlayerGui.GunGui.Shoot1.Text = "[ Ammo : "..ammo.." | "..maxammo.." ]"
  854. me.PlayerGui.GunGui.Shoot3.Text = "[ Shot a bullet ]"
  855. s = game.Workspace:findFirstChild("OING")
  856. if s ~= nil then
  857. s:Remove()
  858. end
  859. shotsound:play()
  860. a1 = Instance.new("Part")
  861. a1.Parent = game.Workspace
  862. a1.Anchored = true
  863. a1.CanCollide = false
  864. a1.BrickColor = BrickColor.new(24)
  865. a1.Size = Vector3.new(1, 1, 1)
  866. a1.TopSurface = "Smooth"
  867. a1.BottomSurface = "Smooth"
  868. a1.Transparency = 0.3
  869. a1.CFrame = handle117.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-3, 3)/6, math.random(-3, 3)/6, math.random(-3, 3)/6)
  870. d = Instance.new("SpecialMesh")
  871. d.Parent = a1
  872. d.MeshType = "Brick"
  873. d.Scale = Vector3.new(math.random(0, 1)/3, math.random(0, 1)/3, math.random(0, 1)/3)
  874. a2 = Instance.new("Part")
  875. a2.Parent = a1
  876. a2.Anchored = true
  877. a2.CanCollide = false
  878. a2.BrickColor = BrickColor.new(24)
  879. a2.Size = Vector3.new(1, 1, 1)
  880. a2.TopSurface = "Smooth"
  881. a2.BottomSurface = "Smooth"
  882. a2.Transparency = 0.3
  883. a2.CFrame = handle117.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-3, 3)/6, math.random(-3, 3)/6, math.random(-3, 3)/6)
  884. d = Instance.new("SpecialMesh")
  885. d.Parent = a2
  886. d.MeshType = "Brick"
  887. d.Scale = Vector3.new(math.random(0, 1)/3, math.random(0, 1)/3, math.random(0, 1)/3)
  888. a2 = Instance.new("Part")
  889. a2.Parent = a1
  890. a2.Anchored = true
  891. a2.CanCollide = false
  892. a2.BrickColor = BrickColor.new(24)
  893. a2.Size = Vector3.new(1, 1, 1)
  894. a2.TopSurface = "Smooth"
  895. a2.BottomSurface = "Smooth"
  896. a2.Transparency = 0.3
  897. a2.CFrame = handle117.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-3, 3)/6, math.random(-3, 3)/6, math.random(-3, 3)/6)
  898. d = Instance.new("SpecialMesh")
  899. d.Parent = a2
  900. d.MeshType = "Brick"
  901. d.Scale = Vector3.new(math.random(0, 1)/3, math.random(0, 1)/3, math.random(0, 1)/3)
  902. a2 = Instance.new("Part")
  903. a2.Parent = a1
  904. a2.Anchored = true
  905. a2.CanCollide = false
  906. a2.BrickColor = BrickColor.new(24)
  907. a2.Size = Vector3.new(1, 1, 1)
  908. a2.TopSurface = "Smooth"
  909. a2.BottomSurface = "Smooth"
  910. a2.Transparency = 0.3
  911. a2.CFrame = handle117.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-3, 3)/6, math.random(-3, 3)/6, math.random(-3, 3)/6)
  912. d = Instance.new("SpecialMesh")
  913. d.Parent = a2
  914. d.MeshType = "Brick"
  915. d.Scale = Vector3.new(math.random(0, 1)/3, math.random(0, 1)/3, math.random(0, 1)/3)
  916.  
  917.  
  918. bullet = Instance.new("Part")
  919. bullet.Parent = game.Workspace
  920. bullet.Size = Vector3.new(1, 1, 1)
  921. bullet.CFrame = handle117.CFrame*CFrame.new(Vector3.new(0, 0, 0.1))
  922. bullet.Name = "OING"
  923. a = Instance.new("SpecialMesh")
  924. a.Parent = bullet
  925. a.MeshType = "Brick"
  926. a.Scale = Vector3.new(0.3, 0.3, 0.3)
  927. bullet.Locked = true
  928. bullet.TopSurface = "Smooth"
  929. bullet.BottomSurface = "Smooth"
  930. bullet.Anchored = false
  931. bullet:BreakJoints()
  932.  
  933. b = Instance.new("BodyVelocity")
  934. b.Parent = bullet
  935. b.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  936. b.velocity = handle117.CFrame.lookVector * 500 + Vector3.new(math.random(-1, 1)/30, math.random(-1, 1)/30, math.random(-1, 1)/30)
  937.  
  938. function kill(hit)
  939. humanoid = hit.Parent:findFirstChild("Humanoid")
  940. if humanoid ~= nil then
  941. if hit.Parent ~= me.Character then
  942. if hit.Name == "Head" then
  943. wth = headshot:clone()
  944. wth.Parent = hit
  945. wth:play()
  946. humanoid.MaxHealth = 0
  947. humanoid.Health = 0
  948. end
  949. humanoid.MaxHealth = 100
  950. humanoid.Health = humanoid.Health - damage
  951. bullet:Remove()
  952. end
  953. end
  954. end
  955. bullet.Touched:connect(kill)
  956.  
  957. function kill2(hit)
  958. humanoid = hit.Parent:findFirstChild("Zombie")
  959. if humanoid ~= nil then
  960. if hit.Parent ~= me.Character then
  961. if hit.Name == "Head" then
  962. wth = headshot:clone()
  963. wth.Parent = hit
  964. wth:play()
  965. humanoid.MaxHealth = 0
  966. humanoid.Health = 0
  967. end
  968. humanoid.MaxHealth = 100
  969. humanoid.Health = humanoid.Health - damage
  970. bullet:Remove()
  971. end
  972. end
  973. end
  974. bullet.Touched:connect(kill2)
  975.  
  976.  
  977. weld2.C0 = weld2.C0 * CFrame.fromEulerAnglesXYZ(-0.1, 0, 0)
  978. rightshoulder.C0 = rightshoulder.C0 * CFrame.fromEulerAnglesXYZ(0, 0, 0.05)
  979. wait()
  980. weld2.C0 = weld2.C0 * CFrame.fromEulerAnglesXYZ(-0.1, 0, 0)
  981. rightshoulder.C0 = rightshoulder.C0 * CFrame.fromEulerAnglesXYZ(0, 0, 0.05)
  982. wait()
  983. weld2.C0 = weld2.C0 * CFrame.fromEulerAnglesXYZ(0.1, 0, 0)
  984. rightshoulder.C0 = rightshoulder.C0 * CFrame.fromEulerAnglesXYZ(0, 0, -0.05)
  985. wait()
  986. weld2.C0 = weld2.C0 * CFrame.fromEulerAnglesXYZ(0.1, 0, 0)
  987. rightshoulder.C0 = rightshoulder.C0 * CFrame.fromEulerAnglesXYZ(0, 0, -0.05)
  988. wait()
  989. a1:Remove()
  990. shot = false
  991. end
  992.  
  993. if ammo <= 0 then
  994. hax = game.Workspace:findFirstChild("CLIP")
  995. if hax ~= nil then
  996. hax:Remove()
  997. end
  998. if clips <= 0 then
  999. me.PlayerGui.GunGui.Shoot3.Text = "[ No more clips! ]"
  1000. end
  1001. if clips >= 1 then
  1002. shot = true
  1003. clips = clips - 1
  1004. me.PlayerGui.GunGui.Shoot2.Text = "[ Clips : "..clips.." | 10 ]"
  1005. reload:play()
  1006. for i = 1 , 7 do
  1007. rightshoulder.C0 = rightshoulder.C0 * CFrame.fromEulerAnglesXYZ(0, 0, 0.2)
  1008. wait()
  1009. end
  1010. rightshoulder.C0 = rightshoulder.C0 * CFrame.fromEulerAnglesXYZ(0, 0, 0.17)
  1011. wait()
  1012.  
  1013. rightshoulder.C0 = rightshoulder.C0 * CFrame.new(Vector3.new(-0.1, 0, 0))
  1014. wait()
  1015.  
  1016.  
  1017.  
  1018. rightshoulder.C0 = rightshoulder.C0 * CFrame.new(Vector3.new(-0.1, 0, 0))
  1019. handle3 = Instance.new("Part")
  1020. handle3.Parent = game.Workspace
  1021. handle3.Transparency = 0
  1022. handle3.Name = "CLIP"
  1023. handle3.formFactor = "Symmetric"
  1024. handle3.BrickColor = BrickColor.new(26)
  1025. handle3.TopSurface = "Smooth"
  1026. handle3.BottomSurface = "Smooth"
  1027. handle3.Locked = true
  1028. handle3.Size = Vector3.new(1, 1, 1)
  1029. mesh = Instance.new("SpecialMesh")
  1030. mesh.Parent = handle3
  1031. mesh.MeshType = "Brick"
  1032. mesh.Scale = Vector3.new(0.35, 0.9, 0.4)
  1033. handle3.CFrame = handle2.CFrame * CFrame.new(0, -0.2, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1034. wait(0.05)
  1035. rightshoulder.C0 = rightshoulder.C0 * CFrame.new(Vector3.new(0.1, 0, 0))
  1036. wait()
  1037. rightshoulder.C0 = rightshoulder.C0 * CFrame.new(Vector3.new(0.1, 0, 0))
  1038. wait()
  1039. rightshoulder.C0 = rightshoulder.C0 * CFrame.new(Vector3.new(0.1, 0, 0))
  1040. wait()
  1041. rightshoulder.C0 = rightshoulder.C0 * CFrame.new(Vector3.new(-0.1, 0, 0))
  1042. wait()
  1043. for i = 1 , 7 do
  1044. rightshoulder.C0 = rightshoulder.C0 * CFrame.fromEulerAnglesXYZ(0, 0, -0.2)
  1045. wait()
  1046. end
  1047. rightshoulder.C0 = rightshoulder.C0 * CFrame.fromEulerAnglesXYZ(0, 0, -0.17)
  1048. ammo = maxammo
  1049. me.PlayerGui.GunGui.Shoot1.Text = "[ Ammo : "..ammo.." | "..maxammo.." ]"
  1050. me.PlayerGui.GunGui.Shoot3.Text = "[ Reloaded ]"
  1051. wait()
  1052. shot = false
  1053.  
  1054.  
  1055. end
  1056. end
  1057.  
  1058.  
  1059. end
  1060. end
  1061.  
  1062.  
  1063.  
  1064.  
  1065.  
  1066.  
  1067.  
  1068. function onUnequipped(mouse)
  1069. gui = me.PlayerGui:findFirstChild("GunGui")
  1070. if gui ~= nil then
  1071. gui:Remove()
  1072. end
  1073. end
  1074.  
  1075.  
  1076.  
  1077.  
  1078. function onKeyDown(key)
  1079. key:lower()
  1080. if key == "e" then
  1081. game.Workspace:BreakJoints()
  1082. end
  1083. end
  1084.  
  1085.  
  1086.  
  1087.  
  1088.  
  1089.  
  1090.  
  1091.  
  1092.  
  1093.  
  1094. function onEquipped(mouse)
  1095.  
  1096. mouse.KeyDown:connect(onKeyDown)
  1097.  
  1098. gui = me.PlayerGui:findFirstChild("GunGui")
  1099. if gui ~= nil then
  1100. gui:Remove()
  1101. end
  1102. gui = Instance.new("ScreenGui")
  1103. gui.Parent = me.PlayerGui
  1104. gui.Name = "GunGui"
  1105.  
  1106. show = Instance.new("TextButton")
  1107. show.Parent = gui
  1108. show.Name = "Shoot1"
  1109. show.BackgroundTransparency = 0.5
  1110. show.Position = UDim2.new(0.02, 0, 0.3, 0)
  1111. show.Size = UDim2.new(0.15, 0, 0.05, 0)
  1112. show.Text = "[ Ammo : "..ammo.." | "..maxammo.." ]"
  1113. show = Instance.new("TextButton")
  1114. show.Parent = gui
  1115. show.Name = "Shoot2"
  1116. show.BackgroundTransparency = 0.5
  1117. show.Position = UDim2.new(0.02, 0, 0.35, 0)
  1118. show.Size = UDim2.new(0.15, 0, 0.05, 0)
  1119. show.Text = "[ Clips : "..clips.." | 10 ]"
  1120. show = Instance.new("TextButton")
  1121. show.Parent = gui
  1122. show.Name = "Shoot3"
  1123. show.BackgroundTransparency = 0.5
  1124. show.Position = UDim2.new(0.02, 0, 0.4, 0)
  1125. show.Size = UDim2.new(0.15, 0, 0.05, 0)
  1126. show.Text = "[ Status : None ]"
  1127.  
  1128. show2 = Instance.new("TextButton")
  1129. show2.Parent = gui
  1130. show2.Name = "Shoot4"
  1131. show2.BackgroundTransparency = 0.5
  1132. show2.Position = UDim2.new(0.02, 0, 0.45, 0)
  1133. show2.Size = UDim2.new(0.15, 0, 0.05, 0)
  1134. show2.Text = "[ Reload ]"
  1135.  
  1136. clicked = false
  1137. function click()
  1138. if clicked == false then
  1139. hax = game.Workspace:findFirstChild("CLIP")
  1140. if hax ~= nil then
  1141. hax:Remove()
  1142. end
  1143. if clips <= 0 then
  1144. me.PlayerGui.GunGui.Shoot3.Text = "[ No more clips! ]"
  1145. end
  1146. if clips >= 1 then
  1147. clicked = true
  1148. shot = true
  1149. clips = clips - 1
  1150. reload:play()
  1151. me.PlayerGui.GunGui.Shoot2.Text = "[ Clips : "..clips.." | 10 ]"
  1152. for i = 1 , 7 do
  1153. rightshoulder.C0 = rightshoulder.C0 * CFrame.fromEulerAnglesXYZ(0, 0, 0.2)
  1154. wait()
  1155. end
  1156. rightshoulder.C0 = rightshoulder.C0 * CFrame.fromEulerAnglesXYZ(0, 0, 0.17)
  1157. wait()
  1158.  
  1159. rightshoulder.C0 = rightshoulder.C0 * CFrame.new(Vector3.new(-0.1, 0, 0))
  1160. wait()
  1161.  
  1162.  
  1163.  
  1164. rightshoulder.C0 = rightshoulder.C0 * CFrame.new(Vector3.new(-0.1, 0, 0))
  1165. handle3 = Instance.new("Part")
  1166. handle3.Parent = game.Workspace
  1167. handle3.Transparency = 0
  1168. handle3.Name = "CLIP"
  1169. handle3.formFactor = "Symmetric"
  1170. handle3.BrickColor = BrickColor.new(26)
  1171. handle3.TopSurface = "Smooth"
  1172. handle3.BottomSurface = "Smooth"
  1173. handle3.Locked = true
  1174. handle3.Size = Vector3.new(1, 1, 1)
  1175. mesh = Instance.new("SpecialMesh")
  1176. mesh.Parent = handle3
  1177. mesh.MeshType = "Brick"
  1178. mesh.Scale = Vector3.new(0.35, 0.9, 0.4)
  1179. handle3.CFrame = handle2.CFrame * CFrame.new(0, -0.2, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1180. wait(0.05)
  1181. rightshoulder.C0 = rightshoulder.C0 * CFrame.new(Vector3.new(0.1, 0, 0))
  1182. wait()
  1183. rightshoulder.C0 = rightshoulder.C0 * CFrame.new(Vector3.new(0.1, 0, 0))
  1184. wait()
  1185. rightshoulder.C0 = rightshoulder.C0 * CFrame.new(Vector3.new(0.1, 0, 0))
  1186. wait()
  1187. rightshoulder.C0 = rightshoulder.C0 * CFrame.new(Vector3.new(-0.1, 0, 0))
  1188. wait()
  1189. for i = 1 , 7 do
  1190. rightshoulder.C0 = rightshoulder.C0 * CFrame.fromEulerAnglesXYZ(0, 0, -0.2)
  1191. wait()
  1192. end
  1193. rightshoulder.C0 = rightshoulder.C0 * CFrame.fromEulerAnglesXYZ(0, 0, -0.17)
  1194. ammo = maxammo
  1195. me.PlayerGui.GunGui.Shoot1.Text = "[ Ammo : "..ammo.." | "..maxammo.." ]"
  1196. me.PlayerGui.GunGui.Shoot3.Text = "[ Reloaded ]"
  1197. wait()
  1198. shot = false
  1199. clicked = false
  1200.  
  1201. end
  1202.  
  1203. end
  1204. end
  1205. show2.MouseButton1Click:connect(click)
  1206.  
  1207.  
  1208. end
  1209.  
  1210. gun.Equipped:connect(onEquipped)
  1211. gun.Unequipped:connect(onUnequipped)
  1212. gun.Activated:connect(onActivated)
  1213.  
  1214. script.Parent = gun
  1215.  
  1216.  
  1217.  
  1218. end
  1219. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement