Advertisement
VoidScript

Bowgun

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