BINO2002

Untitled

Mar 31st, 2016
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 53.82 KB | None | 0 0
  1. --[[
  2. Script shared by eletronix ]]
  3.  
  4. Player = game:GetService("Players").LocalPlayer
  5. Character = Player.Character
  6. PlayerGui = Player.PlayerGui
  7. Backpack = Player.Backpack
  8. Torso = Character.Torso
  9. Head = Character.Head
  10. LeftArm = Character["Left Arm"]
  11. LeftLeg = Character["Left Leg"]
  12. RightArm = Character["Right Arm"]
  13. RightLeg = Character["Right Leg"]
  14. LS = Torso["Left Shoulder"]
  15. LH = Torso["Left Hip"]
  16. RS = Torso["Right Shoulder"]
  17. RH = Torso["Right Hip"]
  18. ModelName = "Weapon"
  19. attack = false
  20. attacktype = 1
  21. Hitdeb = 0
  22. Neck = Torso.Neck
  23. local neckcf0 = Neck.C0
  24.  
  25. ----------------------------
  26. --Customize
  27. Mana = 100
  28. MaxMana = 100
  29. mindamage = 10000
  30. maxdamage = 100000
  31. crtmaxdamage = 999999
  32. omindamage = mindamage
  33. omaxdamage = maxdamage
  34. ocrtmaxdamage = crtmaxdamage
  35. --if (string.match(Player.Unlocks.Value,"Magnus Crit Plus") ~= nil) then
  36. crtrate = 9999999
  37. --else
  38. --crtrate = 100/5
  39. --end
  40. --100%/critpercentage
  41.  
  42. oblkbrkr = 0
  43. blockbreaker = oblkbrkr
  44. --if (string.match(Player.Unlocks.Value,"Mana Charge +") ~= nil) then
  45. manaregen = 30
  46. --else
  47. --manaregen = 1
  48. --end
  49. handlecolor = BrickColor.new("Brown")
  50. bcolor = BrickColor.new("Bright violet")
  51. gemcolor = BrickColor.new("Mid gray")
  52.  
  53. ToolName = "Magnus"
  54.  
  55. ---------------------------------------------------------------------------------------------------------------------------------------
  56. if Character:findFirstChild("EquippedVal",true) ~= nil then
  57. Character:findFirstChild("EquippedVal",true).Parent = nil
  58. end
  59. ev = Instance.new("BoolValue",Character)
  60. ev.Name = "EquippedVal"
  61. ev.Value = false
  62. if Character:findFirstChild("Block",true) ~= nil then
  63. Character:findFirstChild("Block",true).Parent = nil
  64. end
  65.  
  66.  
  67. --player
  68. player = nil
  69. --welds
  70. RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld")
  71. --what anim
  72. anim = "none"
  73. --other var
  74. player = Player
  75. ch = Character
  76. --save shoulders
  77. AoETrue = {}
  78. RSH, LSH , RHL, LHL = ch.Torso["Right Shoulder"], ch.Torso["Left Shoulder"] , ch.Torso["Right Hip"] , ch.Torso["Left Hip"]
  79.  
  80.  
  81. function RWFunc()
  82. RW.Part1 = ch["Right Arm"]
  83. RSH.Part1 = nil
  84. end
  85. function LWFunc()
  86. LW.Part1 = ch["Left Arm"]
  87. LSH.Part1 = nil
  88. end
  89. function RWLFunc()
  90. RWL.Part1 = ch["Right Leg"]
  91. RHL.Part1 = nil
  92. ch["Right Leg"].Name = "RightLeg"
  93. RightLeg.CanCollide = false
  94. end
  95.  
  96. function LWLFunc()
  97. LWL.Part1 = ch["Left Leg"]
  98. LHL.Part1 = nil
  99. ch["Left Leg"].Name = "LeftLeg"
  100. LeftLeg.CanCollide = true
  101. end
  102.  
  103. function RWLRem()
  104. RightLeg.Name = "Right Leg"
  105. RWL.Part1 = nil
  106. RHL.Part1 = ch["Right Leg"]
  107. RightLeg.CanCollide = false
  108. end
  109. function LWLRem()
  110. LeftLeg.Name = "Left Leg"
  111. LWL.Part1 = nil
  112. LHL.Part1 = ch["Left Leg"]
  113. LeftLeg.CanCollide = false
  114. end
  115. function RWRem()
  116. RW.Part1 = nil
  117. RSH.Part1 = ch["Right Arm"]
  118. end
  119. function LWRem()
  120. LW.Part1 = nil
  121. LSH.Part1 = ch["Left Arm"]
  122. end
  123.  
  124.  
  125.  
  126.  
  127. if Character:findFirstChild(ModelName,true) ~= nil then
  128. Character:findFirstChild(ModelName,true).Parent = nil
  129. RHL.Part1 = ch["Right Leg"]
  130. LHL.Part1 = ch["Left Leg"]
  131. RSH.Part1 = ch["Right Arm"]
  132. LSH.Part1 = ch["Left Arm"]
  133. end
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140. local swordholder = Instance.new("Model")
  141. swordholder.Name = ModelName
  142. swordholder.Parent = Character
  143.  
  144. --derp
  145. RW.Part0 = ch.Torso
  146. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  147. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  148. RW.Parent = swordholder
  149. --
  150. LW.Part0 = ch.Torso
  151. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  152. LW.C1 = CFrame.new(0, 0.5, 0)
  153. LW.Parent = swordholder
  154. --
  155. RWL.Part0 = ch.Torso
  156. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, 0)
  157. RWL.C1 = CFrame.new(0.5, 1, 0)
  158. RWL.Parent = swordholder
  159. --
  160. LWL.Part0 = ch.Torso
  161. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, 0)
  162. LWL.C1 = CFrame.new(-0.5, 1, 0)
  163. LWL.Parent = swordholder
  164.  
  165.  
  166.  
  167.  
  168. local msh1 = Instance.new("CylinderMesh")
  169. msh1.Scale = Vector3.new(1,1,1)
  170. local msh2 = Instance.new("CylinderMesh")
  171. msh2.Scale = Vector3.new(1,1,1)
  172. local msh3 = Instance.new("BlockMesh")
  173. msh3.Scale = Vector3.new(1,1,1)
  174. local msh3a = Instance.new("SpecialMesh")
  175. msh3a.Scale = Vector3.new(1,1,1)
  176. msh3a.MeshType = "Wedge"
  177. local msh4 = Instance.new("BlockMesh")
  178. msh4.Scale = Vector3.new(1,1,1)
  179. local msh4a = Instance.new("SpecialMesh")
  180. msh4a.Scale = Vector3.new(1,1,1)
  181. msh4a.MeshType = "Wedge"
  182. local msh5 = Instance.new("BlockMesh")
  183. msh5.Scale = Vector3.new(1,1,1)
  184. local msh5a = Instance.new("SpecialMesh")
  185. msh5a.Scale = Vector3.new(1,1,1)
  186. msh5a.MeshType = "Wedge"
  187. local msh6 = Instance.new("BlockMesh")
  188. msh6.Scale = Vector3.new(1,1,1)
  189. local msh6a = Instance.new("SpecialMesh")
  190. msh6a.Scale = Vector3.new(1,1,1)
  191. msh6a.MeshType = "Wedge"
  192. local msh7 = Instance.new("SpecialMesh")
  193. msh7.Scale = Vector3.new(1,1,1)
  194. msh7.MeshType = "Sphere"
  195. local msh8 = Instance.new("SpecialMesh")
  196. msh8.Scale = Vector3.new(1,1,1)
  197. msh8.MeshType = "Sphere"
  198. local msh9 = Instance.new("SpecialMesh")
  199. msh9.Scale = Vector3.new(0.45,3,0.45)
  200. msh9.MeshId = "http://www.roblox.com/asset/?id=1051557"
  201. local msh10 = Instance.new("BlockMesh")
  202. msh10.Scale = Vector3.new(1,1,1)
  203. local msh10a = Instance.new("SpecialMesh")
  204. msh10a.Scale = Vector3.new(1,1,1)
  205. msh10a.MeshType = "Wedge"
  206. local msh11 = Instance.new("BlockMesh")
  207. msh11.Scale = Vector3.new(1,1,1)
  208. local msh11a = Instance.new("SpecialMesh")
  209. msh11a.Scale = Vector3.new(1,1,1)
  210. msh11a.MeshType = "Wedge"
  211.  
  212. local prt1 = Instance.new("Part")
  213. prt1.formFactor = 3
  214. prt1.CanCollide = false
  215. prt1.Name = "Handle"
  216. prt1.Locked = true
  217. prt1.Size = Vector3.new(0.3,5,0.3)
  218. prt1.Parent = swordholder
  219. msh1.Parent = prt1
  220. prt1.BrickColor = handlecolor
  221. local prt2 = Instance.new("Part")
  222. prt2.formFactor = 3
  223. prt2.CanCollide = false
  224. prt2.Name = "Handle2"
  225. prt2.Locked = true
  226. prt2.Size = Vector3.new(1.4,0.2,1.4)
  227. prt2.Parent = swordholder
  228. msh2.Parent = prt2
  229. prt2.BrickColor = handlecolor
  230. local prt3 = Instance.new("Part")
  231. prt3.formFactor = 3
  232. prt3.CanCollide = false
  233. prt3.Name = "Handle3"
  234. prt3.Locked = true
  235. prt3.Size = Vector3.new(0.2,0.5,0.2)
  236. prt3.Parent = swordholder
  237. msh3.Parent = prt3
  238. prt3.BrickColor = handlecolor
  239. local prt3a = Instance.new("Part")
  240. prt3a.formFactor = 3
  241. prt3a.CanCollide = false
  242. prt3a.Name = "Handle3a"
  243. prt3a.Locked = true
  244. prt3a.Size = Vector3.new(0.2,1,0.2)
  245. prt3a.Parent = swordholder
  246. msh3a.Parent = prt3a
  247. prt3a.BrickColor = handlecolor
  248. local prt4 = Instance.new("Part")
  249. prt4.formFactor = 3
  250. prt4.CanCollide = false
  251. prt4.Name = "Handle4"
  252. prt4.Locked = true
  253. prt4.Size = Vector3.new(0.2,0.5,0.2)
  254. prt4.Parent = swordholder
  255. msh4.Parent = prt4
  256. prt4.BrickColor = handlecolor
  257. local prt4a = Instance.new("Part")
  258. prt4a.formFactor = 3
  259. prt4a.CanCollide = false
  260. prt4a.Name = "Handle4a"
  261. prt4a.Locked = true
  262. prt4a.Size = Vector3.new(0.2,1,0.2)
  263. prt4a.Parent = swordholder
  264. msh4a.Parent = prt4a
  265. prt4a.BrickColor = handlecolor
  266. local prt5 = Instance.new("Part")
  267. prt5.formFactor = 3
  268. prt5.CanCollide = false
  269. prt5.Name = "Handle5"
  270. prt5.Locked = true
  271. prt5.Size = Vector3.new(0.2,0.5,0.2)
  272. prt5.Parent = swordholder
  273. msh5.Parent = prt5
  274. prt5.BrickColor = handlecolor
  275. local prt5a = Instance.new("Part")
  276. prt5a.formFactor = 3
  277. prt5a.CanCollide = false
  278. prt5a.Name = "Handle5a"
  279. prt5a.Locked = true
  280. prt5a.Size = Vector3.new(0.2,1,0.2)
  281. prt5a.Parent = swordholder
  282. msh5a.Parent = prt5a
  283. prt5a.BrickColor = handlecolor
  284. local prt6 = Instance.new("Part")
  285. prt6.formFactor = 3
  286. prt6.CanCollide = false
  287. prt6.Name = "Handle6"
  288. prt6.Locked = true
  289. prt6.Size = Vector3.new(0.2,0.5,0.2)
  290. prt6.Parent = swordholder
  291. msh6.Parent = prt6
  292. prt6.BrickColor = handlecolor
  293. local prt6a = Instance.new("Part")
  294. prt6a.formFactor = 3
  295. prt6a.CanCollide = false
  296. prt6a.Name = "Handle6a"
  297. prt6a.Locked = true
  298. prt6a.Size = Vector3.new(0.2,1,0.2)
  299. prt6a.Parent = swordholder
  300. msh6a.Parent = prt6a
  301. prt6a.BrickColor = handlecolor
  302. local prt7 = Instance.new("Part")
  303. prt7.formFactor = 3
  304. prt7.CanCollide = false
  305. prt7.Name = "Orb"
  306. prt7.Locked = true
  307. prt7.Size = Vector3.new(0.75,0.75,0.75)
  308. prt7.Transparency = 0.5
  309. prt7.Parent = swordholder
  310. msh7.Parent = prt7
  311. prt7.BrickColor = bcolor
  312. local prt8 = Instance.new("Part")
  313. prt8.formFactor = 3
  314. prt8.CanCollide = false
  315. prt8.Name = "Orb2"
  316. prt8.Locked = true
  317. prt8.Size = Vector3.new(0.75,0.75,0.75)
  318. prt8.Transparency = 0
  319. prt8.Parent = swordholder
  320. msh8.Parent = prt8
  321. prt8.BrickColor = bcolor
  322. coroutine.resume(coroutine.create(function()
  323. wait(0.5)
  324. repeat
  325. for i = 0 , 1 , 0.05 do
  326. wait()
  327. msh8.Scale = Vector3.new(3*i,3*i,3*i)
  328. prt8.Transparency = 1*i
  329. end
  330. wait(0.1)
  331. until prt8.Parent == nil
  332. end))
  333. local prt9 = Instance.new("Part")
  334. prt9.formFactor = 3
  335. prt9.CanCollide = false
  336. prt9.Name = "Design"
  337. prt9.Locked = true
  338. prt9.Size = Vector3.new(0.2,0.2,0.2)
  339. prt9.Transparency = 0
  340. prt9.Parent = swordholder
  341. msh9.Parent = prt9
  342. prt9.BrickColor = gemcolor
  343. local prt10 = Instance.new("Part")
  344. prt10.formFactor = 3
  345. prt10.CanCollide = false
  346. prt10.Name = "Handle10"
  347. prt10.Locked = true
  348. prt10.Size = Vector3.new(0.2,0.5,0.2)
  349. prt10.Parent = swordholder
  350. msh10.Parent = prt10
  351. prt10.BrickColor = handlecolor
  352. local prt10a = Instance.new("Part")
  353. prt10a.formFactor = 3
  354. prt10a.CanCollide = false
  355. prt10a.Name = "Handle10a"
  356. prt10a.Locked = true
  357. prt10a.Size = Vector3.new(0.2,1,0.2)
  358. prt10a.Parent = swordholder
  359. msh10a.Parent = prt10a
  360. prt10a.BrickColor = handlecolor
  361. local prt11 = Instance.new("Part")
  362. prt11.formFactor = 3
  363. prt11.CanCollide = false
  364. prt11.Name = "Handle11"
  365. prt11.Locked = true
  366. prt11.Size = Vector3.new(0.2,0.5,0.2)
  367. prt11.Parent = swordholder
  368. msh11.Parent = prt11
  369. prt11.BrickColor = handlecolor
  370. local prt11a = Instance.new("Part")
  371. prt11a.formFactor = 3
  372. prt11a.CanCollide = false
  373. prt11a.Name = "Handle11a"
  374. prt11a.Locked = true
  375. prt11a.Size = Vector3.new(0.2,1,0.2)
  376. prt11a.Parent = swordholder
  377. msh11a.Parent = prt11a
  378. prt11a.BrickColor = handlecolor
  379.  
  380.  
  381. local w1 = Instance.new("Weld")
  382. w1.Parent = prt1
  383. w1.Part0 = prt1
  384. local w2 = Instance.new("Weld")
  385. w2.Parent = prt2
  386. w2.Part0 = prt2
  387. w2.Part1 = prt1
  388. w2.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  389. w2.C0 = CFrame.new(0, 2.5,0) * CFrame.Angles(0, 0, 0)
  390. local w3 = Instance.new("Weld")
  391. w3.Parent = prt3
  392. w3.Part0 = prt3
  393. w3.Part1 = prt1
  394. w3.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  395. w3.C0 = CFrame.new(0, -2.65,0.6) * CFrame.Angles(math.rad(180), 0, 0)
  396. local w3a = Instance.new("Weld")
  397. w3a.Parent = prt3a
  398. w3a.Part0 = prt3a
  399. w3a.Part1 = prt3
  400. w3a.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  401. w3a.C0 = CFrame.Angles(math.rad(-10), 0, 0) * CFrame.new(0, -0.65,-0.075)
  402. local w4 = Instance.new("Weld")
  403. w4.Parent = prt4
  404. w4.Part0 = prt4
  405. w4.Part1 = prt1
  406. w4.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  407. w4.C0 = CFrame.new(0, -2.65,0.6) * CFrame.Angles(math.rad(180), math.rad(180), 0)
  408. local w4a = Instance.new("Weld")
  409. w4a.Parent = prt4a
  410. w4a.Part0 = prt4a
  411. w4a.Part1 = prt4
  412. w4a.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  413. w4a.C0 = CFrame.Angles(math.rad(-10), 0, 0) * CFrame.new(0, -0.65,-0.075)
  414. local w5 = Instance.new("Weld")
  415. w5.Parent = prt5
  416. w5.Part0 = prt5
  417. w5.Part1 = prt1
  418. w5.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  419. w5.C0 = CFrame.new(0, -2.65,0.6) * CFrame.Angles(math.rad(180), math.rad(90), 0)
  420. local w5a = Instance.new("Weld")
  421. w5a.Parent = prt5a
  422. w5a.Part0 = prt5a
  423. w5a.Part1 = prt5
  424. w5a.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  425. w5a.C0 = CFrame.Angles(math.rad(-10), 0, 0) * CFrame.new(0, -0.65,-0.075)
  426. local w6 = Instance.new("Weld")
  427. w6.Parent = prt6
  428. w6.Part0 = prt6
  429. w6.Part1 = prt1
  430. w6.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  431. w6.C0 = CFrame.new(0, -2.65,0.6) * CFrame.Angles(math.rad(180), math.rad(-90), 0)
  432. local w6a = Instance.new("Weld")
  433. w6a.Parent = prt6a
  434. w6a.Part0 = prt6a
  435. w6a.Part1 = prt6
  436. w6a.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  437. w6a.C0 = CFrame.Angles(math.rad(-10), 0, 0) * CFrame.new(0, -0.65,-0.075)
  438. local w7 = Instance.new("Weld")
  439. w7.Parent = prt7
  440. w7.Part0 = prt7
  441. w7.Part1 = prt1
  442. w7.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  443. w7.C0 = CFrame.new(0, 3.25,0) * CFrame.Angles(0, 0, 0)
  444. local w8 = Instance.new("Weld")
  445. w8.Parent = prt8
  446. w8.Part0 = prt8
  447. w8.Part1 = prt1
  448. w8.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  449. w8.C0 = CFrame.new(0, 3.25,0) * CFrame.Angles(0, 0, 0)
  450. local w9 = Instance.new("Weld")
  451. w9.Parent = prt9
  452. w9.Part0 = prt9
  453. w9.Part1 = prt1
  454. w9.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  455. w9.C0 = CFrame.new(0, 0.5,0) * CFrame.Angles(0, 0, 0)
  456. local w10 = Instance.new("Weld")
  457. w10.Parent = prt10
  458. w10.Part0 = prt10
  459. w10.Part1 = prt1
  460. w10.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  461. w10.C0 = CFrame.new(0, -2.15,0.6) * CFrame.Angles(math.rad(180), math.rad(-90-45), 0)
  462. local w10a = Instance.new("Weld")
  463. w10a.Parent = prt10a
  464. w10a.Part0 = prt10a
  465. w10a.Part1 = prt10
  466. w10a.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  467. w10a.C0 = CFrame.Angles(math.rad(10+180), 0, 0) * CFrame.new(0, 0.65,-0.075)
  468. local w11 = Instance.new("Weld")
  469. w11.Parent = prt11
  470. w11.Part0 = prt11
  471. w11.Part1 = prt1
  472. w11.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  473. w11.C0 = CFrame.new(0, -2.15,0.6) * CFrame.Angles(math.rad(180), math.rad(-270-45), 0)
  474. local w11a = Instance.new("Weld")
  475. w11a.Parent = prt11a
  476. w11a.Part0 = prt11a
  477. w11a.Part1 = prt11
  478. w11a.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  479. w11a.C0 = CFrame.Angles(math.rad(10+180), 0, 0) * CFrame.new(0, 0.65,-0.075)
  480.  
  481. local RAP = Instance.new("Part")
  482. RAP.formFactor = 0
  483. RAP.CanCollide = false
  484. RAP.Name = "RAPart"
  485. RAP.Locked = true
  486. RAP.Size = Vector3.new(1,1,1)
  487. RAP.Parent = swordholder
  488. RAP.Transparency = 1
  489. local w = Instance.new("Weld")
  490. w.Parent = RAP
  491. w.Part0 = RAP
  492. w.Part1 = RightArm
  493. w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  494. w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 1, 0)
  495.  
  496.  
  497. function unequipweld()
  498. w1.Part1 = Torso
  499. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), math.rad(0)) * CFrame.new(0, 0,0)
  500. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180),math.rad(180), math.rad(0)) * CFrame.new(-1.15, 0.5, -0.6)
  501. end
  502.  
  503. unequipweld()
  504.  
  505.  
  506.  
  507. function equipweld()
  508. w1.Part1 = RAP
  509. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  510. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0)
  511. end
  512.  
  513.  
  514. function ss(parent,p) --Slash
  515.  
  516. local SlashSound = Instance.new("Sound")
  517. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  518. SlashSound.Parent = parent
  519. SlashSound.Volume = .7
  520. SlashSound.Pitch = p
  521. SlashSound.PlayOnRemove = true
  522. coroutine.resume(coroutine.create(function()
  523. wait()
  524. SlashSound.Parent = nil
  525. end))
  526. end
  527. function uss(parent,p) --unsheath
  528.  
  529. local SlashSound = Instance.new("Sound")
  530. SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  531. SlashSound.Parent = parent
  532. SlashSound.Volume = .7
  533. SlashSound.Pitch = p
  534. SlashSound.PlayOnRemove = true
  535. coroutine.resume(coroutine.create(function()
  536. wait()
  537. SlashSound.Parent = nil
  538. end))
  539. end
  540. function cs(parent,p) --Magic Charge
  541.  
  542. local SlashSound = Instance.new("Sound")
  543. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2101137"
  544. SlashSound.Parent = parent
  545. SlashSound.Volume = .7
  546. SlashSound.Pitch = p
  547. SlashSound.PlayOnRemove = true
  548. coroutine.resume(coroutine.create(function()
  549. wait()
  550. SlashSound.Parent = nil
  551. end))
  552. end
  553. function ls(parent,p) --Lazer Sound
  554.  
  555. local SlashSound = Instance.new("Sound")
  556. SlashSound.SoundId = "http://www.roblox.com/asset?id=1369158"
  557. SlashSound.Parent = parent
  558. SlashSound.Volume = .7
  559. SlashSound.Pitch = p
  560. SlashSound.PlayOnRemove = true
  561. coroutine.resume(coroutine.create(function()
  562. wait()
  563. SlashSound.Parent = nil
  564. end))
  565. end
  566. function ts(parent,p)
  567.  
  568. local SlashSound = Instance.new("Sound")
  569. SlashSound.SoundId = "http://www.roblox.com/asset/?id=12222030"
  570. SlashSound.Parent = parent
  571. SlashSound.Volume = .7
  572. SlashSound.Pitch = p
  573. SlashSound.PlayOnRemove = true
  574. coroutine.resume(coroutine.create(function()
  575. wait()
  576. SlashSound.Parent = nil
  577. end))
  578. end
  579. function fs(parent,p) --Fire Sound
  580.  
  581. local SlashSound = Instance.new("Sound")
  582. SlashSound.SoundId = "http://www.roblox.com/asset/?id=31758982"
  583. SlashSound.Parent = parent
  584. SlashSound.Volume = .7
  585. SlashSound.Pitch = p
  586. SlashSound.PlayOnRemove = true
  587. coroutine.resume(coroutine.create(function()
  588. wait()
  589. SlashSound.Parent = nil
  590. end))
  591. end
  592. function ms(parent,p) --Metal Cling Sound
  593.  
  594. local SlashSound = Instance.new("Sound")
  595. SlashSound.SoundId = "rbxasset://sounds\\metal.ogg"
  596. SlashSound.Parent = parent
  597. SlashSound.Volume = 1
  598. SlashSound.Pitch = p
  599. SlashSound.PlayOnRemove = true
  600. coroutine.resume(coroutine.create(function()
  601. wait()
  602. SlashSound.Parent = nil
  603. end))
  604. end
  605. function bs(parent,p) --Berserk Sound
  606.  
  607. local SlashSound = Instance.new("Sound")
  608. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2676305"
  609. SlashSound.Parent = parent
  610. SlashSound.Volume = 1
  611. SlashSound.Pitch = p
  612. SlashSound.PlayOnRemove = true
  613. coroutine.resume(coroutine.create(function()
  614. wait()
  615. SlashSound.Parent = nil
  616. end))
  617. end
  618. --
  619.  
  620. function returndmg()
  621. mindamage = omindamage
  622. maxdamage = omaxdamage
  623. crtmaxdamage = ocrtmaxdamage
  624. end
  625.  
  626. function subdmg(sub)
  627. mindamage = omindamage - sub
  628. maxdamage = omaxdamage - sub
  629. crtmaxdamage = ocrtmaxdamage - sub
  630. end
  631.  
  632. function prcntdmg(sub)
  633. mindamage = math.floor(omindamage - (omindamage*(sub/100)))
  634. maxdamage = math.floor(omaxdamage - (omaxdamage*(sub/100)))
  635. crtmaxdamage = math.floor(ocrtmaxdamage - (ocrtmaxdamage*(sub/100)))
  636. end
  637.  
  638. function tagHumanoid(humanoid, player)
  639. local creator_tag = Instance.new("ObjectValue")
  640. creator_tag.Value = player
  641. creator_tag.Name = "creator"
  642. creator_tag.Parent = humanoid
  643. end
  644.  
  645. function untagHumanoid(humanoid)
  646. if humanoid ~= nil then
  647. local tag = humanoid:findFirstChild("creator")
  648. if tag ~= nil then
  649. tag.Parent = nil
  650. end
  651. end
  652. end
  653.  
  654. local function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  655. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  656. end
  657.  
  658.  
  659.  
  660. function hideanim()
  661. attack = true
  662. for i = 0 , 1 , 0.1 do
  663. wait()
  664. RW.C0 = CFrame.new(1+0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(90+135*i),math.rad(0),math.rad(-65+65*i))
  665. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  666. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20+20*i))
  667. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  668. w1.C0 = CFrame.Angles(math.rad(300), math.rad(180*i), math.rad(0)) * CFrame.new(0, -0.5, -1+2*i)
  669. end
  670. LWRem()
  671. unequipweld()
  672. for i = 0 , 1 , 0.1 do
  673. wait()
  674. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(235-235*i),math.rad(0),math.rad(0))
  675. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  676. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  677. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  678. end
  679. RWRem()
  680. attack = false
  681. end
  682.  
  683.  
  684. function equipanim()
  685. attack = true
  686. RWFunc()
  687. for i = 0 , 1 , 0.2 do
  688. wait()
  689. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-20*i),math.rad(0),math.rad(0))
  690. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  691. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  692. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  693. end
  694. equipweld()
  695. LWFunc()
  696. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(-110), math.rad(90)) * CFrame.new(0, 0, 0)
  697. for i = 0 , 1 , 0.2 do
  698. wait()
  699. RW.C0 = CFrame.new(1.5-0.5*i, 0.5+0.5*i, -1*i) * CFrame.Angles(math.rad(-20+110*i),math.rad(0),math.rad(-25*i))
  700. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  701. LW.C0 = CFrame.new(-1.5+0.5*i, 0.5+0.5*i, -1*i) * CFrame.Angles(math.rad(90*i),math.rad(0),math.rad(25*i))
  702. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  703. w1.C0 = CFrame.Angles(math.rad(-90+90*i), math.rad(-110+110*i), math.rad(90-45*i)) * CFrame.new(0, 0, 0)
  704. w1.C1 = CFrame.new(0,0,0)
  705. end
  706. for i = 0 , 1 , 0.1 do
  707. wait()
  708. RW.C0 = CFrame.new(1, 1, -1) * CFrame.Angles(math.rad(90+45*i),math.rad(0),math.rad(-25-20*i))
  709. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  710. LW.C0 = CFrame.new(-1, 1, -1) * CFrame.Angles(math.rad(90+45*i),math.rad(0),math.rad(25+20*i))
  711. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  712. w1.C0 = CFrame.Angles(math.rad(210*i), math.rad(0), math.rad(45)) * CFrame.new(0, 0, 0)
  713. w1.C1 = CFrame.new(0,0,0)
  714. end
  715. for i = 0 , 1 , 0.1 do
  716. wait()
  717. RW.C0 = CFrame.new(1, 1-0.5*i, -1+0.5*i) * CFrame.Angles(math.rad(135-45*i),math.rad(0),math.rad(-45-20*i))
  718. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  719. LW.C0 = CFrame.new(-1-0.5*i, 1-0.5*i, -1+1*i) * CFrame.Angles(math.rad(135-135*i),math.rad(0),math.rad(45-65*i))
  720. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  721. w1.C0 = CFrame.Angles(math.rad(210+90*i), math.rad(0), math.rad(45-45*i)) * CFrame.new(0, -0.5*i, -1*i)
  722. w1.C1 = CFrame.new(0,0,0)
  723. end
  724. attack = false
  725. end
  726.  
  727.  
  728. if (script.Parent.className ~= "HopperBin") then
  729. Tool = Instance.new("HopperBin")
  730. Tool.Parent = Backpack
  731. Tool.Name = ToolName
  732. script.Parent = Tool
  733. end
  734. Bin = script.Parent
  735.  
  736. function damagesplat(dmg,hit,crit,blocked)
  737. local mo = Instance.new("Model")
  738. mo.Name = dmg
  739. local pa = Instance.new("Part",mo)
  740. pa.formFactor = 3
  741. pa.Size = Vector3.new(0.8,0.3,0.8)
  742. if crit then
  743. pa.BrickColor = BrickColor.new("Bright yellow")
  744. elseif not crit then
  745. pa.BrickColor = BrickColor.new("Bright red")
  746. end
  747. if blocked then pa.BrickColor = BrickColor.new("Bright blue") end
  748. pa.CFrame = CFrame.new(hit.Position) * CFrame.new(0, 3, 0)
  749. pa.Name = "Head"
  750. local hah = Instance.new("Humanoid")
  751. hah.Parent = mo
  752. hah.MaxHealth = 0
  753. hah.Health = 0
  754. local bp = Instance.new("BodyPosition")
  755. bp.P = 14000
  756. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  757. bp.position = hit.Position + Vector3.new(0, 5, 0)
  758. coroutine.resume(coroutine.create(function()
  759. wait()
  760. mo.Parent = workspace
  761. bp.Parent = pa
  762. wait(1.4)
  763. mo:remove()
  764. end))
  765. end
  766.  
  767. function damage(hum,dmg,critornot)
  768. damagesplat(dmg,hum.Torso,critornot)
  769. hum:TakeDamage(dmg)
  770. coroutine.resume(coroutine.create(function()
  771. tagHumanoid(hum,Player)
  772. wait(1)
  773. untagHumanoid(hum)
  774. end))
  775. end
  776.  
  777. function AddMana(add)
  778. Mana = Mana + add
  779. if Mana > MaxMana then
  780. Mana = MaxMana
  781. end
  782. end
  783.  
  784. function OT(hit) --Normal Damage
  785. if Hitdeb == 1 then return end
  786. if hit.Parent == nil then return end
  787. local hum = hit.Parent:findFirstChild("Humanoid") if hum ~= nil and hum ~= Character.Humanoid then
  788. if hum.Health <= 0 then return end
  789. if hit.Parent:findFirstChild("Block") ~= nil then
  790. if hit.Parent.Block.Value then
  791. damagesplat(0,hum.Torso,false,true)
  792. Hitdeb = 1
  793. if hit.Parent.Block:findFirstChild("BlockPower") ~= nil then
  794. if hit.Parent.Block.BlockPower.Value <= 1 then
  795. hit.Parent.Block.Value = false
  796. elseif hit.Parent.Block.BlockPower.Value > 1 then
  797. local critrandomizer = math.random(crtrate)
  798. if critrandomizer ~= 1 then
  799. hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker
  800. elseif critrandomizer == 1 then
  801. hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker + 2
  802. end
  803. end
  804. end
  805. return end end
  806. local critrandomizer = math.random(crtrate)
  807. if critrandomizer ~= 1 then
  808. local rndmdamage = math.random(mindamage,maxdamage)
  809. damage(hum,rndmdamage,false)
  810. elseif critrandomizer == 1 then
  811. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  812. damage(hum,rndmdamage,true)
  813. end
  814. Hitdeb = 1
  815. end
  816. end
  817.  
  818. function OT2(hit) --Bash Damage
  819. if Hitdeb == 1 then return end
  820. if hit.Parent == nil then return end
  821. local hum = hit.Parent:findFirstChild("Humanoid") if hum ~= nil and hum ~= Character.Humanoid then
  822. if hum.Health <= 0 then return end
  823. local vel = Instance.new("BodyVelocity",hum.Torso)
  824. vel.maxForce = Vector3.new(1,1,1) * math.huge
  825. vel.P = vel.P * 2
  826. vel.velocity = Vector3.new(0,2,0) + CFrame.new(Torso.Position,hum.Torso.Position).lookVector * 75
  827. coroutine.resume(coroutine.create(function()
  828. wait(0.1)
  829. vel.Parent=nil
  830. end))
  831. if hit.Parent:findFirstChild("Block") ~= nil then
  832. if hit.Parent.Block.Value then
  833. damagesplat(0,hum.Torso,false,true)
  834. Hitdeb = 1
  835. if hit.Parent.Block:findFirstChild("BlockPower") ~= nil then
  836. if hit.Parent.Block.BlockPower.Value <= 1 then
  837. hit.Parent.Block.Value = false
  838. elseif hit.Parent.Block.BlockPower.Value > 1 then
  839. local critrandomizer = math.random(crtrate)
  840. if critrandomizer ~= 1 then
  841. hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker
  842. elseif critrandomizer == 1 then
  843. hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker + 2
  844. end
  845. end
  846. end
  847. return end end
  848. local critrandomizer = math.random(crtrate)
  849. if critrandomizer ~= 1 then
  850. local rndmdamage = math.random(mindamage,maxdamage)
  851. damage(hum,rndmdamage,false)
  852. elseif critrandomizer == 1 then
  853. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  854. damage(hum,rndmdamage,true)
  855. end
  856. Hitdeb = 1
  857. end
  858. end
  859.  
  860. function AoE(p,magnitude)
  861. local c = game.Workspace:GetChildren();
  862. for i = 1, #c do
  863. local hum = c[i]:findFirstChild("Humanoid")
  864. if hum ~= nil and hum.Health ~= 0 then
  865. local head = c[i]:findFirstChild("Head");
  866. if head ~= nil then
  867. local mag = (head.Position - p).magnitude;
  868. if mag <= magnitude and c[i].Name ~= Character.Name then
  869. local foundd = false
  870. for ii = 1 , #AoETrue do
  871. if AoETrue[ii] == c[i].Name then
  872.  
  873. foundd = true
  874. end
  875. end
  876. if foundd then
  877.  
  878. end
  879. --
  880. if not foundd then
  881. local critrandomizer = math.random(crtrate)
  882. if critrandomizer ~= 1 then
  883. local rndmdamage = math.random(mindamage,maxdamage)
  884. damage(hum,rndmdamage,false)
  885. elseif critrandomizer == 1 then
  886. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  887. damage(hum,rndmdamage,true)
  888. end
  889. table.insert(AoETrue,c[i].Name)
  890. end
  891. end
  892. end
  893. end
  894. end
  895. for ii = 1 , #AoETrue do
  896. table.remove(AoETrue,#AoETrue)
  897. end
  898. end
  899.  
  900. --
  901.  
  902.  
  903. --
  904.  
  905. function effect(Color,Ref,LP,P1)
  906. local effectsmsh = Instance.new("BlockMesh")
  907. effectsmsh.Scale = Vector3.new(1,1,1)
  908. effectsmsh.Name = "Mesh"
  909. local effectsg = Instance.new("Part")
  910. effectsg.formFactor = 3
  911. effectsg.CanCollide = false
  912. effectsg.Name = "Eff"
  913. effectsg.Locked = true
  914. effectsg.Anchored = true
  915. effectsg.Size = Vector3.new(0.2,1,0.2)
  916. effectsg.Parent = swordholder
  917. effectsmsh.Parent = effectsg
  918. effectsg.BrickColor = BrickColor.new(Color)
  919. effectsg.Reflectance = Ref
  920. local point1 = P1
  921. local mg = (LP.p - point1.p).magnitude
  922. effectsg.Size = Vector3.new(0.2,mg,0.2)
  923. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  924. coroutine.resume(coroutine.create(function()
  925. for i = 0 , 1 , 0.1 do
  926. wait()
  927. effectsg.Transparency = 1*i
  928. effectsmsh.Scale = Vector3.new(1-1*i,1,1-1*i)
  929. end
  930. wait()
  931. effectsg.Parent = nil
  932. end))
  933. end
  934. --
  935.  
  936.  
  937. con = nil
  938.  
  939.  
  940. function dmgcnnct()
  941. if con ~= nil then
  942. con:disconnect()
  943. Hitdeb = 0
  944. end
  945. con = prt1.Touched:connect(OT)
  946. end
  947.  
  948. function nrdmgcnnct()
  949. if con ~= nil then
  950. con:disconnect()
  951. Hitdeb = 0
  952. end
  953. con = prt1.Touched:connect(OTNR)
  954. end
  955.  
  956. function dmgdc()
  957. if con ~= nil then
  958. con:disconnect()
  959. Hitdeb = 0
  960. end
  961. end
  962.  
  963. function rptddmg(value,des,inc)
  964. coroutine.resume(coroutine.create(function()
  965. repeat
  966. wait(inc)
  967. Hitdeb = 0
  968. until value == des
  969. end))
  970. end
  971.  
  972. function atktype(s,e)
  973. coroutine.resume(coroutine.create(function ()
  974. attacktype = e
  975. wait(0.25)
  976. attacktype = s
  977. end))
  978. end
  979.  
  980. function Slash1()
  981. attack = true
  982. ss(Head,1)
  983. for i = 0 , 1 , 0.1 do
  984. wait()
  985. RW.C0 = CFrame.new(1+0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(90),math.rad(90*i),math.rad(-65+65*i))
  986. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(45*i), 0, 0)
  987. LW.C0 = CFrame.new(-1.5+1.5*i, 0.5, -1*i) * CFrame.Angles(math.rad(90*i),math.rad(0),math.rad(-20+90*i))
  988. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  989. w1.C0 = CFrame.Angles(math.rad(300-30*i), math.rad(0), math.rad(0)) * CFrame.new(0, -0.5+0.5*i, -1)
  990. end
  991. prcntdmg(75)
  992. dmgcnnct()
  993. LastPoint = prt1.CFrame * CFrame.new(0,prt1.Size.Y/2,0)
  994. for i = 0 , 1 , 0.4 do
  995. wait()
  996. RW.C0 = CFrame.new(1.5-1*i, 0.5, -1*i) * CFrame.Angles(math.rad(90),math.rad(90),math.rad(0))
  997. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(45-105*i), 0, 0)
  998. LW.C0 = CFrame.new(-1.25*i, 0.5, -1+1*i) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(70-80*i))
  999. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1000. w1.C0 = CFrame.Angles(math.rad(270+30*i), math.rad(0), math.rad(0)) * CFrame.new(0,-0.5*i, -1)
  1001. local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/2,0)
  1002. effect("White",0.5,LastPoint,Point)
  1003. LastPoint = Point
  1004. end
  1005. for i = 0 , 1 , 0.2 do
  1006. wait()
  1007. RW.C0 = CFrame.new(0.5-0.5*i, 0.5, -1) * CFrame.Angles(math.rad(90),math.rad(90),math.rad(0))
  1008. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-60-30*i), 0, 0)
  1009. LW.C0 = CFrame.new(-1.25, 0.5, 1*i) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-10-10*i))
  1010. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1011. w1.C0 = CFrame.Angles(math.rad(300-30*i), math.rad(0), math.rad(0)) * CFrame.new(0,-0.5, -1)
  1012. local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/2,0)
  1013. effect("White",0.5,LastPoint,Point)
  1014. LastPoint = Point
  1015. end
  1016. dmgdc()
  1017. returndmg()
  1018. for i = 0 , 1 , 0.1 do
  1019. wait()
  1020. RW.C0 = CFrame.new(1*i, 0.5, -1+0.5) * CFrame.Angles(math.rad(90),math.rad(90-90*i),math.rad(-65*i))
  1021. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-90+90*i), 0, 0)
  1022. LW.C0 = CFrame.new(-1.25-0.25*i, 0.5, 1-1*i) * CFrame.Angles(math.rad(90-90*i),math.rad(0),math.rad(-20))
  1023. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1024. w1.C0 = CFrame.Angles(math.rad(270+30*i), math.rad(0), math.rad(0)) * CFrame.new(0,-0.5, -1)
  1025. end
  1026. attack = false
  1027. end
  1028.  
  1029. function WindBlast()
  1030. if Mana < 15 then return end
  1031. Mana = Mana - 15
  1032. attack = true
  1033. for i = 0 , 1 , 0.15 do
  1034. wait()
  1035. RW.C0 = CFrame.new(1+0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(90-45*i),math.rad(0),math.rad(-65+85*i))
  1036. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1037. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20))
  1038. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1039. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(10*i),0,math.rad(-20*i))
  1040. end
  1041. cs(Head,1.5)
  1042. local meshb3 = Instance.new("SpecialMesh")
  1043. meshb3.Scale = Vector3.new(0,0,0)
  1044. meshb3.MeshId = "http://www.roblox.com/asset/?id=1051557"
  1045. local shellb3 = Instance.new("Part")
  1046. meshb3.Parent = shellb3
  1047. shellb3.Anchored = true
  1048. shellb3.formFactor = 3
  1049. shellb3.Size = Vector3.new(1,1,1)
  1050. shellb3.CFrame = CFrame.new(Torso.Position)
  1051. shellb3.Parent = swordholder
  1052. shellb3.Transparency = 1
  1053. shellb3.Reflectance = 0.25
  1054. shellb3.BrickColor = BrickColor.new("White")
  1055. shellb3.CanCollide = false
  1056. for i = 0 , 1 , 0.2 do
  1057. wait()
  1058. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(45-10*i),math.rad(0),math.rad(20+15*i))
  1059. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1060. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20))
  1061. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1062. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(10),0,math.rad(-20-5*i))
  1063. shellb3.Transparency = 1-1*i
  1064. meshb3.Scale = Vector3.new(10*i,20,10*i)
  1065. shellb3.CFrame = CFrame.new(Torso.Position) * CFrame.Angles(0,90*i,0)
  1066. end
  1067. for i = 0 , 1 , 0.2 do
  1068. wait()
  1069. RW.C0 = CFrame.new(1.5-0.5*i, 0.5, -1*i) * CFrame.Angles(math.rad(35+90*i),math.rad(0),math.rad(35-80*i))
  1070. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1071. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20))
  1072. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1073. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(10-15*i),0,math.rad(-25+25*i))
  1074. meshb3.Scale = Vector3.new(10,20,10)
  1075. shellb3.CFrame = CFrame.new(Torso.Position) * CFrame.Angles(0,90+90*i,0)
  1076. end
  1077. ls(Head,1.5)
  1078. local meshb = Instance.new("SpecialMesh")
  1079. meshb.Scale = Vector3.new(0,0,0)
  1080. meshb.MeshType = "Sphere"
  1081. local shellb = Instance.new("Part")
  1082. meshb.Parent = shellb
  1083. shellb.Anchored = true
  1084. shellb.formFactor = 3
  1085. shellb.Size = Vector3.new(1,1,1)
  1086. shellb.CFrame = CFrame.new(Torso.Position-Vector3.new(0,2,0))
  1087. shellb.Parent = swordholder
  1088. shellb.Transparency = 0
  1089. shellb.Reflectance = 0.25
  1090. shellb.BrickColor = BrickColor.new("White")
  1091. shellb.CanCollide = false
  1092.  
  1093. for i = 0 , 1 , 0.2 do
  1094. wait()
  1095. RW.C0 = CFrame.new(1, 0.5, -1) * CFrame.Angles(math.rad(125+10*i),math.rad(0),math.rad(-45-5*i))
  1096. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1097. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20-5*i))
  1098. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1099. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-5-5*i),0,math.rad(0))
  1100. meshb3.Scale = Vector3.new(10,20,10)
  1101. shellb3.CFrame = CFrame.new(Torso.Position) * CFrame.Angles(0,180+90*i,0)
  1102. shellb3.Transparency = 1*i
  1103. meshb.Scale = Vector3.new(10*i,5*i,10*i)
  1104. shellb.Transparency = 0.5*i
  1105. end
  1106. shellb3.Parent = nil
  1107. subdmg(10)
  1108. --
  1109. local c = game.Workspace:GetChildren();
  1110. for i = 1, #c do
  1111. local hum = c[i]:findFirstChild("Humanoid")
  1112. if hum ~= nil and hum.Health ~= 0 then
  1113. local head = c[i]:findFirstChild("Head");
  1114. if head ~= nil then
  1115. local mag = (head.Position - shellb.Position).magnitude;
  1116. if mag <= 20 and c[i].Name ~= Character.Name then
  1117. local foundd = false
  1118. for ii = 1 , #AoETrue do
  1119. if AoETrue[ii] == c[i].Name then
  1120. foundd = true
  1121. end
  1122. end
  1123. if foundd then
  1124. end
  1125. --
  1126. if not foundd then
  1127. local vel = Instance.new("BodyVelocity",hum.Torso)
  1128. vel.maxForce = Vector3.new(1,1,1) * math.huge
  1129. vel.P = vel.P * 2
  1130. vel.velocity = Vector3.new(0,2,0) + (CFrame.new(Torso.Position,hum.Torso.Position).lookVector * 100) * Vector3.new(1,0,1)
  1131. if c[i]:findFirstChild("Block") ~= nil then
  1132. if c[i].Block.Value then
  1133. subdmg(15)
  1134. vel.velocity = Vector3.new(0,2,0) + (CFrame.new(Torso.Position,hum.Torso.Position).lookVector * 50) * Vector3.new(1,0,1)
  1135. end
  1136. end
  1137. coroutine.resume(coroutine.create(function()
  1138. wait(0.1)
  1139. vel.Parent=nil
  1140. end))
  1141. local critrandomizer = math.random(crtrate)
  1142. if critrandomizer ~= 1 then
  1143. local rndmdamage = math.random(mindamage,maxdamage)
  1144. damage(hum,rndmdamage,false)
  1145. elseif critrandomizer == 1 then
  1146. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  1147. damage(hum,rndmdamage,true)
  1148. end
  1149. returndmg()
  1150. table.insert(AoETrue,c[i].Name)
  1151. end
  1152. end
  1153. end
  1154. end
  1155. end
  1156. for ii = 1 , #AoETrue do
  1157. table.remove(AoETrue,#AoETrue)
  1158. end
  1159. --
  1160. returndmg()
  1161. local vel = Instance.new("BodyVelocity")
  1162. vel.maxForce = Vector3.new(0,math.huge,0)
  1163. vel.P = vel.P * 2
  1164. vel.velocity = Vector3.new(0,65,0)
  1165. vel.Parent = Torso
  1166. coroutine.resume(coroutine.create(function()
  1167. wait(0.15)
  1168. vel.Parent = nil
  1169. end))
  1170. for i = 0 , 1 , 0.2 do
  1171. wait()
  1172. RW.C0 = CFrame.new(1+0.5*i, 0.5, -1+1*i) * CFrame.Angles(math.rad(135),math.rad(0),math.rad(-50+75*i))
  1173. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1174. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(135*i),math.rad(0),math.rad(-25))
  1175. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1176. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-10+20*i),0,math.rad(0))
  1177. meshb.Scale = Vector3.new(10+20*i,5+20*i,10+20*i)
  1178. shellb.Transparency = 0.5+0.5*i
  1179. end
  1180. shellb.Parent = nil
  1181. for i = 0 , 1 , 0.1 do
  1182. wait()
  1183. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(135+25*i),math.rad(0),math.rad(25+10*i))
  1184. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1185. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(135+25*i),math.rad(0),math.rad(-25-10*i))
  1186. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1187. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(10),0,math.rad(0))
  1188. end
  1189. floor = false
  1190. repeat
  1191. wait(0.05)
  1192. hit,pos = rayCast(Torso.Position, (CFrame.new(Torso.Position,Torso.Position - Vector3.new(0,6,0))).lookVector, 3, Character)
  1193. if hit ~= nil then
  1194. floor = true
  1195. end
  1196. until floor
  1197. for i = 0 , 1 , 0.2 do
  1198. wait()
  1199. RW.C0 = CFrame.new(1.5-0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(160-70*i),math.rad(0),math.rad(35-100*i))
  1200. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1201. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(160-160*i),math.rad(0),math.rad(-35+15*i))
  1202. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1203. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(10-10*i),0,math.rad(0))
  1204. end
  1205. Neck.C0 = neckcf0
  1206. attack = false
  1207. end
  1208.  
  1209. function FlameWalls()
  1210. if Mana < 15 then return end
  1211. Mana = Mana - 15
  1212. attack = true
  1213. for i = 0 , 1 , 0.2 do
  1214. wait()
  1215. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90-45*i),math.rad(0),math.rad(-65+55*i))
  1216. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1217. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20))
  1218. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1219. w1.C0 = CFrame.Angles(math.rad(300), math.rad(-20*i), math.rad(0)) * CFrame.new(0, -0.5, -1)
  1220. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(10*i ),0,math.rad(0))
  1221. end
  1222. cs(Head,1)
  1223. local meshb = Instance.new("SpecialMesh")
  1224. meshb.Scale = Vector3.new(0,0,0)
  1225. meshb.MeshType = "Sphere"
  1226. local shellb = Instance.new("Part")
  1227. meshb.Parent = shellb
  1228. shellb.Anchored = true
  1229. shellb.formFactor = 3
  1230. shellb.Size = Vector3.new(1,1,1)
  1231. shellb.CFrame = CFrame.new(prt7.Position)
  1232. shellb.Parent = swordholder
  1233. shellb.Transparency = 0
  1234. shellb.Reflectance = 0.1
  1235. shellb.BrickColor = BrickColor.new("Bright red")
  1236. shellb.CanCollide = false
  1237. coroutine.resume(coroutine.create(function()
  1238. for i = 0 , 1 , 0.1 do
  1239. wait()
  1240. shellb.CFrame = CFrame.new(prt7.Position)
  1241. shellb.Transparency = 0.5+0.5*i
  1242. meshb.Scale = Vector3.new(7.5-7.5*i,7.5-7.5*i,7.5-7.5*i)
  1243. end
  1244. shellb.Parent = nil
  1245. end))
  1246. for i = 0 , 1 , 0.2 do
  1247. wait()
  1248. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(45-20*i),math.rad(0),math.rad(-10+5*i))
  1249. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1250. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20))
  1251. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1252. w1.C0 = CFrame.Angles(math.rad(300), math.rad(-20), math.rad(0)) * CFrame.new(0, -0.5, -1)
  1253. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(10+15*i),0,math.rad(0))
  1254. end
  1255. wait(0.1)
  1256. for i = 0 , 1 , 0.2 do
  1257. wait()
  1258. RW.C0 = CFrame.new(1+0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(25+90*i),math.rad(0),math.rad(-5+15*i))
  1259. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1260. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20))
  1261. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1262. w1.C0 = CFrame.Angles(math.rad(300), math.rad(-20+20*i), math.rad(0)) * CFrame.new(0, -0.5, -1)
  1263. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(35-75*i),0,math.rad(-20*i))
  1264. end
  1265. coroutine.resume(coroutine.create(function()
  1266. local trs = Torso.CFrame
  1267. local hit,pos = rayCast(Torso.Position, trs.lookVector, 50, Workspace)
  1268. for i = 1 , (trs.p-pos).magnitude/4 do
  1269. wait() wait() wait()
  1270. local meshb = Instance.new("SpecialMesh")
  1271. meshb.Scale = Vector3.new(0,0,0)
  1272. meshb.MeshType = "Sphere"
  1273. local shellb = Instance.new("Part")
  1274. meshb.Parent = shellb
  1275. shellb.Anchored = true
  1276. shellb.formFactor = 3
  1277. shellb.Size = Vector3.new(4,15,4)
  1278. local pp = trs + trs.lookVector * (i*4)
  1279. local ht,ps = rayCast(pp.p, (CFrame.new(pp.p,pp.p - Vector3.new(0,50,0))).lookVector, 50, Character)
  1280. shellb.CFrame = CFrame.new(ps) * CFrame.Angles(math.random(-10,10)/10,0,math.random(-10,10)/10)
  1281. shellb.Parent = swordholder
  1282. shellb.Transparency = 0
  1283. shellb.Reflectance = 0.1
  1284. shellb.BrickColor = BrickColor.new("Bright red")
  1285. shellb.CanCollide = false
  1286. local meshb1 = Instance.new("SpecialMesh")
  1287. meshb1.Scale = Vector3.new(3,2,3)
  1288. meshb1.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1289. local shellb1 = Instance.new("Part")
  1290. if ht ~= nil then
  1291. meshb1.Parent = shellb1
  1292. shellb1.Anchored = true
  1293. shellb1.formFactor = 3
  1294. shellb1.Size = Vector3.new(1,1,1)
  1295. shellb1.CFrame = CFrame.new(shellb.Position) --* CFrame.new(0,0,0)
  1296. shellb1.Parent = swordholder
  1297. shellb1.Transparency = 0
  1298. shellb1.BrickColor = ht.BrickColor
  1299. shellb1.CanCollide = false
  1300. end
  1301. fs(shellb,0.65+(0.65*math.random()))
  1302. coroutine.resume(coroutine.create(function()
  1303. for i = 0 , 1 , 0.1 do
  1304. wait()
  1305. meshb.Scale = Vector3.new(1,2*i,1)
  1306. shellb.Transparency = 1*i
  1307. end
  1308. shellb.Parent = nil
  1309. for i = 0 , 1 , 0.1 do
  1310. wait()
  1311. shellb1.Transparency = 1*i
  1312. end
  1313. shellb1.Parent = nil
  1314. end))
  1315. --
  1316. local c = game.Workspace:GetChildren();
  1317. for i = 1, #c do
  1318. local hum = c[i]:findFirstChild("Humanoid")
  1319. if hum ~= nil and hum.Health ~= 0 then
  1320. local head = c[i]:findFirstChild("Torso");
  1321. if head ~= nil then
  1322. local mag = (head.Position - shellb.Position).magnitude;
  1323. if mag <= 7.5 and c[i].Name ~= Character.Name then
  1324. local foundd = false
  1325. for ii = 1 , #AoETrue do
  1326. if AoETrue[ii] == c[i].Name then
  1327. foundd = true
  1328. end
  1329. end
  1330. if foundd then
  1331. end
  1332. --
  1333. if not foundd then
  1334. local critrandomizer = math.random(crtrate)
  1335. if critrandomizer ~= 1 then
  1336. local rndmdamage = math.random(mindamage,maxdamage)
  1337. damage(hum,rndmdamage,false)
  1338. elseif critrandomizer == 1 then
  1339. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  1340. damage(hum,rndmdamage,true)
  1341. end
  1342. table.insert(AoETrue,c[i].Name)
  1343. end
  1344. end
  1345. end
  1346. end
  1347. end
  1348. --
  1349. end
  1350. end))
  1351. wait(0.25)
  1352. for i = 0 , 1 , 0.1 do
  1353. wait()Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-40+40*i),0,math.rad(-20+20*i))
  1354. end
  1355. wait(0.5)
  1356. for i = 0 , 1 , 0.1 do
  1357. wait()
  1358. RW.C0 = CFrame.new(1.5-0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(125-35*i),math.rad(0),math.rad(10-75*i))
  1359. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1360. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20))
  1361. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1362. w1.C0 = CFrame.Angles(math.rad(300), math.rad(0), math.rad(0)) * CFrame.new(0, -0.5, -1)
  1363. Neck.C0 = neckcf0
  1364. end
  1365. for ii = 1 , #AoETrue do
  1366. table.remove(AoETrue,#AoETrue)
  1367. end
  1368. Neck.C0 = neckcf0
  1369. attack = false
  1370. end
  1371.  
  1372. function Lightning(mouse)
  1373. if Mana < 20 then return end
  1374. Mana = Mana - 20
  1375. attack = true
  1376. for i = 0 , 1 , 0.2 do
  1377. wait()
  1378. RW.C0 = CFrame.new(1+0.5*i, 0.5+0.5*i, -0.5+0.5*i) * CFrame.Angles(math.rad(90+80*i),math.rad(90*i),math.rad(-65+65*i))
  1379. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1380. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20))
  1381. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1382. w1.C0 = CFrame.Angles(math.rad(300-30*i), math.rad(0), math.rad(0)) * CFrame.new(0, -0.5+0.5*i, -1+1*i)
  1383. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-50*i),0,0)
  1384. end
  1385. for i = 0 , 1 , 0.1 do
  1386. wait()
  1387. RW.C0 = CFrame.new(1.5, 1, 0) * CFrame.Angles(math.rad(170+10*i),math.rad(90),math.rad(0))
  1388. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1389. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20))
  1390. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1391. w1.C0 = CFrame.Angles(math.rad(270), math.rad(180*i), math.rad(0)) * CFrame.new(0, -0, 0)
  1392. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-50),0,0)
  1393. end
  1394. for i = 0 , 1 , 0.1 do
  1395. wait()
  1396. RW.C0 = CFrame.new(1.5-0.5*i, 1, -0.5*i) * CFrame.Angles(math.rad(180-45*i),math.rad(90-90*i),math.rad(-45*i))
  1397. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1398. LW.C0 = CFrame.new(-1.5+0.5*i, 0.5+0.5*i, -0.5*i) * CFrame.Angles(math.rad(135*i),math.rad(0),math.rad(-20+65*i))
  1399. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1400. w1.C0 = CFrame.Angles(math.rad(270), math.rad(180+180*i), math.rad(0)) * CFrame.new(0, -0, 0)
  1401. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-50),0,0)
  1402. end
  1403. for i = 0 , 1 , 0.2 do
  1404. wait()
  1405. RW.C0 = CFrame.new(1, 1-0.5*i, -0.5) * CFrame.Angles(math.rad(135-45*i),math.rad(0),math.rad(-45))
  1406. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1407. LW.C0 = CFrame.new(-1, 1-0.5*i, -0.5) * CFrame.Angles(math.rad(135-45*i),math.rad(0),math.rad(45))
  1408. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1409. w1.C0 = CFrame.Angles(math.rad(270), math.rad(0), math.rad(0)) * CFrame.new(0, -0, -1*i)
  1410. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-50+60*i),0,0)
  1411. end
  1412. local meshb1 = Instance.new("SpecialMesh")
  1413. meshb1.Scale = Vector3.new(1,0.5,1)
  1414. meshb1.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1415. local shellb1 = Instance.new("Part")
  1416. meshb1.Parent = shellb1
  1417. shellb1.Anchored = true
  1418. shellb1.formFactor = 3
  1419. shellb1.Size = Vector3.new(1,1,1)
  1420. shellb1.CFrame = CFrame.new(prt1.Position) * CFrame.new(0,-2,0)
  1421. shellb1.Parent = swordholder
  1422. shellb1.Transparency = 1
  1423. shellb1.BrickColor = BrickColor.new("Bright yellow")
  1424. shellb1.CanCollide = false
  1425. coroutine.resume(coroutine.create(function()
  1426. for i = 0 , 1 , 0.1 do
  1427. wait()
  1428. shellb1.Transparency = 1-1*i
  1429. meshb1.Scale = Vector3.new(1+1*i,0.5-0.25*i,1+1*i)
  1430. end
  1431. for i = 0 , 1 , 0.1 do
  1432. wait()
  1433. shellb1.Transparency = 1*i
  1434. meshb1.Scale = Vector3.new(2+1*i,0.25-0.25*i,2+1*i)
  1435. end
  1436. shellb1.Parent = nil
  1437. end))
  1438. local thunda = false
  1439. local yaxis = 20
  1440. local inc= 1
  1441. local mht = mouse.Hit.p
  1442. local pos = mht + Vector3.new(0,5,0)
  1443. repeat
  1444. if (pos-Torso.Position).magnitude > 350 then
  1445. pos = Torso.Position + Torso.CFrame.lookVector * 20
  1446. end
  1447. if (pos-Torso.Position).magnitude >= 50 then
  1448. pos = pos + CFrame.new(pos,Torso.Position).lookVector*5
  1449. end
  1450. wait()
  1451. until (pos-Torso.Position).magnitude < 50
  1452. prcntdmg(50)
  1453. for d = 1,3 do
  1454. coroutine.resume(coroutine.create(function()
  1455. local ht,poss = rayCast(pos, (CFrame.new(pos,pos - Vector3.new(0,50,0))).lookVector, 50, Character)
  1456. local LP = CFrame.new(poss.x,poss.y+yaxis,poss.z) * CFrame.new(math.random(-inc,inc),math.random(-inc,inc),math.random(-inc,inc))
  1457. local hum = nil
  1458. if ht ~= nil then
  1459. if ht.Parent:findFirstChild("Humanoid") ~= nil then
  1460. hum = ht.Parent.Humanoid
  1461. elseif ht.Parent.Parent ~= nil and ht.Parent.Parent:findFirstChild("Humanoid") ~= nil then
  1462. hum = ht.Parent.Parent.Humanoid
  1463. end
  1464. end
  1465. if hum ~= nil then
  1466. local critrandomizer = math.random(crtrate)
  1467. if critrandomizer ~= 1 then
  1468. local rndmdamage = math.random(mindamage,maxdamage)
  1469. damagesplat(rndmdamage,ht,false)
  1470. hum:TakeDamage(rndmdamage)
  1471. elseif critrandomizer == 1 then
  1472. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  1473. damagesplat(rndmdamage,ht,true)
  1474. hum:TakeDamage(rndmdamage)
  1475. end
  1476. coroutine.resume(coroutine.create(function()
  1477. tagHumanoid(hum,Player)
  1478. wait(1)
  1479. untagHumanoid(hum)
  1480. end))
  1481. end
  1482. repeat
  1483. wait() wait()
  1484. local effectsmsh = Instance.new("CylinderMesh")
  1485. effectsmsh.Scale = Vector3.new(2,1,2)
  1486. effectsmsh.Name = "Mesh"
  1487. local effectsg = Instance.new("Part")
  1488. effectsg.formFactor = 3
  1489. effectsg.CanCollide = false
  1490. effectsg.Name = "Eff"
  1491. effectsg.Locked = true
  1492. effectsg.Anchored = true
  1493. effectsg.Size = Vector3.new(0.2,1,0.2)
  1494. effectsg.Parent = swordholder
  1495. effectsmsh.Parent = effectsg
  1496. effectsg.BrickColor = BrickColor.new("Bright yellow")
  1497. effectsg.Reflectance = 0.5
  1498. local point1 = CFrame.new(poss.x,poss.y+yaxis,poss.z) * CFrame.new(math.random(-inc,inc),math.random(-inc,inc),math.random(-inc,inc))
  1499. local mg = (LP.p - point1.p).magnitude
  1500. effectsg.Size = Vector3.new(0.2,mg,0.2)
  1501. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  1502. coroutine.resume(coroutine.create(function()
  1503. for i = 0 , 1 , 0.1 do
  1504. wait()
  1505. effectsg.Transparency = 1*i
  1506. end
  1507. wait()
  1508. effectsg.Parent = nil
  1509. end))
  1510. LP = point1
  1511. until thunda
  1512. end))
  1513. end
  1514. returndmg()
  1515. ts(Head,1.5)
  1516. for i = 0 , 1 , 0.2 do
  1517. wait()
  1518. yaxis=20-22*i
  1519. inc = 1+1*i
  1520. end
  1521. for i = 0 , 1 , 0.1 do
  1522. wait()
  1523. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-45-20*i))
  1524. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1525. LW.C0 = CFrame.new(-1-0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(90-90*i),math.rad(0),math.rad(45-65*i))
  1526. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1527. w1.C0 = CFrame.Angles(math.rad(270+30*i), math.rad(0), math.rad(0)) * CFrame.new(0, -0.5*i, -1)
  1528. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(10-10*i),0,0)
  1529. end
  1530. thunda = true
  1531.  
  1532. Neck.C0 = neckcf0
  1533. attack = false
  1534. end
  1535.  
  1536. function returnwelds()
  1537. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-65))
  1538. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1539. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20))
  1540. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1541. w1.C0 = CFrame.Angles(math.rad(300), math.rad(0), math.rad(0)) * CFrame.new(0, -0.5, -1)
  1542. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, 0)
  1543. RWL.C1 = CFrame.new(0.5, 1, 0)
  1544. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, 0)
  1545. LWL.C1 = CFrame.new(-0.5, 1, 0)
  1546. Neck.C0 = neckcf0
  1547. end
  1548.  
  1549. function ManaCharge()
  1550. attack = true
  1551. for i = 0 , 1 , 0.1 do
  1552. wait()
  1553. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-65+20*i))
  1554. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-45*i), 0, 0)
  1555. LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(90*i),math.rad(0),math.rad(-20+65*i))
  1556. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-45)*i, 0, 0)
  1557. w1.C0 = CFrame.Angles(math.rad(300-30*i), math.rad(0), math.rad(0)) * CFrame.new(0, -0.5+0.5*i, -1)
  1558. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-20*i),0,math.rad(-20*i))
  1559. end
  1560. wait(0.1)
  1561. for i = 0 , 1 , 0.2 do
  1562. wait()
  1563. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-45))
  1564. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-45+45*i), 0, 0)
  1565. LW.C0 = CFrame.new(-1, 0.5, -0.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(45))
  1566. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-45+45*i), 0, 0)
  1567. w1.C0 = CFrame.Angles(math.rad(270), math.rad(0), math.rad(0)) * CFrame.new(0, 0, -1)
  1568. Neck.C0 = neckcf0 * CFrame.Angles(math.rad(-20+20*i),0,math.rad(-20+20*i))
  1569. end
  1570. ii = 0
  1571. d = false
  1572. Character.Humanoid.WalkSpeed = 16
  1573. repeat
  1574. wait(0.1)
  1575. ii = ii + 10
  1576. AddMana(manaregen)
  1577. coroutine.resume(coroutine.create(function()
  1578. local meshb1 = Instance.new("SpecialMesh")
  1579. meshb1.Scale = Vector3.new(3,2,3)
  1580. meshb1.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1581. local shellb1 = Instance.new("Part")
  1582. meshb1.Parent = shellb1
  1583. shellb1.Anchored = true
  1584. shellb1.formFactor = 3
  1585. shellb1.Size = Vector3.new(1,1,1)
  1586. shellb1.CFrame = CFrame.new(Torso.Position) * CFrame.new(0,-2,0)* CFrame.Angles(0,math.rad(ii),0)
  1587. shellb1.Parent = swordholder
  1588. shellb1.Transparency = 1
  1589. shellb1.BrickColor = BrickColor.new("Bright violet")
  1590. shellb1.CanCollide = false
  1591. for i = 0 , 1 , 0.05 do
  1592. wait()
  1593. shellb1.Transparency = 1-1*i
  1594. meshb1.Scale = Vector3.new(3+1*i,2-0.5*i,3+1*i)
  1595. end
  1596. for i = 0 , 1 , 0.05 do
  1597. wait()
  1598. shellb1.Transparency = 1*i
  1599. meshb1.Scale = Vector3.new(4+1*i,1.5-1.5*i,4+1*i)
  1600. end
  1601. shellb1.Parent = nil
  1602. end))
  1603. coroutine.resume(coroutine.create(function()
  1604. if not d then
  1605. local meshb = Instance.new("SpecialMesh")
  1606. meshb.Scale = Vector3.new(0,0,0)
  1607. meshb.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  1608. local shellb = Instance.new("Part")
  1609. meshb.Parent = shellb
  1610. shellb.Anchored = true
  1611. shellb.formFactor = 3
  1612. shellb.Size = Vector3.new(1,1,1)
  1613. shellb.CFrame = CFrame.new(Torso.Position) * CFrame.new(math.random(-5,5),math.random(-2,5),math.random(-5,5))
  1614. shellb.Parent = swordholder
  1615. shellb.Reflectance = 0.2
  1616. shellb.Transparency = 1
  1617. if math.random(1,2) == 1 then
  1618. shellb.BrickColor = BrickColor.new("Bright violet")
  1619. else
  1620. shellb.BrickColor = BrickColor.new("White")
  1621. end
  1622. shellb.CanCollide = false
  1623. d = true
  1624. coroutine.resume(coroutine.create(function()
  1625. wait(0.1)
  1626. d = false
  1627. end))
  1628. for i = 0 ,1 , 0.1 do
  1629. wait()
  1630. meshb.Scale = Vector3.new(0.5*i,1*i,0.5*i)
  1631. shellb.Transparency = 1-1*i
  1632. end
  1633. for i = 0 ,1 , 0.1 do
  1634. wait()
  1635. meshb.Scale = Vector3.new(0.5+0.5*i,1+1*i,0.5+0.5*i)
  1636. shellb.Transparency = 1*i
  1637. end
  1638. shellb.Parent = nil
  1639. end
  1640. end))
  1641. until not buttonhold or Mana >= MaxMana
  1642. Character.Humanoid.WalkSpeed = 30
  1643. buttonhold = false
  1644. for i = 0 , 1 , 0.2 do
  1645. wait()
  1646. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-45-20*i))
  1647. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1648. LW.C0 = CFrame.new(-1-0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(90-90*i),math.rad(0),math.rad(45-65*i))
  1649. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), 0, 0)
  1650. w1.C0 = CFrame.Angles(math.rad(270+30*i), math.rad(0), math.rad(0)) * CFrame.new(0, -0.5*i, -1)
  1651. Neck.C0 = neckcf0
  1652. end
  1653. Neck.C0 = neckcf0
  1654. attack = false
  1655. end
  1656. function ob1d(mouse)
  1657. hold = true
  1658. if attack then return end
  1659. Slash1()
  1660. end
  1661.  
  1662. function ob1u(mouse)
  1663. end
  1664.  
  1665. buttonhold = false
  1666.  
  1667. function key(key,mouse)
  1668. if attack then return end
  1669. if key == "q" then
  1670. WindBlast()
  1671. end
  1672. if key == "e" then
  1673. FlameWalls()
  1674. end
  1675. if key == "f" then
  1676. buttonhold = true
  1677. ManaCharge()
  1678. end
  1679. if key == "r" then
  1680. Lightning(mouse)
  1681. end
  1682. end
  1683.  
  1684.  
  1685. function key2(key)
  1686. if key == "f" then
  1687. buttonhold = false
  1688. end
  1689. end
  1690.  
  1691. function s(mouse)
  1692. repeat wait() until not attack
  1693. repeat wait() until not ev.Value
  1694.  
  1695. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1696. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1697. mouse.KeyDown:connect(function(ke) key(ke,mouse) end)
  1698. mouse.KeyUp:connect(key2)
  1699. equipanim()
  1700. ev.Value = true
  1701. end
  1702.  
  1703. function ds(mouse)
  1704. repeat wait() until not attack
  1705. repeat wait() until ev.Value
  1706.  
  1707. hideanim()
  1708. wait(0.1)
  1709. ev.Value = false
  1710. end
  1711.  
  1712. Bin.Selected:connect(s)
  1713. Bin.Deselected:connect(ds)
  1714.  
  1715.  
  1716.  
  1717. if PlayerGui:findFirstChild("ManaMeter") ~= nil then
  1718. PlayerGui:findFirstChild("ManaMeter").Parent = nil
  1719. end
  1720.  
  1721.  
  1722. coroutine.resume(coroutine.create(function()
  1723. local SG = Instance.new("ScreenGui",PlayerGui)
  1724. SG.Name = "ManaMeter"
  1725. local frame = Instance.new("Frame",SG)
  1726. frame.Size = UDim2.new(0.2,0,0.1,0)
  1727. frame.Position = UDim2.new(0.5-0.1,0,0.05,0)
  1728. frame.BackgroundColor3 = BrickColor.new("Bright violet").Color
  1729. local Manatext = Instance.new("TextLabel",frame)
  1730. Manatext.Size = UDim2.new(1,0,0.35,0)
  1731. Manatext.BackgroundTransparency = 1
  1732. Manatext.Text = "Mana"
  1733. Manatext.FontSize = "Size18"
  1734. Manatext.TextColor3 = BrickColor.new("White").Color
  1735. local backing = Instance.new("ImageLabel",frame)
  1736. backing.Size = UDim2.new(0.8,0,0.45,0)
  1737. backing.Image = "http://www.roblox.com/asset/?id=48965808"
  1738. backing.Position = UDim2.new(0.1,0,0.45,0)
  1739. backing.BackgroundColor3 = BrickColor.new("Black").Color
  1740. local img = Instance.new("ImageLabel",backing)
  1741. img.Size = UDim2.new(1,0,1,0)
  1742. img.Image = "http://www.roblox.com/asset/?id=48965808"
  1743. img.Position = UDim2.new(0,0,0,0)
  1744. img.BackgroundColor3 = BrickColor.new("Bright violet").Color
  1745. local percent = Instance.new("TextLabel",backing)
  1746. percent.Size = UDim2.new(1,0,1,0)
  1747. percent.BackgroundTransparency = 1
  1748. percent.TextColor3 = BrickColor.new("White").Color
  1749. percent.Text = math.floor((Mana/MaxMana)*100).."%"
  1750. percent.FontSize = "Size18"
  1751. repeat
  1752. wait()
  1753. pcall(function()
  1754. img.Size = UDim2.new(1*(Mana/MaxMana),0,1,0)
  1755. percent.Text = math.floor((Mana/MaxMana)*100).."%"
  1756. if math.floor((Mana/MaxMana)*100) > 99 then
  1757.  
  1758. end
  1759. end)
  1760. until SG.Parent == nil
  1761. end))
  1762.  
  1763. --mediafire
Add Comment
Please, Sign In to add comment