Advertisement
astronaut32

bowgun

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