Advertisement
Dinosaurus

[R] PIKMAN LAUNCHER SCRIPT

Jun 17th, 2016
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.24 KB | None | 0 0
  1. User = game.Players.LocalPlayer
  2. --Press q then e 2 times then press q again to reload
  3. Ammo = 0
  4. CageOpen = false
  5. Char = User.Character
  6. Char.Humanoid.MaxHealth = 100000000
  7. Char.Humanoid.Health = 9001
  8. cen = Instance.new("Part", User.Character)
  9. cen.BottomSurface = "Smooth"
  10. cen.TopSurface = "Smooth"
  11. cen.CanCollide = false
  12. cen.formFactor = "Symmetric"
  13. cen.Size = Vector3.new(1,1,1)
  14. cen.BrickColor = BrickColor.new("Really black")
  15. cen.Transparency = 1
  16.  
  17. cen2 = Instance.new("Part", User.Character)
  18. cen2.BottomSurface = "Smooth"
  19. cen2.TopSurface = "Smooth"
  20. cen2.CanCollide = false
  21. cen2.formFactor = "Symmetric"
  22. cen2.Size = Vector3.new(1,1,1)
  23. cen2.BrickColor = BrickColor.new("Really black")
  24. cen2.Transparency = 1
  25.  
  26. cenw = Instance.new("Weld", cen)
  27. cenw.Part0 = Char["Torso"]
  28. cenw.Part1 = cen
  29. cenw.C1 = CFrame.new(-1.5,-0.5,0)
  30.  
  31. cenw2 = Instance.new("Weld", cen2)
  32. cenw2.Part0 = Char["Torso"]
  33. cenw2.Part1 = cen2
  34. cenw2.C1 = CFrame.new(1.5,-0.5,0)
  35.  
  36.  
  37.  
  38. haw = Instance.new("Weld", cen)
  39. haw.Part0 = cen
  40. haw.Part1 = Char["Right Arm"]
  41. haw.C1 = CFrame.new(0,0.5,0)
  42.  
  43. haw2 = Instance.new("Weld", cen2)
  44. haw2.Part0 = cen2
  45. haw2.Part1 = Char["Left Arm"]
  46. haw2.C1 = CFrame.new(0,0.5,0)
  47.  
  48. haw.C0 = CFrame.Angles(math.rad(90),0,math.rad(-15))
  49. haw.C1 = CFrame.new(0.5,1,0)
  50.  
  51. haw2.C0 = CFrame.Angles(math.rad(90),0,math.rad(35))
  52. haw2.C1 = CFrame.new(0,1.2,0)
  53.  
  54. --------------------------------
  55. prt1 = Instance.new("Part", Char)
  56. prt1.Size = Vector3.new(1,1,1)
  57. prt1.CanCollide = false
  58. prt1.BrickColor = BrickColor.new("Reddish brown")
  59. prt1.TopSurface = "Smooth"
  60. prt1.Transparency = 0
  61. prt1.BottomSurface = "Smooth"
  62. prtM = Instance.new("BlockMesh", prt1)
  63. prtM.Scale = Vector3.new(0.7,1,0.7)
  64. prt1:BreakJoints()
  65. prtW = Instance.new("Weld", prt1)
  66. prtW.Part0 = Char["Right Arm"]
  67. prtW.Part1 = prt1
  68. prtW.C1 = CFrame.new(0,0,0.65)*CFrame.Angles(math.rad(0),0,math.rad(0))
  69.  
  70. prt2 = Instance.new("Part", Char)
  71. prt2.Size = Vector3.new(1,1,1)
  72. prt2.CanCollide = false
  73. prt2.BrickColor = BrickColor.new("Reddish brown")
  74. prt2.TopSurface = "Smooth"
  75. prt2.Transparency = 0
  76. prt2.BottomSurface = "Smooth"
  77. prtM2 = Instance.new("CylinderMesh", prt2)
  78. prtM2.Scale = Vector3.new(0.5,1,0.5)
  79. prt2:BreakJoints()
  80. prtW2 = Instance.new("Weld", prt2)
  81. prtW2.Part0 = prt1
  82. prtW2.Part1 = prt2
  83. prtW2.C1 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(0),0,math.rad(0))
  84.  
  85. prt3 = Instance.new("Part", Char)
  86. prt3.Size = Vector3.new(1,1,1)
  87. prt3.CanCollide = false
  88. prt3.BrickColor = BrickColor.new("Light stone grey")
  89. prt3.TopSurface = "Smooth"
  90. prt3.Transparency = 0
  91. prt3.BottomSurface = "Smooth"
  92. prtM3 = Instance.new("BlockMesh", prt3)
  93. prtM3.Scale = Vector3.new(0.6,0.3,0.4)
  94. prt3:BreakJoints()
  95. prtW3 = Instance.new("Weld", prt3)
  96. prtW3.Part0 = prt2
  97. prtW3.Part1 = prt3
  98. prtW3.C1 = CFrame.new(0,0.75,0)*CFrame.Angles(math.rad(0),0,math.rad(0))
  99.  
  100. prt8 = Instance.new("Part", Char)
  101. prt8.Size = Vector3.new(1,2,1)
  102. prt8.CanCollide = false
  103. prt8.BrickColor = BrickColor.new("Stone grey")
  104. prt8.TopSurface = "Smooth"
  105. prt8.Transparency = 0
  106. prt8.BottomSurface = "Smooth"
  107. prtM8 = Instance.new("SpecialMesh", prt8)
  108. prtM8.MeshType = "Wedge"
  109. prtM8.Scale = Vector3.new(0.1,1,0.1)
  110. prt8:BreakJoints()
  111. prtW8 = Instance.new("Weld", prt3)
  112. prtW8.Part0 = prt3
  113. prtW8.Part1 = prt8
  114. prtW8.C1 = CFrame.new(0,-4.8,0.1)*CFrame.Angles(math.rad(180),math.rad(180),math.rad(0))
  115. prt8.Touched:connect(function(hit)
  116. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= Char.Name then
  117. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 5
  118. end
  119. end)
  120. prt4 = Instance.new("Part", Char)
  121. prt4.Size = Vector3.new(1,1,1)
  122. prt4.CanCollide = false
  123. prt4.BrickColor = BrickColor.new("Dark stone grey")
  124. prt4.TopSurface = "Smooth"
  125. prt4.Transparency = 0
  126. prt4.BottomSurface = "Smooth"
  127. prtM4 = Instance.new("CylinderMesh", prt4)
  128. prtM4.Scale = Vector3.new(0.3,3,0.3)
  129. prt4:BreakJoints()
  130. prtW4 = Instance.new("Weld", prt4)
  131. prtW4.Part0 = prt3
  132. prtW4.Part1 = prt4
  133. prtW4.C1 = CFrame.new(0.15,1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(0))
  134.  
  135. prt5 = Instance.new("Part", Char)
  136. prt5.Size = Vector3.new(1,1,1)
  137. prt5.CanCollide = false
  138. prt5.BrickColor = BrickColor.new("Dark stone grey")
  139. prt5.TopSurface = "Smooth"
  140. prt5.Transparency = 0
  141. prt5.BottomSurface = "Smooth"
  142. prtM5 = Instance.new("CylinderMesh", prt5)
  143. prtM5.Scale = Vector3.new(0.3,3,0.3)
  144. prt5:BreakJoints()
  145. prtW5 = Instance.new("Weld", prt5)
  146. prtW5.Part0 = prt3
  147. prtW5.Part1 = prt5
  148. prtW5.C1 = CFrame.new(-0.15,1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(0))
  149.  
  150. prt6 = Instance.new("Part", Char)
  151. prt6.Size = Vector3.new(1,1,1)
  152. prt6.CanCollide = false
  153. prt6.BrickColor = BrickColor.new("Reddish brown")
  154. prt6.TopSurface = "Smooth"
  155. prt6.Transparency = 0
  156. prt6.BottomSurface = "Smooth"
  157. prtM6 = Instance.new("BlockMesh", prt6)
  158. prtM6.Scale = Vector3.new(0.6,2,0.1)
  159. prt6:BreakJoints()
  160. prtW6 = Instance.new("Weld", prt6)
  161. prtW6.Part0 = prt4
  162. prtW6.Part1 = prt6
  163. prtW6.C1 = CFrame.new(-0.15,-0.51,-0.1)*CFrame.Angles(math.rad(0),0,math.rad(0))
  164.  
  165. prt7 = Instance.new("Part", Char)
  166. prt7.Size = Vector3.new(1,1,1)
  167. prt7.CanCollide = false
  168. prt7.BrickColor = BrickColor.new("Reddish brown")
  169. prt7.TopSurface = "Smooth"
  170. prt7.Transparency = 0
  171. prt7.BottomSurface = "Smooth"
  172. prtM7 = Instance.new("BlockMesh", prt7)
  173. prtM7.Scale = Vector3.new(0.7,1,0.7)
  174. prt7:BreakJoints()
  175. prtW7 = Instance.new("Weld", prt7)
  176. prtW7.Part0 = prt1
  177. prtW7.Part1 = prt7
  178. prtW7.C1 = CFrame.new(0,-1.09,0.14)*CFrame.Angles(math.rad(-15),0,math.rad(0))
  179.  
  180.  
  181. shell = Instance.new("Part", Char)
  182. shell.Size = Vector3.new(1,1,1)
  183. shell.CanCollide = false
  184. shell.BrickColor = BrickColor.new("Really red")
  185. shell.Transparency = 0
  186. shell.BottomSurface = "Smooth"
  187. shellM = Instance.new("CylinderMesh", shell)
  188. shellM.Scale = Vector3.new(0.2,0.4,0.2)
  189. shell:BreakJoints()
  190. shellW = Instance.new("Weld", shell)
  191. shellW.Part0 = Char["Torso"]
  192. shellW.Part1 = shell
  193. shellW.C1 = CFrame.new(0,0,-0.6)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(45))
  194.  
  195. cap = Instance.new("Part", Char)
  196. cap.Size = Vector3.new(1,1,1)
  197. cap.CanCollide = false
  198. cap.BrickColor = BrickColor.new("Stone grey")
  199. cap.Transparency = 0
  200. cap.BottomSurface = "Smooth"
  201. capM = Instance.new("CylinderMesh", cap)
  202. capM.Scale = Vector3.new(0.21,0.1,0.21)
  203. cap:BreakJoints()
  204. capW = Instance.new("Weld", cap)
  205. capW.Part0 = shell
  206. capW.Part1 = cap
  207. capW.C1 = CFrame.new(0,-0.2,0)*CFrame.Angles(math.rad(0),0,math.rad(0))
  208.  
  209. shell2 = Instance.new("Part", Char)
  210. shell2.Size = Vector3.new(1,1,1)
  211. shell2.CanCollide = false
  212. shell2.BrickColor = BrickColor.new("Really red")
  213. shell2.Transparency = 0
  214. shell2.BottomSurface = "Smooth"
  215. shellM2 = Instance.new("CylinderMesh", shell2)
  216. shellM2.Scale = Vector3.new(0.2,0.4,0.2)
  217. shell2:BreakJoints()
  218. shellW2 = Instance.new("Weld", shell2)
  219. shellW2.Part0 = shell
  220. shellW2.Part1 = shell2
  221. shellW2.C1 = CFrame.new(0.2,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  222.  
  223. cap2 = Instance.new("Part", Char)
  224. cap2.Size = Vector3.new(1,1,1)
  225. cap2.CanCollide = false
  226. cap2.BrickColor = BrickColor.new("Stone grey")
  227. cap2.Transparency = 0
  228. cap2.BottomSurface = "Smooth"
  229. capM2 = Instance.new("CylinderMesh", cap2)
  230. capM2.Scale = Vector3.new(0.21,0.1,0.21)
  231. cap2:BreakJoints()
  232. capW2 = Instance.new("Weld", cap2)
  233. capW2.Part0 = shell2
  234. capW2.Part1 = cap2
  235. capW2.C1 = CFrame.new(0,-0.2,0)*CFrame.Angles(math.rad(0),0,math.rad(0))
  236.  
  237. shell3 = Instance.new("Part", Char)
  238. shell3.Size = Vector3.new(1,1,1)
  239. shell3.CanCollide = false
  240. shell3.BrickColor = BrickColor.new("Really red")
  241. shell3.Transparency = 0
  242. shell3.BottomSurface = "Smooth"
  243. shellM3 = Instance.new("CylinderMesh", shell3)
  244. shellM3.Scale = Vector3.new(0.2,0.4,0.2)
  245. shell3:BreakJoints()
  246. shellW3 = Instance.new("Weld", shell3)
  247. shellW3.Part0 = shell2
  248. shellW3.Part1 = shell3
  249. shellW3.C1 = CFrame.new(0.2,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  250.  
  251. cap3 = Instance.new("Part", Char)
  252. cap3.Size = Vector3.new(1,1,1)
  253. cap3.CanCollide = false
  254. cap3.BrickColor = BrickColor.new("Stone grey")
  255. cap3.Transparency = 0
  256. cap3.BottomSurface = "Smooth"
  257. capM3 = Instance.new("CylinderMesh", cap3)
  258. capM3.Scale = Vector3.new(0.21,0.1,0.21)
  259. cap3:BreakJoints()
  260. capW3 = Instance.new("Weld", cap3)
  261. capW3.Part0 = shell3
  262. capW3.Part1 = cap3
  263. capW3.C1 = CFrame.new(0,-0.2,0)*CFrame.Angles(math.rad(0),0,math.rad(0))
  264.  
  265. shell4 = Instance.new("Part", Char)
  266. shell4.Size = Vector3.new(1,1,1)
  267. shell4.CanCollide = false
  268. shell4.BrickColor = BrickColor.new("Really red")
  269. shell4.Transparency = 0
  270. shell4.BottomSurface = "Smooth"
  271. shellM4 = Instance.new("CylinderMesh", shell4)
  272. shellM4.Scale = Vector3.new(0.2,0.4,0.2)
  273. shell4:BreakJoints()
  274. shellW4 = Instance.new("Weld", shell4)
  275. shellW4.Part0 = shell3
  276. shellW4.Part1 = shell4
  277. shellW4.C1 = CFrame.new(0.2,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  278.  
  279. cap4 = Instance.new("Part", Char)
  280. cap4.Size = Vector3.new(1,1,1)
  281. cap4.CanCollide = false
  282. cap4.BrickColor = BrickColor.new("Stone grey")
  283. cap4.Transparency = 0
  284. cap4.BottomSurface = "Smooth"
  285. capM4 = Instance.new("CylinderMesh", cap4)
  286. capM4.Scale = Vector3.new(0.21,0.1,0.21)
  287. cap4:BreakJoints()
  288. capW4 = Instance.new("Weld", cap4)
  289. capW4.Part0 = shell4
  290. capW4.Part1 = cap4
  291. capW4.C1 = CFrame.new(0,-0.2,0)*CFrame.Angles(math.rad(0),0,math.rad(0))
  292.  
  293. shell5 = Instance.new("Part", Char)
  294. shell5.Size = Vector3.new(1,1,1)
  295. shell5.CanCollide = false
  296. shell5.BrickColor = BrickColor.new("Really red")
  297. shell5.Transparency = 0
  298. shell5.BottomSurface = "Smooth"
  299. shellM5 = Instance.new("CylinderMesh", shell5)
  300. shellM5.Scale = Vector3.new(0.2,0.4,0.2)
  301. shell5:BreakJoints()
  302. shellW5 = Instance.new("Weld", shell5)
  303. shellW5.Part0 = shell4
  304. shellW5.Part1 = shell5
  305. shellW5.C1 = CFrame.new(0.2,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  306.  
  307. cap5 = Instance.new("Part", Char)
  308. cap5.Size = Vector3.new(1,1,1)
  309. cap5.CanCollide = false
  310. cap5.BrickColor = BrickColor.new("Stone grey")
  311. cap5.Transparency = 0
  312. cap5.BottomSurface = "Smooth"
  313. capM5 = Instance.new("CylinderMesh", cap5)
  314. capM5.Scale = Vector3.new(0.21,0.1,0.21)
  315. cap5:BreakJoints()
  316. capW5 = Instance.new("Weld", cap5)
  317. capW5.Part0 = shell5
  318. capW5.Part1 = cap5
  319. capW5.C1 = CFrame.new(0,-0.2,0)*CFrame.Angles(math.rad(0),0,math.rad(0))
  320.  
  321. shell22 = Instance.new("Part", Char)
  322. shell22.Size = Vector3.new(1,1,1)
  323. shell22.CanCollide = false
  324. shell22.BrickColor = BrickColor.new("Really red")
  325. shell22.Transparency = 0
  326. shell22.BottomSurface = "Smooth"
  327. shellM22 = Instance.new("CylinderMesh", shell22)
  328. shellM22.Scale = Vector3.new(0.2,0.4,0.2)
  329. shell22:BreakJoints()
  330. shellW22 = Instance.new("Weld", shell22)
  331. shellW22.Part0 = shell
  332. shellW22.Part1 = shell22
  333. shellW22.C1 = CFrame.new(-0.2,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  334.  
  335. cap22 = Instance.new("Part", Char)
  336. cap22.Size = Vector3.new(1,1,1)
  337. cap22.CanCollide = false
  338. cap22.BrickColor = BrickColor.new("Stone grey")
  339. cap22.Transparency = 0
  340. cap22.BottomSurface = "Smooth"
  341. capM22 = Instance.new("CylinderMesh", cap22)
  342. capM22.Scale = Vector3.new(0.21,0.1,0.21)
  343. cap22:BreakJoints()
  344. capW22 = Instance.new("Weld", cap22)
  345. capW22.Part0 = shell22
  346. capW22.Part1 = cap22
  347. capW22.C1 = CFrame.new(0,-0.2,0)*CFrame.Angles(math.rad(0),0,math.rad(0))
  348.  
  349. shell32 = Instance.new("Part", Char)
  350. shell32.Size = Vector3.new(1,1,1)
  351. shell32.CanCollide = false
  352. shell32.BrickColor = BrickColor.new("Really red")
  353. shell32.Transparency = 0
  354. shell32.BottomSurface = "Smooth"
  355. shellM32 = Instance.new("CylinderMesh", shell32)
  356. shellM32.Scale = Vector3.new(0.2,0.4,0.2)
  357. shell32:BreakJoints()
  358. shellW32 = Instance.new("Weld", shell32)
  359. shellW32.Part0 = shell22
  360. shellW32.Part1 = shell32
  361. shellW32.C1 = CFrame.new(-0.2,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  362.  
  363. cap32 = Instance.new("Part", Char)
  364. cap32.Size = Vector3.new(1,1,1)
  365. cap32.CanCollide = false
  366. cap32.BrickColor = BrickColor.new("Stone grey")
  367. cap32.Transparency = 0
  368. cap32.BottomSurface = "Smooth"
  369. capM32 = Instance.new("CylinderMesh", cap32)
  370. capM32.Scale = Vector3.new(0.21,0.1,0.21)
  371. cap32:BreakJoints()
  372. capW32 = Instance.new("Weld", cap32)
  373. capW32.Part0 = shell32
  374. capW32.Part1 = cap32
  375. capW32.C1 = CFrame.new(0,-0.2,0)*CFrame.Angles(math.rad(0),0,math.rad(0))
  376.  
  377. shell42 = Instance.new("Part", Char)
  378. shell42.Size = Vector3.new(1,1,1)
  379. shell42.CanCollide = false
  380. shell42.BrickColor = BrickColor.new("Really red")
  381. shell42.Transparency = 0
  382. shell42.BottomSurface = "Smooth"
  383. shellM42 = Instance.new("CylinderMesh", shell42)
  384. shellM42.Scale = Vector3.new(0.2,0.4,0.2)
  385. shell42:BreakJoints()
  386. shellW42 = Instance.new("Weld", shell42)
  387. shellW42.Part0 = shell32
  388. shellW42.Part1 = shell42
  389. shellW42.C1 = CFrame.new(-0.2,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  390.  
  391. cap42 = Instance.new("Part", Char)
  392. cap42.Size = Vector3.new(1,1,1)
  393. cap42.CanCollide = false
  394. cap42.BrickColor = BrickColor.new("Stone grey")
  395. cap42.Transparency = 0
  396. cap42.BottomSurface = "Smooth"
  397. capM42 = Instance.new("CylinderMesh", cap42)
  398. capM42.Scale = Vector3.new(0.21,0.1,0.21)
  399. cap42:BreakJoints()
  400. capW42 = Instance.new("Weld", cap42)
  401. capW42.Part0 = shell42
  402. capW42.Part1 = cap42
  403. capW42.C1 = CFrame.new(0,-0.2,0)*CFrame.Angles(math.rad(0),0,math.rad(0))
  404.  
  405. shell52 = Instance.new("Part", Char)
  406. shell52.Size = Vector3.new(1,1,1)
  407. shell52.CanCollide = false
  408. shell52.BrickColor = BrickColor.new("Really red")
  409. shell52.Transparency = 0
  410. shell52.BottomSurface = "Smooth"
  411. shellM52 = Instance.new("CylinderMesh", shell52)
  412. shellM52.Scale = Vector3.new(0.2,0.4,0.2)
  413. shell52:BreakJoints()
  414. shellW52 = Instance.new("Weld", shell52)
  415. shellW52.Part0 = shell42
  416. shellW52.Part1 = shell52
  417. shellW52.C1 = CFrame.new(-0.2,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  418.  
  419. cap52 = Instance.new("Part", Char)
  420. cap52.Size = Vector3.new(1,1,1)
  421. cap52.CanCollide = false
  422. cap52.BrickColor = BrickColor.new("Stone grey")
  423. cap52.Transparency = 0
  424. cap52.BottomSurface = "Smooth"
  425. capM52 = Instance.new("CylinderMesh", cap52)
  426. capM52.Scale = Vector3.new(0.21,0.1,0.21)
  427. cap52:BreakJoints()
  428. capW52 = Instance.new("Weld", cap52)
  429. capW52.Part0 = shell52
  430. capW52.Part1 = cap52
  431. capW52.C1 = CFrame.new(0,-0.2,0)*CFrame.Angles(math.rad(0),0,math.rad(0))
  432.  
  433. trig = Instance.new("Part", Char)
  434. trig.Size = Vector3.new(1,1,1)
  435. trig.CanCollide = false
  436. trig.BrickColor = BrickColor.new("Dark stone grey")
  437. trig.Transparency = 0
  438. trig.BottomSurface = "Smooth"
  439. trigM = Instance.new("SpecialMesh", trig)
  440. trigM.MeshType = "FileMesh"
  441. trigM.MeshId = "http://www.roblox.com/asset/?id=3270017"
  442. trigM.Scale = Vector3.new(0.5,0.5,0.1)
  443. trig:BreakJoints()
  444. trigW = Instance.new("Weld", trig)
  445. trigW.Part0 = prt2
  446. trigW.Part1 = trig
  447. trigW.C1 = CFrame.new(-0.2,0.2,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
  448.  
  449. trig2 = Instance.new("Part", Char)
  450. trig2.Size = Vector3.new(1,1,1)
  451. trig2.CanCollide = false
  452. trig2.BrickColor = BrickColor.new("Dark stone grey")
  453. trig2.Transparency = 0
  454. trig2.BottomSurface = "Smooth"
  455. trigM2 = Instance.new("BlockMesh", trig2)
  456. trigM2.Scale = Vector3.new(0.3,0.05,0.05)
  457. trig2:BreakJoints()
  458. trigW2 = Instance.new("Weld", trig2)
  459. trigW2.Part0 = trig
  460. trigW2.Part1 = trig2
  461. trigW2.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  462.  
  463. shellh = Instance.new("Part", Char)
  464. shellh.Size = Vector3.new(1,1,1)
  465. shellh.CanCollide = false
  466. shellh.BrickColor = BrickColor.new("Really red")
  467. shellh.Transparency = 1
  468. shellh.BottomSurface = "Smooth"
  469. shellMh = Instance.new("CylinderMesh", shellh)
  470. shellMh.Scale = Vector3.new(0.2,0.4,0.2)
  471. shellh:BreakJoints()
  472. shellWh = Instance.new("Weld", shellh)
  473. shellWh.Part0 = Char["Left Arm"]
  474. shellWh.Part1 = shellh
  475. shellWh.C1 = CFrame.new(0,0,1.1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0))
  476.  
  477. caph = Instance.new("Part", Char)
  478. caph.Size = Vector3.new(1,1,1)
  479. caph.CanCollide = false
  480. caph.BrickColor = BrickColor.new("Stone grey")
  481. caph.Transparency = 1
  482. caph.BottomSurface = "Smooth"
  483. capMh = Instance.new("CylinderMesh", caph)
  484. capMh.Scale = Vector3.new(0.21,0.1,0.21)
  485. caph:BreakJoints()
  486. capWh = Instance.new("Weld", caph)
  487. capWh.Part0 = shellh
  488. capWh.Part1 = caph
  489. capWh.C1 = CFrame.new(0,-0.2,0)*CFrame.Angles(math.rad(0),0,math.rad(0))
  490.  
  491. capi = Instance.new("Part", Char)
  492. capi.Size = Vector3.new(1,1,1)
  493. capi.CanCollide = false
  494. capi.BrickColor = BrickColor.new("Stone grey")
  495. capi.Transparency = 1
  496. capi.BottomSurface = "Smooth"
  497. capMi = Instance.new("CylinderMesh", capi)
  498. capMi.Scale = Vector3.new(0.21,0.1,0.21)
  499. capi:BreakJoints()
  500. capWi = Instance.new("Weld", capi)
  501. capWi.Part0 = prt3
  502. capWi.Part1 = capi
  503. capWi.C1 = CFrame.new(0.15,-0.15,0)*CFrame.Angles(math.rad(0),0,math.rad(0))
  504.  
  505.  
  506. capi2 = Instance.new("Part", Char)
  507. capi2.Size = Vector3.new(1,1,1)
  508. capi2.CanCollide = false
  509. capi2.BrickColor = BrickColor.new("Stone grey")
  510. capi2.Transparency = 1
  511. capi2.BottomSurface = "Smooth"
  512. capMi2 = Instance.new("CylinderMesh", capi2)
  513. capMi2.Scale = Vector3.new(0.21,0.1,0.21)
  514. capi2:BreakJoints()
  515. capWi2 = Instance.new("Weld", capi2)
  516. capWi2.Part0 = prt3
  517. capWi2.Part1 = capi2
  518. capWi2.C1 = CFrame.new(-0.15,-0.15,0)*CFrame.Angles(math.rad(0),0,math.rad(0))
  519.  
  520. function Open()
  521. for i = 1,10,0.5 do
  522. haw2.C0 = CFrame.Angles(math.rad(90),0,math.rad(35-i))
  523. haw2.C1 = CFrame.new(0,1.2+i/10,0)
  524. wait()
  525. end
  526. for i = 1,35,1 do
  527. prtW3.C1 = CFrame.new(0,0.75,i/100)*CFrame.Angles(math.rad(i),0,0)
  528. wait()
  529. end
  530. haw2.C0 = CFrame.Angles(math.rad(90),0,math.rad(35))
  531. haw2.C1 = CFrame.new(0,1.2,0)
  532. end
  533.  
  534. function Close()
  535. for i = 1,10,0.5 do
  536. haw2.C0 = CFrame.Angles(math.rad(90),0,math.rad(35-i))
  537. haw2.C1 = CFrame.new(0,1.2+i/10,0)
  538. wait()
  539. end
  540. for i = 1,35,1 do
  541. prtW3.C1 = CFrame.new(0,0.75,0.35-i/100)*CFrame.Angles(math.rad(35-i),0,0)
  542. wait()
  543. end
  544.  
  545. local fire = Instance.new("Sound", workspace)
  546. fire.SoundId = "http://www.roblox.com/asset/?id=13510737"
  547. fire.Pitch = 1
  548. fire.PlayOnRemove = true
  549. wait()
  550. fire.Parent = nil
  551.  
  552. haw2.C0 = CFrame.Angles(math.rad(90),0,math.rad(35))
  553. haw2.C1 = CFrame.new(0,1.2,0)
  554. end
  555.  
  556. function Load()
  557. for i = 1,180,10 do
  558. haw2.C0 = CFrame.Angles(math.rad(90-i),0,math.rad(35))
  559. wait()
  560. end
  561. shellh.Transparency = 0
  562. caph.Transparency = 0
  563. for i = 1,180,10 do
  564. haw2.C0 = CFrame.Angles(math.rad(-90+i),0,math.rad(35))
  565. wait()
  566. end
  567. local reload = Instance.new("Sound", workspace)
  568. reload.SoundId = "http://www.roblox.com/asset/?id=13510737"
  569. reload.Pitch = 1.3
  570. reload.PlayOnRemove = true
  571. wait()
  572. reload.Parent = nil
  573. shellh.Transparency = 1
  574. caph.Transparency = 1
  575. haw2.C0 = CFrame.Angles(math.rad(90),0,math.rad(35))
  576. end
  577.  
  578.  
  579.  
  580. if script.Parent.className ~= "HopperBin" then
  581. knife = Instance.new("HopperBin")
  582. knife.Parent = User.Backpack
  583. knife.Name = "Shotgun"
  584. script.Parent = knife
  585. end
  586.  
  587. script.Parent.Selected:connect(function(mouse)
  588. mouse.KeyDown:connect(function(key)
  589. if key == "q" then
  590. if CageOpen == false then
  591. Open()
  592. Shells = math.abs(Ammo - 2)
  593. for i = 1,Shells do
  594. delay(0, function()
  595. local shellf = Instance.new("Part", Char)
  596. shellf.Size = Vector3.new(1,1,1)
  597. shellf.CanCollide = true
  598. shellf.BrickColor = BrickColor.new("Really red")
  599. shellf.Transparency = 0
  600. shellf.BottomSurface = "Smooth"
  601. shellMf = Instance.new("CylinderMesh", shellf)
  602. shellMf.Scale = Vector3.new(0.2,0.4,0.2)
  603. shellf:BreakJoints()
  604. shellf.CFrame = prt3.CFrame
  605. wait(3)
  606. shellf:Remove()
  607. end)
  608. end
  609. CageOpen = true
  610. elseif CageOpen == true then
  611. Close()
  612. CageOpen = false
  613. end
  614.  
  615. elseif key == "e" and CageOpen == true then
  616. Load()
  617. if Ammo == 0 then
  618. Ammo = 1
  619. capi.Transparency = 0
  620. elseif Ammo == 1 then
  621. Ammo = 2
  622. capi2.Transparency = 0
  623. end
  624.  
  625. elseif key == "b" then
  626. for i = 1,10 do
  627. haw.C1 = CFrame.new(0.5,1+i/10,0)
  628. wait()
  629. end
  630. for i = 1,10 do
  631. haw.C1 = CFrame.new(0.5,2-i/10,0)
  632. wait()
  633. end
  634. haw.C1 = CFrame.new(0.5,1,0)
  635. end
  636. end)
  637.  
  638. mouse.Button1Down:connect(function()
  639. if CageOpen == false and Ammo ~= 0 then
  640.  
  641. if Ammo == 2 then
  642. damage = math.random(50,75)
  643.  
  644. local P = Instance.new("Part")
  645. P.Name = "P"
  646. local Place0 = prt5
  647. P.formFactor = 0
  648. P.Size = Vector3.new(1,1,(Place0.Position - mouse.Hit.p).magnitude)
  649. P.CFrame = CFrame.new((Place0.Position + mouse.Hit.p)/2,Place0.Position)
  650. P.Parent = game.Workspace
  651. P.BrickColor = BrickColor.new("Institutional white")
  652. P.Transparency = 0.3
  653. P.Reflectance = 0
  654. P.Anchored = true
  655. P.CanCollide = false
  656. m6 = Instance.new("SpecialMesh")
  657. m6.Scale = Vector3.new(0.3,0.3,1)
  658. m6.MeshType = "Brick"
  659. m6.Parent = P
  660.  
  661. local P2 = Instance.new("Part")
  662. P2.Name = "P2"
  663. local Place0 = prt5
  664. P2.formFactor = 0
  665. P2.Size = Vector3.new(1,1,(Place0.Position - mouse.Hit.p).magnitude)
  666. P2.CFrame = CFrame.new((Place0.Position + mouse.Hit.p+Vector3.new(3,0,0))/2,Place0.Position)
  667. P2.Parent = game.Workspace
  668. P2.BrickColor = BrickColor.new("Institutional white")
  669. P2.Transparency = 0.3
  670. P2.Reflectance = 0
  671. P2.Anchored = true
  672. P2.CanCollide = false
  673. m6 = Instance.new("SpecialMesh")
  674. m6.Scale = Vector3.new(0.3,0.3,1)
  675. m6.MeshType = "Brick"
  676. m6.Parent = P2
  677.  
  678. local P3 = Instance.new("Part")
  679. P3.Name = "P3"
  680. local Place0 = prt5
  681. P3.formFactor = 0
  682. P3.Size = Vector3.new(1,1,(Place0.Position - mouse.Hit.p).magnitude)
  683. P3.CFrame = CFrame.new((Place0.Position + mouse.Hit.p+Vector3.new(-3,0,0))/2,Place0.Position)
  684. P3.Parent = game.Workspace
  685. P3.BrickColor = BrickColor.new("Institutional white")
  686. P3.Transparency = 0.3
  687. P3.Reflectance = 0
  688. P3.Anchored = true
  689. P3.CanCollide = false
  690. m6 = Instance.new("SpecialMesh")
  691. m6.Scale = Vector3.new(0.3,0.3,1)
  692. m6.MeshType = "Brick"
  693. m6.Parent = P3
  694.  
  695. local P4 = Instance.new("Part")
  696. P4.Name = "P4"
  697. local Place0 = prt5
  698. P4.formFactor = 0
  699. P4.Size = Vector3.new(1,1,(Place0.Position - mouse.Hit.p).magnitude)
  700. P4.CFrame = CFrame.new((Place0.Position + mouse.Hit.p+Vector3.new(0,3,0))/2,Place0.Position)
  701. P4.Parent = game.Workspace
  702. P4.BrickColor = BrickColor.new("Institutional white")
  703. P4.Transparency = 0.3
  704. P4.Reflectance = 0
  705. P4.Anchored = true
  706. P4.CanCollide = false
  707. m6 = Instance.new("SpecialMesh")
  708. m6.Scale = Vector3.new(0.3,0.3,1)
  709. m6.MeshType = "Brick"
  710. m6.Parent = P4
  711.  
  712. local P5 = Instance.new("Part")
  713. P5.Name = "P5"
  714. local Place0 = prt5
  715. P5.formFactor = 0
  716. P5.Size = Vector3.new(1,1,(Place0.Position - mouse.Hit.p).magnitude)
  717. P5.CFrame = CFrame.new((Place0.Position + mouse.Hit.p+Vector3.new(0,-3,0))/2,Place0.Position)
  718. P5.Parent = game.Workspace
  719. P5.BrickColor = BrickColor.new("Institutional white")
  720. P5.Transparency = 0.3
  721. P5.Reflectance = 0
  722. P5.Anchored = true
  723. P5.CanCollide = false
  724. m6 = Instance.new("SpecialMesh")
  725. m6.Scale = Vector3.new(0.3,0.3,1)
  726. m6.MeshType = "Brick"
  727. m6.Parent = P5
  728.  
  729.  
  730. local fire = Instance.new("Sound", workspace)
  731. fire.SoundId = "http://www.roblox.com/asset/?id=13510352"
  732. fire.Pitch = 0.6
  733. fire.PlayOnRemove = true
  734. wait()
  735. fire.Parent = nil
  736.  
  737.  
  738. delay(0.03, function()
  739. for i,v in pairs(game.Players:children()) do
  740. if v.Name ~= User.Name then
  741. if (v.Character.Torso.Position - mouse.hit.p).magnitude <= 5 then
  742. damage = math.random(50,75)
  743. crit = math.random(1,10)
  744. if crit > 2 then
  745. v.Character.Humanoid.Health = v.Character.Humanoid.Health - damage
  746. elseif crit <= 2 then
  747. v.Character.Humanoid.Health = v.Character.Humanoid.Health - (damage+10)
  748. end
  749. local tell = Instance.new("Part", v.Character)
  750. tell.Position = mouse.hit.p
  751. tell.formFactor = "Plate"
  752. tell.Size = Vector3.new(1,0.4,1)
  753. tell.BrickColor = BrickColor.new("Really red")
  754. tell.Anchored = true
  755. tell.CanCollide = false
  756. tell.Transparency = 1
  757. local bbg = Instance.new("BillboardGui",tell)
  758. bbg.Adornee = tell
  759. bbg.Size = UDim2.new(0,130,0,20)
  760. bbg.StudsOffset = Vector3.new(0,1,0)
  761. local tb = Instance.new("TextLabel",bbg)
  762. tb.Size = UDim2.new(1,0,1,0)
  763. if crit > 2 then
  764. tb.Text = "-"..damage
  765. else
  766. tb.Text = "CRIT: ".."-"..damage+20
  767. end
  768. tb.BackgroundTransparency = 1
  769. tb.FontSize = 6
  770. tb.TextColor3 = BrickColor.new("Bright red").Color
  771.  
  772. for i = 1,50 do
  773. tell.CFrame = tell.CFrame + Vector3.new(0,0.1,0)
  774. wait()
  775. end
  776. tell:Remove()
  777. end
  778. end
  779. end
  780. end)
  781.  
  782.  
  783.  
  784. haw.C1 = CFrame.new(0.5,0.8,0)
  785. haw2.C1 = CFrame.new(0,1.0,0)
  786. wait(0.07)
  787. haw.C1 = CFrame.new(0.5,1,0)
  788. haw2.C1 = CFrame.new(0,1.2,0)
  789. Ammo = 1
  790. for i = 1,7 do
  791. P.Transparency = P.Transparency + 0.1
  792. P2.Transparency = P2.Transparency + 0.1
  793. P3.Transparency = P3.Transparency + 0.1
  794. P4.Transparency = P4.Transparency + 0.1
  795. P5.Transparency = P5.Transparency + 0.1
  796. wait(0.1)
  797. end
  798. P:Remove()
  799. P2:Remove()
  800. P3:Remove()
  801. P4:Remove()
  802. P5:Remove()
  803. capi.Transparency = 1
  804. elseif Ammo == 1 then
  805. damage = math.random(50,75)
  806. local P = Instance.new("Part")
  807. P.Name = "P"
  808. local Place0 = prt5
  809. P.formFactor = 0
  810. P.Size = Vector3.new(1,1,(Place0.Position - mouse.Hit.p).magnitude)
  811. P.CFrame = CFrame.new((Place0.Position + mouse.Hit.p)/2,Place0.Position)
  812. P.Parent = game.Workspace
  813. P.BrickColor = BrickColor.new("Institutional white")
  814. P.Transparency = 0.3
  815. P.Reflectance = 0
  816. P.Anchored = true
  817. P.CanCollide = false
  818. m6 = Instance.new("SpecialMesh")
  819. m6.Scale = Vector3.new(0.3,0.3,1)
  820. m6.MeshType = "Brick"
  821. m6.Parent = P
  822.  
  823. local P2 = Instance.new("Part")
  824. P2.Name = "P2"
  825. local Place0 = prt5
  826. P2.formFactor = 0
  827. P2.Size = Vector3.new(1,1,(Place0.Position - mouse.Hit.p).magnitude)
  828. P2.CFrame = CFrame.new((Place0.Position + mouse.Hit.p+Vector3.new(3,0,0))/2,Place0.Position)
  829. P2.Parent = game.Workspace
  830. P2.BrickColor = BrickColor.new("Institutional white")
  831. P2.Transparency = 0.3
  832. P2.Reflectance = 0
  833. P2.Anchored = true
  834. P2.CanCollide = false
  835. m6 = Instance.new("SpecialMesh")
  836. m6.Scale = Vector3.new(0.3,0.3,1)
  837. m6.MeshType = "Brick"
  838. m6.Parent = P2
  839.  
  840. local P3 = Instance.new("Part")
  841. P3.Name = "P3"
  842. local Place0 = prt5
  843. P3.formFactor = 0
  844. P3.Size = Vector3.new(1,1,(Place0.Position - mouse.Hit.p).magnitude)
  845. P3.CFrame = CFrame.new((Place0.Position + mouse.Hit.p+Vector3.new(-3,0,0))/2,Place0.Position)
  846. P3.Parent = game.Workspace
  847. P3.BrickColor = BrickColor.new("Institutional white")
  848. P3.Transparency = 0.3
  849. P3.Reflectance = 0
  850. P3.Anchored = true
  851. P3.CanCollide = false
  852. m6 = Instance.new("SpecialMesh")
  853. m6.Scale = Vector3.new(0.3,0.3,1)
  854. m6.MeshType = "Brick"
  855. m6.Parent = P3
  856.  
  857. local P4 = Instance.new("Part")
  858. P4.Name = "P4"
  859. local Place0 = prt5
  860. P4.formFactor = 0
  861. P4.Size = Vector3.new(1,1,(Place0.Position - mouse.Hit.p).magnitude)
  862. P4.CFrame = CFrame.new((Place0.Position + mouse.Hit.p+Vector3.new(0,3,0))/2,Place0.Position)
  863. P4.Parent = game.Workspace
  864. P4.BrickColor = BrickColor.new("Institutional white")
  865. P4.Transparency = 0.3
  866. P4.Reflectance = 0
  867. P4.Anchored = true
  868. P4.CanCollide = false
  869. m6 = Instance.new("SpecialMesh")
  870. m6.Scale = Vector3.new(0.3,0.3,1)
  871. m6.MeshType = "Brick"
  872. m6.Parent = P4
  873.  
  874. local P5 = Instance.new("Part")
  875. P5.Name = "P5"
  876. local Place0 = prt5
  877. P5.formFactor = 0
  878. P5.Size = Vector3.new(1,1,(Place0.Position - mouse.Hit.p).magnitude)
  879. P5.CFrame = CFrame.new((Place0.Position + mouse.Hit.p+Vector3.new(0,-3,0))/2,Place0.Position)
  880. P5.Parent = game.Workspace
  881. P5.BrickColor = BrickColor.new("Institutional white")
  882. P5.Transparency = 0.3
  883. P5.Reflectance = 0
  884. P5.Anchored = true
  885. P5.CanCollide = false
  886. m6 = Instance.new("SpecialMesh")
  887. m6.Scale = Vector3.new(0.3,0.3,1)
  888. m6.MeshType = "Brick"
  889. m6.Parent = P5
  890.  
  891.  
  892. local fire = Instance.new("Sound", workspace)
  893. fire.SoundId = "http://www.roblox.com/asset/?id=13510352"
  894. fire.Pitch = 0.6
  895. fire.PlayOnRemove = true
  896. wait()
  897. fire.Parent = nil
  898.  
  899. delay(0.03, function()
  900. for i,v in pairs(game.Players:children()) do
  901. if v.Name ~= User.Name then
  902. if (v.Character.Torso.Position - mouse.hit.p).magnitude <= 5 then
  903. damage = math.random(50,75)
  904. crit = math.random(1,10)
  905. if crit > 2 then
  906. v.Character.Humanoid.Health = v.Character.Humanoid.Health - damage
  907. elseif crit <= 2 then
  908. v.Character.Humanoid.Health = v.Character.Humanoid.Health - (damage+10)
  909. end
  910. local tell = Instance.new("Part", v.Character)
  911. tell.Position = mouse.hit.p
  912. tell.formFactor = "Plate"
  913. tell.Size = Vector3.new(1,0.4,1)
  914. tell.BrickColor = BrickColor.new("Really red")
  915. tell.Anchored = true
  916. tell.CanCollide = false
  917. tell.Transparency = 1
  918. local bbg = Instance.new("BillboardGui",tell)
  919. bbg.Adornee = tell
  920. bbg.Size = UDim2.new(0,130,0,20)
  921. bbg.StudsOffset = Vector3.new(0,1,0)
  922. local tb = Instance.new("TextLabel",bbg)
  923. tb.Size = UDim2.new(1,0,1,0)
  924. if crit > 2 then
  925. tb.Text = "-"..damage
  926. else
  927. tb.Text = "CRIT: ".."-"..damage+20
  928. end
  929. tb.BackgroundTransparency = 1
  930. tb.FontSize = 6
  931. tb.TextColor3 = BrickColor.new("Bright red").Color
  932.  
  933. for i = 1,50 do
  934. tell.CFrame = tell.CFrame + Vector3.new(0,0.1,0)
  935. wait()
  936. end
  937. tell:Remove()
  938. end
  939. end
  940. end
  941. end)
  942.  
  943. haw.C1 = CFrame.new(0.5,0.8,0)
  944. haw2.C1 = CFrame.new(0,1.0,0)
  945. wait(0.07)
  946. haw.C1 = CFrame.new(0.5,1,0)
  947. haw2.C1 = CFrame.new(0,1.2,0)
  948. Ammo = 0
  949.  
  950. for i = 1,7 do
  951. P.Transparency = P.Transparency + 0.1
  952. P2.Transparency = P2.Transparency + 0.1
  953. P3.Transparency = P3.Transparency + 0.1
  954. P4.Transparency = P4.Transparency + 0.1
  955. P5.Transparency = P5.Transparency + 0.1
  956. wait(0.1)
  957. end
  958. P:Remove()
  959. P2:Remove()
  960. P3:Remove()
  961. P4:Remove()
  962. P5:Remove()
  963. capi2.Transparency = 1
  964. end
  965. end
  966. end)
  967.  
  968. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement