Advertisement
Xxhax4prosxX

Untitled

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