Advertisement
UltimateGate

Old Priest from Black Magic

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