hunterwhitney85

MAGNUS script

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