Advertisement
Dinosaurus

[R] Purple Bow gun script

Jun 17th, 2016
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 135.98 KB | None | 0 0
  1. :ls Player = game:GetService("Players").DDB_Dex
  2. Character = Player.Character
  3. PlayerGui = Player.PlayerGui
  4. Backpack = Player.Backpack
  5. Torso = Character.Torso
  6. Head = Character.Head
  7. LeftArm = Character["Left Arm"]
  8. LeftLeg = Character["Left Leg"]
  9. RightArm = Character["Right Arm"]
  10. RightLeg = Character["Right Leg"]
  11. LS = Torso["Left Shoulder"]
  12. LH = Torso["Left Hip"]
  13. RS = Torso["Right Shoulder"]
  14. RH = Torso["Right Hip"]
  15. bladecolor = BrickColor.new("Really White") --Lolol I don't use this :P
  16. part2color = BrickColor.new("Really Purple") --Neither do I-- oh wait, I think I use these ._.
  17. attack = false
  18. attacktype = 1
  19. damage = 50 --I Don't use this..
  20. oridamage = 50 --Or this...
  21. ammo = 5
  22. maxammo = 5
  23. shot = "Normal"
  24. equipped = false
  25. normalammo = 5
  26. normammobase = normalammo
  27. poisonammo = 4
  28. poisammobase = poisonammo
  29. healammo = 4
  30. healammobase = healammo
  31. explosionammo = 1
  32. BOOMammobase = explosionammo
  33. elecammo = 4
  34. elecammobase = elecammo
  35. rapidammo = 20
  36. rapidammobase = rapidammo
  37. meleedebounce = false
  38. smokesize = 1
  39. aiming = false
  40. Item = {"Bloxy Cola", "Rhysmon's Red Cola", "Decoy Deploy", "Epicsauce", "Bomb", "Jarate"}
  41. Number = 1
  42. Blah = Item[Number]
  43. --player
  44. player = nil
  45. --save shoulders
  46. RSH, LSH = nil, nil
  47. --welds
  48. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  49. --what anim
  50. anim = "none"
  51.  
  52. if Character:findFirstChild("LBowgun",true) ~= nil then
  53. Character:findFirstChild("LBowgun",true).Parent = nil
  54. end
  55. if PlayerGui:findFirstChild("Bowgun GUI",true) ~= nil then
  56. PlayerGui:findFirstChild("Bowgun GUI",true).Parent = nil
  57. end
  58.  
  59.  
  60.  
  61.  
  62. local swordholder = Instance.new("Model")
  63. swordholder.Name = "LBowgun"
  64. swordholder.Parent = Character
  65.  
  66.  
  67. local msh1 = Instance.new("BlockMesh")
  68. msh1.Scale = Vector3.new(0.21,1.6,0.251)
  69. local msh2 = Instance.new("BlockMesh")
  70. msh2.Scale = Vector3.new(0.5,1,1.25)
  71. local msh3 = Instance.new("BlockMesh")
  72. msh3.Scale = Vector3.new(0.2,1,0.25)
  73. local msh4 = Instance.new("BlockMesh")
  74. msh4.Scale = Vector3.new(0.2,1,0.25)
  75. local msh5 = Instance.new("BlockMesh")
  76. msh5.Scale = Vector3.new(0.2,1,0.25)
  77. local msh6 = Instance.new("BlockMesh")
  78. msh6.Scale = Vector3.new(0.2,1,0.25)
  79. local msh7 = Instance.new("BlockMesh")
  80. msh7.Scale = Vector3.new(0.2,1,0.25)
  81. local msh8 = Instance.new("BlockMesh")
  82. msh8.Scale = Vector3.new(0.1,1.1,0.1)
  83. local msh9 = Instance.new("BlockMesh")
  84. msh9.Scale = Vector3.new(0.35,1,1)
  85. local msh10 = Instance.new("BlockMesh")
  86. msh10.Scale = Vector3.new(0.21,1,0.21)
  87. local msh11 = Instance.new("BlockMesh")
  88. msh11.Scale = Vector3.new(0.21,0.9,0.21)
  89. local msh12 = Instance.new("BlockMesh")
  90. msh12.Scale = Vector3.new(0.21,0.15,1.58)
  91. local msh13 = Instance.new("BlockMesh")
  92. msh13.Scale = Vector3.new(0.21,0.45,1.58)
  93. local msh14 = Instance.new("BlockMesh")
  94. msh14.Scale = Vector3.new(0.11,0.25,1.38)
  95. local prt1 = Instance.new("Part")
  96. prt1.formFactor = 1
  97. prt1.CanCollide = false
  98. prt1.Name = "Handle1"
  99. prt1.Locked = true
  100. prt1.Size = Vector3.new(1,4,1)
  101. prt1.Parent = swordholder
  102. msh1.Parent = prt1
  103. prt1.BrickColor = part2color
  104. local prt2 = Instance.new("Part")
  105. prt2.formFactor = 1
  106. prt2.CanCollide = false
  107. prt2.Name = "BasePart"
  108. prt2.Locked = true
  109. prt2.Size = Vector3.new(1,2,1)
  110. prt2.Parent = swordholder
  111. msh2.Parent = prt2
  112. prt2.BrickColor = bladecolor
  113. --[[local f = Instance.new("ForceField")
  114. f.Parent = prt2 ]]
  115. local prt3 = Instance.new("Part")
  116. prt3.formFactor = 1
  117. prt3.CanCollide = false
  118. prt3.Name = "BowStick"
  119. prt3.Locked = true
  120. prt3.Size = Vector3.new(1,2,1)
  121. prt3.Parent = swordholder
  122. msh3.Parent = prt3
  123. prt3.BrickColor = bladecolor
  124. local prt4 = Instance.new("Part")
  125. prt4.formFactor = 1
  126. prt4.CanCollide = false
  127. prt4.Name = "BowPart1"
  128. prt4.Locked = true
  129. prt4.Size = Vector3.new(1,1,1)
  130. prt4.Parent = swordholder
  131. msh4.Parent = prt4
  132. prt4.BrickColor = part2color
  133. local prt5 = Instance.new("Part")
  134. prt5.formFactor = 1
  135. prt5.CanCollide = false
  136. prt5.Name = "BowPart2"
  137. prt5.Locked = true
  138. prt5.Size = Vector3.new(1,1,1)
  139. prt5.Parent = swordholder
  140. msh5.Parent = prt5
  141. prt5.BrickColor = part2color
  142. local prt6 = Instance.new("Part")
  143. prt6.formFactor = 1
  144. prt6.CanCollide = false
  145. prt6.Name = "Handle2"
  146. prt6.Locked = true
  147. prt6.Size = Vector3.new(1,1,1)
  148. prt6.Parent = swordholder
  149. msh6.Parent = prt6
  150. prt6.BrickColor = part2color
  151. local prt7 = Instance.new("Part")
  152. prt7.formFactor = 1
  153. prt7.CanCollide = false
  154. prt7.Name = "Handle3"
  155. prt7.Locked = true
  156. prt7.Size = Vector3.new(1,1,1)
  157. prt7.Parent = swordholder
  158. msh7.Parent = prt7
  159. prt7.BrickColor = bladecolor
  160. local prt8 = Instance.new("Part")
  161. prt8.formFactor = 1
  162. prt8.CanCollide = false
  163. prt8.Name = "BowString"
  164. prt8.Locked = true
  165. prt8.Size = Vector3.new(1,4,1)
  166. prt8.Parent = swordholder
  167. msh8.Parent = prt8
  168. prt8.BrickColor = bladecolor
  169. local prt9 = Instance.new("Part")
  170. prt9.formFactor = 1
  171. prt9.CanCollide = false
  172. prt9.Name = "BasePart2"
  173. prt9.Locked = true
  174. prt9.Size = Vector3.new(1,1,1)
  175. prt9.Parent = swordholder
  176. msh9.Parent = prt9
  177. prt9.BrickColor = bladecolor
  178. local prt10 = Instance.new("Part")
  179. prt10.formFactor = 1
  180. prt10.CanCollide = false
  181. prt10.Name = "Part1"
  182. prt10.Locked = true
  183. prt10.Size = Vector3.new(1,3,1)
  184. prt10.Parent = swordholder
  185. msh10.Parent = prt10
  186. prt10.BrickColor = part2color
  187. local prt11 = Instance.new("Part")
  188. prt11.formFactor = 1
  189. prt11.CanCollide = false
  190. prt11.Name = "Part2"
  191. prt11.Locked = true
  192. prt11.Size = Vector3.new(1,3,1)
  193. prt11.Parent = swordholder
  194. msh11.Parent = prt11
  195. prt11.BrickColor = part2color
  196. local prt12 = Instance.new("Part")
  197. prt12.formFactor = 1
  198. prt12.CanCollide = false
  199. prt12.Name = "Part3"
  200. prt12.Locked = true
  201. prt12.Size = Vector3.new(1,1,1)
  202. prt12.Parent = swordholder
  203. msh12.Parent = prt12
  204. prt12.BrickColor = part2color
  205. local prt13 = Instance.new("Part")
  206. prt13.formFactor = 1
  207. prt13.CanCollide = false
  208. prt13.Name = "Part4"
  209. prt13.Locked = true
  210. prt13.Size = Vector3.new(1,1,1)
  211. prt13.Parent = swordholder
  212. msh13.Parent = prt13
  213. prt13.BrickColor = part2color
  214. local prt14 = Instance.new("Part")
  215. prt14.formFactor = 1
  216. prt14.CanCollide = false
  217. prt14.Name = "Part4"
  218. prt14.Locked = true
  219. prt14.Size = Vector3.new(1,1,1)
  220. prt14.Parent = swordholder
  221. msh14.Parent = prt14
  222. prt14.BrickColor = BrickColor.new("Bright yellow")
  223. --[[local leftarm = LeftArm:Clone()
  224. leftarm.Parent = swordholder
  225. leftarm.Name = "Left Arm"
  226. leftarm.CanCollide = false
  227. local rightarm = RightArm:Clone()
  228. rightarm.Parent = swordholder
  229. rightarm.Name = "Right Arm"
  230. rightarm.CanCollide = false
  231. local h = Instance.new("Humanoid")
  232. h.Parent = swordholder
  233. local shirt = Character.Shirt:Clone()
  234. shirt.Parent = swordholder
  235. local pants = Character.Pants:Clone()
  236. pants.Parent = swordholder
  237. local wel = Instance.new("Weld")
  238. wel.Parent = rightarm
  239. wel.Part0 = rightarm
  240. wel.Part1 = RightArm
  241. local wel2 = Instance.new("Weld")
  242. wel2.Parent = leftarm
  243. wel2.Part0 = leftarm
  244. wel2.Part1 = LeftArm ]]
  245. --[[
  246. local ff = Instance.new("ForceField")
  247. ff.Parent = prt12]]
  248.  
  249. --[[local SlashSound = Instance.new("Sound")
  250. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  251. SlashSound.Parent = swordholder
  252. SlashSound.Volume = .7 ]]
  253.  
  254.  
  255. local w1 = Instance.new("Weld")
  256. w1.Parent = prt1
  257. w1.Part0 = prt1
  258. local w2 = Instance.new("Weld")
  259. w2.Parent = prt2
  260. w2.Part0 = prt2
  261. w2.Part1 = prt1
  262. w2.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  263. w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0,0) * CFrame.new(0, -1-0.75+0.5, 0)
  264. local w3 = Instance.new("Weld")
  265. w3.Parent = prt3
  266. w3.Part0 = prt3
  267. w3.Part1 = prt1
  268. w3.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  269. w3.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), 0, 0) * CFrame.new(0, -1-0.75, 0)
  270. local w4 = Instance.new("Weld")
  271. w4.Parent = prt4
  272. w4.Part0 = prt4
  273. w4.Part1 = prt1
  274. w4.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  275. w4.C0 = CFrame.fromEulerAnglesXYZ(math.rad(60), 0, 0) * CFrame.new(0, -1.5, -1.5)
  276. local w5 = Instance.new("Weld")
  277. w5.Parent = prt5
  278. w5.Part0 = prt5
  279. w5.Part1 = prt1
  280. w5.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  281. w5.C0 = CFrame.fromEulerAnglesXYZ(math.rad(120), 0, 0) * CFrame.new(0, -1.5, 1.5)
  282. local w6 = Instance.new("Weld")
  283. w6.Parent = prt6
  284. w6.Part0 = prt6
  285. w6.Part1 = prt1
  286. w6.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  287. w6.C0 = CFrame.fromEulerAnglesXYZ(math.rad(60), math.rad(45), 0) * CFrame.new(0.5, -0.5, -0.5)
  288. local w7 = Instance.new("Weld")
  289. w7.Parent = prt7
  290. w7.Part0 = prt7
  291. w7.Part1 = prt6
  292. w7.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  293. w7.C0 = CFrame.fromEulerAnglesXYZ(math.rad(120), math.rad(0), 0) * CFrame.new(0,0.85,0.45)
  294. local w8 = Instance.new("Weld")
  295. w8.Parent = prt8
  296. w8.Part0 = prt8
  297. w8.Part1 = prt1
  298. w8.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  299. w8.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), 0, 0) * CFrame.new(0, -1-0.2, 0)
  300. local w9 = Instance.new("Weld")
  301. w9.Parent = prt9
  302. w9.Part0 = prt9
  303. w9.Part1 = prt1
  304. w9.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  305. w9.C0 = CFrame.fromEulerAnglesXYZ(0, 0,0) * CFrame.new(0, -0.25, 0)
  306. local w10 = Instance.new("Weld")
  307. w10.Parent = prt10
  308. w10.Part0 = prt10
  309. w10.Part1 = prt1
  310. w10.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  311. w10.C0 = CFrame.fromEulerAnglesXYZ(math.rad(25), 0,0) * CFrame.new(0, 1.85, -0.5)
  312. local w11 = Instance.new("Weld")
  313. w11.Parent = prt11
  314. w11.Part0 = prt11
  315. w11.Part1 = prt1
  316. w11.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  317. w11.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-10), 0,0) * CFrame.new(0, 1.85, 0.2)
  318. local w12 = Instance.new("Weld")
  319. w12.Parent = prt12
  320. w12.Part0 = prt12
  321. w12.Part1 = prt1
  322. w12.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  323. w12.C0 = CFrame.fromEulerAnglesXYZ(0, 0,0) * CFrame.new(0, 2.95, -0.3)
  324. local w13 = Instance.new("Weld")
  325. w13.Parent = prt13
  326. w13.Part0 = prt13
  327. w13.Part1 = prt1
  328. w13.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  329. w13.C0 = CFrame.fromEulerAnglesXYZ(0, 0,0) * CFrame.new(0, -0.8, -0.2)
  330. local w14 = Instance.new("Weld")
  331. w14.Parent = prt14
  332. w14.Part0 = prt14
  333. w14.Part1 = prt1
  334. w14.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  335. w14.C0 = CFrame.fromEulerAnglesXYZ(0, 0,0) * CFrame.new(0, -0.4, -0.2)
  336. function unequipweld()
  337. w1.Part1 = Torso
  338. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  339. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90+90),math.rad(-90+90), 0) * CFrame.new(-0.95, -1, -0.9)
  340. end
  341.  
  342. local GUIMain = Instance.new("GuiMain")
  343. GUIMain.Parent = PlayerGui
  344. GUIMain.Name = "Bowgun GUI"
  345. local MainTray = Instance.new("Frame")
  346. MainTray.Parent = GUIMain
  347. MainTray.Name = "Bowgun Tray"
  348. MainTray.BackgroundTransparency = 1
  349. MainTray.Position = UDim2.new(0, 0, 0.180000022, 0)
  350. MainTray.Size = UDim2.new(0.0450000018, 0, 0.340000004, 0)
  351. local NormFrame = Instance.new("Frame")
  352. NormFrame.Parent = MainTray
  353. NormFrame.Name = "Normal Ammo Frame"
  354. NormFrame.BackgroundColor = BrickColor.new("Bright yellow")
  355. NormFrame.Position = UDim2.new(0.420000017, 0, 0, 0)
  356. NormFrame.Size = UDim2.new(0, 180, 0.300000012, 0)
  357. NormFrame.BorderColor3 = Color3.new(1,1,1)
  358. local NormText1 = Instance.new("TextBox")
  359. NormText1.Parent = NormFrame
  360. NormText1.Name = "Normal Ammo Text"
  361. NormText1.FontSize = "Size10"
  362. NormText1.Position = UDim2.new(0.699999988, 0, 0.300000012, 0)
  363. NormText1.Text = "Normal Ammo"
  364. local NormText2 = Instance.new("TextBox")
  365. NormText2.Parent = NormFrame
  366. NormText2.Name = "Normal Ammo Text"
  367. NormText2.FontSize = "Size10"
  368. NormText2.Position = UDim2.new(0.699999988, 0, 0.699999988, 0)
  369. NormText2.Text = "Ammo(5)"
  370. local PoisFrame = Instance.new("Frame")
  371. PoisFrame.Parent = MainTray
  372. PoisFrame.Name = "Poison Ammo Frame"
  373. PoisFrame.BackgroundColor = BrickColor.new("Royal purple")
  374. PoisFrame.Position = UDim2.new(0.420000017, 0, 0.300000012, 0)
  375. PoisFrame.Size = UDim2.new(0, 180, 0.300000012, 0)
  376. PoisFrame.BorderColor3 = Color3.new(0,0,0)
  377. local PoisText1 = Instance.new("TextBox")
  378. PoisText1.Parent = PoisFrame
  379. PoisText1.Name = "Poison Ammo Text"
  380. PoisText1.FontSize = "Size10"
  381. PoisText1.Position = UDim2.new(0.699999988, 0, 0.300000012, 0)
  382. PoisText1.Text = "Poison Ammo"
  383. local PoisText2 = Instance.new("TextBox")
  384. PoisText2.Parent = PoisFrame
  385. PoisText2.Name = "Poison Ammo Text"
  386. PoisText2.FontSize = "Size10"
  387. PoisText2.Position = UDim2.new(0.699999988, 0, 0.699999988, 0)
  388. PoisText2.Text = "Ammo(4)"
  389. local HealFrame = Instance.new("Frame")
  390. HealFrame.Parent = MainTray
  391. HealFrame.Name = "Heal Ammo Frame"
  392. HealFrame.BackgroundColor = BrickColor.new("Medium green")
  393. HealFrame.Position = UDim2.new(0.420000017, 0, 0.600000024, 0)
  394. HealFrame.Size = UDim2.new(0, 180, 0.300000012, 0)
  395. HealFrame.BorderColor3 = Color3.new(0,0,0)
  396. local HealText1 = Instance.new("TextBox")
  397. HealText1.Parent = HealFrame
  398. HealText1.Name = "Heal Ammo Text"
  399. HealText1.FontSize = "Size10"
  400. HealText1.Position = UDim2.new(0.699999988, 0, 0.300000012, 0)
  401. HealText1.Text = "Heal Ammo"
  402. local HealText2 = Instance.new("TextBox")
  403. HealText2.Parent = HealFrame
  404. HealText2.Name = "Heal Ammo Text"
  405. HealText2.FontSize = "Size10"
  406. HealText2.Position = UDim2.new(0.699999988, 0, 0.699999988, 0)
  407. HealText2.Text = "Ammo(2)"
  408. local BoomFrame = Instance.new("Frame")
  409. BoomFrame.Parent = MainTray
  410. BoomFrame.Name = "Explosion Ammo Frame"
  411. BoomFrame.BackgroundColor = BrickColor.new("Really red")
  412. BoomFrame.Position = UDim2.new(0.420000017, 0, 0.900000036, 0)
  413. BoomFrame.Size = UDim2.new(0, 180, 0.300000012, 0)
  414. BoomFrame.BorderColor3 = Color3.new(0,0,0)
  415. local BoomText1 = Instance.new("TextBox")
  416. BoomText1.Parent = BoomFrame
  417. BoomText1.Name = "Explosion Ammo Text"
  418. BoomText1.FontSize = "Size10"
  419. BoomText1.Position = UDim2.new(0.699999988, 0, 0.300000012, 0)
  420. BoomText1.Text = "Explosion Ammo"
  421. local BoomText2 = Instance.new("TextBox")
  422. BoomText2.Parent = BoomFrame
  423. BoomText2.Name = "Explosion Ammo Text"
  424. BoomText2.FontSize = "Size10"
  425. BoomText2.Position = UDim2.new(0.699999988, 0, 0.699999988, 0)
  426. BoomText2.Text = "Ammo(1)"
  427. local ElecFrame = Instance.new("Frame")
  428. ElecFrame.Parent = MainTray
  429. ElecFrame.Name = "Electric Ammo Frame"
  430. ElecFrame.BackgroundColor = BrickColor.new("New Yeller")
  431. ElecFrame.Position = UDim2.new(0.420000017, 0, 1.2, 0)
  432. ElecFrame.Size = UDim2.new(0, 180, 0.300000012, 0)
  433. ElecFrame.BorderColor3 = Color3.new(0,0,0)
  434. local ElecText1 = Instance.new("TextBox")
  435. ElecText1.Parent = ElecFrame
  436. ElecText1.Name = "Electric Ammo Text"
  437. ElecText1.FontSize = "Size10"
  438. ElecText1.Position = UDim2.new(0.699999988, 0, 0.300000012, 0)
  439. ElecText1.Text = "Electric Ammo"
  440. local ElecText2 = Instance.new("TextBox")
  441. ElecText2.Parent = ElecFrame
  442. ElecText2.Name = "Rapid Ammo Text"
  443. ElecText2.FontSize = "Size10"
  444. ElecText2.Position = UDim2.new(0.699999988, 0, 0.699999988, 0)
  445. ElecText2.Text = "Ammo(4)"
  446. local RapidFrame = Instance.new("Frame")
  447. RapidFrame.Parent = MainTray
  448. RapidFrame.Name = "Rapid Ammo Frame"
  449. RapidFrame.BackgroundColor = BrickColor.new("Dark stone grey")
  450. RapidFrame.Position = UDim2.new(0.420000017, 0, 1.5, 0)
  451. RapidFrame.Size = UDim2.new(0, 180, 0.300000012, 0)
  452. RapidFrame.BorderColor3 = Color3.new(0,0,0)
  453. local RapidText1 = Instance.new("TextBox")
  454. RapidText1.Parent = RapidFrame
  455. RapidText1.Name = "Rapid Ammo Text"
  456. RapidText1.FontSize = "Size10"
  457. RapidText1.Position = UDim2.new(0.699999988, 0, 0.300000012, 0)
  458. RapidText1.Text = "Rapid Ammo"
  459. local RapidText2 = Instance.new("TextBox")
  460. RapidText2.Parent = RapidFrame
  461. RapidText2.Name = "Rapid Ammo Text"
  462. RapidText2.FontSize = "Size10"
  463. RapidText2.Position = UDim2.new(0.699999988, 0, 0.699999988, 0)
  464. RapidText2.Text = "Ammo(10)"
  465. local ItemFrame = Instance.new("Frame")
  466. ItemFrame.Parent = MainTray
  467. ItemFrame.Name = "Item Ammo Frame"
  468. ItemFrame.Position = UDim2.new(0.420000017, 800, 0, 0)
  469. ItemFrame.Size = UDim2.new(0, 180, 0.300000012, 0)
  470. ItemFrame.BorderColor3 = Color3.new(0,0,0)
  471. local ItemText1 = Instance.new("TextBox")
  472. ItemText1.Parent = ItemFrame
  473. ItemText1.Name = "Item Equipped"
  474. ItemText1.FontSize = "Size10"
  475. ItemText1.Position = UDim2.new(0.499999988, 0, 0.300000012, 0)
  476. ItemText1.Text = "Item Equipped:"
  477. local ItemText2 = Instance.new("TextBox")
  478. ItemText2.Parent = ItemFrame
  479. ItemText2.Name = "Dah Item"
  480. ItemText2.FontSize = "Size10"
  481. ItemText2.Position = UDim2.new(0.499999988, 0, 0.700000012, 0)
  482. ItemText2.Text = "Bloxy Cola"
  483.  
  484.  
  485. function SlashSound(parent) --linerider64 was here :D
  486. Parent = workspace
  487. local slashsound = Instance.new("Sound")
  488. slashsound.Parent = Parent
  489. slashsound.SoundId = "rbxasset://sounds\\swordslash.wav"
  490. slashsound.Pitch = 0.5
  491. slashsound.Volume = 1
  492. --slashsound:play()
  493. slashsound.PlayOnRemove = true
  494. coroutine.resume(coroutine.create(function()
  495. wait(0)
  496. slashsound.Parent = nil
  497. end))
  498. end
  499. function BashedSound(parent) --linerider64 was here :D
  500. Parent = workspace
  501. BAMhitsound=Instance.new("Sound")
  502. BAMhitsound.SoundId="http://www.roblox.com/asset/?id=2801263"
  503. BAMhitsound.Pitch=1.8
  504. BAMhitsound.Parent=Parent
  505. BAMhitsound.Volume = 1
  506. --BAMhitsound:play()
  507. BAMhitsound.PlayOnRemove = true
  508. coroutine.resume(coroutine.create(function()
  509. wait(0)
  510. BAMhitsound.Parent = nil
  511. end))
  512. end
  513. function ShootingSound(parent) --linerider64 was here :D
  514. Parent = workspace
  515. local firesound = Instance.new("Sound")
  516. firesound.Parent = Parent
  517. firesound.SoundId = "http://www.roblox.com/asset/?id=16211041"
  518. firesound.Pitch=1
  519. firesound.Parent=parent
  520. firesound.Volume = 1
  521. --firesound:play()
  522. firesound.PlayOnRemove = true
  523. coroutine.resume(coroutine.create(function()
  524. wait(0)
  525. firesound.Parent = nil
  526. end))
  527. end
  528. function HittedSound(parent) --linerider64 was here :D
  529. Parent = workspace
  530. local hitsound = Instance.new("Sound")
  531. hitsound.Parent = Parent
  532. hitsound.SoundId = "http://www.roblox.com/asset/?id=16211030"
  533. hitsound.Pitch=1
  534. hitsound.Parent=parent
  535. hitsound.Volume = 1
  536. --hitsound:play()
  537. hitsound.PlayOnRemove = true
  538. coroutine.resume(coroutine.create(function()
  539. wait(0)
  540. hitsound.Parent = nil
  541. end))
  542. end
  543. function KaBEWMSound(parent)
  544. Parent = workspace
  545. local bewmsound = Instance.new("Sound")
  546. bewmsound.Parent = Parent
  547. bewmsound.SoundId = "http://www.roblox.com/asset/?id=2691586"
  548. bewmsound.Pitch=0.5
  549. bewmsound.Parent=parent
  550. bewmsound.Volume = 1
  551. --bewmsound:play()
  552. bewmsound.PlayOnRemove = true
  553. coroutine.resume(coroutine.create(function()
  554. wait(0)
  555. bewmsound.Parent = nil
  556. end))
  557. end
  558. function ReloadingSound(parent)
  559. Parent = workspace
  560. local reloadsound = Instance.new("Sound")
  561. reloadsound.Parent = Parent
  562. reloadsound.SoundId = "http://roblox.com/asset/?id=10209834"
  563. reloadsound.Pitch = 0.8
  564. reloadsound.Volume = 0.8
  565. --reloadsound:play()
  566. reloadsound.PlayOnRemove = true
  567. coroutine.resume(coroutine.create(function()
  568. wait(0)
  569. reloadsound.Parent = nil
  570. end))
  571. end
  572. function ChangingSound(parent)
  573. Parent = workspace
  574. local changingsound = Instance.new("Sound")
  575. changingsound.Parent = Parent
  576. changingsound.SoundId = "http://roblox.com/asset/?id=10209881"
  577. changingsound.Pitch = 1
  578. changingsound.Volume = 0.8
  579. --changingsound:play()
  580. changingsound.PlayOnRemove = true
  581. coroutine.resume(coroutine.create(function()
  582. wait(0)
  583. changingsound.Parent = nil
  584. end))
  585. end
  586. function BloxyColaSound(parent)
  587. Parent = workspace
  588. local colasound = Instance.new("Sound")
  589. colasound.Parent = Parent
  590. colasound.SoundId = "http://www.roblox.com/asset/?id=10721950"
  591. colasound.Pitch = 1
  592. colasound.Volume = 0.8
  593. colasound.PlayOnRemove = true
  594. coroutine.resume(coroutine.create(function()
  595. wait(0)
  596. colasound.Parent = nil
  597. end))
  598. end
  599. function BloxyColaDrinkSound(parent)
  600. Parent = workspace
  601. local coladrinksound = Instance.new("Sound")
  602. coladrinksound.Parent = Parent
  603. coladrinksound.SoundId = "http://www.roblox.com/asset/?id=10722059"
  604. coladrinksound.Pitch = 1
  605. coladrinksound.Volume = 0.8
  606. coladrinksound.PlayOnRemove = true
  607. coroutine.resume(coroutine.create(function()
  608. wait(0)
  609. coladrinksound.Parent = nil
  610. end))
  611. end
  612. function EXPLOSIONSound(parent)
  613. Parent = workspace
  614. local boomsound = Instance.new("Sound")
  615. boomsound.Parent = Parent
  616. boomsound.SoundId = "http://www.roblox.com/asset?id=2101148"
  617. boomsound.Pitch = 0.8
  618. boomsound.Volume = 0.8
  619. boomsound.PlayOnRemove = true
  620. coroutine.resume(coroutine.create(function()
  621. wait(0)
  622. boomsound.Parent = nil
  623. end))
  624. end
  625. function SwingSound(parent)
  626. Parent = workspace
  627. local swingsound = Instance.new("Sound")
  628. swingsound.Parent = Parent
  629. swingsound.SoundId = "http://roblox.com/asset/?id=10209640"
  630. swingsound.Pitch = 0.8
  631. swingsound.Volume = 0.8
  632. swingsound.PlayOnRemove = true
  633. coroutine.resume(coroutine.create(function()
  634. wait(0)
  635. swingsound.Parent = nil
  636. end))
  637. end
  638. function GlassBreakSound(parent)
  639. Parent = workspace
  640. local breaksound = Instance.new("Sound")
  641. breaksound.Parent = Parent
  642. breaksound.SoundId = "rbxasset://Sounds/glassbreak.wav"
  643. breaksound.Pitch = 1.1
  644. breaksound.Volume = 0.8
  645. breaksound.PlayOnRemove = true
  646. coroutine.resume(coroutine.create(function()
  647. wait(0)
  648. breaksound.Parent = nil
  649. end))
  650. end
  651.  
  652. local reloadsound = Instance.new("Sound")
  653. reloadsound.Parent = prt1
  654. reloadsound.SoundId = "http://roblox.com/asset/?id=10209834"
  655. reloadsound.Pitch = 0.8
  656. reloadsound.Volume = 0.7
  657.  
  658. unequipweld()
  659.  
  660. function equipweld()
  661. w1.Part1 = RightArm
  662. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  663. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), 0) * CFrame.new(-2, 0.9, 0.)
  664. end
  665.  
  666.  
  667. function hideanim()
  668. for i = 1, 0 , -0.2 do
  669. wait()
  670. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, (1-1*i)+math.rad(90)*i,0)
  671. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25*i,0,0)
  672. LW.C0 = CFrame.new(-1.5+0.45*i, 0.5, -0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(1.5*i,0,1.35*i)
  673. LW.C1 = CFrame.new(0, 0.5, 0)
  674. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), 0) * CFrame.new(-2, 0.9-0.65*i, 0.25*i)
  675. end
  676. for i = 0 , 1 , 0.05 do
  677. wait()
  678. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(275)*i, 1,-1*i)
  679. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  680. LW.C0 = CFrame.new(-1.5, 0.5, -0.5*i) * CFrame.fromEulerAnglesXYZ(0.5*i,0,1*i)
  681. LW.C1 = CFrame.new(0, 0.5, 0)
  682. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90-90*i), math.rad(90), 0) * CFrame.new(-2+2*i, 0.9, 0)
  683. end
  684. end
  685.  
  686.  
  687. function equipanim()
  688.  
  689. for i = 0 , 1 , 0.05 do
  690.  
  691. wait()
  692. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(275)-math.rad(275)*i, 1,-1+1*i)
  693. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  694. LW.C0 = CFrame.new(-1.5, 0.5, -0.5*i) * CFrame.fromEulerAnglesXYZ(0.5*i,0,1*i)
  695. LW.C1 = CFrame.new(0, 0.5, 0)
  696. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90*i), math.rad(90), 0) * CFrame.new(-2*i, 0.9, 0)
  697. end
  698. for i = 0 , 1 , 0.1 do
  699.  
  700. wait()
  701. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, (1-1*i)+math.rad(90)*i,0)
  702. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25*i,0,0)
  703. LW.C0 = CFrame.new(-1.5+0.45*i, 0.5, -0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(0.5+1*i,0,1+.35*i)
  704. LW.C1 = CFrame.new(0, 0.5, 0)
  705. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), 0) * CFrame.new(-2, 0.9-0.65*i, 0.25*i)
  706. end
  707.  
  708.  
  709. end
  710.  
  711. --[[
  712. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1, 1,0)
  713. RW.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  714. LW.C0 = CFrame.new(-1, 1, -1) * CFrame.fromEulerAnglesXYZ(1.5,0,0.25)
  715. LW.C1 = CFrame.new(0, 0.5, 0)
  716.  
  717. ]]
  718.  
  719. function blast(n)
  720. local colors = {BrickColor.new("Bright red")}
  721. local mesh = Instance.new("SpecialMesh")
  722. mesh.MeshType = "Sphere"
  723. local shell = Instance.new("Part")
  724. mesh.Parent = shell
  725. shell.Anchored = true
  726. shell.formFactor = 1
  727. shell.Size = Vector3.new(1,1,1)
  728. CF = prt1.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0)
  729. shell.CFrame = CF + CF.lookVector * 3
  730. shell.Parent = workspace
  731. shell.Transparency = 0
  732. shell.BrickColor = colors[math.random(1,#colors)]
  733. if shot == "Poison" then
  734. shell.BrickColor = BrickColor.new("Royal purple")
  735. elseif shot == "Heal" then
  736. shell.BrickColor = BrickColor.new("Medium green")
  737. elseif shot == "Explosion" then
  738. shell.BrickColor = BrickColor.new("Really red")
  739. elseif shot == "Rapid" then
  740. shell.BrickColor = BrickColor.new("Dark stone grey")
  741. elseif shot == "Electric" then
  742. shell.BrickColor = BrickColor.new("New Yeller")
  743. end
  744. randomv = Vector3.new(n*10,n*10,n*10)
  745. for i = 0 , 1 , 0.15 do
  746. wait()
  747. mesh.Scale = randomv * Vector3.new(i,i,i)
  748. shell.Transparency = 1*i
  749. end
  750. shell.Parent = nil
  751. end
  752.  
  753.  
  754.  
  755. if (script.Parent.className ~= "HopperBin") then
  756. Tool = Instance.new("HopperBin")
  757. Tool.Parent = Backpack
  758. Tool.Name = "Light Bowgun"
  759. Tool.TextureId = "http://www.roblox.com/asset/?id=39539873"
  760. script.Parent = Tool
  761. Player.Backpack["Light Bowgun"].TextureId = "http://www.roblox.com/asset/?id=39539873"
  762. end
  763. Bin = script.Parent
  764.  
  765.  
  766. function OT(hit)
  767. if hit.Parent == nil then return end
  768. local hum = hit.Parent:findFirstChild("Humanoid")
  769. if hum ~= nil and hum ~= Character.Humanoid then
  770. if meleedebounce == false then
  771. BashedSound(prt2)
  772. --BAMhitsound:Play()
  773. meleedebounce = true
  774. coroutine.resume(coroutine.create(function()
  775. wait(0.5)
  776. meleedebounce = false
  777. end))
  778. v=Instance.new("BodyVelocity")
  779. v.P=1000
  780. v.maxForce=Vector3.new(math.huge,0,math.huge)
  781. v.velocity=prt2.CFrame.lookVector*25+Torso.Velocity/1.05
  782. v.Parent=hum.Parent.Torso
  783. coroutine.resume(coroutine.create(function()
  784. wait(0.3)
  785. v.Parent = nil
  786. end))
  787. DBHit(hum.Parent.Head,prt2)
  788. local damam = math.random(5,20)
  789. hum:TakeDamage(damam)
  790. showDamage(hum.Parent,damam,1)
  791. end
  792. end
  793.  
  794. end
  795.  
  796.  
  797.  
  798.  
  799.  
  800. function walkspeed(value)
  801. Character.Humanoid.WalkSpeed = value
  802. end
  803.  
  804. function printz(m) --Don't use this XP
  805. msg = Instance.new("Message")
  806. msg.Parent = Player
  807. msg.Text = m
  808. coroutine.resume(coroutine.create(function()
  809. wait(2)
  810. msg.Parent = nil
  811. end))
  812. end
  813.  
  814. function NormalS(lvl) --Wow. linerider64's bowgun functions are really complicated o.o
  815.  
  816. --Oh wait, this function has nothing on XD
  817. --[[
  818.  
  819. coroutine.resume(coroutine.create(function()
  820.  
  821. for ii = 1 , 20 do
  822. local a = arrow
  823. wait(0.1)
  824. local c = game.Workspace:GetChildren();
  825. for i = 1, #c do
  826. local hum = c[i]:findFirstChild("Humanoid")
  827. if hum ~= nil and hum.Health ~= 0 then
  828. local head = c[i]:findFirstChild("Head");
  829. if head ~= nil then
  830. local targ = head.Position - a.Position;
  831. local mag = targ.magnitude;
  832. if mag <= 3 and c[i].Name ~= Character.Name then
  833. hum:TakeDamage(damage)
  834. --arrow.Parent = nil
  835. end
  836. end
  837. end
  838. end
  839.  
  840.  
  841. end
  842. end))]]
  843.  
  844. end
  845.  
  846. function bulletshoot()
  847. local freakingbullet = Instance.new("Part") --trololol X3
  848. freakingbullet.formFactor = 1
  849. freakingbullet.Parent = workspace
  850. freakingbullet.CanCollide = false
  851. freakingbullet.BrickColor = BrickColor.new("New Yeller")
  852. freakingbullet.Name = "Bullet6"
  853. freakingbullet.Size = Vector3.new(1,1,1)
  854. freakingbullet.Position = Torso.Position
  855. freakingbullet.CFrame = CF * CFrame.new(0,-0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  856. freakingbullet.Velocity = Torso.CFrame.lookVector * 100
  857. local freakingbulmsh = Instance.new("CylinderMesh")
  858. freakingbulmsh.Parent = freakingbullet
  859. freakingbulmsh.Scale = Vector3.new(1.1,0.8,0.3)
  860. local force = Instance.new("BodyForce")
  861. force.Parent = freakingbullet
  862. force.force = Vector3.new(0,240,0)
  863. coroutine.resume(coroutine.create(function()
  864. while freakingbullet.Parent ~= nil do --I use this function instead of the touch function :3
  865. wait()
  866. local c = game.Workspace:GetChildren();
  867. for i = 1, #c do
  868. local hum = c[i]:findFirstChild("Humanoid")
  869. if hum ~= nil and hum.Health ~= 0 then
  870. local head = c[i]:findFirstChild("Head");
  871. if head ~= nil then
  872. local targ = head.Position - freakingbullet.Position;
  873. local mag = targ.magnitude;
  874. if mag <= 4 and c[i].Name ~= Player.Name then
  875. hum:TakeDamage(15)
  876. v=Instance.new("BodyVelocity")
  877. v.P=1000
  878. v.maxForce=Vector3.new(math.huge,0,math.huge)
  879. v.velocity=Torso.CFrame.lookVector*25+Torso.Velocity/1.05
  880. v.Parent=hum.Parent.Torso
  881. coroutine.resume(coroutine.create(function()
  882. wait(0.3)
  883. v.Parent = nil
  884. end))
  885. game:GetService("Debris"):AddItem(v,.1)
  886. freakingbullet.Parent = nil
  887. end
  888. end
  889. end
  890. end
  891. end
  892. end))
  893. coroutine.resume(coroutine.create(function()
  894. freakingbullet.Position = Torso.Position
  895. freakingbullet.CFrame = prt13.CFrame * CFrame.new(0,-0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  896. freakingbullet.Parent = nil
  897. end))
  898. end
  899.  
  900. function WeakShot(SpeedModifier)
  901. Character.Humanoid.WalkSpeed = 14
  902. if shot == "Normal" then
  903. if normalammo == 0 then
  904. attack = true
  905. reload(normammobase)
  906. normalammo = normammobase
  907. attack = false
  908. return
  909. else
  910. normalammo = normalammo - 1
  911. end
  912. elseif shot == "Poison" then
  913. if poisonammo == 0 then
  914. attack = true
  915. reload(poisammobase)
  916. poisonammo = poisammobase
  917. attack = false
  918. return
  919. else
  920. poisonammo = poisonammo - 1
  921. end
  922. elseif shot == "Heal" then
  923. if healammo == 0 then
  924. attack = true
  925. reload(healammobase)
  926. healammo = healammobase
  927. attack = false
  928. return
  929. else
  930. healammo = healammo - 1
  931. end
  932. elseif shot == "Explosion" then
  933. if explosionammo == 0 then
  934. attack = true
  935. reload(BOOMammobase)
  936. explosionammo = BOOMammobase
  937. attack = false
  938. return
  939. else
  940. explosionammo = explosionammo - 1
  941. end
  942. elseif shot == "Electric" then
  943. if elecammo == 0 then
  944. attack = true
  945. reload(1)
  946. elecammo = elecammobase
  947. attack = false
  948. return
  949. else
  950. elecammo = elecammo - 1
  951. end
  952. elseif shot == "Rapid" then
  953. if rapidammo == 0 then
  954. attack = true
  955. reload(10)
  956. rapidammo = rapidammobase
  957. attack = false
  958. return
  959. else
  960. -- rapidammo = rapidammo - 1
  961. end
  962. end
  963. if shot == "Rapid" then return end
  964. attack = true
  965. coroutine.resume(coroutine.create(
  966. function()
  967. blast(1)
  968. end
  969. ))
  970. local colors = {BrickColor.new("Institutional white")}
  971. local mesh = Instance.new("BlockMesh")
  972. mesh.Scale = Vector3.new(0.25,0.25,1)
  973. local case1m = Instance.new("BlockMesh")
  974. case1m.Scale = Vector3.new(0.25,0.5,1.2)
  975. local case2m = Instance.new("BlockMesh")
  976. case2m.Scale = Vector3.new(0.25,0.5,1.2)
  977. if shot == "Explosion" then
  978. mesh.Scale = Vector3.new(0.75,0.75,1.5)
  979. case1m.Scale = Vector3.new(0.75,1,1.7)
  980. case2m.Scale = Vector3.new(0.75,1,1.7)
  981. end
  982. local arrow = Instance.new("Part")
  983. mesh.Parent = arrow
  984. arrow.formFactor = 1
  985. arrow.Size = Vector3.new(1,1,1)
  986. CF = prt1.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0)
  987. arrow.CFrame = CF + CF.lookVector * 3
  988. arrow.Parent = workspace
  989. arrow.Transparency = 0
  990. arrow.BrickColor = BrickColor.new("Bright yellow")
  991. if shot == "Poison" then
  992. arrow.BrickColor = BrickColor.new("Royal purple")
  993. elseif shot == "Heal" then
  994. arrow.BrickColor = BrickColor.new("Medium green")
  995. elseif shot == "Explosion" then
  996. arrow.BrickColor = BrickColor.new("Really red")
  997. elseif shot == "Rapid" then
  998. arrow.BrickColor = BrickColor.new("Dark stone grey")
  999. elseif shot == "Electric" then
  1000. arrow.BrickColor = BrickColor.new("New Yeller")
  1001. --arrow.Transparency = 1
  1002. coroutine.resume(coroutine.create(function()
  1003. Stun2=function(part)
  1004. --[[ if part.Parent:FindFirstChild("Torso")==nil then
  1005. return
  1006. end]]
  1007. Torsoh2=part
  1008. End2=Torsoh2.CFrame+Vector3.new(math.random(-20,20)/10,math.random(-30,30)/10,math.random(-20,20)/10)
  1009. ST2=Torsoh2.Position
  1010. --[[ p=Instance.new("BodyPosition")
  1011. p.P=3000
  1012. p.D=100
  1013. p.maxForce=Vector3.new(math.huge,0,math.huge)
  1014. p.position=Torsoh2.Position
  1015. p.Parent=Torsoh2]]
  1016. while part.Parent ~= nil and part.BrickColor == BrickColor.new("New Yeller") do
  1017. -- f1:Play()
  1018. -- p.position=ST2+Vector3.new(math.random(-50,50)/50,0,math.random(-50,50)/50)
  1019. Start2=End2
  1020. End2=Torsoh2.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  1021. e=Instance.new("Part")
  1022. e.TopSurface=0
  1023. e.BottomSurface=0
  1024. e.CanCollide=false
  1025. e.Anchored=true
  1026. e.formFactor="Symmetric"
  1027. e.Size=Vector3.new(1,1,1)
  1028. Look2=(End2.p-Start2.p).unit
  1029. m=Instance.new("BlockMesh")
  1030. m.Scale=Vector3.new(.2,.2,(Start2.p-End2.p).magnitude)
  1031. m.Parent=e
  1032. e.CFrame=CFrame.new(Start2.p+Look2*(m.Scale.z/2),Start2.p+Look2*99)
  1033. e.Reflectance=.3
  1034. e.Name="Zap"
  1035. e.BrickColor=BrickColor.new("New Yeller")
  1036. e.Parent=part.Parent
  1037. coroutine.resume(coroutine.create(function(PAR) for i=1, 25 do PAR.Transparency=i/25 wait() end PAR.Parent=nil end),e)
  1038. wait(.1)
  1039. end
  1040. wait(.25)
  1041. -- p.Parent=nil
  1042. end
  1043. Stun2(arrow)
  1044. end))
  1045. end
  1046. ShootingSound(prt1)
  1047. --firesound:Play()
  1048. --[[local hitsond = hitsound:Clone()
  1049. hitsond.Parent = arrow ]]
  1050. --hitsond.Looped = false
  1051. coroutine.resume(coroutine.create(function()
  1052. while arrow.Parent ~= nil do --I use this function instead of the touch function :3
  1053. wait()
  1054. local c = game.Workspace:GetChildren();
  1055. for i = 1, #c do
  1056. local hum = c[i]:findFirstChild("Humanoid")
  1057. if hum ~= nil and hum.Health ~= 0 then
  1058. local head = c[i]:findFirstChild("Head");
  1059. local torso = c[i]:findFirstChild("Torso");
  1060. local leftarm = c[i]:findFirstChild("Left Arm");
  1061. local leftleg = c[i]:findFirstChild("Left Leg");
  1062. local rightarm = c[i]:findFirstChild("Right Arm");
  1063. local rightleg = c[i]:findFirstChild("Right Leg");
  1064. if head ~= nil and torso ~= nil then
  1065. local targ = head.Position - arrow.Position;
  1066. local targ2 = torso.Position - arrow.Position;
  1067. if leftarm ~= nil then
  1068. local targ3 = leftarm.Position - arrow.Position;
  1069. local mag3 = targ3.magnitude;
  1070. end
  1071. if leftleg ~= nil then
  1072. local targ4 = leftleg.Position - arrow.Position;
  1073. local mag4 = targ4.magnitude;
  1074. end
  1075. if rightarm ~= nil then
  1076. local targ5 = rightarm.Position - arrow.Position;
  1077. local mag5 = targ5.magnitude;
  1078. end
  1079. if rightleg ~= nil then
  1080. local targ6 = rightleg.Position - arrow.Position;
  1081. local mag6 = targ6.magnitude;
  1082. end
  1083. local mag = targ.magnitude;
  1084. local mag2 = targ2.magnitude;
  1085. if mag3 == nil then
  1086. mag3 = 9001
  1087. end
  1088. if mag4 == nil then
  1089. mag4 = 9001
  1090. end
  1091. if mag5 == nil then
  1092. mag5 = 9001
  1093. end
  1094. if mag6 == nil then
  1095. mag6 = 9001
  1096. end
  1097. if mag <= 4 or mag2 <= 4 or mag3 <= 4 or mag4 <= 4 or mag5 <= 4 or mag6 <= 4 and c[i].Name ~= Player.Name then
  1098. local damageh = math.random(15,25)
  1099. if shot == "Poison" then
  1100. CeEff = head
  1101. damageh = math.random(10,20)
  1102. local poisonchance = math.random(1,10)
  1103. if poisonchance <= 5 then
  1104. damageh = damageh + 1
  1105. local s = Instance.new("Smoke")
  1106. s.Parent = head
  1107. s.Opacity = 0.8
  1108. s.Size = 0.3
  1109. s.Color = Color3.new(1,0,1)
  1110. coroutine.resume(coroutine.create(function()
  1111. wait(1)
  1112. s.Enabled = false
  1113. wait(5)
  1114. s.Parent = nil
  1115. end))
  1116. end
  1117. if poisonchance == 1 then
  1118. coroutine.resume(coroutine.create(function()
  1119. for i = 0,40 do
  1120. wait(0.2)
  1121. head.Parent.Humanoid.Health = head.Parent.Humanoid.Health - 2
  1122. showDamage(head.Parent,2,1)
  1123. poisoneffect()
  1124. end
  1125. end))
  1126. end
  1127. elseif shot == "Heal" then
  1128. CeEff = head
  1129. damageh = math.random(-20,5)
  1130. local b = Instance.new("Part")
  1131. b.Parent = workspace
  1132. b.CFrame = head.CFrame * CFrame.new(0,2,0)
  1133. b.Size = Vector3.new(1,1,1)
  1134. b.Transparency = 0.2
  1135. b.Anchored = true
  1136. b.BrickColor = BrickColor.new("Medium green")
  1137. local meh = Instance.new("SpecialMesh")
  1138. meh.Parent = b
  1139. meh.MeshType = "Sphere"
  1140. meh.Scale = Vector3.new(1,1,1)
  1141. coroutine.resume(coroutine.create(function()
  1142. for i = 0,1,0.2 do
  1143. wait()
  1144. meh.Scale = meh.Scale + Vector3.new(2,2,2)
  1145. b.Transparency = b.Transparency + 0.2
  1146. end
  1147. b.Parent = nil
  1148. end))
  1149. elseif shot == "Explosion" then
  1150. local KABEWM = Instance.new("Explosion")
  1151. KABEWM.Position = head.Position
  1152. KABEWM.Parent = workspace
  1153. KABEWM.BlastPressure = -10
  1154. DBHit(head,arrow)
  1155. --[[ local kabewmsound = bewmsound:Clone()
  1156. kabewmsound.Parent = arrow
  1157. kabewmsound.Pitch = 0.5 ]]
  1158. KaBEWMSound(arrow)
  1159. -- kabewmsound:Play()
  1160. damageh = math.random(20,50)
  1161. local c = game.Workspace:GetChildren();
  1162. for i = 1, #c do
  1163. local humm = c[i]:findFirstChild("Humanoid")
  1164. if humm ~= nil and humm.Health ~= 0 then
  1165. local headd = c[i]:findFirstChild("Head");
  1166. if headd ~= nil then
  1167. local targg = headd.Position - KABEWM.Position;
  1168. local magg = targg.magnitude;
  1169. if magg <= 10 and c[i].Name ~= Player.Name then
  1170. local damagehh = math.random(20,50)
  1171. DBHit(headd,arrow)
  1172. showDamage(headd.Parent,damagehh,1)
  1173. end
  1174. end
  1175. end
  1176. end
  1177. elseif shot == "Electric" then
  1178. coroutine.resume(coroutine.create(function()
  1179. Stun3(head.Parent.Torso,math.random(0,10))
  1180. damageh = math.random(1,30)
  1181. end))
  1182. elseif shot == "Rapid" then
  1183. local damageh = math.random(5,10)
  1184. end
  1185. HittedSound(arrow)
  1186. -- hitsound:Play()
  1187. -- hum:TakeDamage(damageh)
  1188. hum.Health = hum.Health - damageh
  1189. showDamage(head.Parent,damageh,1)
  1190. v=Instance.new("BodyVelocity")
  1191. v.P=1000
  1192. v.maxForce=Vector3.new(math.huge,0,math.huge)
  1193. v.velocity=arrow.CFrame.lookVector*25+Torso.Velocity/1.05
  1194. v.Parent=hum.Parent.Torso
  1195. coroutine.resume(coroutine.create(function()
  1196. wait(0.3)
  1197. v.Parent = nil
  1198. end))
  1199. game:GetService("Debris"):AddItem(v,.1)
  1200. if shot ~= "Electric" then
  1201. arrow.Parent = nil
  1202. else
  1203. wait(0.2)
  1204. end
  1205. end
  1206. end
  1207. end
  1208. end
  1209. end
  1210. end))
  1211. local case1 = Instance.new("Part")
  1212. case1m.Parent = case1
  1213. case1.formFactor = 1
  1214. case1.Size = Vector3.new(1,1,1)
  1215. case1.CFrame = CF + CF.lookVector * 3
  1216. case1.Parent = workspace
  1217. case1.Transparency = 0
  1218. case1.BrickColor = colors[math.random(1,#colors)]
  1219. case1.CanCollide = false
  1220. if shot == "Electric" then
  1221. case1.Parent = nil
  1222. end
  1223. local case2 = Instance.new("Part")
  1224. case2m.Parent = case2
  1225. case2.formFactor = 1
  1226. case2.Size = Vector3.new(1,1,1)
  1227. case2.CFrame = CF + CF.lookVector * 3
  1228. case2.Parent = workspace
  1229. case2.Transparency = 0
  1230. case2.BrickColor = colors[math.random(1,#colors)]
  1231. case2.CanCollide = false
  1232. if shot == "Electric" then
  1233. case2.Parent = nil
  1234. end
  1235. local w = Instance.new("Weld")
  1236. w.Parent = case1
  1237. w.Part0 = case1
  1238. w.Part1 = arrow
  1239. w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  1240. w.C0 = CFrame.fromEulerAnglesXYZ(0, 0,0) * CFrame.new(0.125, 0, 0)
  1241. local wc2 = Instance.new("Weld")
  1242. wc2.Parent = case2
  1243. wc2.Part0 = case2
  1244. wc2.Part1 = arrow
  1245. wc2.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  1246. wc2.C0 = CFrame.fromEulerAnglesXYZ(0, 0,0) * CFrame.new(-0.125, 0, 0)
  1247. local g = Instance.new("BodyGyro")
  1248. g.Parent = arrow
  1249. g.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  1250. g.cframe = CF
  1251. local v = Instance.new("BodyVelocity")
  1252. v.Parent = arrow
  1253. v.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1254. v.velocity = CF.lookVector * 100
  1255. arrow.CanCollide = false
  1256. caseremoval = 0.1
  1257. coroutine.resume(coroutine.create(function()
  1258. wait(caseremoval)
  1259. w.Parent = nil
  1260. wc2.Parent = nil
  1261. wait(2-caseremoval)
  1262. arrow.Parent = nil
  1263. damage = odamage
  1264. end))
  1265.  
  1266.  
  1267. --[[arrow.Touched:connect(function(hit)
  1268. --if hit.Parent == nil then return end
  1269. local hum = hit.Parent:findFirstChild("Humanoid")
  1270. if hum ~= nil then
  1271. hum:TakeDamage(damage)
  1272. wait()
  1273. arrow.Parent = nil
  1274. end
  1275.  
  1276. end)]]
  1277. if shot ~= "Explosion" then
  1278. for i = 0 , 1 , 0.2 * SpeedModifier do
  1279. wait()
  1280. if aiming ~= true then
  1281. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.25*i, math.rad(90),0)
  1282. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1283. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  1284. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25*i, 0,0)
  1285. else
  1286. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.25*i, math.rad(90),-offset)
  1287. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1288. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,-offset,1.35)
  1289. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25*i, 0,0)
  1290. end
  1291. end
  1292.  
  1293. for i = 0 , 1 , 0.1 * SpeedModifier do
  1294. wait()
  1295. if aiming ~= true then
  1296. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.25-0.25*i, math.rad(90),0)
  1297. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1298. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  1299. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25+0.25*i, 0,0)
  1300. else
  1301. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.25-0.25*i, math.rad(90),-offset)
  1302. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1303. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,-offset,1.35)
  1304. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25+0.25*i, 0,0)
  1305. end
  1306. end
  1307. elseif shot == "Rapid" then
  1308. for i = 0 , 1 , 0.2 * (SpeedModifier + 5) do
  1309. wait()
  1310. if aiming ~= true then
  1311. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.25*i, math.rad(90),0)
  1312. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1313. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  1314. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25*i, 0,0)
  1315. else
  1316. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.25*i, math.rad(90),-offset)
  1317. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1318. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,-offset,1.35)
  1319. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25*i, 0,0)
  1320. end
  1321. end
  1322.  
  1323. for i = 0 , 1 , 0.1 * (SpeedModifier + 5) do
  1324. wait()
  1325. if aiming ~= true then
  1326. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.25-0.25*i, math.rad(90),0)
  1327. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1328. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  1329. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25+0.25*i, 0,0)
  1330. else
  1331. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.25-0.25*i, math.rad(90),-offset)
  1332. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1333. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,-offset,1.35)
  1334. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25+0.25*i, 0,0)
  1335. end
  1336. end
  1337. else
  1338. local p = Instance.new("Part")
  1339. p.Position = Torso.Position
  1340. p.Parent = Character
  1341. p.Transparency = 1
  1342. local welel = Instance.new("Weld")
  1343. welel.Parent = p
  1344. welel.Part0 = p
  1345. welel.Part1 = Torso
  1346. welel.C0 = CFrame.new(0,1,2) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0)
  1347. local lolsmoke = Instance.new("Smoke")
  1348. lolsmoke.Enabled = true
  1349. lolsmoke.Parent = p
  1350. lolsmoke.Size = smokesize
  1351. lolsmoke.Opacity = 1
  1352. lolsmoke.RiseVelocity = 10
  1353. local lolsmoke2 = Instance.new("Smoke")
  1354. lolsmoke2.Enabled = true
  1355. lolsmoke2.Parent = p
  1356. lolsmoke2.Size = smokesize
  1357. lolsmoke.Opacity = 1
  1358. lolsmoke2.RiseVelocity = 10
  1359. --[[local lolsmoke3 = Instance.new("Smoke")
  1360. lolsmoke3.Enabled = true
  1361. lolsmoke3.Parent = p
  1362. lolsmoke3.Size = 2
  1363. lolsmoke.Opacity = 1
  1364. lolsmoke3.RiseVelocity = 10 ]]
  1365. Character.Humanoid.WalkSpeed = 0
  1366. local vel = Instance.new("BodyVelocity")
  1367. vel.Parent = Torso
  1368. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  1369. vel.velocity = Player.Character.Torso.CFrame.lookVector * -40
  1370. coroutine.resume(coroutine.create(function()
  1371. weh = 40
  1372. for i = 0,40 do
  1373. wait(0)
  1374. weh = weh - 1
  1375. vel.velocity = Player.Character.Torso.CFrame.lookVector * -weh
  1376. end
  1377. lolsmoke.Enabled = false
  1378. lolsmoke2.Enabled = false
  1379. --lolsmoke3.Enabled = false
  1380. vel.Parent = nil
  1381. wait(5)
  1382. p.Parent = nil
  1383. end))
  1384. for i = 0 , 1 , 0.3 * SpeedModifier do
  1385. wait()
  1386. if aiming ~= true then
  1387. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(0.5*i+1.57,3.14,0) * CFrame.new(0,0.3*i,-0.5)
  1388. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.50*i, math.rad(90),0)
  1389. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1390. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  1391. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.50*i, 0,0)
  1392. elseif aiming == true then
  1393. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(0.5*i+1.57,3.14,0) * CFrame.new(0,0.3*i,-0.5)
  1394. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.50*i, math.rad(90),-offset)
  1395. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1396. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,-offset,1.35)
  1397. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.50*i, 0,0)
  1398. end
  1399. end
  1400. wait(0.3)
  1401. coroutine.resume(coroutine.create(function()
  1402. for i = 0,16 do
  1403. wait()
  1404. Character.Humanoid.WalkSpeed = i
  1405. end
  1406. --print(Character.Humanoid.WalkSpeed)
  1407. end))
  1408. for i = 0 , 1 , 0.1 * SpeedModifier do
  1409. wait()
  1410. if aiming ~= true then
  1411. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(-0.25*i+2.07,3.14,0) * CFrame.new(0,-0.15*i+0.3,-0.5)
  1412. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.25-0.50*i, math.rad(90),0)
  1413. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1414. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  1415. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25+0.50*i, 0,0)
  1416. elseif aiming == true then
  1417. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(-0.25*i+2.07,3.14,0) * CFrame.new(0,-0.15*i+0.3,-0.5)
  1418. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.25-0.50*i, math.rad(90),-offset)
  1419. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1420. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,-offset,1.35)
  1421. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25+0.50*i, 0,0)
  1422. end
  1423. end
  1424. for i = 0 , 1 , 0.05 * SpeedModifier do
  1425. wait()
  1426. if aiming ~= true then
  1427. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(-0.25*i+1.82,3.14,0) * CFrame.new(0,-0.15*i+0.15,-0.5)
  1428. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25+0.25*i, math.rad(90),0)
  1429. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1430. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  1431. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.25-0.25*i, 0,0)
  1432. elseif aiming == true then
  1433. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(-0.25*i+1.82,3.14,0) * CFrame.new(0,-0.15*i+0.15,-0.5)
  1434. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25+0.25*i, math.rad(90),-offset)
  1435. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1436. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,-offset,1.35)
  1437. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.25-0.25*i, 0,0)
  1438. end
  1439. end
  1440. end
  1441. attack = false
  1442. Character.Humanoid.WalkSpeed = 16
  1443. end
  1444.  
  1445. function RapidShot(SpeedModifier)
  1446. Character.Humanoid.WalkSpeed = 14
  1447. if shot == "Normal" then
  1448. if normalammo == 0 then
  1449. attack = true
  1450. reload(normammobase)
  1451. normalammo = normammobase
  1452. attack = false
  1453. return
  1454. else
  1455. normalammo = normalammo - 1
  1456. end
  1457. elseif shot == "Poison" then
  1458. if poisonammo == 0 then
  1459. attack = true
  1460. reload(poisammobase)
  1461. poisonammo = poisammobase
  1462. attack = false
  1463. return
  1464. else
  1465. poisonammo = poisonammo - 1
  1466. end
  1467. elseif shot == "Heal" then
  1468. if healammo == 0 then
  1469. attack = true
  1470. reload(healammobase)
  1471. healammo = healammobase
  1472. attack = false
  1473. return
  1474. else
  1475. healammo = healammo - 1
  1476. end
  1477. elseif shot == "Explosion" then
  1478. if explosionammo == 0 then
  1479. attack = true
  1480. reload(BOOMammobase)
  1481. explosionammo = BOOMammobase
  1482. attack = false
  1483. return
  1484. else
  1485. explosionammo = explosionammo - 1
  1486. end
  1487. elseif shot == "Rapid" then
  1488. if rapidammo == 0 then
  1489. attack = true
  1490. reload(10)
  1491. rapidammo = rapidammobase
  1492. attack = false
  1493. return
  1494. else
  1495. rapidammo = rapidammo - 1
  1496. end
  1497. end
  1498. if shot == "Explosion" then return end
  1499. if shot == "Electric" then return end
  1500. attack = true
  1501. coroutine.resume(coroutine.create(
  1502. function()
  1503. blast(1)
  1504. end
  1505. ))
  1506. local colors = {BrickColor.new("Institutional white")}
  1507. local mesh = Instance.new("BlockMesh")
  1508. mesh.Scale = Vector3.new(0.25,0.25,1)
  1509. local case1m = Instance.new("BlockMesh")
  1510. case1m.Scale = Vector3.new(0.25,0.5,1.2)
  1511. local case2m = Instance.new("BlockMesh")
  1512. case2m.Scale = Vector3.new(0.25,0.5,1.2)
  1513. local arrow = Instance.new("Part")
  1514. mesh.Parent = arrow
  1515. arrow.formFactor = 1
  1516. arrow.Size = Vector3.new(1,1,1)
  1517. CF = prt1.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0)
  1518. arrow.CFrame = CF + CF.lookVector * 3
  1519. arrow.Parent = workspace
  1520. arrow.Transparency = 0
  1521. arrow.BrickColor = BrickColor.new("Bright yellow")
  1522. if shot == "Poison" then
  1523. arrow.BrickColor = BrickColor.new("Royal purple")
  1524. elseif shot == "Heal" then
  1525. arrow.BrickColor = BrickColor.new("Medium green")
  1526. elseif shot == "Rapid" then
  1527. arrow.BrickColor = BrickColor.new("Dark stone grey")
  1528. end
  1529. ShootingSound(prt1)
  1530. --[[firesound:Play()
  1531. local hitsond = hitsound:Clone()
  1532. hitsond.Parent = arrow
  1533. hitsond.Looped = false ]]
  1534. coroutine.resume(coroutine.create(function()
  1535. while arrow.Parent ~= nil do --I use this function instead of the touch function :3
  1536. wait()
  1537. local c = game.Workspace:GetChildren();
  1538. for i = 1, #c do
  1539. local hum = c[i]:findFirstChild("Humanoid")
  1540. if hum ~= nil and hum.Health ~= 0 then
  1541. local head = c[i]:findFirstChild("Head");
  1542. if head ~= nil then
  1543. local targ = head.Position - arrow.Position;
  1544. local mag = targ.magnitude;
  1545. if mag <= 4 and c[i].Name ~= Player.Name then
  1546. local damageh = math.random(1,10)
  1547. if shot == "Poison" then
  1548. CeEff = head
  1549. damageh = math.random(1,5)
  1550. local poisonchance = math.random(1,10)
  1551. if poisonchance <= 5 then
  1552. damageh = damageh + 1
  1553. local s = Instance.new("Smoke")
  1554. s.Parent = head
  1555. s.Opacity = 0.8
  1556. s.Size = 0.3
  1557. s.Color = Color3.new(1,0,1)
  1558. coroutine.resume(coroutine.create(function()
  1559. wait(1)
  1560. s.Enabled = false
  1561. wait(5)
  1562. s.Parent = nil
  1563. end))
  1564. end
  1565. if poisonchance == 1 then
  1566. coroutine.resume(coroutine.create(function()
  1567. for i = 0,40 do
  1568. wait(0.2)
  1569. head.Parent.Humanoid.Health = head.Parent.Humanoid.Health - 2
  1570. showDamage(head.Parent,2,1)
  1571. poisoneffect()
  1572. end
  1573. end))
  1574. end
  1575. elseif shot == "Heal" then
  1576. damageh = math.random(-10,0)
  1577. elseif shot == "Rapid" then
  1578. local damageh = math.random(1,5)
  1579. end
  1580. HittedSound(arrow)
  1581. -- hitsound:Play()
  1582. -- hum:TakeDamage(damageh)
  1583. hum.Health = hum.Health - damageh
  1584. showDamage(head.Parent,damageh,1)
  1585. v=Instance.new("BodyVelocity")
  1586. v.P=1000
  1587. v.maxForce=Vector3.new(math.huge,0,math.huge)
  1588. v.velocity=arrow.CFrame.lookVector*25+Torso.Velocity/1.05
  1589. v.Parent=hum.Parent.Torso
  1590. coroutine.resume(coroutine.create(function()
  1591. wait(0.3)
  1592. v.Parent = nil
  1593. end))
  1594. game:GetService("Debris"):AddItem(v,.1)
  1595. arrow.Parent = nil
  1596. end
  1597. end
  1598. end
  1599. end
  1600. end
  1601. end))
  1602. local case1 = Instance.new("Part")
  1603. case1m.Parent = case1
  1604. case1.formFactor = 1
  1605. case1.Size = Vector3.new(1,1,1)
  1606. case1.CFrame = CF + CF.lookVector * 3
  1607. case1.Parent = workspace
  1608. case1.Transparency = 0
  1609. case1.BrickColor = colors[math.random(1,#colors)]
  1610. case1.CanCollide = false
  1611. local case2 = Instance.new("Part")
  1612. case2m.Parent = case2
  1613. case2.formFactor = 1
  1614. case2.Size = Vector3.new(1,1,1)
  1615. case2.CFrame = CF + CF.lookVector * 3
  1616. case2.Parent = workspace
  1617. case2.Transparency = 0
  1618. case2.BrickColor = colors[math.random(1,#colors)]
  1619. case2.CanCollide = false
  1620. local w = Instance.new("Weld")
  1621. w.Parent = case1
  1622. w.Part0 = case1
  1623. w.Part1 = arrow
  1624. w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  1625. w.C0 = CFrame.fromEulerAnglesXYZ(0, 0,0) * CFrame.new(0.125, 0, 0)
  1626. local wc2 = Instance.new("Weld")
  1627. wc2.Parent = case2
  1628. wc2.Part0 = case2
  1629. wc2.Part1 = arrow
  1630. wc2.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  1631. wc2.C0 = CFrame.fromEulerAnglesXYZ(0, 0,0) * CFrame.new(-0.125, 0, 0)
  1632. local g = Instance.new("BodyGyro")
  1633. g.Parent = arrow
  1634. g.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  1635. g.cframe = CF
  1636. local v = Instance.new("BodyVelocity")
  1637. v.Parent = arrow
  1638. v.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1639. v.velocity = CF.lookVector * 100
  1640. arrow.CanCollide = false
  1641. caseremoval = 0.1
  1642. coroutine.resume(coroutine.create(function()
  1643. wait(caseremoval)
  1644. w.Parent = nil
  1645. wc2.Parent = nil
  1646. wait(2-caseremoval)
  1647. arrow.Parent = nil
  1648. damage = odamage
  1649. end))
  1650.  
  1651.  
  1652. --[[arrow.Touched:connect(function(hit)
  1653. --if hit.Parent == nil then return end
  1654. local hum = hit.Parent:findFirstChild("Humanoid")
  1655. if hum ~= nil then
  1656. hum:TakeDamage(damage)
  1657. wait()
  1658. arrow.Parent = nil
  1659. end
  1660.  
  1661. end)]]
  1662. if shot ~= "Rapid" then
  1663. for i = 0 , 1 , 0.2 * SpeedModifier do
  1664. wait()
  1665. if aiming ~= true then
  1666. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.25*i, math.rad(90),0)
  1667. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1668. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  1669. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25*i, 0,0)
  1670. else
  1671. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.25*i, math.rad(90),-offset)
  1672. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1673. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,-offset,1.35)
  1674. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25*i, 0,0)
  1675. end
  1676. end
  1677.  
  1678. for i = 0 , 1 , 0.1 * SpeedModifier do
  1679. wait()
  1680. if aiming ~= true then
  1681. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.25-0.25*i, math.rad(90),0)
  1682. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1683. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  1684. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25+0.25*i, 0,0)
  1685. else
  1686. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.25-0.25*i, math.rad(90),-offset)
  1687. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1688. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,-offset,1.35)
  1689. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25+0.25*i, 0,0)
  1690. end
  1691. end
  1692. else
  1693. for i = 0 , 1 , 0.2 * (SpeedModifier+1.5) do
  1694. wait()
  1695. if aiming ~= true then
  1696. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.25*i, math.rad(90),0)
  1697. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1698. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  1699. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25*i, 0,0)
  1700. else
  1701. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.25*i, math.rad(90),-offset)
  1702. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1703. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,-offset,1.35)
  1704. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25*i, 0,0)
  1705. end
  1706. end
  1707.  
  1708. for i = 0 , 1 , 0.1 * (SpeedModifier+1.5) do
  1709. wait()
  1710. if aiming ~= true then
  1711. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.25-0.25*i, math.rad(90),0)
  1712. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1713. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  1714. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25+0.25*i, 0,0)
  1715. else
  1716. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.25-0.25*i, math.rad(90),-offset)
  1717. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1718. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,-offset,1.35)
  1719. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25+0.25*i, 0,0)
  1720. end
  1721. end
  1722. end
  1723. attack = false
  1724. Character.Humanoid.WalkSpeed = 16
  1725. end
  1726.  
  1727. function meleeattack() --trololol this is for those losers who go too close to me >:3
  1728. attack = true
  1729. SlashSound(prt2)
  1730. --slashsound:Play()
  1731. for i = 0 , 1 , 0.1 do
  1732. wait()
  1733. if aiming ~= true then
  1734. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  1735. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), 0) * CFrame.new(1*i-2, 0.65*i+0.9-0.65, 0.25)
  1736. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5*i, math.rad(90),0)
  1737. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1738. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  1739. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.5*i,0,0)
  1740. else
  1741. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  1742. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), 0) * CFrame.new(1*i-2, 0.65*i+0.9-0.65, 0.25)
  1743. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5*i, math.rad(90),-offset)
  1744. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1745. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,-offset,1.35)
  1746. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.5*i,0,0)
  1747. end
  1748. end
  1749. local conneh = prt2.Touched:connect(OT)
  1750. for i = 0 , 1 , 0.15 do
  1751. wait()
  1752. if aiming ~= true then
  1753. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), 0) * CFrame.new(-1*i-1, 0.65+0.9-0.65, 0.25)
  1754. RW.C0 = CFrame.new(-0.5*i+1.5, 0.5, -0.7*i) * CFrame.fromEulerAnglesXYZ(1.5*i-0.5, 1*i+math.rad(90),0.5*i)
  1755. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1756. LW.C0 = CFrame.new(-0.5*i-1.05, 0.5, 1*i-1) * CFrame.fromEulerAnglesXYZ(1.5,0,0.22*i+1.35)
  1757. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-2.07*i+0.5,-1*i,1.5*i)
  1758. else
  1759. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), 0) * CFrame.new(-1*i-1, 0.65+0.9-0.65, 0.25)
  1760. RW.C0 = CFrame.new(-0.5*i+1.5, 0.5, -0.7*i) * CFrame.fromEulerAnglesXYZ(1.5*i-0.5, 1*i+math.rad(90),0.5*i-offset)
  1761. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1762. LW.C0 = CFrame.new(-0.5*i-1.05, 0.5, 1*i-1) * CFrame.fromEulerAnglesXYZ(1.5,-offset,0.22*i+1.35)
  1763. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-2.07*i+0.5,-1*i,1.5*i)
  1764. end
  1765. end
  1766. for i = 0 , 1 , 0.1 do
  1767. wait()
  1768. if aiming ~= true then
  1769. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), 0) * CFrame.new(-1-1, 0.65+0.9-0.65, 0.25)
  1770. RW.C0 = CFrame.new(1, 0.5, -0.7) * CFrame.fromEulerAnglesXYZ(1.5-0.5, 1+math.rad(90),0.3*i+0.5)
  1771. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1772. LW.C0 = CFrame.new(-1.55, 0.5, 1-1) * CFrame.fromEulerAnglesXYZ(1.5,0,0.22+1.35)
  1773. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.3*i-2.07+0.5,-1,1*i+1.5)
  1774. else
  1775. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), 0) * CFrame.new(-1-1, 0.65+0.9-0.65, 0.25)
  1776. RW.C0 = CFrame.new(1, 0.5, -0.7) * CFrame.fromEulerAnglesXYZ(1.5-0.5, 1+math.rad(90),0.3*i+0.5-offset)
  1777. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1778. LW.C0 = CFrame.new(-1.55, 0.5, 1-1) * CFrame.fromEulerAnglesXYZ(1.5,-offset,0.22+1.35)
  1779. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.3*i-2.07+0.5,-1,1*i+1.5)
  1780. end
  1781. end
  1782. wait(0.1)
  1783. conneh:disconnect()
  1784. for i = 0 , 1 , 0.1 do
  1785. wait()
  1786. if aiming ~= true then
  1787. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), 0) * CFrame.new(-2, -0.65*i+0.65+0.9-0.65, 0.25)
  1788. RW.C0 = CFrame.new(0.5*i+1, 0.5, 0.7*i-0.7) * CFrame.fromEulerAnglesXYZ(-1*i+1, -1*i+1+math.rad(90),-0.8*i+0.3+0.5)
  1789. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1790. LW.C0 = CFrame.new(0.5*i-1.55, 0.5, -1*i) * CFrame.fromEulerAnglesXYZ(1.5,0,-0.22*i+0.22+1.35)
  1791. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.27*i-1.27,1*i-1,-2.5*i+2.5)
  1792. else
  1793. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), 0) * CFrame.new(-2, -0.65*i+0.65+0.9-0.65, 0.25)
  1794. RW.C0 = CFrame.new(0.5*i+1, 0.5, 0.7*i-0.7) * CFrame.fromEulerAnglesXYZ(-1*i+1, -1*i+1+math.rad(90),-0.8*i+0.3+0.5-offset)
  1795. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1796. LW.C0 = CFrame.new(0.5*i-1.55, 0.5, -1*i) * CFrame.fromEulerAnglesXYZ(1.5,-offset,-0.22*i+0.22+1.35)
  1797. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.27*i-1.27,1*i-1,-2.5*i+2.5)
  1798. end
  1799. end
  1800. --[[for i = 0 , 1 , 0.1 do
  1801. wait()
  1802. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), 0) * CFrame.new(-2,0.9-0.65, 0.25)
  1803. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90),0)
  1804. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1805. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  1806. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1807. end]]
  1808. attack = false
  1809. end
  1810.  
  1811. function changeitemleft()
  1812. if Number > 1 then
  1813. Number = Number - 1
  1814. Blah = Item[Number]
  1815. ItemText2.Text = Blah
  1816. end
  1817. end
  1818.  
  1819. function changeitemright()
  1820. if Number < #Item then
  1821. Number = Number + 1
  1822. Blah = Item[Number]
  1823. ItemText2.Text = Blah
  1824. end
  1825. end
  1826.  
  1827. function UseItem()
  1828. attack = true
  1829. for i = 0,1,0.1 do
  1830. wait()
  1831. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5*i, math.rad(90),0)
  1832. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1833. LW.C0 = CFrame.new(-1.05-0.3*i, 0.5, -1+1.4*i) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  1834. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.3*i,0,2.3*i)
  1835. end
  1836. if Blah == "Bloxy Cola" then
  1837. local bloxycola = Instance.new("Part")
  1838. bloxycola.formFactor = 1
  1839. bloxycola.CanCollide = false
  1840. bloxycola.Name = "Bloxy Cola"
  1841. bloxycola.Locked = true
  1842. bloxycola.Size = Vector3.new(1,1,1)
  1843. bloxycola.Parent = swordholder
  1844. local colamesh = Instance.new("SpecialMesh")
  1845. colamesh.Parent = bloxycola
  1846. colamesh.MeshId = "http://www.roblox.com/asset/?id=10470609"
  1847. colamesh.TextureId = "http://www.roblox.com/asset/?id=10470600"
  1848. colamesh.Scale = Vector3.new(1.2, 1.2, 1.2)
  1849. local colaweld = Instance.new("Weld")
  1850. colaweld.Parent = bloxycola
  1851. colaweld.Part0 = bloxycola
  1852. colaweld.Part1 = LeftArm
  1853. colaweld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,math.rad(180)) * CFrame.new(0, 1, 0)
  1854. BloxyColaSound(bloxycola)
  1855. for i = 0,1,0.1 do
  1856. wait()
  1857. LW.C0 = CFrame.new(-1.05-0.3, 0.5, -1+1.4) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  1858. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.3-0.6*i,0,2.3-0.3*i)
  1859. end
  1860. for i = 0,1,0.1 do
  1861. wait()
  1862. LW.C0 = CFrame.new(-1.05-0.3, 0.5+0.3*i, -1+1.4-1.4*i) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  1863. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.7-1.9*i,1*i,2-2*i)
  1864. end
  1865. BloxyColaDrinkSound(bloxycola)
  1866. for i = 0,1,0.1 do
  1867. wait(0.1)
  1868. Character.Humanoid.Health = Character.Humanoid.Health + 2
  1869. end
  1870. wait(2)
  1871. for i = 0,1,0.1 do
  1872. wait()
  1873. LW.C0 = CFrame.new(-1.35-0.15*i, 0.5+0.3-0.3*i, -1+1*i) * CFrame.fromEulerAnglesXYZ(1.5-1.5*i,0,1.35-1.35*i)
  1874. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.1-1.47*i,1-1*i,0)
  1875. end
  1876. wait()
  1877. bloxycola:BreakJoints()
  1878. bloxycola.CanCollide = true
  1879. wait(0.5)
  1880. for i = 0,1,0.1 do
  1881. wait()
  1882. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i, math.rad(90),0)
  1883. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1884. LW.C0 = CFrame.new(-1.35-0.15+0.45*i , 0.5+0.3-0.3, -1*i) * CFrame.fromEulerAnglesXYZ(1.5*i,0,1.35*i)
  1885. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-1.57+1.57*i,0,0)
  1886. end
  1887. coroutine.resume(coroutine.create(function(part)
  1888. wait(4)
  1889. part.CanCollide = false
  1890. for i = 0,1,0.1 do
  1891. wait()
  1892. part.Transparency = i
  1893. end
  1894. part.Parent = nil
  1895. end),bloxycola)
  1896. elseif Blah == "Rhysmon's Red Cola" then
  1897. local rhysmoncola = Instance.new("Part")
  1898. rhysmoncola.formFactor = 1
  1899. rhysmoncola.CanCollide = false
  1900. rhysmoncola.Name = "Rhysmon's Red Cola"
  1901. rhysmoncola.Locked = true
  1902. rhysmoncola.Size = Vector3.new(1,1,1)
  1903. rhysmoncola.Parent = swordholder
  1904. local colamesh = Instance.new("SpecialMesh")
  1905. colamesh.Parent = rhysmoncola
  1906. colamesh.MeshId = "http://www.roblox.com/asset/?id=10470609"
  1907. colamesh.TextureId = "http://www.roblox.com/asset/?id=25987732"
  1908. colamesh.Scale = Vector3.new(1.2, 1.2, 1.2)
  1909. local colaweld = Instance.new("Weld")
  1910. colaweld.Parent = rhysmoncola
  1911. colaweld.Part0 = rhysmoncola
  1912. colaweld.Part1 = LeftArm
  1913. colaweld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,math.rad(180)) * CFrame.new(0, 1, 0)
  1914. BloxyColaSound(rhysmoncola)
  1915. for i = 0,1,0.1 do
  1916. wait()
  1917. LW.C0 = CFrame.new(-1.05-0.3, 0.5, -1+1.4) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  1918. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.3-0.6*i,0,2.3-0.3*i)
  1919. end
  1920. for i = 0,1,0.1 do
  1921. wait()
  1922. LW.C0 = CFrame.new(-1.05-0.3, 0.5+0.3*i, -1+1.4-1.4*i) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  1923. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.7-1.9*i,1*i,2-2*i)
  1924. end
  1925. BloxyColaDrinkSound(rhysmoncola)
  1926. local rhysmonrandom = math.random(1,7)
  1927. if rhysmonrandom == 1 then
  1928. for i = 0,1,0.1 do
  1929. wait(0.1)
  1930. Character.Humanoid.Health = Character.Humanoid.Health + 10
  1931. end
  1932. elseif rhysmonrandom == 2 then
  1933. for i = 0,1,0.1 do
  1934. wait(0.1)
  1935. Character.Humanoid.Health = Character.Humanoid.Health - 2
  1936. end
  1937. elseif rhysmonrandom == 3 then
  1938. for i = 0,1,0.1 do
  1939. wait(0.1)
  1940. Character.Humanoid.Health = Character.Humanoid.Health - 5
  1941. end
  1942. elseif rhysmonrandom == 4 then
  1943. for i = 0,1,0.1 do
  1944. wait(0.1)
  1945. Character.Humanoid.Health = Character.Humanoid.Health + 3
  1946. end
  1947. elseif rhysmonrandom == 5 then
  1948. for i = 0,1,0.1 do
  1949. wait(0.1)
  1950. Character.Humanoid.MaxHealth = Character.Humanoid.MaxHealth + 5
  1951. end
  1952. elseif rhysmonrandom == 5 then
  1953. for i = 0,1,0.1 do
  1954. wait(0.1)
  1955. Character.Humanoid.MaxHealth = Character.Humanoid.MaxHealth - 3
  1956. end
  1957. elseif rhysmonrandom == 7 then
  1958. for i = 0,1,0.1 do
  1959. wait(0.1)
  1960. Character.Humanoid.Health = Character.Humanoid.Health + 100
  1961. end
  1962. EXPLOSIONSound(torso)
  1963. local POWHAHA = Instance.new("Explosion")
  1964. POWHAHA.Parent = workspace
  1965. POWHAHA.Position = Torso.Position
  1966. end
  1967. wait(2)
  1968. for i = 0,1,0.1 do
  1969. wait()
  1970. LW.C0 = CFrame.new(-1.35-0.15*i, 0.5+0.3-0.3*i, -1+1*i) * CFrame.fromEulerAnglesXYZ(1.5-1.5*i,0,1.35-1.35*i)
  1971. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.1-1.47*i,1-1*i,0)
  1972. end
  1973. wait()
  1974. rhysmoncola:BreakJoints()
  1975. rhysmoncola.CanCollide = true
  1976. wait(0.5)
  1977. for i = 0,1,0.1 do
  1978. wait()
  1979. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i, math.rad(90),0)
  1980. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  1981. LW.C0 = CFrame.new(-1.35-0.15+0.45*i , 0.5+0.3-0.3, -1*i) * CFrame.fromEulerAnglesXYZ(1.5*i,0,1.35*i)
  1982. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-1.57+1.57*i,0,0)
  1983. end
  1984. coroutine.resume(coroutine.create(function(part)
  1985. part.Parent = workspace
  1986. end),rhysmoncola)
  1987. elseif Blah == "Decoy Deploy" then
  1988. local decoyj00ce = Instance.new("Part")
  1989. decoyj00ce.formFactor = 1
  1990. decoyj00ce.CanCollide = false
  1991. decoyj00ce.Name = "Decoy Deploy"
  1992. decoyj00ce.Locked = true
  1993. decoyj00ce.Size = Vector3.new(1,1,1)
  1994. decoyj00ce.Parent = swordholder
  1995. local decoymesh = Instance.new("SpecialMesh")
  1996. decoymesh.Parent = decoyj00ce
  1997. decoymesh.MeshId = "http://www.roblox.com/asset/?id=29515710"
  1998. decoymesh.TextureId = "http://www.roblox.com/asset/?id=29515756"
  1999. decoymesh.Scale = Vector3.new(1.9, 1.9, 1.9)
  2000. local decoyweld = Instance.new("Weld")
  2001. decoyweld.Parent = decoyj00ce
  2002. decoyweld.Part0 = decoyj00ce
  2003. decoyweld.Part1 = LeftArm
  2004. decoyweld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,math.rad(180)) * CFrame.new(0, 1, 0)
  2005. BloxyColaSound(decoyj00ce)
  2006. for i = 0,1,0.1 do
  2007. wait()
  2008. LW.C0 = CFrame.new(-1.05-0.3, 0.5, -1+1.4) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  2009. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.3-0.6*i,0,2.3-0.3*i)
  2010. end
  2011. for i = 0,1,0.1 do
  2012. wait()
  2013. LW.C0 = CFrame.new(-1.05-0.3, 0.5+0.3*i, -1+1.4-1.4*i) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  2014. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.7-1.9*i,1*i,2-2*i)
  2015. end
  2016. BloxyColaDrinkSound(decoyj00ce)
  2017. wait(2)
  2018. for i = 0,1,0.1 do
  2019. wait()
  2020. LW.C0 = CFrame.new(-1.35-0.15*i, 0.5+0.3-0.3*i, -1+1*i) * CFrame.fromEulerAnglesXYZ(1.5-1.5*i,0,1.35-1.35*i)
  2021. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.1-1.47*i,1-1*i,0)
  2022. end
  2023. wait()
  2024. decoyj00ce:BreakJoints()
  2025. decoyj00ce.CanCollide = true
  2026. wait(0.5)
  2027. for i = 0,1,0.1 do
  2028. wait()
  2029. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i, math.rad(90),0)
  2030. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2031. LW.C0 = CFrame.new(-1.35-0.15+0.45*i , 0.5+0.3-0.3, -1*i) * CFrame.fromEulerAnglesXYZ(1.5*i,0,1.35*i)
  2032. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-1.57+1.57*i,0,0)
  2033. end
  2034. coroutine.resume(coroutine.create(function(part)
  2035. wait(1)
  2036. local smog = Instance.new("Smoke")
  2037. smog.Parent = part
  2038. wait(3)
  2039. local decoy = Instance.new("Model")
  2040. decoy.Parent = workspace
  2041. decoy.Name = Player.Name
  2042.  
  2043. local decoyhead = Head:Clone()
  2044. decoyhead.Parent = decoy
  2045.  
  2046. local decoytorso = Torso:Clone()
  2047. decoytorso.Parent = decoy
  2048.  
  2049. local decoyleftarm = LeftArm:Clone()
  2050. decoyleftarm.Parent = decoy
  2051.  
  2052. local decoyrightarm = RightArm:Clone()
  2053. decoyrightarm.Parent = decoy
  2054.  
  2055. local decoyleftleg = LeftLeg:Clone()
  2056. decoyleftleg.Parent = decoy
  2057.  
  2058. local decoyrightleg = RightLeg:Clone()
  2059. decoyrightleg.Parent = decoy
  2060.  
  2061. local decoyhumanoid = Instance.new("Humanoid")
  2062. decoyhumanoid.Parent = decoy
  2063.  
  2064. decoytorso.Position = decoyj00ce.Position
  2065. LeftShoulder = Instance.new("Motor")
  2066. LeftShoulder.Parent = decoytorso
  2067. LeftShoulder.Part0 = decoytorso
  2068. LeftShoulder.Part1 = decoyleftarm
  2069. LeftShoulder.MaxVelocity = 0.1
  2070. LeftShoulder.C0 = CFrame.new(-decoytorso.Size.x / 2 - decoyleftarm.Size.x / 2, decoyleftarm.Size.y / 4, 0) * CFrame.fromEulerAnglesXYZ(0, -3.14 / 2, 0)
  2071. LeftShoulder.C1 = CFrame.new(0, decoyleftarm.Size.y / 4, 0) * CFrame.fromEulerAnglesXYZ(0, -3.14 / 2, 0)
  2072. LeftShoulder.Name = "Left Shoulder"
  2073. RightShoulder = Instance.new("Motor")
  2074. RightShoulder.Parent = decoytorso
  2075. RightShoulder.Part0 = decoytorso
  2076. RightShoulder.Part1 = decoyrightarm
  2077. RightShoulder.MaxVelocity = 0.1
  2078. RightShoulder.C0 = CFrame.new(decoytorso.Size.x / 2 + decoyrightarm.Size.x / 2, decoyrightarm.Size.y / 4, 0) * CFrame.fromEulerAnglesXYZ(0, 3.14 / 2, 0)
  2079. RightShoulder.C1 = CFrame.new(0, decoyrightarm.Size.y / 4, 0) * CFrame.fromEulerAnglesXYZ(0, 3.14 / 2, 0)
  2080. RightShoulder.Name = "Right Shoulder"
  2081. LeftHip = Instance.new("Motor")
  2082. LeftHip.Parent = decoytorso
  2083. LeftHip.Part0 = decoytorso
  2084. LeftHip.Part1 = decoyleftleg
  2085. LeftHip.MaxVelocity = 0.1
  2086. LeftHip.C0 = CFrame.new(-decoyleftleg.Size.x / 2, -(decoyleftleg.Size.y / 4) * 3, 0) * CFrame.fromEulerAnglesXYZ(0, -3.14 / 2, 0)
  2087. LeftHip.C1 = CFrame.new(0, decoyleftleg.Size.y / 4, 0) * CFrame.fromEulerAnglesXYZ(0, -3.14 / 2, 0)
  2088. LeftHip.Name = "Left Hip"
  2089. RightHip = Instance.new("Motor")
  2090. RightHip.Parent = decoytorso
  2091. RightHip.Part0 = decoytorso
  2092. RightHip.Part1 = decoyrightleg
  2093. RightHip.MaxVelocity = 0.1
  2094. RightHip.C0 = CFrame.new(decoyrightleg.Size.x / 2, -(decoyrightleg.Size.y / 4) * 3, 0) * CFrame.fromEulerAnglesXYZ(0, 3.14 / 2, 0)
  2095. RightHip.C1 = CFrame.new(0, decoyrightleg.Size.y / 4, 0) * CFrame.fromEulerAnglesXYZ(0, 3.14 / 2, 0)
  2096. RightHip.Name = "Right Hip"
  2097. Neck = Instance.new("Weld")
  2098. Neck.Name = "Neck"
  2099. Neck.Part0 = decoytorso
  2100. Neck.Part1 = decoyhead
  2101. Neck.C0 = CFrame.new(0, 1.5 * 1, 0)
  2102. Neck.C1 = CFrame.new()
  2103. Neck.Parent = decoytorso
  2104.  
  2105. if Character:FindFirstChild("Animate") ~= nil then
  2106. local decoyanimate = Character.Animate:Clone()
  2107. decoyanimate.Parent = decoy
  2108. end
  2109.  
  2110. Children = Character:GetChildren()
  2111. for i = 1, #Children do
  2112. if Children[i].className == "Shirt" or Children[i].className == "Pants" then
  2113. local decoystuff = Children[i]:Clone()
  2114. decoystuff.Parent = decoy
  2115. end
  2116. if Children[i].className == "Hat" then
  2117. Hat = Instance.new("Hat")
  2118. Children[i].Handle:Clone().Parent = Hat
  2119. Hat.Handle.Size = Hat.Handle.Size * 1
  2120. Hat.Handle.Mesh.Scale = Hat.Handle.Mesh.scale * 1
  2121. Hat.AttachmentPos = Children[i].AttachmentPos * 1
  2122. Hat.AttachmentUp = Children[i].AttachmentUp
  2123. Hat.AttachmentForward = Children[i].AttachmentForward
  2124. Hat.AttachmentRight = Children[i].AttachmentRight
  2125. Hat.Parent = decoy
  2126. end
  2127. end
  2128.  
  2129. function decoydeath()
  2130. local e = Instance.new("Explosion")
  2131. e.Parent = workspace
  2132. e.Position = decoytorso.Position
  2133. e.BlastRadius = 10
  2134. EXPLOSIONSound(decoytorso)
  2135. wait(1)
  2136. decoy.Parent = nil
  2137. end
  2138. decoyhumanoid.Died:connect(decoydeath)
  2139.  
  2140. function mydeath()
  2141. local decoyz = workspace:children()
  2142. for i = 1, #decoyz do
  2143. if decoyz[i].Name == "yfc" then
  2144. decoyz[i]:BreakJoints()
  2145. end
  2146. end
  2147. end
  2148. Character.Humanoid.Died:connect(mydeath)
  2149.  
  2150. decoyj00ce.Parent = nil
  2151. end),decoyj00ce)
  2152. elseif Blah == "Epicsauce" then
  2153. local epicj00ce = Instance.new("Part")
  2154. epicj00ce.formFactor = 1
  2155. epicj00ce.CanCollide = false
  2156. epicj00ce.Name = "Epicsauce"
  2157. epicj00ce.Locked = true
  2158. epicj00ce.Size = Vector3.new(1,1,1)
  2159. epicj00ce.Parent = swordholder
  2160. local decoymesh = Instance.new("SpecialMesh")
  2161. decoymesh.Parent = epicj00ce
  2162. decoymesh.MeshId = "http://www.roblox.com/asset/?id=29690481"
  2163. decoymesh.TextureId = "http://www.roblox.com/asset/?id=29690498"
  2164. decoymesh.Scale = Vector3.new(1, 1, 1)
  2165. local decoyweld = Instance.new("Weld")
  2166. decoyweld.Parent = epicj00ce
  2167. decoyweld.Part0 = epicj00ce
  2168. decoyweld.Part1 = LeftArm
  2169. decoyweld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,-math.rad(90)) * CFrame.new(0, 1, 0.3)
  2170. BloxyColaSound(epicj00ce)
  2171. for i = 0,1,0.1 do
  2172. wait()
  2173. LW.C0 = CFrame.new(-1.05-0.3, 0.5, -1+1.4) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  2174. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.3-0.6*i,0,2.3-0.3*i)
  2175. end
  2176. for i = 0,1,0.1 do
  2177. wait()
  2178. LW.C0 = CFrame.new(-1.05-0.3, 0.5+0.3*i, -1+1.4-1.4*i) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  2179. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.7-1.9*i,1*i,2-2*i)
  2180. end
  2181. BloxyColaDrinkSound(epicj00ce)
  2182. local FIAH = Instance.new("Fire")
  2183. FIAH.Parent = Head
  2184. FIAH.Heat = 25
  2185. FIAH.Size = 3
  2186. coroutine.resume(coroutine.create(function(fire)
  2187. WalkSpeed = Character.Humanoid.WalkSpeed
  2188. oldWalkSpeed = WalkSpeed
  2189. MaxHealth = Character.Humanoid.MaxHealth
  2190. Health = Character.Humanoid.Health
  2191. WalkSpeed = oldWalkSpeed * 4
  2192. MaxHealth = MaxHealth * 1.5
  2193. Health = Health * 1.5
  2194. for i = 0,500 do
  2195. wait()
  2196. WalkSpeed = oldWalkSpeed * 1.6
  2197. Character.Humanoid.WalkSpeed = WalkSpeed
  2198. end
  2199. WalkSpeed = 16
  2200. MaxHealth = 100
  2201. fire.Parent = nil
  2202. end), FIAH)
  2203. wait(2)
  2204. for i = 0,1,0.1 do
  2205. wait()
  2206. LW.C0 = CFrame.new(-1.35-0.15*i, 0.5+0.3-0.3*i, -1+1*i) * CFrame.fromEulerAnglesXYZ(1.5-1.5*i,0,1.35-1.35*i)
  2207. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.1-1.47*i,1-1*i,0)
  2208. end
  2209. wait()
  2210. epicj00ce:BreakJoints()
  2211. epicj00ce.CanCollide = true
  2212. wait(0.5)
  2213. for i = 0,1,0.1 do
  2214. wait()
  2215. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i, math.rad(90),0)
  2216. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2217. LW.C0 = CFrame.new(-1.35-0.15+0.45*i , 0.5+0.3-0.3, -1*i) * CFrame.fromEulerAnglesXYZ(1.5*i,0,1.35*i)
  2218. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-1.57+1.57*i,0,0)
  2219. end
  2220. coroutine.resume(coroutine.create(function(part)
  2221. wait(4)
  2222. local MOARFIAH = Instance.new("Fire")
  2223. MOARFIAH.Parent = part
  2224. MOARFIAH.Size = 5
  2225. MOARFIAH.Heat = 25
  2226. EVENMOARFIAH = MOARFIAH:Clone()
  2227. EVENMOARFIAH.Parent = part
  2228. wait(1)
  2229. for i = 0,1,0.1 do
  2230. wait()
  2231. part.Transparency = i
  2232. end
  2233. MOARFIAH.Enabled = false
  2234. part.Transparency = 1
  2235. wait(2)
  2236. part.Parent = nil
  2237. end),epicj00ce)
  2238. elseif Blah == "Bomb" then
  2239. local UMGEZABOMB = Instance.new("Part") --LAMP OIL, ROPE, BOMB. YOU WANT IT, IT'S YOURS MY FRIEND. AS LONG AS YOU HAVE ENOUGH RUPEES.
  2240. UMGEZABOMB.Shape = "Ball"
  2241. UMGEZABOMB.formFactor = 1
  2242. UMGEZABOMB.CanCollide = false
  2243. UMGEZABOMB.Name = "Bomb"
  2244. UMGEZABOMB.Locked = true
  2245. UMGEZABOMB.Size = Vector3.new(2,2,2)
  2246. UMGEZABOMB.Parent = swordholder
  2247. local bombmesh = Instance.new("SpecialMesh")
  2248. bombmesh.Parent = UMGEZABOMB
  2249. bombmesh.MeshId = "rbxasset://fonts/timebomb.mesh"
  2250. bombmesh.TextureId = "rbxasset://textures/bombtex.png"
  2251. bombmesh.Scale = Vector3.new(1, 1, 1)
  2252. local bombweld = Instance.new("Weld")
  2253. bombweld.Parent = UMGEZABOMB
  2254. bombweld.Part0 = UMGEZABOMB
  2255. bombweld.Part1 = LeftArm
  2256. bombweld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180),0,math.rad(180)) * CFrame.new(0, 1, 0)
  2257. for i = 0,1,0.1 do
  2258. wait()
  2259. LW.C0 = CFrame.new(-1.05-0.3, 0.5, -1+1.4) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  2260. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.3-0.6*i,0,2.3-0.3*i)
  2261. end
  2262. for i = 0,1,0.1 do
  2263. wait()
  2264. LW.C0 = CFrame.new(-1.35-0.15*i, 0.5, 0.4-0.4*i) * CFrame.fromEulerAnglesXYZ(1.5+2*i,0,1.35-1.35*i)
  2265. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.7-1.7*i,0,2-2*i)
  2266. end
  2267. for i = 0,1,0.2 do
  2268. wait()
  2269. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(3.5-1*i,0,0)
  2270. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2271. end
  2272. UMGEZABOMB:BreakJoints()
  2273. UMGEZABOMB.CanCollide = true
  2274. --UMGEZABOMB.Velocity = UMGEZABOMB.CFrame.lookVector * 50 + Vector3.new(0,5,0)
  2275. local v = Instance.new("BodyVelocity")
  2276. v.Parent = UMGEZABOMB
  2277. v.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2278. v.velocity = UMGEZABOMB.CFrame.lookVector * 50 + Vector3.new(0,70,0)
  2279. coroutine.resume(coroutine.create(function(part)
  2280. wait(4)
  2281. EXPLOSIONSound(UMGEZABOMB)
  2282. local PAOHAHA = Instance.new("Explosion")
  2283. PAOHAHA.Parent = workspace
  2284. PAOHAHA.Position = part.Position
  2285. PAOHAHA.BlastRadius = 20
  2286. part.Parent = nil
  2287. end),UMGEZABOMB)
  2288. for i = 0,1,0.2 do
  2289. wait()
  2290. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.5-1*i,0,0)
  2291. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2292. end
  2293. wait(0.5)
  2294. v.Parent = nil
  2295. for i = 0,1,0.1 do
  2296. wait()
  2297. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i, math.rad(90),0)
  2298. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2299. LW.C0 = CFrame.new(-1.5+0.45*i, 0.5, -1*i) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35*i)
  2300. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2301. end
  2302. elseif Blah == "Jarate" then
  2303. local JarAte = Instance.new("Model")
  2304. JarAte.Parent = swordholder
  2305. JarAte.Name = "Jar of piss"
  2306. local Jarate1 = Instance.new("Part")
  2307. Jarate1.formFactor = 1
  2308. Jarate1.CanCollide = false
  2309. Jarate1.Name = "Holder of the jar of piss"
  2310. Jarate1.Locked = true
  2311. Jarate1.Size = Vector3.new(1,1,1)
  2312. Jarate1.Transparency = 0.4
  2313. Jarate1.BrickColor = BrickColor.new("White")
  2314. Jarate1.Parent = JarAte
  2315. local Jarate2 = Instance.new("Part")
  2316. Jarate2.formFactor = 1
  2317. Jarate2.CanCollide = false
  2318. Jarate2.Name = "The cap of the jar of piss"
  2319. Jarate2.Locked = true
  2320. Jarate2.Size = Vector3.new(1,1,1)
  2321. Jarate2.BrickColor = BrickColor.new("Brown")
  2322. Jarate2.Parent = JarAte
  2323. local Jarate3 = Instance.new("Part")
  2324. Jarate3.formFactor = 1
  2325. Jarate3.CanCollide = false
  2326. Jarate3.Name = "The piss. Fear it."
  2327. Jarate3.Locked = true
  2328. Jarate3.Size = Vector3.new(1,1,1)
  2329. Jarate3.BrickColor = BrickColor.new("Bright yellow")
  2330. Jarate3.Parent = JarAte
  2331. local JarateMesh1 = Instance.new("SpecialMesh")
  2332. JarateMesh1.Parent = Jarate1
  2333. JarateMesh1.MeshType = "Head"
  2334. JarateMesh1.Scale = Vector3.new(1,1.2,1)
  2335. local JarateMesh2 = Instance.new("SpecialMesh")
  2336. JarateMesh2.Parent = Jarate2
  2337. JarateMesh2.MeshType = "Head"
  2338. JarateMesh2.Scale = Vector3.new(0.6,0.3,0.6)
  2339. local JarateMesh3 = Instance.new("SpecialMesh")
  2340. JarateMesh3.Parent = Jarate3
  2341. JarateMesh3.MeshType = "Head"
  2342. JarateMesh3.Scale = Vector3.new(0.8,1,0.8)
  2343. local JarateWeld1 = Instance.new("Weld")
  2344. JarateWeld1.Parent = Jarate1
  2345. JarateWeld1.Part0 = Jarate1
  2346. JarateWeld1.Part1 = LeftArm
  2347. JarateWeld1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,math.rad(180)) * CFrame.new(0, 1, 0)
  2348. local JarateWeld2 = Instance.new("Weld")
  2349. JarateWeld2.Parent = Jarate2
  2350. JarateWeld2.Part0 = Jarate2
  2351. JarateWeld2.Part1 = Jarate1
  2352. JarateWeld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0, -0.7, 0)
  2353. local JarateWeld3 = Instance.new("Weld")
  2354. JarateWeld3.Parent = Jarate3
  2355. JarateWeld3.Part0 = Jarate3
  2356. JarateWeld3.Part1 = Jarate1
  2357. JarateWeld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0, 0, 0)
  2358. for i = 0,1,0.1 do
  2359. wait()
  2360. LW.C0 = CFrame.new(-1.05-0.3, 0.5, -1+1.4) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  2361. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.3-0.6*i,0,2.3-0.3*i)
  2362. end
  2363. for i = 0,1,0.1 do
  2364. wait()
  2365. LW.C0 = CFrame.new(-1.35-0.15*i, 0.5, 0.4-0.4*i) * CFrame.fromEulerAnglesXYZ(1.5+2*i,0,1.35-1.35*i)
  2366. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.7-1.7*i,0,2-2*i)
  2367. end
  2368. for i = 0,1,0.2 do
  2369. wait()
  2370. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(3.5-1*i,0,0)
  2371. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2372. end
  2373. SwingSound(Jarate1)
  2374. Jarate1:BreakJoints()
  2375. JarateWeld2.Parent = Jarate2
  2376. JarateWeld3.Parent = Jarate3
  2377. Jarate1.CanCollide = true
  2378. local v = Instance.new("BodyVelocity")
  2379. v.Parent = Jarate1
  2380. v.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2381. v.velocity = Jarate1.CFrame.lookVector * -50 + Vector3.new(0,20,0)
  2382. for i = 0,1,0.2 do
  2383. wait()
  2384. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.5-1*i,0,0)
  2385. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2386. end
  2387. wait(0.5)
  2388. v.Parent = nil
  2389. coroutine.resume(coroutine.create(function(part)
  2390. wait(1)
  2391. local c = game.Workspace:children();
  2392. for i = 1, #c do
  2393. if c[i].className == "Part" then
  2394. local targ = c[i].Position - Jarate1.Position;
  2395. local mag = targ.magnitude;
  2396. if mag <= 10 then
  2397. c[i].Transparency = 0
  2398. end
  2399. end
  2400. if c[i].className == "Model" then
  2401. local b = c[i]:children()
  2402. for i = 1, #b do
  2403. if b[i].className == "Part" then
  2404. local targ = b[i].Position - Jarate1.Position;
  2405. local mag = targ.magnitude;
  2406. if mag <= 10 then
  2407. b[i].Transparency = 0
  2408. end
  2409. end
  2410. end
  2411. end
  2412. end
  2413. GlassBreakSound(Jarate1)
  2414. Jarate2.Parent = workspace
  2415. Jarate2.CanCollide = true
  2416. Jarate2:BreakJoints()
  2417. local jarremainsmesh = Instance.new("BlockMesh")
  2418. jarremainsmesh.Scale = Vector3.new(0.8,0.2,0.8)
  2419. local jarremains1 = Instance.new("Part")
  2420. jarremainsmesh.Parent = jarremains1
  2421. jarremains1.formFactor = 1
  2422. jarremains1.CanCollide = true
  2423. jarremains1.Name = "Remains of the jar of piss"
  2424. jarremains1.Locked = true
  2425. jarremains1.Size = Vector3.new(1,1,1)
  2426. jarremains1.BrickColor = BrickColor.new("White")
  2427. jarremains1.Transparency = 0.4
  2428. jarremains1.Parent = workspace
  2429. jarremains1.CFrame = Jarate1.CFrame * CFrame.new(math.random()-math.random(),math.random()-math.random(),math.random()-math.random())
  2430. local jarremains2 = jarremains1:Clone()
  2431. jarremains2.Parent = workspace
  2432. jarremains2.CFrame = Jarate1.CFrame * CFrame.new(math.random()-math.random(),math.random()-math.random(),math.random()-math.random())
  2433. local jarremains3 = jarremains1:Clone()
  2434. jarremains3.Parent = workspace
  2435. jarremains3.CFrame = Jarate1.CFrame * CFrame.new(math.random()-math.random(),math.random()-math.random(),math.random()-math.random())
  2436. local jarremains4 = jarremains1:Clone()
  2437. jarremains4.Parent = workspace
  2438. jarremains4.CFrame = Jarate1.CFrame * CFrame.new(math.random()-math.random(),math.random()-math.random(),math.random()-math.random())
  2439. local jarremains5 = jarremains1:Clone()
  2440. jarremains5.Parent = workspace
  2441. jarremains5.CFrame = Jarate1.CFrame * CFrame.new(math.random()-math.random(),math.random()-math.random(),math.random()-math.random())
  2442. local jarremains6 = jarremains1:Clone()
  2443. jarremains6.Parent = workspace
  2444. jarremains6.CFrame = Jarate1.CFrame * CFrame.new(math.random()-math.random(),math.random()-math.random(),math.random()-math.random())
  2445. local pissmesh = Instance.new("SpecialMesh")
  2446. pissmesh.Scale = Vector3.new(1,1,1)
  2447. pissmesh.MeshType = "Sphere"
  2448. local piss = Instance.new("Part")
  2449. pissmesh.Parent = piss
  2450. piss.formFactor = 1
  2451. piss.CanCollide = true
  2452. piss.Anchored = true
  2453. piss.Name = "It's piss which you die from"
  2454. piss.Locked = true
  2455. piss.Size = Vector3.new(1,1,1)
  2456. piss.BrickColor = BrickColor.new("Bright yellow")
  2457. piss.Transparency = 0.4
  2458. piss.Parent = workspace
  2459. piss.CFrame = Jarate1.CFrame
  2460. coroutine.resume(coroutine.create(function(tehpiss)
  2461. for i = 0,1,0.2 do
  2462. wait()
  2463. tehpiss.Transparency = i
  2464. pissmesh.Scale = pissmesh.Scale + Vector3.new(2,2,2)
  2465. end
  2466. piss.Parent = nil
  2467. end), piss)
  2468. for i=1, 20 do
  2469. p=Instance.new("Part")
  2470. m=Instance.new("SpecialMesh")
  2471. m.MeshType="Sphere"
  2472. m.Scale=(Vector3.new(.25,.5,.25)+Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))/9)/2
  2473. m.Parent=p
  2474. p.TopSurface=0
  2475. p.BottomSurface=0
  2476. p.BrickColor=BrickColor.new("Bright yellow")
  2477. p.Transparency=.25
  2478. p.Reflectance=.05
  2479. p.CanCollide=false
  2480. p.formFactor="Plate"
  2481. p.Size=Vector3.new(1,.4,1)
  2482. p.CFrame=Jarate1.CFrame
  2483. p.Parent=workspace
  2484. p.Velocity=Jarate1.Velocity/3+Vector3.new(math.random(-20,20)*1.25,math.random(50,80),math.random(-20,20)*1.25)
  2485. p.RotVelocity=p.Velocity
  2486. coroutine.resume(coroutine.create(function(pissthing)
  2487. wait(5)
  2488. pissthing.Parent = nil
  2489. end), p)
  2490. end
  2491. --[[for i=-2, 2 do
  2492. p=Instance.new("Part")
  2493. p.TopSurface=0
  2494. p.BottomSurface=0
  2495. p.BrickColor=BrickColor.new("Bright yellow")
  2496. p.Transparency=.5
  2497. p.Reflectance=.1
  2498. p.Friction=.6
  2499. p.Elasticity=0
  2500. p.formFactor="Plate"
  2501. p.Size=Vector3.new(1,.4,1)
  2502. p.CFrame=Jarate1.CFrame*CFrame.new(0,.4*i,0)
  2503. p.Parent=workspace
  2504. p.Velocity=Jarate1.Velocity/2+Vector3.new(math.random(-20,20),math.random(0,10),math.random(-20,20))
  2505. p.RotVelocity=p.Velocity
  2506. game:GetService("Debris"):AddItem(p,5)
  2507. end]]
  2508. part.Parent = nil
  2509. wait(5)
  2510. Jarate2.Parent = nil
  2511. jarremains1.Parent = nil
  2512. jarremains2.Parent = nil
  2513. jarremains3.Parent = nil
  2514. jarremains4.Parent = nil
  2515. jarremains5.Parent = nil
  2516. jarremains6.Parent = nil
  2517. end), JarAte)
  2518. for i = 0,1,0.1 do
  2519. wait()
  2520. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i, math.rad(90),0)
  2521. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2522. LW.C0 = CFrame.new(-1.5+0.45*i, 0.5, -1*i) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35*i)
  2523. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2524. end
  2525. end
  2526. attack = false
  2527. end
  2528.  
  2529. function reload(numoftimes)
  2530. attack = true
  2531. Character.Humanoid.WalkSpeed = 12
  2532. st00f = 0.1
  2533. st00f2 = 0.05
  2534. st00f3 = 0.2
  2535. if shot ~= "Explosion" and shot ~= "Rapid" then
  2536. for i = 0 , 1 , 0.1 do
  2537. wait()
  2538. if aiming ~= true then
  2539. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(0.4*i+1.57,3.14,0) * CFrame.new(0,0.3*i,-0.5)
  2540. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2541. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), 0) * CFrame.new(1*i-2, 0.65*i+0.9-0.65, 0.25)
  2542. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.15*i, math.rad(90),0)
  2543. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2544. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  2545. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.15*i, 0,0)
  2546. else
  2547. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(0.4*i+1.57,3.14,0) * CFrame.new(0,0.3*i,-0.5)
  2548. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2549. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), 0) * CFrame.new(1*i-2, 0.65*i+0.9-0.65, 0.25)
  2550. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.15*i, math.rad(90),-offset)
  2551. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2552. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,-offset,1.35)
  2553. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.15*i, 0,0)
  2554. end
  2555. end
  2556. elseif shot == "Explosion" then
  2557. for i = 0 , 1 , 0.05 do
  2558. wait()
  2559. if aiming ~= true then
  2560. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(0.4*i+1.57,3.14,0) * CFrame.new(0,0.3*i,-0.5)
  2561. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2562. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), 0) * CFrame.new(1*i-2, 0.65*i+0.9-0.65, 0.25)
  2563. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.15*i, math.rad(90),0)
  2564. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2565. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  2566. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.15*i, 0,0)
  2567. else
  2568. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(0.4*i+1.57,3.14,0) * CFrame.new(0,0.3*i,-0.5)
  2569. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2570. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), 0) * CFrame.new(1*i-2, 0.65*i+0.9-0.65, 0.25)
  2571. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.15*i, math.rad(90),-offset)
  2572. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2573. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,-offset,1.35)
  2574. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.15*i, 0,0)
  2575. end
  2576. end
  2577. elseif shot == "Rapid" then
  2578. for i = 0 , 1 , 0.2 do
  2579. wait()
  2580. if aiming ~= true then
  2581. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(0.4*i+1.57,3.14,0) * CFrame.new(0,0.3*i,-0.5)
  2582. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2583. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), 0) * CFrame.new(1*i-2, 0.65*i+0.9-0.65, 0.25)
  2584. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.15*i, math.rad(90),0)
  2585. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2586. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  2587. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.15*i, 0,0)
  2588. else
  2589. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(0.4*i+1.57,3.14,0) * CFrame.new(0,0.3*i,-0.5)
  2590. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2591. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), 0) * CFrame.new(1*i-2, 0.65*i+0.9-0.65, 0.25)
  2592. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.15*i, math.rad(90),-offset)
  2593. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2594. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,-offset,1.35)
  2595. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.15*i, 0,0)
  2596. end
  2597. end
  2598. end
  2599. if shot ~= "Explosion" and shot ~= "Rapid" then
  2600. for i = 0 , 1 , 0.1 do
  2601. wait()
  2602. if aiming ~= true then
  2603. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.15, math.rad(90),0)
  2604. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2605. LW.C0 = CFrame.new(0.5*i-1.05, -0.5*i+0.5, -1) * CFrame.fromEulerAnglesXYZ(-0.9*i+1.5,0,-0.7*i+1.35)
  2606. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.15, 1*i,0)
  2607. else
  2608. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.15, math.rad(90),-offset)
  2609. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2610. LW.C0 = CFrame.new(0.5*i-1.05, -0.5*i+0.5, -1) * CFrame.fromEulerAnglesXYZ(-0.9*i+1.5,-offset,-0.7*i+1.35)
  2611. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.15, 1*i,0)
  2612. end
  2613. end
  2614. elseif shot == "Explosion" then
  2615. for i = 0 , 1 , 0.05 do
  2616. wait()
  2617. if aiming ~= true then
  2618. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.15, math.rad(90),0)
  2619. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2620. LW.C0 = CFrame.new(0.5*i-1.05, -0.5*i+0.5, -1) * CFrame.fromEulerAnglesXYZ(-0.9*i+1.5,0,-0.7*i+1.35)
  2621. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.15, 1*i,0)
  2622. else
  2623. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.15, math.rad(90),-offset)
  2624. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2625. LW.C0 = CFrame.new(0.5*i-1.05, -0.5*i+0.5, -1) * CFrame.fromEulerAnglesXYZ(-0.9*i+1.5,-offset,-0.7*i+1.35)
  2626. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.15, 1*i,0)
  2627. end
  2628. end
  2629. elseif shot == "Rapid" then
  2630. for i = 0 , 1 , 0.2 do
  2631. wait()
  2632. if aiming ~= true then
  2633. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.15, math.rad(90),0)
  2634. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2635. LW.C0 = CFrame.new(0.5*i-1.05, -0.5*i+0.5, -1) * CFrame.fromEulerAnglesXYZ(-0.9*i+1.5,0,-0.7*i+1.35)
  2636. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.15, 1*i,0)
  2637. else
  2638. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.15, math.rad(90),-offset)
  2639. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2640. LW.C0 = CFrame.new(0.5*i-1.05, -0.5*i+0.5, -1) * CFrame.fromEulerAnglesXYZ(-0.9*i+1.5,-offset,-0.7*i+1.35)
  2641. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.15, 1*i,0)
  2642. end
  2643. end
  2644. end
  2645. for i = 1,numoftimes do
  2646. wait()
  2647. local mesh = Instance.new("BlockMesh")
  2648. mesh.Scale = Vector3.new(0.25,0.25,1)
  2649. if shot == "Explosion" then
  2650. mesh.Scale = Vector3.new(0.75,0.75,1.5)
  2651. end
  2652. local arrow = Instance.new("Part")
  2653. mesh.Parent = arrow
  2654. arrow.formFactor = 1
  2655. arrow.Size = Vector3.new(1,1,1)
  2656. arrow.Parent = workspace
  2657. arrow.Transparency = 0
  2658. arrow.BrickColor = BrickColor.new("Bright yellow")
  2659. if shot == "Poison" then
  2660. arrow.BrickColor = BrickColor.new("Royal purple")
  2661. elseif shot == "Heal" then
  2662. arrow.BrickColor = BrickColor.new("Medium green")
  2663. elseif shot == "Explosion" then
  2664. arrow.BrickColor = BrickColor.new("Really red")
  2665. elseif shot == "Rapid" then
  2666. arrow.BrickColor = BrickColor.new("Dark stone grey")
  2667. elseif shot == "Electric" then
  2668. arrow.BrickColor = BrickColor.new("New Yeller")
  2669. coroutine.resume(coroutine.create(function()
  2670. Stun4=function(part)
  2671. --[[ if part.Parent:FindFirstChild("Torso")==nil then
  2672. return
  2673. end]]
  2674. Torsoh4=part
  2675. End4=Torsoh4.CFrame+Vector3.new(math.random(-20,20)/10,math.random(-30,30)/10,math.random(-20,20)/10)
  2676. ST4=Torsoh4.Position
  2677. --[[ p=Instance.new("BodyPosition")
  2678. p.P=3000
  2679. p.D=100
  2680. p.maxForce=Vector3.new(math.huge,0,math.huge)
  2681. p.position=Torsoh4.Position
  2682. p.Parent=Torsoh4]]
  2683. while part.Parent ~= nil and part.BrickColor == BrickColor.new("New Yeller") do
  2684. -- f1:Play()
  2685. -- p.position=ST4+Vector3.new(math.random(-50,50)/50,0,math.random(-50,50)/50)
  2686. Start4=End4
  2687. End4=Torsoh4.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  2688. e=Instance.new("Part")
  2689. e.TopSurface=0
  2690. e.BottomSurface=0
  2691. e.CanCollide=false
  2692. e.Anchored=true
  2693. e.formFactor="Symmetric"
  2694. e.Size=Vector3.new(1,1,1)
  2695. Look4=(End4.p-Start4.p).unit
  2696. m=Instance.new("BlockMesh")
  2697. m.Scale=Vector3.new(.2,.2,(Start4.p-End4.p).magnitude)
  2698. m.Parent=e
  2699. e.CFrame=CFrame.new(Start4.p+Look4*(m.Scale.z/2),Start4.p+Look4*99)
  2700. e.Reflectance=.3
  2701. e.Name="Zap"
  2702. e.BrickColor=BrickColor.new("New Yeller")
  2703. e.Parent=part.Parent
  2704. coroutine.resume(coroutine.create(function(PAR) for i=1, 25 do PAR.Transparency=i/25 wait() end PAR.Parent=nil end),e)
  2705. wait(.1)
  2706. end
  2707. wait(.25)
  2708. -- p.Parent=nil
  2709. end
  2710. Stun4(arrow)
  2711. end))
  2712. end
  2713. local cfrf = prt1.CFrame * CFrame.fromEulerAnglesXYZ(0,1.57,0)
  2714. local cfr = cfrf + cfrf.lookVector * -0.5
  2715. arrow.CFrame = cfr
  2716. arrow.RotVelocity = Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  2717. arrow.Velocity = cfr.lookVector * -5
  2718. coroutine.resume(coroutine.create(function()
  2719. wait(5)
  2720. arrow.CanCollide = false
  2721. wait(5)
  2722. arrow.Parent = nil
  2723. end))
  2724. ReloadingSound(prt2)
  2725. --reloadsound:Play()
  2726. if shot ~= "Explosion" and shot ~= "Rapid" then
  2727. for i = 0 , 1 , 0.2 do
  2728. wait()
  2729. if aiming ~= true then
  2730. LW.C0 = CFrame.new(-0.55, 0, -1) * CFrame.fromEulerAnglesXYZ(0.6,0,0.7*i+0.65)
  2731. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.15, 1,0)
  2732. else
  2733. LW.C0 = CFrame.new(-0.55, 0, -1) * CFrame.fromEulerAnglesXYZ(0.6,-offset,0.7*i+0.65)
  2734. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.15, 1,0)
  2735. end
  2736. end
  2737. elseif shot == "Explosion" then
  2738. for i = 0 , 1 , 0.1 do
  2739. wait()
  2740. if aiming ~= true then
  2741. LW.C0 = CFrame.new(-0.55, 0, -1) * CFrame.fromEulerAnglesXYZ(0.6,0,0.7*i+0.65)
  2742. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.15, 1,0)
  2743. else
  2744. LW.C0 = CFrame.new(-0.55, 0, -1) * CFrame.fromEulerAnglesXYZ(0.6,-offset,0.7*i+0.65)
  2745. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.15, 1,0)
  2746. end
  2747. end
  2748. elseif shot == "Rapid" then
  2749. for i = 0 , 1 , 0.5 do
  2750. wait()
  2751. if aiming ~= true then
  2752. LW.C0 = CFrame.new(-0.55, 0, -1) * CFrame.fromEulerAnglesXYZ(0.6,0,0.7*i+0.65)
  2753. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.15, 1,0)
  2754. else
  2755. LW.C0 = CFrame.new(-0.55, 0, -1) * CFrame.fromEulerAnglesXYZ(0.6,-offset,0.7*i+0.65)
  2756. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.15, 1,0)
  2757. end
  2758. end
  2759. end
  2760. if shot ~= "Explosion" and shot ~= "Rapid" then
  2761. for i = 0 , 1 , 0.2 do
  2762. wait()
  2763. if aiming ~= true then
  2764. LW.C0 = CFrame.new(-0.55, 0, -1) * CFrame.fromEulerAnglesXYZ(0.6,0,-0.7*i+1.35)
  2765. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.15, 1,0)
  2766. else
  2767. LW.C0 = CFrame.new(-0.55, 0, -1) * CFrame.fromEulerAnglesXYZ(0.6,-offset,-0.7*i+1.35)
  2768. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.15, 1,0)
  2769. end
  2770. end
  2771. elseif shot == "Explosion" then
  2772. for i = 0 , 1 , 0.1 do
  2773. wait()
  2774. if aiming ~= true then
  2775. LW.C0 = CFrame.new(-0.55, 0, -1) * CFrame.fromEulerAnglesXYZ(0.6,0,-0.7*i+1.35)
  2776. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.15, 1,0)
  2777. else
  2778. LW.C0 = CFrame.new(-0.55, 0, -1) * CFrame.fromEulerAnglesXYZ(0.6,-offset,-0.7*i+1.35)
  2779. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.15, 1,0)
  2780. end
  2781. end
  2782. elseif shot == "Rapid" then
  2783. for i = 0 , 1 , 0.5 do
  2784. wait()
  2785. if aiming ~= true then
  2786. LW.C0 = CFrame.new(-0.55, 0, -1) * CFrame.fromEulerAnglesXYZ(0.6,0,-0.7*i+1.35)
  2787. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.15, 1,0)
  2788. else
  2789. LW.C0 = CFrame.new(-0.55, 0, -1) * CFrame.fromEulerAnglesXYZ(0.6,-offset,-0.7*i+1.35)
  2790. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.15, 1,0)
  2791. end
  2792. end
  2793. end
  2794. end
  2795. if shot ~= "Explosion" and shot ~= "Rapid" then
  2796. for i = 0 , 1 , 0.2 do
  2797. wait()
  2798. if aiming ~= true then
  2799. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(-0.4*i+0.4+1.57,3.14,0) * CFrame.new(0,-0.3*i+0.3,-0.5)
  2800. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2801. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), 0) * CFrame.new(-1*i+1-2, -0.65*i+0.65+0.9-0.65, 0.25)
  2802. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.55*i-0.15, math.rad(90),0)
  2803. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2804. LW.C0 = CFrame.new(-0.5+0.5-1.05, 0.5*i, -1) * CFrame.fromEulerAnglesXYZ(1.3*i-0.9+1.5,0,0.7*i-0.7+1.35)
  2805. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.15*i+0.15, -1*i+1,0)
  2806. else
  2807. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(-0.4*i+0.4+1.57,3.14,0) * CFrame.new(0,-0.3*i+0.3,-0.5)
  2808. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2809. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), 0) * CFrame.new(-1*i+1-2, -0.65*i+0.65+0.9-0.65, 0.25)
  2810. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.55*i-0.15, math.rad(90),-offset)
  2811. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2812. LW.C0 = CFrame.new(-0.5+0.5-1.05, 0.5*i, -1) * CFrame.fromEulerAnglesXYZ(1.3*i-0.9+1.5,-offset,0.7*i-0.7+1.35)
  2813. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.15*i+0.15, -1*i+1,0)
  2814. end
  2815. end
  2816. elseif shot == "Explosion" then
  2817. for i = 0 , 1 , 0.1 do
  2818. wait()
  2819. if aiming ~= true then
  2820. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(-0.4*i+0.4+1.57,3.14,0) * CFrame.new(0,-0.3*i+0.3,-0.5)
  2821. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2822. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), 0) * CFrame.new(-1*i+1-2, -0.65*i+0.65+0.9-0.65, 0.25)
  2823. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.55*i-0.15, math.rad(90),0)
  2824. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2825. LW.C0 = CFrame.new(-0.5+0.5-1.05, 0.5*i, -1) * CFrame.fromEulerAnglesXYZ(1.3*i-0.9+1.5,0,0.7*i-0.7+1.35)
  2826. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.15*i+0.15, -1*i+1,0)
  2827. else
  2828. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(-0.4*i+0.4+1.57,3.14,0) * CFrame.new(0,-0.3*i+0.3,-0.5)
  2829. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2830. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), 0) * CFrame.new(-1*i+1-2, -0.65*i+0.65+0.9-0.65, 0.25)
  2831. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.55*i-0.15, math.rad(90),-offset)
  2832. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2833. LW.C0 = CFrame.new(-0.5+0.5-1.05, 0.5*i, -1) * CFrame.fromEulerAnglesXYZ(1.3*i-0.9+1.5,-offset,0.7*i-0.7+1.35)
  2834. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.15*i+0.15, -1*i+1,0)
  2835. end
  2836. end
  2837. elseif shot == "Rapid" then
  2838. for i = 0 , 1 , 0.5 do
  2839. wait()
  2840. if aiming ~= true then
  2841. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(-0.4*i+0.4+1.57,3.14,0) * CFrame.new(0,-0.3*i+0.3,-0.5)
  2842. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2843. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), 0) * CFrame.new(-1*i+1-2, -0.65*i+0.65+0.9-0.65, 0.25)
  2844. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.55*i-0.15, math.rad(90),0)
  2845. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2846. LW.C0 = CFrame.new(-0.5+0.5-1.05, 0.5*i, -1) * CFrame.fromEulerAnglesXYZ(1.3*i-0.9+1.5,0,0.7*i-0.7+1.35)
  2847. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.15*i+0.15, -1*i+1,0)
  2848. else
  2849. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(-0.4*i+0.4+1.57,3.14,0) * CFrame.new(0,-0.3*i+0.3,-0.5)
  2850. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2851. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), 0) * CFrame.new(-1*i+1-2, -0.65*i+0.65+0.9-0.65, 0.25)
  2852. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.55*i-0.15, math.rad(90),-offset)
  2853. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2854. LW.C0 = CFrame.new(-0.5+0.5-1.05, 0.5*i, -1) * CFrame.fromEulerAnglesXYZ(1.3*i-0.9+1.5,-offset,0.7*i-0.7+1.35)
  2855. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.15*i+0.15, -1*i+1,0)
  2856. end
  2857. end
  2858. end
  2859. wait(0.1)
  2860. if shot ~= "Explosion" and shot ~= "Rapid" then
  2861. for i = 0 , 1 , 0.1 do
  2862. wait()
  2863. if aiming ~= true then
  2864. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.4*i+0.55-0.15, math.rad(90),0)
  2865. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2866. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(-0.3*i+1.3-0.9+1.5,0,0.7-0.7+1.35)
  2867. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.15+0.15, -1+1,0)
  2868. else
  2869. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.4*i+0.55-0.15, math.rad(90),-offset)
  2870. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2871. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(-0.3*i+1.3-0.9+1.5,-offset,0.7-0.7+1.35)
  2872. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.15+0.15, -1+1,0)
  2873. end
  2874. end
  2875. elseif shot == "Explosion" then
  2876. for i = 0 , 1 , 0.05 do
  2877. wait()
  2878. if aiming ~= true then
  2879. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.4*i+0.55-0.15, math.rad(90),0)
  2880. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2881. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(-0.3*i+1.3-0.9+1.5,0,0.7-0.7+1.35)
  2882. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.15+0.15, -1+1,0)
  2883. else
  2884. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.4*i+0.55-0.15, math.rad(90),-offset)
  2885. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2886. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(-0.3*i+1.3-0.9+1.5,-offset,0.7-0.7+1.35)
  2887. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.15+0.15, -1+1,0)
  2888. end
  2889. end
  2890. elseif shot == "Rapid" then
  2891. for i = 0 , 1 , 0.2 do
  2892. wait()
  2893. if aiming ~= true then
  2894. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.4*i+0.55-0.15, math.rad(90),0)
  2895. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2896. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(-0.3*i+1.3-0.9+1.5,0,0.7-0.7+1.35)
  2897. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.15+0.15, -1+1,0)
  2898. else
  2899. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.4*i+0.55-0.15, math.rad(90),-offset)
  2900. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2901. LW.C0 = CFrame.new(-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(-0.3*i+1.3-0.9+1.5,-offset,0.7-0.7+1.35)
  2902. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.15+0.15, -1+1,0)
  2903. end
  2904. end
  2905. end
  2906. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5)
  2907. Character.Humanoid.WalkSpeed = 16
  2908. attack = false
  2909. end
  2910.  
  2911. function changeammo()
  2912. attack = true
  2913. Character.Humanoid.WalkSpeed = 12
  2914. for i = 0 , 1 , 0.1 do
  2915. wait()
  2916. if aiming ~= true then
  2917. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(0.4*i+1.57,3.14,0) * CFrame.new(0,0.3*i,-0.5)
  2918. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2919. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), 0) * CFrame.new(1*i-2, 0.65*i+0.9-0.65, 0.25)
  2920. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.15*i, math.rad(90),0)
  2921. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2922. LW.C0 = CFrame.new(0.7*i-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  2923. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.6*i, 0,0.3*i)
  2924. else
  2925. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(0.4*i+1.57,3.14,0) * CFrame.new(0,0.3*i,-0.5)
  2926. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2927. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), 0) * CFrame.new(1*i-2, 0.65*i+0.9-0.65, 0.25)
  2928. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.15*i, math.rad(90),-offset)
  2929. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2930. LW.C0 = CFrame.new(0.7*i-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,-offset,1.35)
  2931. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.6*i, 0,0.3*i)
  2932. end
  2933. end
  2934. ChangingSound(workspace)
  2935. for i = 0 , 1 , 0.2 do
  2936. wait()
  2937. if aiming ~= true then
  2938. LW.C0 = CFrame.new(0.7-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  2939. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.6, 0,-0.3*i+0.3)
  2940. w13.C0 = CFrame.fromEulerAnglesXYZ(0, 0,0) * CFrame.new(0, 0.5*i-0.8, -0.2)
  2941. else
  2942. LW.C0 = CFrame.new(0.7-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,-offset,1.35)
  2943. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.6, 0,-0.3*i+0.3)
  2944. w13.C0 = CFrame.fromEulerAnglesXYZ(0, 0,0) * CFrame.new(0, 0.5*i-0.8, -0.2)
  2945. end
  2946. end
  2947. if shot == "Normal" then
  2948. prt14.BrickColor = BrickColor.new("Bright yellow")
  2949. elseif shot == "Poison" then
  2950. prt14.BrickColor = BrickColor.new("Royal purple")
  2951. elseif shot == "Heal" then
  2952. prt14.BrickColor = BrickColor.new("Medium green")
  2953. elseif shot == "Explosion" then
  2954. prt14.BrickColor = BrickColor.new("Really red")
  2955. elseif shot == "Rapid" then
  2956. prt14.BrickColor = BrickColor.new("Dark stone grey")
  2957. elseif shot == "Electric" then
  2958. prt14.BrickColor = BrickColor.new("New Yeller")
  2959. coroutine.resume(coroutine.create(function()
  2960. Stun1(prt14)
  2961. end))
  2962. end
  2963. for i = 0 , 1 , 0.2 do
  2964. wait()
  2965. if aiming ~= true then
  2966. LW.C0 = CFrame.new(0.7-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  2967. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.6, 0,0.3*i)
  2968. w13.C0 = CFrame.fromEulerAnglesXYZ(0, 0,0) * CFrame.new(0, -0.5*i-0.3, -0.2)
  2969. else
  2970. LW.C0 = CFrame.new(0.7-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,-offset,1.35)
  2971. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.6, 0,0.3*i)
  2972. w13.C0 = CFrame.fromEulerAnglesXYZ(0, 0,0) * CFrame.new(0, -0.5*i-0.3, -0.2)
  2973. end
  2974. end
  2975. wait(0.2)
  2976. for i = 0 , 1 , 0.1 do
  2977. wait()
  2978. if aiming ~= true then
  2979. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(-0.4*i+0.4+1.57,3.14,0) * CFrame.new(0,-0.3*i+0.3,-0.5)
  2980. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2981. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), 0) * CFrame.new(-1*i+1-2, -0.65*i+0.65+0.9-0.65, 0.25)
  2982. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.15*i-0.15, math.rad(90),0)
  2983. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2984. LW.C0 = CFrame.new(-0.7*i+0.7-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,0,1.35)
  2985. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.6*i+0.6, 0,-0.3*i+0.3)
  2986. else
  2987. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(-0.4*i+0.4+1.57,3.14,0) * CFrame.new(0,-0.3*i+0.3,-0.5)
  2988. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2989. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), 0) * CFrame.new(-1*i+1-2, -0.65*i+0.65+0.9-0.65, 0.25)
  2990. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.15*i-0.15, math.rad(90),-offset)
  2991. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  2992. LW.C0 = CFrame.new(-0.7*i+0.7-1.05, 0.5, -1) * CFrame.fromEulerAnglesXYZ(1.5,-offset,1.35)
  2993. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.6*i+0.6, 0,-0.3*i+0.3)
  2994. end
  2995. end
  2996. wait()
  2997. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57,3.14,0) * CFrame.new(0,0,-0.5)
  2998. Character.Humanoid.WalkSpeed = 16
  2999. attack = false
  3000. end
  3001.  
  3002. function forwarddodge()
  3003. local p = Instance.new("Part")
  3004. p.Position = Torso.Position
  3005. p.Parent = Character
  3006. p.Transparency = 1
  3007. local welel = Instance.new("Weld")
  3008. welel.Parent = p
  3009. welel.Part0 = p
  3010. welel.Part1 = Torso
  3011. welel.C0 = CFrame.new(0,1,-2) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3012. local lolsmoke = Instance.new("Smoke")
  3013. lolsmoke.Enabled = true
  3014. lolsmoke.Parent = p
  3015. lolsmoke.Size = smokesize
  3016. lolsmoke.Opacity = 1
  3017. lolsmoke.RiseVelocity = 10
  3018. local lolsmoke2 = Instance.new("Smoke")
  3019. lolsmoke2.Enabled = true
  3020. lolsmoke2.Parent = p
  3021. lolsmoke2.Size = smokesize
  3022. lolsmoke.Opacity = 1
  3023. lolsmoke2.RiseVelocity = 10
  3024. --[[local lolsmoke3 = Instance.new("Smoke")
  3025. lolsmoke3.Enabled = true
  3026. lolsmoke3.Parent = p
  3027. lolsmoke3.Size = 2
  3028. lolsmoke.Opacity = 1
  3029. lolsmoke3.RiseVelocity = 10 ]]
  3030. Character.Humanoid.WalkSpeed = 0
  3031. local vel = Instance.new("BodyVelocity")
  3032. vel.Parent = Torso
  3033. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  3034. vel.velocity = Player.Character.Torso.CFrame.lookVector * 40
  3035. coroutine.resume(coroutine.create(function()
  3036. weh = 40
  3037. for i = 0,20 do
  3038. wait(0)
  3039. weh = weh - 2
  3040. vel.velocity = Player.Character.Torso.CFrame.lookVector * weh
  3041. end
  3042. lolsmoke.Enabled = false
  3043. lolsmoke2.Enabled = false
  3044. --lolsmoke3.Enabled = false
  3045. vel.Parent = nil
  3046. wait(5)
  3047. p.Parent = nil
  3048. end))
  3049. wait(1)
  3050. coroutine.resume(coroutine.create(function()
  3051. for i = 0,16 do
  3052. wait()
  3053. Character.Humanoid.WalkSpeed = i
  3054. end
  3055. --print(Character.Humanoid.WalkSpeed)
  3056. end))
  3057. end
  3058.  
  3059. function leftsidedodge()
  3060. local p = Instance.new("Part")
  3061. p.Position = Torso.Position
  3062. p.Parent = Character
  3063. p.Transparency = 1
  3064. local welel = Instance.new("Weld")
  3065. welel.Parent = p
  3066. welel.Part0 = p
  3067. welel.Part1 = Torso
  3068. welel.C0 = CFrame.new(0,1,2) * CFrame.fromEulerAnglesXYZ(0,math.rad(90),math.rad(90))
  3069. local velpart = Instance.new("Part")
  3070. velpart.Position = Torso.Position
  3071. velpart.Parent = swordholder
  3072. velpart.Transparency = 1
  3073. local velweld = Instance.new("Weld")
  3074. velweld.Parent = velpart
  3075. velweld.Part0 = velpart
  3076. velweld.Part1 = Torso
  3077. velweld.C0 = CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0,-math.rad(90),0)
  3078. local lolsmoke = Instance.new("Smoke")
  3079. lolsmoke.Enabled = true
  3080. lolsmoke.Parent = p
  3081. lolsmoke.Size = smokesize
  3082. lolsmoke.Opacity = 1
  3083. lolsmoke.RiseVelocity = 10
  3084. local lolsmoke2 = Instance.new("Smoke")
  3085. lolsmoke2.Enabled = true
  3086. lolsmoke2.Parent = p
  3087. lolsmoke2.Size = smokesize
  3088. lolsmoke.Opacity = 1
  3089. lolsmoke2.RiseVelocity = 10
  3090. --[[local lolsmoke3 = Instance.new("Smoke")
  3091. lolsmoke3.Enabled = true
  3092. lolsmoke3.Parent = p
  3093. lolsmoke3.Size = smokesize
  3094. lolsmoke.Opacity = 1
  3095. lolsmoke3.RiseVelocity = 10 ]]
  3096. Character.Humanoid.WalkSpeed = 0
  3097. local vel = Instance.new("BodyVelocity")
  3098. vel.Parent = Torso
  3099. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  3100. vel.velocity = velpart.CFrame.lookVector * 40
  3101. coroutine.resume(coroutine.create(function()
  3102. weh = 40
  3103. for i = 0,20 do
  3104. wait(0)
  3105. weh = weh - 2
  3106. vel.velocity = velpart.CFrame.lookVector * weh
  3107. end
  3108. lolsmoke.Enabled = false
  3109. lolsmoke2.Enabled = false
  3110. --lolsmoke3.Enabled = false
  3111. vel.Parent = nil
  3112. velpart.Parent = nil
  3113. wait(5)
  3114. p.Parent = nil
  3115. --velpart.Parent = nil
  3116. end))
  3117. wait(1)
  3118. coroutine.resume(coroutine.create(function()
  3119. for i = 0,16 do
  3120. wait()
  3121. Character.Humanoid.WalkSpeed = i
  3122. end
  3123. --print(Character.Humanoid.WalkSpeed)
  3124. end))
  3125. end
  3126.  
  3127. function rightsidedodge()
  3128. local p = Instance.new("Part")
  3129. p.Position = Torso.Position
  3130. p.Parent = Character
  3131. p.Transparency = 1
  3132. local welel = Instance.new("Weld")
  3133. welel.Parent = p
  3134. welel.Part0 = p
  3135. welel.Part1 = Torso
  3136. welel.C0 = CFrame.new(0,1,-2) * CFrame.fromEulerAnglesXYZ(0,math.rad(90),-math.rad(90))
  3137. local velpart = Instance.new("Part")
  3138. velpart.Position = Torso.Position
  3139. velpart.Parent = swordholder
  3140. velpart.Transparency = 1
  3141. local velweld = Instance.new("Weld")
  3142. velweld.Parent = velpart
  3143. velweld.Part0 = velpart
  3144. velweld.Part1 = Torso
  3145. velweld.C0 = CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0)
  3146. local lolsmoke = Instance.new("Smoke")
  3147. lolsmoke.Enabled = true
  3148. lolsmoke.Parent = p
  3149. lolsmoke.Size = smokesize
  3150. lolsmoke.Opacity = 1
  3151. lolsmoke.RiseVelocity = 10
  3152. local lolsmoke2 = Instance.new("Smoke")
  3153. lolsmoke2.Enabled = true
  3154. lolsmoke2.Parent = p
  3155. lolsmoke2.Size = smokesize
  3156. lolsmoke.Opacity = 1
  3157. lolsmoke2.RiseVelocity = 10
  3158. --[[local lolsmoke3 = Instance.new("Smoke")
  3159. lolsmoke3.Enabled = true
  3160. lolsmoke3.Parent = p
  3161. lolsmoke3.Size = 2
  3162. lolsmoke.Opacity = 1
  3163. lolsmoke3.RiseVelocity = 10 ]]
  3164. Character.Humanoid.WalkSpeed = 0
  3165. local vel = Instance.new("BodyVelocity")
  3166. vel.Parent = Torso
  3167. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  3168. vel.velocity = velpart.CFrame.lookVector * 40
  3169. coroutine.resume(coroutine.create(function()
  3170. weh = 40
  3171. for i = 0,20 do
  3172. wait(0)
  3173. weh = weh - 2
  3174. vel.velocity = velpart.CFrame.lookVector * weh
  3175. end
  3176. lolsmoke.Enabled = false
  3177. lolsmoke2.Enabled = false
  3178. --lolsmoke3.Enabled = false
  3179. vel.Parent = nil
  3180. velpart.Parent = nil
  3181. wait(5)
  3182. p.Parent = nil
  3183. --velpart.Parent = nil
  3184. end))
  3185. wait(1)
  3186. coroutine.resume(coroutine.create(function()
  3187. for i = 0,16 do
  3188. wait()
  3189. Character.Humanoid.WalkSpeed = i
  3190. end
  3191. --print(Character.Humanoid.WalkSpeed)
  3192. end))
  3193. end
  3194.  
  3195. function backdodge()
  3196. local p = Instance.new("Part")
  3197. p.Position = Torso.Position
  3198. p.Parent = Character
  3199. p.Transparency = 1
  3200. local welel = Instance.new("Weld")
  3201. welel.Parent = p
  3202. welel.Part0 = p
  3203. welel.Part1 = Torso
  3204. welel.C0 = CFrame.new(0,1,2) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0)
  3205. local velpart = Instance.new("Part")
  3206. velpart.Position = Torso.Position
  3207. velpart.Parent = swordholder
  3208. velpart.Transparency = 1
  3209. local velweld = Instance.new("Weld")
  3210. velweld.Parent = velpart
  3211. velweld.Part0 = velpart
  3212. velweld.Part1 = Torso
  3213. velweld.C0 = CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3214. local lolsmoke = Instance.new("Smoke")
  3215. lolsmoke.Enabled = true
  3216. lolsmoke.Parent = p
  3217. lolsmoke.Size = smokesize
  3218. lolsmoke.Opacity = 1
  3219. lolsmoke.RiseVelocity = 10
  3220. local lolsmoke2 = Instance.new("Smoke")
  3221. lolsmoke2.Enabled = true
  3222. lolsmoke2.Parent = p
  3223. lolsmoke2.Size = smokesize
  3224. lolsmoke.Opacity = 1
  3225. lolsmoke2.RiseVelocity = 10
  3226. --[[local lolsmoke3 = Instance.new("Smoke")
  3227. lolsmoke3.Enabled = true
  3228. lolsmoke3.Parent = p
  3229. lolsmoke3.Size = 2
  3230. lolsmoke.Opacity = 1
  3231. lolsmoke3.RiseVelocity = 10 ]]
  3232. Character.Humanoid.WalkSpeed = 0
  3233. local vel = Instance.new("BodyVelocity")
  3234. vel.Parent = Torso
  3235. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  3236. vel.velocity = velpart.CFrame.lookVector * -40
  3237. coroutine.resume(coroutine.create(function()
  3238. weh = -40
  3239. for i = 0,20 do
  3240. wait(0)
  3241. weh = weh + 2
  3242. vel.velocity = velpart.CFrame.lookVector * weh
  3243. end
  3244. lolsmoke.Enabled = false
  3245. lolsmoke2.Enabled = false
  3246. --lolsmoke3.Enabled = false
  3247. vel.Parent = nil
  3248. velpart.Parent = nil
  3249. wait(5)
  3250. p.Parent = nil
  3251. --velpart.Parent = nil
  3252. end))
  3253. wait(1)
  3254. coroutine.resume(coroutine.create(function()
  3255. for i = 0,16 do
  3256. wait()
  3257. Character.Humanoid.WalkSpeed = i
  3258. end
  3259. --print(Character.Humanoid.WalkSpeed)
  3260. end))
  3261. end
  3262.  
  3263. Stun1=function(part)
  3264. --[[ if part.Parent:FindFirstChild("Torso")==nil then
  3265. return
  3266. end]]
  3267. Torsoh=part
  3268. End=Torsoh.CFrame+Vector3.new(math.random(-20,20)/10,math.random(-30,30)/10,math.random(-20,20)/10)
  3269. ST=Torsoh.Position
  3270. --[[ p=Instance.new("BodyPosition")
  3271. p.P=3000
  3272. p.D=100
  3273. p.maxForce=Vector3.new(math.huge,0,math.huge)
  3274. p.position=Torsoh.Position
  3275. p.Parent=Torso]]
  3276. while part.Parent ~= nil and part.BrickColor == BrickColor.new("New Yeller") do
  3277. -- f1:Play()
  3278. -- p.position=ST+Vector3.new(math.random(-50,50)/50,0,math.random(-50,50)/50)
  3279. Start=End
  3280. End=Torsoh.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  3281. e=Instance.new("Part")
  3282. e.TopSurface=0
  3283. e.BottomSurface=0
  3284. e.CanCollide=false
  3285. e.Anchored=true
  3286. e.formFactor="Symmetric"
  3287. e.Size=Vector3.new(1,1,1)
  3288. Look=(End.p-Start.p).unit
  3289. m=Instance.new("BlockMesh")
  3290. m.Scale=Vector3.new(.2,.2,(Start.p-End.p).magnitude)
  3291. m.Parent=e
  3292. e.CFrame=CFrame.new(Start.p+Look*(m.Scale.z/2),Start.p+Look*99)
  3293. e.Reflectance=.3
  3294. e.Name="Zap"
  3295. e.BrickColor=BrickColor.new("New Yeller")
  3296. e.Parent=part.Parent
  3297. coroutine.resume(coroutine.create(function(PAR) for i=1, 25 do PAR.Transparency=i/25 wait() end PAR.Parent=nil end),e)
  3298. wait(.1)
  3299. end
  3300. wait(.25)
  3301. -- p.Parent=nil
  3302. end
  3303.  
  3304. Stun3=function(part,numboftimes)
  3305. --[[ if part.Parent:FindFirstChild("Torso")==nil then
  3306. return
  3307. end]]
  3308. Torsoh3=part
  3309. End3=Torsoh3.CFrame+Vector3.new(math.random(-20,20)/10,math.random(-30,30)/10,math.random(-20,20)/10)
  3310. ST3=Torsoh3.Position
  3311. --[[ p=Instance.new("BodyPosition")
  3312. p.P=3000
  3313. p.D=100
  3314. p.maxForce=Vector3.new(math.huge,0,math.huge)
  3315. p.position=Torsoh3.Position
  3316. p.Parent=Torsoh3]]
  3317. for i = 0,numboftimes do
  3318. local feh = math.random(1,5)
  3319. showDamage(part.Parent,feh,1)
  3320. part.Parent.Humanoid:TakeDamage(feh)
  3321. -- f1:Play()
  3322. -- p.position=ST3+Vector3.new(math.random(-50,50)/50,0,math.random(-50,50)/50)
  3323. Start3=End3
  3324. End3=Torsoh3.CFrame*CFrame.new(math.random(-30,30)/10,math.random(-34,29)/10,math.random(-30,30)/10)
  3325. e=Instance.new("Part")
  3326. e.TopSurface=0
  3327. e.BottomSurface=0
  3328. e.CanCollide=false
  3329. e.Anchored=true
  3330. e.formFactor="Symmetric"
  3331. e.Size=Vector3.new(1,1,1)
  3332. Look3=(End3.p-Start3.p).unit
  3333. m=Instance.new("BlockMesh")
  3334. m.Scale=Vector3.new(.2,.2,(Start3.p-End3.p).magnitude)
  3335. m.Parent=e
  3336. e.CFrame=CFrame.new(Start3.p+Look3*(m.Scale.z/2),Start3.p+Look3*99)
  3337. e.Reflectance=.3
  3338. e.Name="Zap"
  3339. e.BrickColor=BrickColor.new("New Yeller")
  3340. e.Parent=part.Parent
  3341. coroutine.resume(coroutine.create(function(PAR) for i=1, 25 do PAR.Transparency=i/25 wait() end PAR.Parent=nil end),e)
  3342. wait(.1)
  3343. end
  3344. wait(.25)
  3345. -- p.Parent=nil
  3346. end
  3347.  
  3348. function poisoneffect()
  3349. local b = Instance.new("Part")
  3350. b.Parent = workspace
  3351. b.CFrame = CeEff.CFrame * CFrame.new(math.random(-2,0)+math.random(),-0.5,math.random(-2,0)+math.random())
  3352. b.Size = Vector3.new(1,1,1)
  3353. b.Transparency = 0.2
  3354. b.Anchored = true
  3355. b.BrickColor = BrickColor.new("Royal purple")
  3356. local m = Instance.new("SpecialMesh")
  3357. m.Parent = b
  3358. m.MeshType = "Sphere"
  3359. m.Scale = Vector3.new(0.8,0.8,0.8)
  3360. coroutine.resume(coroutine.create(function()
  3361. for i = 0,1,0.1 do
  3362. wait()
  3363. b.CFrame = b.CFrame + Vector3.new(0,0.2,0)
  3364. end
  3365. b.Parent = nil
  3366. end))
  3367. end
  3368.  
  3369. showDamage=function(Char,Dealt,du)
  3370. m=Instance.new("Model")
  3371. if shot == "Heal" then
  3372. m.Name=tostring(-Dealt)
  3373. else
  3374. m.Name=tostring(Dealt)
  3375. end
  3376. h=Instance.new("Humanoid")
  3377. h.Health=0
  3378. h.MaxHealth=0
  3379. h.Parent=m
  3380. c=Instance.new("Part")
  3381. c.Transparency=0
  3382. if shot == "Heal" then
  3383. c.BrickColor=BrickColor.new("Medium green")
  3384. else
  3385. c.BrickColor=BrickColor:Red()
  3386. end
  3387. c.CanCollide=false
  3388. if CRIT==true then
  3389. c.BrickColor=BrickColor.new("New Yeller")
  3390. end
  3391. c.Name="Head"
  3392. c.TopSurface=0
  3393. c.BottomSurface=0
  3394. c.formFactor="Plate"
  3395. c.Size=Vector3.new(1,.4,1)
  3396. ms=Instance.new("CylinderMesh")
  3397. ms.Bevel=.1
  3398. ms.Scale=Vector3.new(.8,.8,.8)
  3399. if CRIT==true then
  3400. ms.Scale=Vector3.new(1.25,1.5,1.25)
  3401. ms.Bevel=.2
  3402. end
  3403. ms.Parent=c
  3404. c.Reflectance=0
  3405. Instance.new("BodyGyro").Parent=c
  3406. c.Parent=m
  3407. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  3408. f=Instance.new("BodyPosition")
  3409. f.P=2000
  3410. f.D=100
  3411. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  3412. f.position=c.Position+Vector3.new(0,3,0)
  3413. f.Parent=c
  3414. game:GetService("Debris"):AddItem(m,.5+du)
  3415. c.CanCollide=false
  3416. m.Parent=workspace
  3417. c.CanCollide=false
  3418. end
  3419.  
  3420. DBHit=function(hit,DB) --credits to turdulator for making this function :D
  3421. if hit.Parent==nil then
  3422. return
  3423. end
  3424. h=hit.Parent:FindFirstChild("Humanoid")
  3425. t=hit.Parent:FindFirstChild("Torso")
  3426. if h~=nil and t~=nil then
  3427. if h.Parent==Character then
  3428. return
  3429. end
  3430. h:TakeDamage(5)
  3431. vl=Instance.new("BodyVelocity")
  3432. vl.P=4500
  3433. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  3434. vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,3,0)
  3435. vl.Parent=t
  3436. game:GetService("Debris"):AddItem(vl,.2)
  3437. rl=Instance.new("BodyAngularVelocity")
  3438. rl.P=3000
  3439. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  3440. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  3441. rl.Parent=t
  3442. game:GetService("Debris"):AddItem(rl,.2)
  3443. else
  3444. if hit.CanCollide==false then
  3445. return
  3446. end
  3447. MagicCom:disconnect()
  3448. -- DBExplode(DB)
  3449. end
  3450. end
  3451.  
  3452. hold = false
  3453.  
  3454. function ob1d(mouse)
  3455. hold = true
  3456. aiming = true
  3457. getPos=function(Pos,TorsoPos)
  3458. return Vector3.new(Pos.x,TorsoPos.y,Pos.z)
  3459. end
  3460. while hold == true do
  3461. wait()
  3462. g.cframe=CFrame.new(Torso.Position,getPos(mouse.Hit.p,Torso.Position))
  3463. offset=(Torso.Position.y-mouse.Hit.p.y)/60
  3464. mag=(Torso.Position-mouse.Hit.p).magnitude/80
  3465. offset=offset/mag
  3466. necko=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  3467. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(offset,0,0)
  3468. --Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57*offset,3.14,0) * CFrame.new(0,0,-0.5)
  3469. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, (1-1)+math.rad(90),-offset)
  3470. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  3471. LW.C0 = CFrame.new(-1.5+0.45, 0.5, -0.5-0.5) * CFrame.fromEulerAnglesXYZ(0.5+1,-offset,1+.35)
  3472. LW.C1 = CFrame.new(0, 0.5, 0)
  3473. end
  3474. end
  3475.  
  3476. function ob1u(mouse)
  3477. hold = false
  3478. aiming = false
  3479. wait()
  3480. Torso.Neck.C0=necko
  3481. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, (1-1)+math.rad(90),0)
  3482. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.25,0,0)
  3483. LW.C0 = CFrame.new(-1.5+0.45, 0.5, -0.5-0.5) * CFrame.fromEulerAnglesXYZ(0.5+1,0,1+.35)
  3484. LW.C1 = CFrame.new(0, 0.5, 0)
  3485. end
  3486.  
  3487. buttonhold = false
  3488.  
  3489. function key(key)
  3490. if attack == true then return end
  3491.  
  3492. if key == "q" then
  3493. Character.Humanoid.WalkSpeed = 14
  3494. if shot ~= "Rapid" then
  3495. WeakShot(1)
  3496. else
  3497. for i = 1,5 do
  3498. wait()
  3499. WeakShot(1)
  3500. --if normalammo == 0 or poisonammo == 0 or healammo == 0 or explosionammo == 0 then return end
  3501. if shot == "Normal" then
  3502. if normalammo == 0 then
  3503. return
  3504. end
  3505. elseif shot == "Poison" then
  3506. if poisonammo == 0 then
  3507. return
  3508. end
  3509. elseif shot == "Heal" then
  3510. if healammo == 0 then
  3511. return
  3512. end
  3513. elseif shot == "Explosion" then
  3514. if explosionammo == 0 then
  3515. return
  3516. end
  3517. end
  3518. end
  3519. end
  3520. end
  3521. for i = 1,5 do
  3522. Character.Humanoid.WalkSpeed = 16
  3523. end
  3524.  
  3525. if key == "e" then
  3526. Character.Humanoid.WalkSpeed = 14
  3527. if shot ~= "Rapid" then
  3528. for i = 1,4 do
  3529. wait()
  3530. RapidShot(2.5)
  3531. --if normalammo == 0 or poisonammo == 0 or healammo == 0 or explosionammo == 0 then return end
  3532. if shot == "Normal" then
  3533. if normalammo == 0 then
  3534. return
  3535. end
  3536. elseif shot == "Poison" then
  3537. if poisonammo == 0 then
  3538. return
  3539. end
  3540. elseif shot == "Heal" then
  3541. if healammo == 0 then
  3542. return
  3543. end
  3544. elseif shot == "Explosion" then
  3545. if explosionammo == 0 then
  3546. return
  3547. end
  3548. end
  3549. end
  3550. else
  3551. for i = 1,10 do
  3552. wait()
  3553. RapidShot(2.5)
  3554. --if normalammo == 0 or poisonammo == 0 or healammo == 0 or explosionammo == 0 or rapidammo == 0 then return end
  3555. if shot == "Normal" then
  3556. if normalammo == 0 then
  3557. return
  3558. end
  3559. elseif shot == "Poison" then
  3560. if poisonammo == 0 then
  3561. return
  3562. end
  3563. elseif shot == "Heal" then
  3564. if healammo == 0 then
  3565. return
  3566. end
  3567. elseif shot == "Explosion" then
  3568. if explosionammo == 0 then
  3569. return
  3570. end
  3571. end
  3572. end
  3573. end
  3574. wait(0.5)
  3575. Character.Humanoid.WalkSpeed = 16
  3576. end
  3577.  
  3578.  
  3579. if key == "f" then
  3580. meleeattack()
  3581. end
  3582.  
  3583.  
  3584. if key == "r" then
  3585. changeitemleft()
  3586. end
  3587.  
  3588. if key == "t" then
  3589. changeitemright()
  3590. end
  3591.  
  3592. if key == "y" then
  3593. UseItem()
  3594. end
  3595.  
  3596. if key == "z" then
  3597. shot = "Normal"
  3598. local C = MainTray:children()
  3599. for i = 1, #C do
  3600. if C[i].className == "Frame" then
  3601. C[i].BorderColor3 = Color3.new(0,0,0)
  3602. end
  3603. end
  3604. NormFrame.BorderColor3 = Color3.new(1,1,1)
  3605. changeammo()
  3606. end
  3607.  
  3608. if key == "x" then
  3609. shot = "Poison"
  3610. local C = MainTray:children()
  3611. for i = 1, #C do
  3612. if C[i].className == "Frame" then
  3613. C[i].BorderColor3 = Color3.new(0,0,0)
  3614. end
  3615. end
  3616. PoisFrame.BorderColor3 = Color3.new(1,1,1)
  3617. changeammo()
  3618. end
  3619.  
  3620. if key == "c" then
  3621. shot = "Heal"
  3622. local C = MainTray:children()
  3623. for i = 1, #C do
  3624. if C[i].className == "Frame" then
  3625. C[i].BorderColor3 = Color3.new(0,0,0)
  3626. end
  3627. end
  3628. HealFrame.BorderColor3 = Color3.new(1,1,1)
  3629. changeammo()
  3630. end
  3631.  
  3632. if key == "v" then
  3633. shot = "Explosion"
  3634. local C = MainTray:children()
  3635. for i = 1, #C do
  3636. if C[i].className == "Frame" then
  3637. C[i].BorderColor3 = Color3.new(0,0,0)
  3638. end
  3639. end
  3640. BoomFrame.BorderColor3 = Color3.new(1,1,1)
  3641. changeammo()
  3642. end
  3643.  
  3644. if key == "b" then
  3645. shot = "Electric"
  3646. local C = MainTray:children()
  3647. for i = 1, #C do
  3648. if C[i].className == "Frame" then
  3649. C[i].BorderColor3 = Color3.new(0,0,0)
  3650. end
  3651. end
  3652. ElecFrame.BorderColor3 = Color3.new(1,1,1)
  3653. changeammo()
  3654. end
  3655.  
  3656. if key == "n" then
  3657. shot = "Rapid"
  3658. local C = MainTray:children()
  3659. for i = 1, #C do
  3660. if C[i].className == "Frame" then
  3661. C[i].BorderColor3 = Color3.new(0,0,0)
  3662. end
  3663. end
  3664. RapidFrame.BorderColor3 = Color3.new(1,1,1)
  3665. changeammo()
  3666. end
  3667.  
  3668.  
  3669. if key == "u" then
  3670. forwarddodge()
  3671. end
  3672.  
  3673. if key == "h" then
  3674. leftsidedodge()
  3675. end
  3676.  
  3677. if key == "k" then
  3678. rightsidedodge()
  3679. end
  3680.  
  3681. if key == "j" then
  3682. backdodge()
  3683. end
  3684.  
  3685. end
  3686.  
  3687. function key2(key)
  3688. if key == "q" then
  3689.  
  3690. end
  3691. end
  3692.  
  3693. function s(mouse)
  3694. mouse.Button1Down:connect(function() ob1d(mouse) end)
  3695. mouse.Button1Up:connect(function() ob1u(mouse) end)
  3696. mouse.KeyDown:connect(key)
  3697. mouse.KeyUp:connect(key2)
  3698. g=Instance.new("BodyGyro")
  3699. g.P=18000
  3700. g.D=600
  3701. g.maxTorque=Vector3.new(80000,80000000,80000)*50000000000000000000000000
  3702. g.cframe=Torso.CFrame
  3703. equipweld()
  3704. player = Player
  3705. ch = Character
  3706. RSH = ch.Torso["Right Shoulder"]
  3707. LSH = ch.Torso["Left Shoulder"]
  3708. --
  3709. RSH.Parent = nil
  3710. LSH.Parent = nil
  3711. --
  3712. RW.Part0 = ch.Torso
  3713. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  3714. RW.C1 = CFrame.new(0, 0.5, 0)
  3715. RW.Part1 = ch["Right Arm"]
  3716. RW.Parent = ch.Torso
  3717. _G.R = RW
  3718. --
  3719. LW.Part0 = ch.Torso
  3720. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  3721. LW.C1 = CFrame.new(0, 0.5, 0)
  3722. LW.Part1 = ch["Left Arm"]
  3723. LW.Parent = ch.Torso
  3724. _G.L = LW
  3725. attack = true
  3726. equipped = true
  3727. equipanim()
  3728. attack = false
  3729. end
  3730.  
  3731. function ds(mouse)
  3732. equipped = false
  3733. hideanim()
  3734. unequipweld()
  3735. wait(0.1)
  3736.  
  3737.  
  3738. RW.Parent = nil
  3739. LW.Parent = nil
  3740. RSH.Parent = player.Character.Torso
  3741. LSH.Parent = player.Character.Torso
  3742. end
  3743.  
  3744. Bin.Selected:connect(s)
  3745. Bin.Deselected:connect(ds)
  3746.  
  3747. --swordholder.Parent = workspace
  3748. --workspace:findFirstChild("LBowgun",true):Remove()
  3749. coroutine.resume(coroutine.create(function()
  3750. while true do
  3751. --for i = 0,900000001 do
  3752. wait()
  3753. --[[if workspace:findFirstChild("LBowgun",true) ~= nil then
  3754. workspace:findFirstChild("LBowgun",true).Parent = nil
  3755. end ]]
  3756. --[[w1.Parent = prt1
  3757. w2.Parent = prt2
  3758. w3.Parent = prt3
  3759. w4.Parent = prt4
  3760. w5.Parent = prt5
  3761. w6.Parent = prt6
  3762. w7.Parent = prt7
  3763. w8.Parent = prt8
  3764. w9.Parent = prt9
  3765. w10.Parent = prt10
  3766. w11.Parent = prt11
  3767. w12.Parent = prt12
  3768. w13.Parent = prt13
  3769. w14.Parent = prt14]]
  3770. Player.Backpack["Light Bowgun"].TextureId = "http://www.roblox.com/asset/?id=39539873"
  3771. --swordholder.Parent = workspace
  3772. NormText1.Text = "Normal Ammo"
  3773. NormText2.Text = "Ammo("..normalammo..")"
  3774. PoisText1.Text = "Poison Ammo"
  3775. PoisText2.Text = "Ammo("..poisonammo..")"
  3776. HealText1.Text = "Heal Ammo"
  3777. HealText2.Text = "Ammo("..healammo..")"
  3778. BoomText1.Text = "Explosion Ammo"
  3779. BoomText2.Text = "Ammo("..explosionammo..")"
  3780. ElecText1.Text = "Electric Ammo"
  3781. ElecText2.Text = "Ammo("..elecammo..")"
  3782. RapidText1.Text = "Rapid Ammo"
  3783. RapidText2.Text = "Ammo("..rapidammo..")"
  3784. ItemText1.Text = "Item Equipped:"
  3785. ItemText2.Text = Blah
  3786. end
  3787. end))
  3788. game.workspace.luxulux.Humanoid.MaxHealth = math.huge
  3789. -- mediafire
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement