ItzInfern

some knaij script

Mar 2nd, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 79.43 KB | None | 0 0
  1. Player = game:GetService("Players").ItzInfern
  2. PlayerGui = Player.PlayerGui
  3. Backpack = Player.Backpack
  4. Torso = Character.Torso
  5. Head = Character.Head
  6. LeftArm = Character["Left Arm"]
  7. LeftLeg = Character["Left Leg"]
  8. RightArm = Character["Right Arm"]
  9. RightLeg = Character["Right Leg"]
  10. LS = Torso["Left Shoulder"]
  11. LH = Torso["Left Hip"]
  12. RS = Torso["Right Shoulder"]
  13. RH = Torso["Right Hip"]
  14. ModelName = "Weapon"
  15. ToolName = "Yamato"
  16. attack = false
  17. attacktype = 1
  18. mindamage = 15
  19. maxdamage = 25
  20. crtmaxdamage = 45
  21. omindamage = 15
  22. omaxdamage = 25
  23. ocrtmaxdamage = 45
  24. crtrate = 12
  25. fireboost = 0
  26. iceboost = 0
  27. darkboost = 0
  28. Mode = "None"
  29. ssh = false
  30. atktypez = 1
  31. Hitdeb = 0
  32. ammo = 1
  33. MMouse = nil
  34. point = false
  35. offset = 0
  36. radv = 90
  37. ----------------------------
  38. --Customize
  39. DarkFire = true
  40. MaxFT = 40
  41.  
  42.  
  43.  
  44. ---------------------------------------------------------------------------------------------------------------------------------------
  45. if Character:findFirstChild("EquippedVal",true) ~= nil then
  46. Character:findFirstChild("EquippedVal",true).Parent = nil
  47. end
  48. ev = Instance.new("BoolValue")
  49. ev.Parent = Character
  50. ev.Name = "EquippedVal"
  51. ev.Value = false
  52. --player
  53. player = nil
  54. --welds
  55. RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld")
  56. --what anim
  57. anim = "none"
  58. --other var
  59. player = Player
  60. ch = Character
  61. --save shoulders
  62. AoETrue = {}
  63. RSH, LSH , RHL, LHL = ch.Torso["Right Shoulder"], ch.Torso["Left Shoulder"] , ch.Torso["Right Hip"] , ch.Torso["Left Hip"]
  64.  
  65. function RWFunc()
  66. RW.Part1 = ch["Right Arm"]
  67. RSH.Part1 = nil
  68. end
  69. function LWFunc()
  70. LW.Part1 = ch["Left Arm"]
  71. LSH.Part1 = nil
  72. end
  73. function RWLFunc()
  74. RWL.Part1 = ch["Right Leg"]
  75. RHL.Part1 = nil
  76. ch["Right Leg"].Name = "RightLeg"
  77. RightLeg.CanCollide = false
  78. end
  79. function LWLFunc()
  80. LWL.Part1 = ch["Left Leg"]
  81. LHL.Part1 = nil
  82. ch["Left Leg"].Name = "LeftLeg"
  83. LeftLeg.CanCollide = true
  84. end
  85. function RWLRem()
  86. RightLeg.Name = "Right Leg"
  87. RWL.Part1 = nil
  88. RHL.Part1 = ch["Right Leg"]
  89. RightLeg.CanCollide = false
  90. end
  91. function LWLRem()
  92. LeftLeg.Name = "Left Leg"
  93. LWL.Part1 = nil
  94. LHL.Part1 = ch["Left Leg"]
  95. LeftLeg.CanCollide = false
  96. end
  97. function RWRem()
  98. RW.Part1 = nil
  99. RSH.Part1 = ch["Right Arm"]
  100. end
  101. function LWRem()
  102. LW.Part1 = nil
  103. LSH.Part1 = ch["Left Arm"]
  104. end
  105.  
  106.  
  107. if Character:findFirstChild(ModelName,true) ~= nil then
  108. Character:findFirstChild(ModelName,true).Parent = nil
  109. RHL.Part1 = ch["Right Leg"]
  110. LHL.Part1 = ch["Left Leg"]
  111. RSH.Part1 = ch["Right Arm"]
  112. LSH.Part1 = ch["Left Arm"]
  113. end
  114.  
  115.  
  116.  
  117. local swordholder = Instance.new("Model")
  118. swordholder.Name = ModelName
  119. swordholder.Parent = Character
  120. --derp
  121. RW.Part0 = ch.Torso
  122. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  123. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  124. RW.Parent = swordholder
  125. --
  126. LW.Part0 = ch.Torso
  127. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  128. LW.C1 = CFrame.new(0, 0.5, 0)
  129. LW.Parent = swordholder
  130. --
  131. RWL.Part0 = ch.Torso
  132. RWL.C0 = CFrame.new(1, -1, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  133. RWL.C1 = CFrame.new(0.5, 1, 0)
  134. RWL.Parent = swordholder
  135. --
  136. LWL.Part0 = ch.Torso
  137. LWL.C0 = CFrame.new(-1, -1, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  138. LWL.C1 = CFrame.new(-0.5, 1, 0)
  139. LWL.Parent = swordholder
  140. handlecolor = BrickColor.new("Really black")
  141. scndryclr = BrickColor.new("Bright violet")
  142. firepri = BrickColor.new("Bright red")
  143. icepri = BrickColor.new("Bright blue")
  144. local msh1 = Instance.new("CylinderMesh")
  145. msh1.Scale = Vector3.new(1,1,1)
  146. local msh2 = Instance.new("BlockMesh")
  147. msh2.Scale = Vector3.new(1,1,1)
  148. --
  149. local msh3 = Instance.new("BlockMesh")
  150. msh3.Scale = Vector3.new(1,1,1)
  151. local msh3a = Instance.new("SpecialMesh")
  152. msh3a.Scale = Vector3.new(1,1,1)
  153. msh3a.MeshType = "Wedge"
  154. local msh4 = Instance.new("BlockMesh")
  155. msh4.Scale = Vector3.new(1,1,1)
  156. local msh4a = Instance.new("SpecialMesh")
  157. msh4a.Scale = Vector3.new(1,1,1)
  158. msh4a.MeshType = "Wedge"
  159. --
  160. local msh5 = Instance.new("SpecialMesh")
  161. msh5.Scale = Vector3.new(1,1,2)
  162. msh5.MeshId = "http://www.roblox.com/asset/?id=3270017"
  163. local msh6 = Instance.new("BlockMesh")
  164. msh6.Scale = Vector3.new(1,1,0.5)
  165. local msh7 = Instance.new("BlockMesh")
  166. msh7.Scale = Vector3.new(1,1,1)
  167. local msh8 = Instance.new("BlockMesh")
  168. msh8.Scale = Vector3.new(0.5,1,1)
  169. local prt1 = Instance.new("Part")
  170. prt1.formFactor = 3
  171. prt1.CanCollide = false
  172. prt1.Name = "Handle"
  173. prt1.Locked = true
  174. prt1.Size = Vector3.new(0.2,1.5,0.2)
  175. prt1.Parent = swordholder
  176. msh1.Parent = prt1
  177. prt1.BrickColor = handlecolor
  178. local prt2 = Instance.new("Part")
  179. prt2.formFactor = 3
  180. prt2.CanCollide = false
  181. prt2.Name = "HandleTop"
  182. prt2.Locked = true
  183. prt2.Size = Vector3.new(1.6,0.2,0.5)
  184. prt2.Parent = swordholder
  185. msh2.Parent = prt2
  186. prt2.BrickColor = scndryclr
  187. ---
  188. local prt3 = Instance.new("Part")
  189. prt3.formFactor = 3
  190. prt3.CanCollide = false
  191. prt3.Name = "FlameBlade"
  192. prt3.Locked = true
  193. prt3.Size = Vector3.new(0.4,3,0.2)
  194. prt3.Parent = swordholder
  195. msh3.Parent = prt3
  196. prt3.BrickColor = firepri
  197. prt3.Reflectance = 0
  198. local prt3a = Instance.new("Part")
  199. prt3a.formFactor = 3
  200. prt3a.CanCollide = false
  201. prt3a.Name = "FlameBladeP1"
  202. prt3a.Locked = true
  203. prt3a.Size = Vector3.new(0.2,1,0.4)
  204. prt3a.Parent = swordholder
  205. msh3a.Parent = prt3a
  206. prt3a.BrickColor = firepri
  207. prt3a.Reflectance = 0
  208. --
  209. local prt4 = Instance.new("Part")
  210. prt4.formFactor = 3
  211. prt4.CanCollide = false
  212. prt4.Name = "FrostBlade"
  213. prt4.Locked = true
  214. prt4.Size = Vector3.new(0.4,3,0.2)
  215. prt4.Parent = swordholder
  216. msh4.Parent = prt4
  217. prt4.BrickColor = icepri
  218. prt4.Reflectance = 0.5
  219. local prt4a = Instance.new("Part")
  220. prt4a.formFactor = 3
  221. prt4a.CanCollide = false
  222. prt4a.Name = "FrostBladeP1"
  223. prt4a.Locked = true
  224. prt4a.Size = Vector3.new(0.2,1,0.4)
  225. prt4a.Parent = swordholder
  226. msh4a.Parent = prt4a
  227. prt4a.BrickColor = icepri
  228. prt4a.Reflectance = 0.5
  229. --
  230. local prt5 = Instance.new("Part")
  231. prt5.formFactor = 3
  232. prt5.CanCollide = false
  233. prt5.Name = "HandleRing"
  234. prt5.Locked = true
  235. prt5.Size = Vector3.new(1,1,0.2)
  236. prt5.Parent = swordholder
  237. msh5.Parent = prt5
  238. prt5.BrickColor = scndryclr
  239. prt5.Reflectance = 0
  240. local DFlame = Instance.new("Fire")
  241. DFlame.Parent = prt5
  242. DFlame.Color = Color3.new(0.5,0,0.5)
  243. DFlame.SecondaryColor = Color3.new(0.5,0,0.5)
  244. DFlame.Heat = 25
  245. DFlame.Size = 1
  246. DFlame.Enabled = DarkFire
  247. local prt6 = Instance.new("Part")
  248. prt6.formFactor = 3
  249. prt6.CanCollide = false
  250. prt6.Name = "HandleP1"
  251. prt6.Locked = true
  252. prt6.Size = Vector3.new(0.2,1.5,0.2)
  253. prt6.Parent = swordholder
  254. msh6.Parent = prt6
  255. prt6.BrickColor = scndryclr
  256. prt6.Reflectance = 0
  257. local prt7 = Instance.new("Part")
  258. prt7.formFactor = 3
  259. prt7.CanCollide = false
  260. prt7.Name = "HandleP2"
  261. prt7.Locked = true
  262. prt7.Size = Vector3.new(0.7,0.2,0.2)
  263. prt7.Parent = swordholder
  264. msh7.Parent = prt7
  265. prt7.BrickColor = scndryclr
  266. prt7.Reflectance = 0
  267. local prt8 = Instance.new("Part")
  268. prt8.formFactor = 3
  269. prt8.CanCollide = false
  270. prt8.Name = "DarkBlade"
  271. prt8.Locked = true
  272. prt8.Size = Vector3.new(0.2,4,0.2)
  273. prt8.Parent = swordholder
  274. msh8.Parent = prt8
  275. prt8.BrickColor = handlecolor
  276. prt8.Transparency = 1
  277. local hitbox = Instance.new("Part")
  278. hitbox.formFactor = 3
  279. hitbox.CanCollide = false
  280. hitbox.Name = "Hitbox"
  281. hitbox.Locked = true
  282. hitbox.Size = Vector3.new(1,4,0.2)
  283. hitbox.Parent = swordholder
  284. hitbox.Transparency = 1
  285. local hbw = Instance.new("Weld")
  286. hbw.Parent = hitbox
  287. hbw.Part0 = hitbox
  288. hbw.Part1 = prt1
  289. hbw.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  290. hbw.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(0, -2.95, 0)
  291.  
  292. local w1 = Instance.new("Weld")
  293. w1.Parent = prt1
  294. w1.Part0 = prt1
  295. local w2 = Instance.new("Weld")
  296. w2.Parent = prt2
  297. w2.Part0 = prt2
  298. w2.Part1 = prt1
  299. w2.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  300. w2.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(0, -0.85, 0)
  301. --
  302. local w3 = Instance.new("Weld")
  303. w3.Parent = prt3
  304. w3.Part0 = prt3
  305. w3.Part1 = prt1
  306. w3.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  307. w3.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(0.25, -2.45, 0)
  308. local w3a = Instance.new("Weld")
  309. w3a.Parent = prt3a
  310. w3a.Part0 = prt3a
  311. w3a.Part1 = prt1
  312. w3a.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  313. w3a.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(-90),0) * CFrame.new(0.25, -4.45, 0)
  314. local w4 = Instance.new("Weld")
  315. w4.Parent = prt4
  316. w4.Part0 = prt4
  317. w4.Part1 = prt1
  318. w4.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  319. w4.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(-0.25, -2.45, 0)
  320. local w4a = Instance.new("Weld")
  321. w4a.Parent = prt4a
  322. w4a.Part0 = prt4a
  323. w4a.Part1 = prt1
  324. w4a.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  325. w4a.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90),0) * CFrame.new(-0.25, -4.45, 0)
  326. --
  327. local w5 = Instance.new("Weld")
  328. w5.Parent = prt5
  329. w5.Part0 = prt5
  330. w5.Part1 = prt1
  331. w5.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  332. w5.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(-0, -0.85, 0)
  333. local w6 = Instance.new("Weld")
  334. w6.Parent = prt6
  335. w6.Part0 = prt6
  336. w6.Part1 = prt1
  337. w6.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  338. w6.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(-0.5, -0, 0)
  339. local w7 = Instance.new("Weld")
  340. w7.Parent = prt7
  341. w7.Part0 = prt7
  342. w7.Part1 = prt1
  343. w7.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  344. w7.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(-0.25, 0.75, 0)
  345. local w8 = Instance.new("Weld")
  346. w8.Parent = prt8
  347. w8.Part0 = prt8
  348. w8.Part1 = prt1
  349. w8.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  350. w8.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(0, -2.95, 0)
  351. for ringi = 0 , math.rad(350) , math.rad(50) do
  352. local ringm = Instance.new("BlockMesh")
  353. ringm.Scale = Vector3.new(1,1.5,1)
  354. local ringp = Instance.new("Part")
  355. ringp.formFactor = 3
  356. ringp.CanCollide = false
  357. ringp.Name = "HandleRingP"..ringi
  358. ringp.Locked = true
  359. ringp.Size = Vector3.new(0.2,0.2,0.2)
  360. ringp.Parent = swordholder
  361. ringm.Parent = ringp
  362. ringp.BrickColor = scndryclr
  363. ringp.Reflectance = 0.1
  364. local ringw = Instance.new("Weld")
  365. ringw.Parent = ringp
  366. ringw.Part0 = ringp
  367. ringw.Part1 = prt5
  368. ringw.C1 = CFrame.fromEulerAnglesXYZ(math.rad(90), -ringi, 0) * CFrame.new(0, 0 , 0)
  369. ringw.C0 = CFrame.fromEulerAnglesXYZ(0, 0,0) * CFrame.new(-msh5.Scale.x/1.625, 0, 0) --* CFrame.new(-0.6, 0, 0) ---msh5.Scale.z/3.25
  370. end
  371.  
  372. local Objects = {}
  373. function getAllObjects(obj)
  374. for a,v in pairs(obj:GetChildren()) do
  375. if v:IsA("BasePart") then
  376. table.insert(Objects,v)
  377. end
  378. if #v:GetChildren() > 0 then
  379. getAllObjects(v)
  380. end
  381. end
  382. end
  383. getAllObjects(Workspace)
  384. function Raycast(Start,End,Range)
  385. --
  386. for ii = 0 , #Objects do
  387. table.remove(Objects,ii)
  388. end
  389. getAllObjects(Workspace)
  390. local MA = math.abs
  391. local CF = CFrame.new(Start,End)
  392. local CP = Start
  393. for i = 1, Range do--(Start - End).magnitude do
  394. for b,v in pairs(Objects) do
  395. if v.Parent ~= nil then
  396. local pos = Start + (CF.lookVector*i)
  397. local dist = v.CFrame:pointToObjectSpace(pos)
  398. if MA(dist.x) < v.Size.x/2 and MA(dist.y) < v.Size.y/2 and MA(dist.z) < v.Size.z/2 then
  399. if v.Parent ~= Character or v.Parent ~= swordholder or v.Parent.Parent ~= Character then
  400. return v,Start,pos
  401. end
  402. end
  403. end
  404. end
  405. end
  406. return nil,Start,End
  407. end
  408. local RAP = Instance.new("Part")
  409. RAP.formFactor = 0
  410. RAP.CanCollide = false
  411. RAP.Name = "RAPart"
  412. RAP.Locked = true
  413. RAP.Size = Vector3.new(1,1,1)
  414. RAP.Parent = swordholder
  415. RAP.Transparency = 1
  416. local w = Instance.new("Weld")
  417. w.Parent = RAP
  418. w.Part0 = RAP
  419. w.Part1 = RightArm
  420. w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  421. w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 1, 0)
  422.  
  423. function unequipweld()
  424. w1.Part1 = Torso
  425. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), math.rad(0)) * CFrame.new(0, 0,0)
  426. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(180), math.rad(-150)) * CFrame.new(-1, -1.5, -0.6)
  427. end
  428. unequipweld()
  429.  
  430. function equipweld()
  431. w1.Part1 = RAP
  432. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  433. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2)
  434. end
  435.  
  436. function ss(parent,p) --Slash
  437. local SlashSound = Instance.new("Sound")
  438. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  439. SlashSound.Parent = parent
  440. SlashSound.Volume = .7
  441. SlashSound.Pitch = p
  442. SlashSound.PlayOnRemove = true
  443. coroutine.resume(coroutine.create(function()
  444. wait()
  445. SlashSound.Parent = nil
  446. end))
  447. end
  448. function uss(parent,p) --unsheath
  449. local SlashSound = Instance.new("Sound")
  450. SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  451. SlashSound.Parent = parent
  452. SlashSound.Volume = .7
  453. SlashSound.Pitch = p
  454. SlashSound.PlayOnRemove = true
  455. coroutine.resume(coroutine.create(function()
  456. wait()
  457. SlashSound.Parent = nil
  458. end))
  459. end
  460. function cs(parent,p) --Magic Charge
  461. local SlashSound = Instance.new("Sound")
  462. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2101137"
  463. SlashSound.Parent = parent
  464. SlashSound.Volume = .7
  465. SlashSound.Pitch = p
  466. SlashSound.PlayOnRemove = true
  467. coroutine.resume(coroutine.create(function()
  468. wait()
  469. SlashSound.Parent = nil
  470. end))
  471. end
  472. function ls(parent,p) --Lazer Sound
  473. local SlashSound = Instance.new("Sound")
  474. SlashSound.SoundId = "http://www.roblox.com/asset?id=1369158"
  475. SlashSound.Parent = parent
  476. SlashSound.Volume = .7
  477. SlashSound.Pitch = p
  478. SlashSound.PlayOnRemove = true
  479. coroutine.resume(coroutine.create(function()
  480. wait()
  481. SlashSound.Parent = nil
  482. end))
  483. end
  484. function is(parent,p) --Ice Sound
  485. local SlashSound = Instance.new("Sound")
  486. local rndm = math.random(1,3)
  487. if rndm == 1 then
  488. SlashSound.SoundId = "rbxasset://sounds\\ice.ogg"
  489. elseif rndm == 2 then
  490. SlashSound.SoundId = "rbxasset://sounds\\ice2.ogg"
  491. elseif rndm == 3 then
  492. SlashSound.SoundId = "rbxasset://sounds\\ice3.ogg"
  493. end
  494. SlashSound.Parent = parent
  495. SlashSound.Volume = .7
  496. SlashSound.Pitch = p
  497. SlashSound.PlayOnRemove = true
  498. coroutine.resume(coroutine.create(function()
  499. wait()
  500. SlashSound.Parent = nil
  501. end))
  502. end
  503. function fs(parent,p) --Fire Sound
  504. local SlashSound = Instance.new("Sound")
  505. SlashSound.SoundId = "http://www.roblox.com/asset/?id=31758982"
  506. SlashSound.Parent = parent
  507. SlashSound.Volume = .7
  508. SlashSound.Pitch = p
  509. SlashSound.PlayOnRemove = true
  510. coroutine.resume(coroutine.create(function()
  511. wait()
  512. SlashSound.Parent = nil
  513. end))
  514. end
  515. function bs(parent,p) --Boom Sound
  516. local SlashSound = Instance.new("Sound")
  517. SlashSound.SoundId = "rbxasset://sounds/Rocket shot.wav"
  518. SlashSound.Parent = parent
  519. SlashSound.Volume = .7
  520. SlashSound.Pitch = p
  521. SlashSound.PlayOnRemove = true
  522. coroutine.resume(coroutine.create(function()
  523. wait()
  524. SlashSound.Parent = nil
  525. end))
  526. end
  527. --
  528.  
  529.  
  530. function hideanim()
  531. attack = true
  532. for i = 0 , 1 , 0.2 do
  533. wait()
  534. RW.C0 = CFrame.new(1+0.5*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+67*i), math.rad(45), math.rad(-45+90*i))
  535. LW.C0 = CFrame.new(-1-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80-80*i),math.rad(-45+45*i),math.rad(45-45*i))
  536. end
  537. LWRem()
  538. for i = 0 , 1 , 0.15 do
  539. wait()
  540. RW.C0 = CFrame.new(1.5,0.5+0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(147+103*i), math.rad(45), math.rad(45-35*i))
  541. end
  542. unequipweld()
  543. wait(0.1)
  544. for i = 0 , 1 , 0.1 do
  545. wait()
  546. RW.C0 = CFrame.new(1.5,1-0.5*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(250-250*i), math.rad(45-45*i), math.rad(10-10*i))
  547. end
  548. RWRem()
  549. attack = false
  550. end
  551.  
  552. function equipanim()
  553. attack = true
  554. RWFunc()
  555. for i = 0 , 1 , 0.1 do
  556. wait()
  557. RW.C0 = CFrame.new(1.5,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(250*i), math.rad(45*i), math.rad(-10*i))
  558. end
  559. equipweld()
  560. uss(Head,1)
  561. for i = 0 , 1 , 0.2 do
  562. wait()
  563. RW.C0 = CFrame.new(1.5,0.5+0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(250-102.5*i), math.rad(45), math.rad(-10+27.5*i))
  564. end
  565. for i = 0 , 1 , 0.15 do
  566. wait()
  567. RW.C0 = CFrame.new(1.5,1-0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(147-67*i), math.rad(45), math.rad(17.5+27.5*i))
  568. end
  569. LWFunc()
  570. for i = 0 , 1 , 0.1 do
  571. wait()
  572. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(45), math.rad(45-90*i))
  573. LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80*i),math.rad(-45*i),math.rad(45*i))
  574. end
  575. attack = false
  576. end
  577.  
  578. if (script.Parent.className ~= "HopperBin") then
  579. Tool = Instance.new("HopperBin")
  580. Tool.Parent = Backpack
  581. Tool.Name = ToolName
  582. script.Parent = Tool
  583. end
  584. Bin = script.Parent
  585.  
  586. function damagesplat(dmg,hit,critornot,healornot)
  587. local OffsetX = -2.5
  588. local OffsetY = 5
  589. local OffsetZ = 0
  590. local bill = Instance.new("BillboardGui")
  591. bill.Size = UDim2.new(1,0,1,0)
  592. bill.Adornee = hit
  593. bill.StudsOffset = Vector3.new(OffsetX,OffsetY,OffsetZ)
  594. bill.Parent = hit.Parent
  595. bill.Name = "DamageSplat"
  596. local tex = Instance.new("TextLabel")
  597. tex.Size = UDim2.new(5,0,2.5,0)
  598. tex.Parent = bill
  599. tex.Text = dmg
  600. tex.BackgroundTransparency = 1
  601. tex.ZIndex = 4
  602. tex.FontSize = "Size24"
  603. local tex2 = Instance.new("ImageLabel")
  604. tex2.Size = UDim2.new(1,0,1,0)
  605. tex2.Parent = tex
  606. tex2.BackgroundTransparency = 1
  607. tex2.Image = "http://www.roblox.com/asset/?id=42611276"
  608. if critornot == true then
  609. tex.TextColor3 = Color3.new(1,0.2,0.2)
  610. elseif critornot == false then
  611. tex.TextColor3 = Color3.new(0,0,0)
  612. end
  613. if healornot == true then
  614. tex.TextColor3 = Color3.new(0.2,0.5,0.5)
  615. end
  616. coroutine.resume(coroutine.create(function()
  617. wait(0.25)
  618. for i = 0 , 1 , 0.075 do
  619. wait()
  620. bill.StudsOffset = Vector3.new(OffsetX,OffsetY+5*i,OffsetZ)
  621. tex.TextTransparency = 1*i
  622. end
  623. bill.Parent = nil
  624. end))
  625. end
  626. function FireEff(Part,Time,Color1,Color2,Color3)
  627. local Firee = Part
  628. local Spawn = Part
  629. local colors = {}
  630. if Color1 ~= nil then
  631. table.insert(colors,BrickColor.new(Color1))
  632. end
  633. if Color2 ~= nil then
  634. table.insert(colors,BrickColor.new(Color2))
  635. end
  636. if Color3 ~= nil then
  637. table.insert(colors,BrickColor.new(Color3))
  638. end
  639. if Color4 ~= nil then
  640. table.insert(colors,BrickColor.new(Color4))
  641. end
  642. local Embers = {}
  643. local modelz = Instance.new("Model",Firee)
  644. modelz.Name = "FireHolder"
  645. for X = 1, 3 do
  646. local f = Instance.new("Part")
  647. f.Parent = nil
  648. f.BrickColor = colors[math.random(1, # colors)]
  649. f.Size = Vector3.new(1,1,1)
  650. f.formFactor = 1
  651. f.Anchored = true
  652. f.Locked = true
  653. f.CanCollide = false
  654. f.Transparency = 0.5
  655. f.Name = "Fire"
  656. f.TopSurface = 0
  657. f.BottomSurface = 0
  658. table.insert(Embers, f)
  659. end
  660. local R = 0
  661. coroutine.resume(coroutine.create(function ()
  662. repeat
  663. wait()
  664. R = R + 1
  665. for X = 1, # Embers do
  666. Embers[X].Parent = modelz
  667. local FM = math.fmod(R + X, # Embers)
  668. if FM == 1 then
  669. RandPos = Vector3.new(math.random(-Spawn.Size.x * 5, Spawn.Size.x * 5) / 10, Spawn.Size.y / 2, math.random(-Spawn.Size.x * 5, Spawn.Size.x * 5) / 10)
  670. RandDir = Vector3.new(math.random(-100,100), math.random(-100,100), math.random(-100,100))
  671. Embers[X].CFrame = CFrame.new(Spawn.Position + RandPos, Spawn.Position + RandPos + RandDir)
  672. else
  673. Embers[X].CFrame = CFrame.new(Embers[X].Position + Vector3.new(0,0.5,0), Embers[X].Position + Vector3.new(0,0.5,0) + Embers[X].CFrame.lookVector)
  674. end
  675. end
  676. until R == Time
  677. for i = 0 ,1 , 0.1 do
  678. wait(0.2)
  679. for X = 1, # Embers do
  680. Embers[X].Transparency = 0.5+0.5*i
  681. end
  682. end
  683. for X = 1, # Embers do
  684. Embers[X].Parent = nil
  685. end
  686. end))
  687. end
  688.  
  689. function OT(hit) --Normal Damage
  690. if Hitdeb == 1 then return end
  691. if hit.Parent == nil then return end
  692. local hum = hit.Parent:findFirstChild("Humanoid")
  693. if hum ~= nil and hum ~= Character.Humanoid then
  694. local critrandomizer = math.random(1,crtrate)
  695. if critrandomizer ~= 1 then
  696. local rndmdamage = math.random(mindamage,maxdamage)
  697. damagesplat(rndmdamage,hit,false)
  698. hum:TakeDamage(rndmdamage)
  699. elseif critrandomizer == 1 then
  700. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  701. damagesplat(rndmdamage,hit,true)
  702. hum:TakeDamage(rndmdamage)
  703. end
  704. Hitdeb = 1
  705. end
  706. end
  707.  
  708. function OTND(part) --No Debounce Damage
  709. coroutine.resume(coroutine.create(function()
  710. local dd = false
  711. while part.Parent ~= nil and not dd do
  712. wait()
  713. local c = game.Workspace:GetChildren();
  714. for i = 1, #c do
  715. local hum = c[i]:findFirstChild("Humanoid")
  716. if hum ~= nil and hum.Health ~= 0 then
  717. local head = c[i]:findFirstChild("Torso");
  718. if head ~= nil then
  719. local targ = head.Position - part.Position; ------------------------------------------------Local
  720. local mag = targ.magnitude;
  721. if mag <= 5 and c[i].Name ~= Player.Name then
  722. dd = true
  723. local rndmdamage = math.random(1,7+5*math.random()) + fireboost
  724. damagesplat(rndmdamage,head,false)
  725. hum:TakeDamage(rndmdamage)
  726. FireEff(head,150,"Bright red","Bright orange","Cool yellow")
  727. part.Parent = nil
  728.  
  729. end
  730. end
  731. end
  732. end
  733. end
  734. end))
  735. end
  736.  
  737. function AoE(p,magnitude,damage,critornot)
  738. local c = game.Workspace:GetChildren();
  739. for i = 1, #c do
  740. local hum = c[i]:findFirstChild("Humanoid")
  741. if hum ~= nil and hum.Health ~= 0 then
  742. local head = c[i]:findFirstChild("Head");
  743. if head ~= nil then
  744. local targ = head.Position - p;
  745. local mag = targ.magnitude;
  746. if mag <= magnitude and c[i].Name ~= Character.Name then
  747. local foundd = false
  748. for ii = 1 , #AoETrue do
  749. if AoETrue[ii] == c[i].Name then
  750. --delay(1,function() table.remove(AoETrue,ii) end)
  751. --blast(2.5,0.5,"Bright red",prt2,false)
  752. foundd = true
  753. end
  754. end
  755. if foundd then
  756. end
  757. --
  758. if not foundd then
  759. hum:TakeDamage(damage)
  760. damagesplat(damage,head,critornot)
  761. table.insert(AoETrue,c[i].Name)
  762. --blast(2.5,0.5,"Bright red",prt2)
  763. end
  764. end
  765. end
  766. end
  767. end
  768. end
  769. function AoEP(p,magnitude,damage,critornot)
  770. local c = game.Workspace:GetChildren();
  771. for i = 1, #c do
  772. local hum = c[i]:findFirstChild("Humanoid")
  773. if hum ~= nil and hum.Health ~= 0 then
  774. local head = c[i]:findFirstChild("Head");
  775. if head ~= nil then
  776. local targ = head.Position - p;
  777. local mag = targ.magnitude;
  778. if mag <= magnitude and c[i].Name ~= Character.Name then
  779. local foundd = false
  780. for ii = 1 , #AoETrue do
  781. if AoETrue[ii] == c[i].Name then
  782. --delay(1,function() table.remove(AoETrue,ii) end)
  783. --blast(2.5,0.5,"Bright red",prt2,false)
  784. foundd = true
  785. end
  786. end
  787. if foundd then
  788. end
  789. --
  790. if not foundd then
  791. hum:TakeDamage(damage)
  792. damagesplat(damage,head,critornot)
  793. c[i].Humanoid.Sit = true
  794. coroutine.resume(coroutine.create(function()
  795. local bp = Instance.new("BodyVelocity",c[i].Torso)
  796. bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  797. bp.P = bp.P*2
  798. bp.velocity = CFrame.new(c[i].Torso.Position , p).lookVector * 150 + Vector3.new(0,25,0)
  799. coroutine.resume(coroutine.create(function()
  800. for i=1,
  801. bp.velocity.y/3 do
  802. bp.velocity = bp.velocity+Vector3.new(0,-4.25,0)
  803. wait()
  804. end
  805. bp.Parent = nil
  806. end))
  807. c[i].Torso.RotVelocity = CFrame.new(c[i].Torso.Position , p).lookVector * 25
  808. wait(0.4) c[i].Humanoid.Sit = false end))
  809. table.insert(AoETrue,c[i].Name)
  810. end
  811. end
  812. end
  813. end
  814. end
  815. end
  816. --
  817.  
  818. local LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  819. function effect(Color,Ref,LP,P1,returnn)
  820. local effectsmsh = Instance.new("BlockMesh")
  821. effectsmsh.Scale = Vector3.new(0.5,1,0.5)
  822. effectsmsh.Name = "Mesh"
  823. local effectsg = Instance.new("Part")
  824. effectsg.formFactor = 3
  825. effectsg.CanCollide = false
  826. effectsg.Name = "Eff"
  827. effectsg.Locked = true
  828. effectsg.Anchored = true
  829. effectsg.Size = Vector3.new(0.2,1,0.2)
  830. effectsg.Parent = swordholder
  831. effectsmsh.Parent = effectsg
  832. effectsg.BrickColor = BrickColor.new(Color)
  833. effectsg.Reflectance = Ref
  834. local point1 = P1
  835. local mg = (LP.p - point1.p).magnitude
  836. effectsg.Size = Vector3.new(0.2,mg,0.2)
  837. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  838. if returnn then return effectsg end
  839. coroutine.resume(coroutine.create(function()
  840. if not returnn then
  841. for i = 0 , 1 , 0.1 do
  842. wait()
  843. effectsg.Transparency = 1*i
  844. end
  845. wait()
  846. effectsg.Parent = nil
  847. end
  848. end))
  849. end
  850.  
  851. con = nil
  852. function dmgcnnct(p)
  853. con = p.Touched:connect(OT)
  854. end
  855. function dmgdc()
  856. if con ~= nil then
  857. con:disconnect()
  858. Hitdeb = 0
  859. end
  860. end
  861. function atktype(s,e)
  862. coroutine.resume(coroutine.create(function ()
  863. attacktype = e
  864. wait(0.5)
  865. repeat wait() until attack
  866. attacktype = s
  867. end))
  868. end
  869.  
  870. hold = false
  871. function Combo1a()
  872. attack=true
  873. for i = 0 , 1 , 0.1 do
  874. wait()
  875. RW.C0 = CFrame.new(1-0.5*i,0.5,-0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i), math.rad(45+45*i), math.rad(-45+45*i))
  876. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45*i), math.rad(10*i), math.rad(0))
  877. LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i),math.rad(-45+45*i),math.rad(45-20*i))
  878. end
  879. dmgcnnct(hitbox)
  880. ss(Head,1.5)
  881. for i = 0 , 1 , 0.2 do
  882. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  883. wait()
  884. RW.C0 = CFrame.new(0.5+1*i,0.5,-1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0))
  885. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45+135*i), math.rad(10+35*i), math.rad(0))
  886. LW.C0 = CFrame.new(-1+1*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(25+65*i))
  887. effect("Bright blue",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
  888. end
  889. dmgdc()
  890. for i = 0 , 1 , 0.2 do
  891. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  892. wait()
  893. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0))
  894. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90+20*i), math.rad(45+5*i), math.rad(0))
  895. LW.C0 = CFrame.new(-0.25*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(90+10*i))
  896. effect("Bright blue",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
  897. end
  898. attacktype = 2
  899. coroutine.resume(coroutine.create(function ()
  900. wait(0.25)
  901. attacktype = 1
  902. end))
  903. attack=false
  904. wait(0.15)
  905. wait()
  906. for i = 0 , 1 , 0.1 do
  907. if not attack then
  908. wait()
  909. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i), math.rad(90-45*i), math.rad(-45*i))
  910. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(110-110*i), math.rad(50-50*i), math.rad(0))
  911. LW.C0 = CFrame.new(-0.25-0.75*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i),math.rad(-45*i),math.rad(100-55*i))
  912. end
  913. end
  914.  
  915. end
  916. function Combo1b()
  917. attack=true
  918. for i = 0 , 1 , 0.1 do
  919. wait()
  920. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0))
  921. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(110-155*i), math.rad(50-40*i), math.rad(0))
  922. LW.C0 = CFrame.new(-0.25-0.75*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(100-50*i))
  923. end
  924.  
  925. cs(Head,1.5)
  926. local tempmod = Instance.new("Model",swordholder)
  927. for l = 1 , 20 do
  928. local meshz = Instance.new("SpecialMesh")
  929. meshz.Scale = Vector3.new(0.5,0.5,0.5)
  930. meshz.MeshType = "Sphere"
  931. local shellz = Instance.new("Part")
  932. meshz.Parent = shellz
  933. shellz.Anchored = false
  934. shellz.formFactor = 0
  935. shellz.Size = Vector3.new(1,1,1)
  936. shellz.CFrame = hitbox.CFrame * CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  937. shellz.Parent = tempmod
  938. shellz.Transparency = 0.5
  939. shellz.BrickColor = BrickColor.new("Bright violet")
  940. shellz.CanCollide = false
  941. shellz.Reflectance = 0.25
  942. local bv = Instance.new("BodyPosition")
  943. bv.Parent = shellz
  944. bv.maxForce = Vector3.new(200000,200000,200000)
  945. bv.position = shellz.Position
  946. coroutine.resume(coroutine.create(function()
  947. for i = 0 , 1 , 0.025 do
  948. wait()
  949. shellz.Transparency = 1-1*i
  950. end
  951. shellz.Transparency = 0
  952. end))
  953. coroutine.resume(coroutine.create(function()
  954. wait(0.05)
  955. bv.position = hitbox.Position
  956. for i = 1 , 20 do
  957. wait(0.1)
  958. bv.position = shell.Position
  959. end
  960. shellz.Parent = nil
  961. end))
  962. wait(0.01)
  963. end
  964. coroutine.resume(coroutine.create(function ()
  965. wait(0.25)
  966. tempmod.Parent = nil
  967. end))
  968. for i = 0 , 1 , 0.2 do
  969. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  970. wait()
  971. RW.C0 = CFrame.new(1-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0))
  972. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45+135*i), math.rad(10), math.rad(0))
  973. LW.C0 = CFrame.new(-1+1.5*i,0.5,-1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(50+40*i))
  974. effect("Really red",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
  975. end
  976. local gyro = Instance.new("BodyGyro")
  977. gyro.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  978. gyro.P = gyro.P + 10000
  979. local CF = Torso.CFrame
  980. gyro.cframe = CF
  981. gyro.Parent = Torso
  982. dmgcnnct(hitbox)
  983. ss(Head,1)
  984. for i = 0 , 1 , 0.1 do
  985. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  986. wait()
  987. gyro.cframe = CF * CFrame.Angles(0,math.rad(-360*i),0)
  988. effect("Really red",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
  989. end
  990. ss(Head,1)
  991. Hitdeb = 0
  992. for i = 0 , 1 , 0.1 do
  993. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  994. wait()
  995. gyro.cframe = CF * CFrame.Angles(0,math.rad(-360*i),0)
  996. effect("Really red",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
  997. end
  998. dmgdc()
  999. attacktype = 3
  1000. coroutine.resume(coroutine.create(function ()
  1001. wait(0.5)
  1002. attacktype = 1
  1003. end))
  1004. wait(0.15)
  1005. wait()
  1006. gyro.Parent = nil
  1007. attack=false
  1008. for i = 0 , 1 , 0.1 do
  1009. if not attack then
  1010. wait()
  1011. RW.C0 = CFrame.new(0.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i), math.rad(90-45*i), math.rad(-45*i))
  1012. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90-90*i), math.rad(10-10*i), math.rad(0))
  1013. LW.C0 = CFrame.new(0.5-1.5*i,0.5,-1+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i),math.rad(-45*i),math.rad(50-5*i))
  1014. end
  1015. end
  1016. end
  1017.  
  1018. function Combo1c()
  1019. attack=true
  1020. local bp = Instance.new("BodyPosition")
  1021. bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1022. bp.P = bp.P + 10000
  1023. local CF = Torso.CFrame
  1024. bp.position = CF.p
  1025. bp.Parent = Torso
  1026. RWLFunc()
  1027. LWLFunc()
  1028. for zz = 1 , 2 do
  1029. local mesh = Instance.new("SpecialMesh")
  1030. mesh.MeshType = "FileMesh"
  1031. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1032. mesh.Scale = Vector3.new(10,5,10) * Vector3.new(0.01,0.01,0.01)
  1033. local shell = Instance.new("Part")
  1034. mesh.Parent = shell
  1035. shell.Anchored = true
  1036. shell.formFactor = 1
  1037. shell.Size = Vector3.new(1,1,1)
  1038. shell.CFrame = Torso.CFrame * CFrame.Angles(0,0.5*zz,0) + Vector3.new(0,-2.5,0) -- + shellspawn.CFrame.lookVector * 2
  1039. shell.Parent = swordholder
  1040. shell.Transparency = 0
  1041. shell.BrickColor = BrickColor.new("White")
  1042. shell.CanCollide = false
  1043. coroutine.resume(coroutine.create(function()
  1044. for i = 0 , 1 , 0.05 do
  1045. wait()
  1046. mesh.Scale = Vector3.new(10,5,10) * Vector3.new(i,1,i)
  1047. shell.Transparency = 1*i
  1048. end
  1049. shell.Transparency = 1
  1050. shell.Parent = nil
  1051. end))
  1052. end
  1053. for i = 0 , 1 , 0.1 do
  1054. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1055. wait()
  1056. RW.C0 = CFrame.new(0.5+0.5*i,0.5+1*i,0) * CFrame.fromEulerAnglesXYZ(math.rad(90+100*i), math.rad(90-90*i), math.rad(-45*i))
  1057. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90-90*i), math.rad(10-10*i), math.rad(0))
  1058. LW.C0 = CFrame.new(0.5-1.5*i,0.5+1*i,-1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90+100*i),math.rad(0),math.rad(50-5*i))
  1059. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  1060. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90-45*i)) * CFrame.new(0, 0, 0.2)
  1061. bp.position = CF.p + Vector3.new(0,10,0)
  1062. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-20*i), math.rad(0), math.rad(0))
  1063. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-20*i), math.rad(0), math.rad(0))
  1064. prt8.Transparency = 1-1*i
  1065. effect("Really black",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
  1066. end
  1067. cs(Head,1.5)
  1068. coroutine.resume(coroutine.create(function ()
  1069. local tempmod = Instance.new("Model",swordholder)
  1070. for l = 1 , 20 do
  1071. local meshz = Instance.new("SpecialMesh")
  1072. meshz.Scale = Vector3.new(1.5,1.5,1.5)
  1073. meshz.MeshType = "Sphere"
  1074. local shellz = Instance.new("Part")
  1075. meshz.Parent = shellz
  1076. shellz.Anchored = false
  1077. shellz.formFactor = 0
  1078. shellz.Size = Vector3.new(1,1,1)
  1079. shellz.CFrame = hitbox.CFrame * CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))
  1080. shellz.Parent = tempmod
  1081. shellz.Transparency = 0.5
  1082. shellz.BrickColor = BrickColor.new("Really black")
  1083. shellz.CanCollide = false
  1084. shellz.Reflectance = 0
  1085. local bv = Instance.new("BodyPosition")
  1086. bv.Parent = shellz
  1087. bv.maxForce = Vector3.new(200000,200000,200000)
  1088. bv.position = shellz.Position
  1089. local hx = false
  1090. coroutine.resume(coroutine.create(function()
  1091. for i = 0 , 1 , 0.05 do
  1092. wait()
  1093. shellz.Transparency = 1-1*i
  1094. end
  1095. shellz.Transparency = 0
  1096. end))
  1097. coroutine.resume(coroutine.create(function()
  1098. wait(0.05)
  1099. bv.position = hitbox.Position
  1100. for i = 1 , 20 do
  1101. wait(0.1)
  1102. bv.position = shell.Position
  1103. end
  1104. shellz.Parent = nil
  1105. end))
  1106. wait(0.01)
  1107. end
  1108. coroutine.resume(coroutine.create(function ()
  1109. repeat wait() until hx
  1110. tempmod.Parent = nil
  1111. end))
  1112. end))
  1113. for i = 0 , 1 , 0.1 do
  1114. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1115. wait()
  1116. RW.C0 = CFrame.new(1,1.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(190+20*i), math.rad(0), math.rad(-45))
  1117. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1118. LW.C0 = CFrame.new(-1,1.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(190+20*i),math.rad(0),math.rad(45))
  1119. effect("Really black",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
  1120. end
  1121. for i = 0 , 1 , 0.1 do
  1122. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1123. wait()
  1124. RW.C0 = CFrame.new(1,1.5-1*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(210-130*i), math.rad(0), math.rad(-45))
  1125. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1126. LW.C0 = CFrame.new(-1,1.5-1*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(210-130*i),math.rad(0),math.rad(45))
  1127. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  1128. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180*i), math.rad(45)) * CFrame.new(0, 0, 0.2)
  1129. bp.position = CF.p + CF.lookVector * 2.5 + Vector3.new(0,-1,0)
  1130. RWL.C0 = CFrame.new(1, -1+1*i, -1*i) * CFrame.fromEulerAnglesXYZ(math.rad(-20+20*i), math.rad(0), math.rad(0))
  1131. LWL.C0 = CFrame.new(-1, -1+1*i, -1*i) * CFrame.fromEulerAnglesXYZ(math.rad(-20+20*i), math.rad(0), math.rad(0))
  1132. effect("Really black",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
  1133. end
  1134. hx = true
  1135. wait(0.1)
  1136. local Hit,A, B = Raycast(hitbox.Position + Vector3.new(0,3,0) + Torso.CFrame.lookVector * 1 ,hitbox.Position + Vector3.new(0,3,0) + Torso.CFrame.lookVector * 101 ,100)
  1137. local effectsmsh = Instance.new("CylinderMesh")
  1138. effectsmsh.Scale = Vector3.new(1,1,1)
  1139. local effectsg = Instance.new("Part")
  1140. effectsg.formFactor = 3
  1141. effectsg.CanCollide = false
  1142. effectsg.Name = "LAZOR"
  1143. effectsg.Locked = true
  1144. effectsg.Anchored = true
  1145. effectsg.Parent = swordholder
  1146. effectsmsh.Parent = effectsg
  1147. effectsg.BrickColor = BrickColor.new("Black")
  1148. effectsg.Reflectance = 0.5
  1149. local point1 = B
  1150. local point0 = A
  1151. for zz = 1 , 5 do
  1152. local mesh = Instance.new("SpecialMesh")
  1153. mesh.MeshType = "FileMesh"
  1154. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1155. mesh.Scale = Vector3.new(10,5,10) * Vector3.new(0.01,0.01,0.01)
  1156. local shell = Instance.new("Part")
  1157. mesh.Parent = shell
  1158. shell.Anchored = true
  1159. shell.formFactor = 1
  1160. shell.Size = Vector3.new(1,1,1)
  1161. shell.CFrame = CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /-2) + Torso.CFrame.lookVector * 2
  1162. shell.CFrame = shell.CFrame * CFrame.Angles(math.rad(-90),0.5*zz,0)
  1163. shell.Parent = swordholder
  1164. shell.Transparency = 0
  1165. if math.fmod(zz,2) == 0 then
  1166. shell.BrickColor = BrickColor.new("Really black")
  1167. else
  1168. shell.BrickColor = BrickColor.new("Bright violet")
  1169. end
  1170. shell.CanCollide = false
  1171. coroutine.resume(coroutine.create(function()
  1172. for i = 0 , 1 , 0.01 do
  1173. wait()
  1174. mesh.Scale = Vector3.new(10,5,10) * Vector3.new(i,1,i)
  1175. shell.Transparency = 1*i
  1176. end
  1177. shell.Transparency = 1
  1178. shell.Parent = nil
  1179. end))
  1180. end
  1181. for zz = 1 , 1 do
  1182. local mesh = Instance.new("SpecialMesh")
  1183. mesh.MeshType = "Sphere"
  1184. mesh.Scale = Vector3.new(20,15,10) * Vector3.new(0.01,0.01,0.01)
  1185. local shell = Instance.new("Part")
  1186. mesh.Parent = shell
  1187. shell.Anchored = true
  1188. shell.formFactor = 1
  1189. shell.Size = Vector3.new(1,1,1)
  1190. shell.CFrame = CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /-2) + Torso.CFrame.lookVector * 10
  1191. shell.CFrame = shell.CFrame * CFrame.Angles(math.rad(-90),0,0)
  1192. shell.Parent = swordholder
  1193. shell.Transparency = 0
  1194. shell.BrickColor = BrickColor.new("Bright violet")
  1195. shell.CanCollide = false
  1196. coroutine.resume(coroutine.create(function()
  1197. for i = 0 , 1 , 0.02 do
  1198. wait()
  1199. mesh.Scale = Vector3.new(10,15,15) * Vector3.new(i,1,i)
  1200. shell.CFrame = shell.CFrame * CFrame.Angles(0,i,0)
  1201. shell.Transparency = 1-1*i
  1202. end
  1203. for i = 0 , 1 , 0.05 do
  1204. wait()
  1205. shell.CFrame = shell.CFrame * CFrame.Angles(0,i,0)
  1206. shell.Transparency = 1*i
  1207. end
  1208. shell.Transparency = 1
  1209. shell.Parent = nil
  1210. end))
  1211. end
  1212. for zz = 1 , 1 do
  1213. local mesh = Instance.new("CylinderMesh")
  1214. mesh.Scale = Vector3.new(20,0.5,10) * Vector3.new(0.01,0.01,0.01)
  1215. local shell = Instance.new("Part")
  1216. mesh.Parent = shell
  1217. shell.Anchored = true
  1218. shell.formFactor = 1
  1219. shell.Size = Vector3.new(1,1,1)
  1220. shell.CFrame = CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /-2) + Torso.CFrame.lookVector * -0.5
  1221. shell.CFrame = shell.CFrame * CFrame.Angles(math.rad(-90),0,0)
  1222. shell.Parent = swordholder
  1223. shell.Transparency = 0
  1224. shell.BrickColor = BrickColor.new("Bright violet")
  1225. shell.CanCollide = false
  1226. coroutine.resume(coroutine.create(function()
  1227. for i = 0 , 1 , 0.02 do
  1228. wait()
  1229. mesh.Scale = Vector3.new(20,0.5,20) * Vector3.new(i,1,i)
  1230. shell.Transparency = 1-1*i
  1231. end
  1232. for i = 0 , 1 , 0.02 do
  1233. wait()
  1234. shell.Transparency = 1*i
  1235. end
  1236. shell.Transparency = 1
  1237. shell.Parent = nil
  1238. end))
  1239. end
  1240. for zz = 1 , 10 do
  1241. local mesh = Instance.new("SpecialMesh")
  1242. mesh.MeshType = "FileMesh"
  1243. mesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  1244. mesh.Scale = Vector3.new(5,5,5) * Vector3.new(0.01,0.01,0.01)
  1245. local shell = Instance.new("Part")
  1246. mesh.Parent = shell
  1247. shell.Anchored = true
  1248. shell.formFactor = 1
  1249. shell.Size = Vector3.new(1,1,1)
  1250. shell.CFrame = CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /2)
  1251. shell.CFrame = shell.CFrame * CFrame.Angles(math.rad(-90)+2*math.random(),2*math.random(),2*math.random())
  1252. shell.Parent = swordholder
  1253. shell.Transparency = 0
  1254. if math.fmod(zz,2) == 0 then
  1255. shell.BrickColor = BrickColor.new("Really black")
  1256. else
  1257. shell.BrickColor = BrickColor.new("Bright violet")
  1258. end
  1259. shell.CanCollide = false
  1260. coroutine.resume(coroutine.create(function()
  1261. for i = 0 , 1 , 0.01 do
  1262. wait()
  1263. mesh.Scale = Vector3.new(25,25,25) * Vector3.new(i,i,i)
  1264. shell.Transparency = 1*i
  1265. end
  1266. shell.Transparency = 1
  1267. shell.Parent = nil
  1268. end))
  1269. end
  1270. coroutine.resume(coroutine.create(function()
  1271. effectsg.Transparency = 1
  1272. for i = 0 , 1 , 0.1 do
  1273. wait()
  1274. effectsg.Transparency = 1-1*i
  1275. end
  1276. wait(2)
  1277. for i = 0 , 1 , 0.1 do
  1278. wait()
  1279. effectsg.Transparency = 1*i
  1280. end
  1281. effectsg.Parent = nil
  1282. end))
  1283. local mg = 100
  1284. if Hit ~= nil then
  1285. mg = (point0-point1).magnitude
  1286. elseif Hit == nil then
  1287. mg = 100
  1288. end
  1289. ls(Head,0.5)
  1290. ls(Head,0.75)
  1291. cs(Head,0.25)
  1292. ls(Head,1)
  1293. ls(Head,3)
  1294. cs(Head,0.15)
  1295. for mgg = 0 , 1,0.1 do
  1296. wait()
  1297. effectsg.Size = Vector3.new(5,(mg*mgg)+0.2,5)
  1298. local durr = CFrame.new((point0+(point1))/2,(point1))
  1299. effectsg.CFrame = CFrame.new((point0+(point1-durr.lookVector * (mg*(1-mgg))))/2,(point1)) * CFrame.Angles(math.rad(90),0,0)
  1300. end
  1301. local critrandomizer = math.random(1,crtrate)
  1302. if critrandomizer ~= 1 then
  1303. local rndmdamage = math.random(mindamage+30,maxdamage+30)
  1304. AoEP((CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /2)).p,15,rndmdamage+darkboost,false)
  1305. elseif critrandomizer == 1 then
  1306. local rndmdamage = math.random(maxdamage+30,crtmaxdamage+30)
  1307. AoEP((CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /2)).p,15,rndmdamage+darkboost,true)
  1308. end
  1309. bp.Parent = nil
  1310. for i = 0 , 1 , 0.1 do
  1311. wait()
  1312. RW.C0 = CFrame.new(1,1-0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(90-45*i), math.rad(-45))
  1313. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1314. LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45*i),math.rad(45))
  1315. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  1316. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180-180*i), math.rad(45+45*i)) * CFrame.new(0, 0, 0.2)
  1317. RWL.C0 = CFrame.new(1, -1*i, -1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1318. LWL.C0 = CFrame.new(-1, -1*i, -1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1319. prt8.Transparency = 1*i
  1320. end
  1321. for ii = 1 , #AoETrue do
  1322. table.remove(AoETrue,#AoETrue)
  1323. end
  1324. RWLRem()
  1325. LWLRem()
  1326. attack = false
  1327. attacktype = 1
  1328. end
  1329. function BlizzardSword()
  1330. attack=true
  1331. for i = 0 , 1 , 0.2 do
  1332. wait()
  1333. RW.C0 = CFrame.new(1,0.5+1*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+55*i), math.rad(45-45*i), math.rad(-45))
  1334. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1335. LW.C0 = CFrame.new(-1,0.5+1*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+55*i),math.rad(-45+45*i),math.rad(45))
  1336. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1337. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90-45*i)) * CFrame.new(0, 0, 0.2)
  1338. end
  1339. local wssave = Character.Humanoid.WalkSpeed
  1340. Character.Humanoid.WalkSpeed = 0
  1341. ss(Head,1.5)
  1342. local efftab = {}
  1343. for i = 0 , 1 , 0.2 do
  1344. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1345. wait()
  1346. RW.C0 = CFrame.new(1,1.5-1.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(135-135*i), math.rad(0), math.rad(-45))
  1347. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1348. LW.C0 = CFrame.new(-1,1.5-1.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(135-135*i),math.rad(0),math.rad(45))
  1349. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1350. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(45)) * CFrame.new(0, 0, 0.2)
  1351. local eff = effect("Bright blue",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0),true)
  1352. table.insert(efftab,eff)
  1353. end
  1354. local trspos = Torso.Position
  1355. Character.Humanoid.WalkSpeed = wssave
  1356. for _,efff in pairs(efftab) do
  1357. wait()
  1358. coroutine.resume(coroutine.create(function()
  1359. for i = 0 , 1 , 0.15 do
  1360. wait()
  1361. efff.Transparency = 1*i
  1362. end
  1363. wait()
  1364. efff.Transparency = 1
  1365. end))
  1366. end
  1367. for io,eff in pairs(efftab) do
  1368. wait()
  1369. for zz = 1 , 1 do
  1370. local mesh = Instance.new("CylinderMesh")
  1371. mesh.Scale = Vector3.new(0.1,0.5,0.1)
  1372. local shell = Instance.new("Part")
  1373. mesh.Parent = shell
  1374. shell.Anchored = true
  1375. shell.formFactor = 1
  1376. shell.Size = Vector3.new(1,1,1)
  1377. local dur = CFrame.new(trspos,eff.Position)
  1378. local CF1 = dur * CFrame.Angles(math.rad(90),0,0) * CFrame.new(0,-6,0)
  1379. shell.CFrame = CF1
  1380. shell.Parent = eff
  1381. shell.Transparency = 1
  1382. shell.Reflectance = 0.25
  1383. shell.BrickColor = BrickColor.new("Bright blue")
  1384. shell.CanCollide = false
  1385. is(shell,0.5)
  1386. coroutine.resume(coroutine.create(function()
  1387. for i = 0 , 1 , 0.1 do
  1388. wait()
  1389. shell.Transparency = 1-1*i
  1390. mesh.Scale = Vector3.new(0.1+4.9*i,0.5,0.1+4.9*i)
  1391. end
  1392. wait(0.25)
  1393. for i = 0 , 1 , 0.1 do
  1394. wait()
  1395. shell.Transparency = 1*i
  1396. mesh.Scale = Vector3.new(5-5*i,0.5-0.5*i,5-5*i)
  1397. end
  1398. shell.Parent = nil
  1399. end))
  1400. end
  1401. end
  1402. for io,eff in pairs(efftab) do
  1403. wait()
  1404. for zz = 1 , 1 do
  1405. local mesh = Instance.new("SpecialMesh")
  1406. mesh.MeshType = "FileMesh"
  1407. mesh.Scale = Vector3.new(5,2,1)
  1408. mesh.MeshId = "rbxasset://fonts/sword.mesh"
  1409. local shell = Instance.new("Part")
  1410. mesh.Parent = shell
  1411. shell.Anchored = true
  1412. shell.formFactor = 1
  1413. shell.Size = Vector3.new(2,2,5)
  1414. local dur = CFrame.new(trspos,eff.Position)
  1415. local CF1 = dur * CFrame.Angles(math.rad(180),0,0) * CFrame.new(0,0,6.5)* CFrame.Angles(0,0,math.rad(90))
  1416. shell.CFrame = CF1
  1417. shell.Parent = eff
  1418. shell.Transparency = 1
  1419. shell.Reflectance = 0.25
  1420. shell.BrickColor = BrickColor.new("Bright blue")
  1421. shell.CanCollide = false
  1422. local hitd = 0
  1423. coroutine.resume(coroutine.create(function()
  1424. local dd = false
  1425. while shell.Parent ~= nil and not dd do
  1426. wait()
  1427. local c = game.Workspace:GetChildren();
  1428. for i = 1, #c do
  1429. local hum = c[i]:findFirstChild("Humanoid")
  1430. if hum ~= nil and hum.Health ~= 0 then
  1431. local head = c[i]:findFirstChild("Torso");
  1432. if head ~= nil then
  1433. local targ = head.Position - shell.Position;
  1434. local mag = targ.magnitude;
  1435. if mag <= 3 and c[i].Name ~= Player.Name then
  1436. dd = true
  1437. local critrandomizer = math.random(1,crtrate)
  1438. if critrandomizer ~= 1 then
  1439. local rndmdamage = math.random(mindamage+iceboost,maxdamage+iceboost)
  1440. damagesplat(rndmdamage,head,false)
  1441. hum:TakeDamage(rndmdamage)
  1442. elseif critrandomizer == 1 then
  1443. local rndmdamage = math.random(maxdamage+iceboost,crtmaxdamage+iceboost)
  1444. damagesplat(rndmdamage,head,true)
  1445. hum:TakeDamage(rndmdamage)
  1446. end
  1447. end
  1448. end
  1449. end
  1450. end
  1451. end
  1452. end))
  1453. coroutine.resume(coroutine.create(function()
  1454. uss(eff,1)
  1455.  
  1456. for i = 0 , 1 , 0.1 do
  1457. wait()
  1458. shell.Transparency = 1-1*i
  1459. CF1 = dur * CFrame.Angles(math.rad(180),0,0) * CFrame.new(0,0,6.5+2*i)* CFrame.Angles(0,0,math.rad(90))
  1460. shell.CFrame = CF1
  1461. mesh.Scale = Vector3.new(5,2,1+0.5*i)
  1462. end
  1463. wait(0.25)
  1464. ss(eff,2)
  1465. for i = 0 , 1 , 0.1 do
  1466. wait()
  1467. shell.Transparency = 1*i
  1468. CF1 = dur * CFrame.Angles(math.rad(180),0,0) * CFrame.new(0,0,8.5+25*i)* CFrame.Angles(0,0,math.rad(90))
  1469. shell.CFrame = CF1
  1470. mesh.Scale = Vector3.new(5-5*i,2-2*i,1.5-1.5*i*i)
  1471. end
  1472. shell.Parent = nil
  1473. end))
  1474. end
  1475. end
  1476. coroutine.resume(coroutine.create(function()
  1477. wait(1.5)
  1478. for _,eff in pairs(efftab) do
  1479. wait()
  1480. eff.Parent = nil
  1481. end end))
  1482. for i = 0 , 1 , 0.1 do
  1483. wait()
  1484. RW.C0 = CFrame.new(1,0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80*i), math.rad(45*i), math.rad(-45))
  1485. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1486. LW.C0 = CFrame.new(-1,0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80*i),math.rad(-45*i),math.rad(45))
  1487. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1488. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(45+45*i)) * CFrame.new(0, 0, 0.2)
  1489. end
  1490. attack=false
  1491. end
  1492. local FTCount = 0
  1493. function FlameTrail()
  1494. attack=true
  1495. for i = 0 , 1 , 0.15 do
  1496. wait()
  1497. RW.C0 = CFrame.new(1-0.5*i,0.5,-0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i), math.rad(45+45*i), math.rad(-45+55*i))
  1498. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45*i), math.rad(0), math.rad(0))
  1499. LW.C0 = CFrame.new(-1+0.5*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45+20*i))
  1500. end
  1501. wait(0.1)
  1502. ss(Head,1.5)
  1503. fs(Head,0.5+1.5*math.random())
  1504. local efftab = {}
  1505. RW.C0 = CFrame.new(0.5,0.5,-1) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(10))
  1506. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45), math.rad(0), math.rad(0))
  1507. LW.C0 = CFrame.new(-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(65))
  1508. dmgcnnct(hitbox)
  1509. for i = 0 , 1 , 0.15 do
  1510. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1511. wait()
  1512. RW.C0 = CFrame.new(0.5+1*i,0.5,-1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(10))
  1513. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45+135*i*i), math.rad(0), math.rad(0))
  1514. LW.C0 = CFrame.new(-0.5-1*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+20*i),math.rad(-45),math.rad(65-155*i))
  1515. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1516. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
  1517. if FTCount <= MaxFT then
  1518. local eff = effect("Bright red",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0),true)
  1519. eff.Transparency = 1
  1520. table.insert(efftab,eff)
  1521. FTCount = FTCount + 1
  1522. OTND(eff)
  1523. coroutine.resume(coroutine.create(function()
  1524. for i = 0 , 1 , 0.15 do
  1525. wait()
  1526. eff.Transparency = 1-0.5*i
  1527. end
  1528. wait()
  1529. eff.Transparency = 0.5
  1530. end))
  1531. end
  1532. end
  1533. local rndmneg = math.random(1,2)
  1534. if rndmneg == 1 then
  1535. rndmdec1 = 13 * math.random()
  1536. else
  1537. rndmdec1 = -13 * math.random()
  1538. end
  1539. for i = 0 , 1 , 0.1 do
  1540. wait()
  1541. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90-rndmdec1*i), math.rad(90), math.rad(10-(rndmdec1*2)*i))
  1542. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90+20*i), math.rad(0), math.rad(0))
  1543. LW.C0 = CFrame.new(-1.5,0.5,-0) * CFrame.fromEulerAnglesXYZ(math.rad(100),math.rad(-45),math.rad(-90))
  1544. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1545. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180), math.rad(90)) * CFrame.new(0, 0, 0.2)
  1546. end
  1547. ss(Head,1.5)
  1548. fs(Head,0.5+1.5*math.random())
  1549. Hitdeb = 0
  1550. for i = 0 , 1 , 0.15 do
  1551. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1552. wait()
  1553. RW.C0 = CFrame.new(1.5-1.5*i,0.5,-1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-rndmdec1), math.rad(90), math.rad(10-(rndmdec1*2)))
  1554. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(110-200*i), math.rad(0), math.rad(0))
  1555. LW.C0 = CFrame.new(-1.5+1*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(100-80*i),math.rad(-45),math.rad(-90+135*i))
  1556. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1557. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180-180*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
  1558. if FTCount <= MaxFT then
  1559. local eff = effect("Bright red",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0),true)
  1560. eff.Transparency = 1
  1561. table.insert(efftab,eff)
  1562. FTCount = FTCount + 1
  1563. OTND(eff)
  1564. coroutine.resume(coroutine.create(function()
  1565. for i = 0 , 1 , 0.15 do
  1566. wait()
  1567. eff.Transparency = 1-0.5*i
  1568. end
  1569. wait()
  1570. eff.Transparency = 0.5
  1571. end))
  1572. end
  1573. end
  1574. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2)
  1575. for i = 0 , 1 , 0.2 do
  1576. wait()
  1577. local rndmd = rndmdec1-rndmdec1*i
  1578. RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(math.rad((90-rndmd)), math.rad(90), math.rad((10-(rndmd*2))-20*i))
  1579. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-90-10*i), math.rad(0), math.rad(0))
  1580. LW.C0 = CFrame.new(-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45))
  1581. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1582. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2)
  1583. end
  1584. for i = 0 , 1 , 0.1 do
  1585. wait()
  1586. RW.C0 = CFrame.new(1*i,0.5,-1) * CFrame.fromEulerAnglesXYZ(math.rad(90-20*i), math.rad(90-90*i), math.rad(-10-35*i))
  1587. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-100+100*i), math.rad(0), math.rad(0))
  1588. LW.C0 = CFrame.new(-0.5-0.5*i,0.5,-0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80-10*i),math.rad(-45+45*i),math.rad(45))
  1589. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1590. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180*i), math.rad(90-45*i)) * CFrame.new(0, 0, 0.2)
  1591. end
  1592. ss(Head,1.5)
  1593. fs(Head,0.5+1.5*math.random())
  1594. wait(0.1)
  1595. Hitdeb = 0
  1596. for i = 0 , 1 , 0.2 do
  1597. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1598. wait()
  1599. RW.C0 = CFrame.new(1,0.5+1*i,-1) * CFrame.fromEulerAnglesXYZ(math.rad(70+65*i), math.rad(0), math.rad(-45))
  1600. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1601. LW.C0 = CFrame.new(-1,0.5+1*i,-1) * CFrame.fromEulerAnglesXYZ(math.rad(70+65*i),math.rad(0),math.rad(45))
  1602. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1603. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180-180*i), math.rad(45)) * CFrame.new(0, 0, 0.2)
  1604. if FTCount <= MaxFT then
  1605. local eff = effect("Bright red",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0),true)
  1606. eff.Transparency = 1
  1607. table.insert(efftab,eff)
  1608. FTCount = FTCount + 1
  1609. OTND(eff)
  1610. coroutine.resume(coroutine.create(function()
  1611. for i = 0 , 1 , 0.15 do
  1612. wait()
  1613. eff.Transparency = 1-0.5*i
  1614. end
  1615. wait()
  1616. eff.Transparency = 0.5
  1617. end))
  1618. end
  1619. end
  1620. coroutine.resume(coroutine.create(function()
  1621. wait(5)
  1622. for _,eff in pairs(efftab) do
  1623. wait()
  1624. eff.Parent = nil
  1625. FTCount = FTCount - 1
  1626. end end))
  1627. for i = 0 , 1 , 0.1 do
  1628. wait()
  1629. RW.C0 = CFrame.new(1,1.5-1*i,-1+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(135-55*i), math.rad(45*i), math.rad(-45))
  1630. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1631. LW.C0 = CFrame.new(-1,1.5-1*i,-1+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(135-55*i),math.rad(-45*i),math.rad(45))
  1632. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1633. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(45+45*i)) * CFrame.new(0, 0, 0.2)
  1634. end
  1635. dmgdc()
  1636. attack=false
  1637. end
  1638.  
  1639.  
  1640. function LifeDrain()
  1641. attack=true
  1642. for i = 0 , 1 , 0.1 do
  1643. wait()
  1644. RW.C0 = CFrame.new(1,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+55*i), math.rad(45), math.rad(-45+90*i))
  1645. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90*i), math.rad(0))
  1646. LW.C0 = CFrame.new(-1+1.25*i,0.5+0.25*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+25*i),math.rad(-45+90*i),math.rad(45+25*i))
  1647. LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90*i), math.rad(0))
  1648. w1.C1 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 0,0)
  1649. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2)
  1650. end
  1651. ------
  1652. local nrmag = 50
  1653. local nrprsn = nil
  1654. wait()
  1655. --
  1656. local c = game.Workspace:GetChildren();
  1657. for i = 1, #c do
  1658. local hum = c[i]:findFirstChild("Humanoid")
  1659. if hum ~= nil and hum.Health ~= 0 then
  1660. local head = c[i]:findFirstChild("Torso");
  1661. if head ~= nil then
  1662. local targ = head.Position - Torso.Position;
  1663. local mag = targ.magnitude;
  1664. if mag <= 50 and c[i].Name ~= Player.Name then
  1665. if mag < nrmag then
  1666. nrmag = mag
  1667. nrprsn = c[i]
  1668. end
  1669. end end end end
  1670. --
  1671. if nrprsn == nil then
  1672. attack = false
  1673. return end
  1674. local C = 0
  1675. local bp = Instance.new("BodyPosition")
  1676. local bg = Instance.new("BodyGyro")
  1677. bp.Parent = Torso
  1678. bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1679. bp.P = bp.P + 10000
  1680. local CF = nrprsn.Torso.CFrame
  1681. bp.position = CF.p + CFrame.new(Torso.Position,CF.p).lookVector * -3
  1682. bg.Parent = Torso
  1683. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  1684. bg.P = bg.P + 100000
  1685. bg.cframe = CFrame.new(Torso.Position,CF.p) * CFrame.Angles(math.rad(0),0,0)
  1686. ss(Head,2)
  1687. wait(0.1)
  1688. local FirstP = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1689. local LastP = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1690. for i = 0 , 1 , 0.2 do
  1691. wait()
  1692. C = C + 1
  1693. RW.C0 = CFrame.new(1-1*i,0.5,-1*i) * CFrame.fromEulerAnglesXYZ(math.rad(135-90*i), math.rad(45), math.rad(45-135*i))
  1694. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90), math.rad(0))
  1695. LW.C0 = CFrame.new(0.25-1.75*i,0.75-0.25*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(105-60*i),math.rad(45),math.rad(70-125*i))
  1696. LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90), math.rad(0))
  1697. w1.C1 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 0,0)
  1698. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
  1699. if C == 3 then
  1700. bp.P = bp.P + 10000
  1701. bp.position = CF.p + CFrame.new(Torso.Position,CF.p).lookVector * 6
  1702. bg.cframe = CFrame.new(Torso.Position,CF.p) * CFrame.Angles(math.rad(-45),0,0)
  1703. end
  1704. if C == 2 then
  1705. FirstP = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1706. elseif C == 5 then
  1707. LastP = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1708. end
  1709. end
  1710. local effectsmsh = Instance.new("SpecialMesh")
  1711. effectsmsh.Scale = Vector3.new(5,1,5)
  1712. effectsmsh.MeshType = "Sphere"
  1713. local effectsg = Instance.new("Part")
  1714. effectsg.formFactor = 3
  1715. effectsg.CanCollide = false
  1716. effectsg.Name = "Eff"
  1717. effectsg.Locked = true
  1718. effectsg.Anchored = true
  1719. effectsg.Size = Vector3.new(0.2,1,0.2)
  1720. effectsg.Parent = swordholder
  1721. effectsmsh.Parent = effectsg
  1722. effectsg.BrickColor = BrickColor.new("White")
  1723. effectsg.Reflectance = Ref
  1724. local point1 = FirstP
  1725. local LP = LastP
  1726. local mg = (LP.p - point1.p).magnitude
  1727. effectsg.Size = Vector3.new(0.2,mg,0.2)
  1728. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  1729. if returnn then return effectsg end
  1730. coroutine.resume(coroutine.create(function()
  1731. if not returnn then
  1732. for i = 0 , 1 , 0.1 do
  1733. wait()
  1734. effectsg.Transparency = 1*i
  1735. end
  1736. wait()
  1737. effectsg.Parent = nil
  1738. end
  1739. end))
  1740. local critrandomizer = math.random(1,crtrate)
  1741. local rndmdamage = 0
  1742. if critrandomizer ~= 1 then
  1743. rndmdamage = math.random(mindamage,maxdamage)
  1744. damagesplat(rndmdamage,nrprsn.Head,false)
  1745. nrprsn.Humanoid:TakeDamage(rndmdamage)
  1746. elseif critrandomizer == 1 then
  1747. rndmdamage = math.random(maxdamage,crtmaxdamage)
  1748. damagesplat(rndmdamage,nrprsn.Head,true)
  1749. nrprsn.Humanoid:TakeDamage(rndmdamage)
  1750. end
  1751. local tempmod = Instance.new("Model",Workspace)
  1752. for l = 1 , rndmdamage/5 do
  1753. local meshz = Instance.new("SpecialMesh")
  1754. meshz.Scale = Vector3.new(1.5,1.5,1.5)
  1755. meshz.MeshType = "Sphere"
  1756. local shellz = Instance.new("Part")
  1757. meshz.Parent = shellz
  1758. shellz.Anchored = false
  1759. shellz.formFactor = 0
  1760. shellz.Size = Vector3.new(1,1,1)
  1761. shellz.CFrame = hitbox.CFrame
  1762. shellz.Parent = tempmod
  1763. shellz.Transparency = 0.5
  1764. shellz.BrickColor = BrickColor.new("White")
  1765. shellz.CanCollide = false
  1766. shellz.Reflectance = 0
  1767. local bv = Instance.new("BodyPosition")
  1768. bv.Parent = shellz
  1769. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1770. bv.P = bv.P + 10000
  1771. bv.position = shellz.Position + Vector3.new(math.random(-25,25),math.random(-2.5,7.5),math.random(-25,25))
  1772. coroutine.resume(coroutine.create(function()
  1773. wait(3)
  1774. bv.maxForce = Vector3.new(0,math.huge,0)
  1775. coroutine.resume(coroutine.create(function()
  1776. local dd = false
  1777. while shellz.Transparency ~= 1 and not dd do
  1778. wait(0.1)
  1779. local cc = game.Workspace:GetChildren();
  1780. for i = 1, #c do
  1781. local hum = cc[i]:findFirstChild("Humanoid")
  1782. if hum ~= nil and hum.Health ~= 0 then
  1783. local head = cc[i]:findFirstChild("Head");
  1784. if head ~= nil then
  1785. local targ = head.Position - shellz.Position;
  1786. local mag = targ.magnitude;
  1787. if mag <= 5 then
  1788. dd = true
  1789. damagesplat(5+darkboost,head,false)
  1790. hum.Health = hum.Health + 5 + darkboost
  1791. for i = 0 , 1 , 0.05 do
  1792. wait()
  1793. shellz.Transparency = 1*i
  1794. end
  1795. shellz.Parent = nil
  1796. end
  1797. end
  1798. end
  1799. end
  1800. end
  1801. end))
  1802.  
  1803. end))
  1804. local hx = false
  1805. coroutine.resume(coroutine.create(function()
  1806. for i = 0 , 1 , 0.05 do
  1807. wait()
  1808. shellz.Transparency = 1-1*i
  1809. end
  1810. shellz.Transparency = 0
  1811. end))
  1812. coroutine.resume(coroutine.create(function()
  1813. wait(60)
  1814. for ii,shellz in pairs(tempmod:GetChildren()) do
  1815. for i = 0 , 1 , 0.1 do
  1816. wait()
  1817. shellz.Transparency = 1*i
  1818. end
  1819. shellz.Parent = nil
  1820. end
  1821. tempmod.Parent = nil
  1822. end))
  1823. end
  1824. wait(0.5)
  1825. ----
  1826. RW.C0 = CFrame.new(1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(45), math.rad(-45))
  1827. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1828. LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45))
  1829. LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1830. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  1831. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2)
  1832. attack=false
  1833. bp.Parent = nil bg.Parent = nil
  1834. end
  1835.  
  1836.  
  1837. --TEST
  1838.  
  1839. hammer = Torso
  1840.  
  1841. function doDamage(hit)
  1842. local humanoid = hit.Parent:findFirstChild("Humanoid")
  1843. local hum = Player.Character:findFirstChild("Humanoid") -- non-nil if tool held by a character
  1844. if humanoid~=nil and humanoid ~= hum and hum ~= nil then
  1845. local foundd = false
  1846. for ii = 1 , #AoETrue do
  1847. if AoETrue[ii] == hit.Parent.Name then
  1848. foundd = true
  1849. end
  1850. end
  1851. if foundd then
  1852. end
  1853. --
  1854. if not foundd then
  1855. humanoid:TakeDamage(5)
  1856. if Mode == "Fire" then
  1857. end
  1858. damagesplat(5,humanoid.Parent.Torso,false)
  1859. table.insert(AoETrue,hit.Parent)
  1860. end
  1861.  
  1862. if humanoid.Health <= 0 then
  1863. local c = hit.CFrame
  1864. hit.CFrame = CFrame.new(hit.Position)
  1865. hit.CFrame = c
  1866. end
  1867. delay(1, function() end)
  1868. else
  1869. local c = hit.CFrame hit.CFrame = CFrame.new(hit.Position) hit.CFrame = c
  1870. end
  1871. end
  1872. function bewm(obj, pos, notme)
  1873. if (obj ~= notme) then
  1874. if (obj.className == "Part") or (obj.className == "Seat") then
  1875. if (not obj.Anchored) and (((pos - obj.Position) * Vector3.new(1, 0, 1)).magnitude < 24) and (pos.y <= obj.Position.y + 2) and (pos.y >= obj.Position.y - 2) then
  1876. delay((pos - obj.Position).magnitude / 24, function() obj.Velocity = ((obj.Position - pos).unit + Vector3.new(0, 0.5, 0)) * 96 + obj.Velocity obj.RotVelocity = obj.RotVelocity + Vector3.new(obj.Position.z - pos.z, 0, pos.x - obj.Position.x).unit * 40 doDamage(obj) end)
  1877. end
  1878. elseif (obj.className == "Model") or (obj.className == "Hat") or (obj.className == "Tool") or (obj == workspace) then
  1879. local list = obj:GetChildren()
  1880. for x = 1, #list do
  1881. bewm(list[x], pos, notme)
  1882. end
  1883. end
  1884. end
  1885. end
  1886.  
  1887. function attackr()
  1888. local shockRing = Instance.new("Part")
  1889. shockRing.formFactor = 2
  1890. shockRing.Size = Vector3.new(1, 0.4, 1)
  1891. shockRing.Anchored = true
  1892. shockRing.Locked = true
  1893. shockRing.CanCollide = false
  1894. shockRing.archivable = false
  1895. shockRing.TopSurface = 0
  1896. shockRing.BottomSurface = 0
  1897. shockRing.Transparency = 0
  1898. if Mode == "Fire" then
  1899. shockRing.BrickColor = BrickColor.new("Really red")
  1900. elseif Mode == "Dark" then
  1901. shockRing.BrickColor = BrickColor.new("Bright violet")
  1902. elseif Mode == "Ice" then
  1903. shockRing.BrickColor = BrickColor.new("Bright blue")
  1904. shockRing.Reflectance = 0.2
  1905. end
  1906. local decal = Instance.new("CylinderMesh")
  1907. decal.Parent = shockRing
  1908. decal.Scale = Vector3.new(1,0.1,1)
  1909. wait(0.2)
  1910. local pos = hammer.CFrame * (Vector3.new(0, -2.5, 0))
  1911. bewm(game.Workspace, pos, Player.Character)
  1912. shockRing.CFrame = CFrame.new(pos)
  1913. for x = 0, 1 , 0.0625 do
  1914. delay((x*16) / 30, function() shockRing.Parent = nil shockRing.Size = Vector3.new(0, 0.4, 0) + Vector3.new(3.2, 0, 3.2) * (x*16) shockRing.Transparency = 1*x shockRing.Parent = Player.Character end)
  1915. end
  1916. delay(1, function()
  1917. shockRing.Parent = nil
  1918. for ii = 1 , #AoETrue do
  1919. table.remove(AoETrue,#AoETrue)
  1920. end end)
  1921. end
  1922. local modemodel = Instance.new("Model",swordholder)
  1923. local mrdychng = false
  1924. function FireMode()
  1925. attack=true
  1926. Mode = "Fire"
  1927. fireboost = 5
  1928. mrdychng = true
  1929. for i = 0 , 1 , 0.1 do
  1930. wait()
  1931. RW.C0 = CFrame.new(1+0.5*i,0.5+1*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+55*i), math.rad(45-45*i), math.rad(-45+45*i))
  1932. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1933. LW.C0 = CFrame.new(-1+1*i,0.5+1*i,-0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80-80*i),math.rad(-45+45*i),math.rad(45+65*i))
  1934. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  1935. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
  1936. end
  1937. cs(Head,1.5)
  1938. local tempmod = Instance.new("Model",swordholder)
  1939. for l = 1 , 20 do
  1940. local meshz = Instance.new("SpecialMesh")
  1941. meshz.Scale = Vector3.new(0.5,0.5,0.5)
  1942. meshz.MeshType = "Sphere"
  1943. local shellz = Instance.new("Part")
  1944. meshz.Parent = shellz
  1945. shellz.Anchored = false
  1946. shellz.formFactor = 0
  1947. shellz.Size = Vector3.new(1,1,1)
  1948. shellz.CFrame = hitbox.CFrame * CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  1949. shellz.Parent = tempmod
  1950. shellz.Transparency = 0.5
  1951. shellz.BrickColor = BrickColor.new("Really red")
  1952. shellz.CanCollide = false
  1953. shellz.Reflectance = 0
  1954. local bv = Instance.new("BodyPosition")
  1955. bv.Parent = shellz
  1956. bv.maxForce = Vector3.new(200000,200000,200000)
  1957. bv.position = shellz.Position
  1958. coroutine.resume(coroutine.create(function()
  1959. for i = 0 , 1 , 0.025 do
  1960. wait()
  1961. shellz.Transparency = 1-1*i
  1962. end
  1963. shellz.Transparency = 0
  1964. end))
  1965. coroutine.resume(coroutine.create(function()
  1966. wait(0.05)
  1967. bv.position = hitbox.Position
  1968. for i = 1 , 20 do
  1969. wait(0.1)
  1970. bv.position = shell.Position
  1971. end
  1972. shellz.Parent = nil
  1973. end))
  1974. wait(0.01)
  1975. end
  1976. coroutine.resume(coroutine.create(function ()
  1977. wait(0.25)
  1978. tempmod.Parent = nil
  1979. end))
  1980. for i = 0 , 1 , 0.2 do
  1981. wait()
  1982. RW.C0 = CFrame.new(1.5,1.5-1*i,0) * CFrame.fromEulerAnglesXYZ(math.rad(135-45*i), math.rad(0), math.rad(0))
  1983. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1984. LW.C0 = CFrame.new(0,1.5-1*i,-1) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(110-45*i))
  1985. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  1986. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180), math.rad(90)) * CFrame.new(0, 0, 0.2)
  1987. end
  1988. bs(Head,0.75)
  1989. attackr()
  1990. for zz = 1 , 1 do
  1991. local mesh = Instance.new("SpecialMesh")
  1992. mesh.MeshType = "FileMesh"
  1993. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1994. mesh.Scale = Vector3.new(10,5,10) * Vector3.new(0.01,0.01,0.01)
  1995. local shell = Instance.new("Part")
  1996. mesh.Parent = shell
  1997. shell.Anchored = true
  1998. shell.formFactor = 1
  1999. shell.Size = Vector3.new(1,1,1)
  2000. shell.CFrame = Torso.CFrame * CFrame.new(0,-1.5,0)
  2001. shell.Parent = swordholder
  2002. shell.Transparency = 0
  2003. shell.BrickColor = BrickColor.new("Really red")
  2004. shell.CanCollide = false
  2005. coroutine.resume(coroutine.create(function()
  2006. for i = 0 , 1 , 0.075 do
  2007. wait()
  2008. mesh.Scale = Vector3.new(20,5,20) * Vector3.new(i,1,i)
  2009. shell.Transparency = 1*i
  2010. end
  2011. shell.Transparency = 1
  2012. shell.Parent = nil
  2013. end))
  2014. end
  2015. for zz = 1 , 1 do
  2016. local mesh = Instance.new("SpecialMesh")
  2017. mesh.MeshType = "FileMesh"
  2018. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2019. mesh.Scale = Vector3.new(10,20,10) * Vector3.new(0.01,0.01,0.01)
  2020. local shell = Instance.new("Part")
  2021. mesh.Parent = shell
  2022. shell.Anchored = true
  2023. shell.formFactor = 1
  2024. shell.Size = Vector3.new(1,1,1)
  2025. shell.CFrame = Torso.CFrame * CFrame.new(0,1,0)
  2026. shell.Parent = swordholder
  2027. shell.Transparency = 0
  2028. shell.BrickColor = BrickColor.new("Really red")
  2029. shell.CanCollide = false
  2030. coroutine.resume(coroutine.create(function()
  2031. for i = 0 , 1 , 0.05 do
  2032. wait()
  2033. mesh.Scale = Vector3.new(10,20,10) * Vector3.new(i,1,i)
  2034. shell.Transparency = 1*i
  2035. end
  2036. shell.Transparency = 1
  2037. shell.Parent = nil
  2038. end))
  2039. end
  2040. for zz = 1 , 3 do
  2041. local mesh = Instance.new("SpecialMesh")
  2042. mesh.MeshType = "Sphere"
  2043. mesh.Scale = Vector3.new(5*zz,5*zz,5*zz) * Vector3.new(0.01,0.01,0.01)
  2044. local shell = Instance.new("Part")
  2045. mesh.Parent = shell
  2046. shell.Anchored = true
  2047. shell.formFactor = 3
  2048. shell.Size = Vector3.new(1,1,1)
  2049. shell.CFrame = Torso.CFrame * CFrame.new(0,-1,0)
  2050. shell.Parent = swordholder
  2051. shell.Transparency = 0
  2052. if math.fmod(zz,2) == 1 then
  2053. shell.BrickColor = BrickColor.new("Bright orange")
  2054. elseif math.fmod(zz,2) == 0.5 then
  2055. shell.BrickColor = BrickColor.new("Bright red")
  2056. else
  2057. shell.BrickColor = BrickColor.new("Bright yellow")
  2058. end
  2059. shell.CanCollide = false
  2060. coroutine.resume(coroutine.create(function()
  2061. for i = 0 , 1 , 0.025 do
  2062. wait()
  2063. mesh.Scale = Vector3.new(10*zz,10*zz,10*zz) * Vector3.new(i,i,i)
  2064. shell.Transparency = 1*i
  2065. end
  2066. shell.Transparency = 1
  2067. shell.Parent = nil
  2068. end))
  2069. end
  2070.  
  2071.  
  2072. for ii,z in pairs(modemodel:GetChildren()) do
  2073. z.Parent = nil
  2074. end
  2075.  
  2076. local wing1m = Instance.new("BlockMesh")
  2077. wing1m.Scale = Vector3.new(1,1,1)
  2078. local wing1p = Instance.new("Part")
  2079. wing1p.formFactor = 3
  2080. wing1p.CanCollide = false
  2081. wing1p.Name = "FlameWingP1"
  2082. wing1p.Locked = true
  2083. wing1p.Size = Vector3.new(0.2,0.2,0.2)
  2084. wing1p.Parent = modemodel
  2085. wing1m.Parent = wing1p
  2086. wing1p.BrickColor = BrickColor.new("Bright red")
  2087. wing1p.Transparency = 1
  2088. local wing1w = Instance.new("Weld")
  2089. wing1w.Parent = wing1p
  2090. wing1w.Part0 = wing1p
  2091. wing1w.Part1 = Torso
  2092. wing1w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0 , 0)
  2093. wing1w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(-1, 0, 0)
  2094. local wing2m = Instance.new("BlockMesh")
  2095. wing2m.Scale = Vector3.new(1,1,1)
  2096. local wing2p = Instance.new("Part")
  2097. wing2p.formFactor = 3
  2098. wing2p.CanCollide = false
  2099. wing2p.Name = "FlameWingP2"
  2100. wing2p.Locked = true
  2101. wing2p.Size = Vector3.new(0.2,0.2,0.2)
  2102. wing2p.Parent = modemodel
  2103. wing2m.Parent = wing2p
  2104. wing2p.BrickColor = BrickColor.new("Bright red")
  2105. wing2p.Transparency = 1
  2106. local wing2w = Instance.new("Weld")
  2107. wing2w.Parent = wing2p
  2108. wing2w.Part0 = wing2p
  2109. wing2w.Part1 = Torso
  2110. wing2w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0 , 0)
  2111. wing2w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(1, 0, 0)
  2112. coroutine.resume(coroutine.create(function()
  2113. for ringi = math.rad(-20) , math.rad(130) , math.rad(10) do
  2114. wait(0.1)
  2115. local ringm = Instance.new("BlockMesh")
  2116. ringm.Scale = Vector3.new(1,1,1)
  2117. local ringp = Instance.new("Part")
  2118. ringp.formFactor = 3
  2119. ringp.CanCollide = false
  2120. ringp.Name = "FlameWing"..ringi
  2121. ringp.Locked = true
  2122. ringp.Size = Vector3.new(0.2,2,0.8)
  2123. ringp.Parent = modemodel
  2124. ringm.Parent = ringp
  2125. ringp.BrickColor = BrickColor.new("Bright red")
  2126. ringp.Reflectance = 0.1
  2127. ringp.Transparency = 1
  2128. local ringw = Instance.new("Weld")
  2129. ringw.Parent = ringp
  2130. ringw.Part0 = ringp
  2131. ringw.Part1 = wing1p
  2132. ringw.C1 = CFrame.fromEulerAnglesXYZ(ringi, 0, 0) * CFrame.new(0, ringp.Size.y/4 , 0)
  2133. ringw.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(45)) * CFrame.new(0, -1, 0) --* CFrame.new(-0.6, 0, 0) ---msh5.Scale.x/1.625
  2134. coroutine.resume(coroutine.create(function()
  2135. for i = 0 , 1 , 0.025 do
  2136. wait()
  2137. ringp.Transparency = 1-1*i
  2138. end
  2139. ringp.Transparency = 0
  2140. end))
  2141. end end))
  2142. coroutine.resume(coroutine.create(function()
  2143. for ringi = math.rad(-20) , math.rad(130) , math.rad(10) do
  2144. wait(0.1)
  2145. local ringm = Instance.new("BlockMesh")
  2146. ringm.Scale = Vector3.new(1,1,1)
  2147. local ringp = Instance.new("Part")
  2148. ringp.formFactor = 3
  2149. ringp.CanCollide = false
  2150. ringp.Name = "FlameWing2_"..ringi
  2151. ringp.Locked = true
  2152. ringp.Size = Vector3.new(0.2,2,0.8)
  2153. ringp.Parent = modemodel
  2154. ringm.Parent = ringp
  2155. ringp.BrickColor = BrickColor.new("Bright red")
  2156. ringp.Reflectance = 0.1
  2157. ringp.Transparency = 1
  2158. local ringw = Instance.new("Weld")
  2159. ringw.Parent = ringp
  2160. ringw.Part0 = ringp
  2161. ringw.Part1 = wing2p
  2162. ringw.C1 = CFrame.fromEulerAnglesXYZ(ringi+math.rad(0), 0, 0) * CFrame.new(-0, ringp.Size.y/4 , 0)
  2163. ringw.C0 = CFrame.fromEulerAnglesXYZ(0, 0,math.rad(-45)) * CFrame.new(-0, -1, 0)
  2164. coroutine.resume(coroutine.create(function()
  2165. for i = 0 , 1 , 0.025 do
  2166. wait()
  2167. ringp.Transparency = 1-1*i
  2168. end
  2169. ringp.Transparency = 0
  2170. end))
  2171. end end))
  2172. local wingp1m = Instance.new("SpecialMesh")
  2173. wingp1m.Scale = Vector3.new(1,1,1)
  2174. wingp1m.MeshType = "Sphere"
  2175. local wingp1p = Instance.new("Part")
  2176. wingp1p.formFactor = 3
  2177. wingp1p.CanCollide = false
  2178. wingp1p.Name = "FlameOrb"
  2179. wingp1p.Locked = true
  2180. wingp1p.Size = Vector3.new(1,1,1)
  2181. wingp1p.Parent = modemodel
  2182. wingp1m.Parent = wingp1p
  2183. wingp1p.Reflectance = 0.2
  2184. wingp1p.BrickColor = BrickColor.new("Bright red")
  2185. local wingp1w = Instance.new("Weld")
  2186. wingp1w.Parent = wingp1p
  2187. wingp1w.Part0 = wingp1p
  2188. wingp1w.Part1 = Torso
  2189. wingp1w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0 , 0)
  2190. wingp1w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(0, -0.5, 0.5)
  2191. coroutine.resume(coroutine.create(function()
  2192. for i = 0 , 1 , 0.025 do
  2193. wait()
  2194. wingp1p.Transparency = 1-1*i
  2195. end
  2196. wingp1p.Transparency = 0
  2197. end))
  2198. local Firee = modemodel
  2199. local Spawn = wingp1p
  2200. local colors = {BrickColor.new("Bright red"),BrickColor.new("Bright yellow"),BrickColor.new("Bright orange")}
  2201. local Embers = {}
  2202. local modelz = Instance.new("Model",Firee)
  2203. modelz.Name = "FireHolder"
  2204. for X = 1, 15 do
  2205. local f = Instance.new("Part")
  2206. f.Parent = nil
  2207. f.BrickColor = colors[math.random(1, # colors)]
  2208. f.Size = Vector3.new(1,1,1)
  2209. f.formFactor = 3
  2210. f.Anchored = true
  2211. f.Locked = true
  2212. f.CanCollide = false
  2213. f.Transparency = 0.5
  2214. f.Name = "Fire"
  2215. f.TopSurface = 0
  2216. f.BottomSurface = 0
  2217. Instance.new("BlockMesh",f)
  2218. table.insert(Embers, f)
  2219. end
  2220. local R = 0
  2221. coroutine.resume(coroutine.create(function ()
  2222. repeat
  2223. wait()
  2224. R = R + 1
  2225. for X = 1, # Embers do
  2226. Embers[X].Parent = modelz
  2227. local FM = math.fmod(R + X, # Embers)
  2228. if FM == 1 then
  2229. RandPos = Vector3.new(math.random(-Spawn.Size.x * 5, Spawn.Size.x * 5) / 10, Spawn.Size.y / 2, math.random(-Spawn.Size.x * 5, Spawn.Size.x * 5) / 10)
  2230. RandDir = Vector3.new(math.random(-100,100), math.random(-100,100), math.random(-100,100))
  2231. Embers[X].CFrame = CFrame.new(Spawn.Position + RandPos, (Spawn.Position * rndm) + RandPos + RandDir)
  2232. Embers[X].Mesh.Scale = Vector3.new(1,1,1)
  2233. else
  2234. Embers[X].CFrame = Embers[X].CFrame + Embers[X].CFrame.lookVector*0.5
  2235. Embers[X].Mesh.Scale = Embers[X].Mesh.Scale - Vector3.new(0.1,0.1,0.1)
  2236. end
  2237. end
  2238. until wingp1p.Parent == nil
  2239. for i = 0 ,1 , 0.1 do
  2240. wait(0.2)
  2241. for X = 1, # Embers do
  2242. Embers[X].Transparency = 0.5+0.5*i
  2243. end
  2244. end
  2245. for X = 1, # Embers do
  2246. Embers[X].Parent = nil
  2247. end
  2248. end))
  2249. for ii = 1 , #AoETrue do
  2250. table.remove(AoETrue,#AoETrue)
  2251. end
  2252. wait(0.25)
  2253. for i = 0 , 1 , 0.1 do
  2254. wait()
  2255. RW.C0 = CFrame.new(1.5,0.5+0.5*i,0) * CFrame.fromEulerAnglesXYZ(math.rad(90+25*i), math.rad(0), math.rad(0))
  2256. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  2257. LW.C0 = CFrame.new(0,0.5+0.5*i,-1) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(65+25*i))
  2258. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2259. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180), math.rad(90)) * CFrame.new(0, 0, 0.2)
  2260. end
  2261. for i = 0 , 1 , 0.1 do
  2262. wait()
  2263. RW.C0 = CFrame.new(1.5,1-0.5*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(115-35*i), math.rad(45*i), math.rad(-45*i))
  2264. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  2265. LW.C0 = CFrame.new(-1*i,1-0.5*i,-1+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80*i),math.rad(0),math.rad(90-45*i))
  2266. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2267. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180-180*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
  2268. end
  2269. RW.C0 = CFrame.new(1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(45), math.rad(-45))
  2270. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  2271. LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45))
  2272. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2273. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2)
  2274. attack=false
  2275. wait(1.5)
  2276. mrdychng = false
  2277. end
  2278. function NeutralMode()
  2279. attack=true
  2280. Mode = "None"
  2281. fireboost = 0
  2282. iceboost = 0
  2283. darkboost = 0
  2284. ss(Head,1)
  2285. cs(Head,2)
  2286. mrdychng = true
  2287. for i = 0 , 1 , 0.2 do
  2288. wait()
  2289. RW.C0 = CFrame.new(1+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i), math.rad(45), math.rad(-45+45*i))
  2290. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(100*i), math.rad(0), math.rad(0))
  2291. LW.C0 = CFrame.new(-1-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i),math.rad(-45),math.rad(45-45*i))
  2292. LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(100*i), math.rad(0), math.rad(0))
  2293. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2294. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(70*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
  2295. end
  2296. coroutine.resume(coroutine.create(function()
  2297. for ii,z in pairs(modemodel:GetChildren()) do
  2298. if string.sub(z.Name,0,string.len(z.Name)-1) ~= "FlameWingP" then
  2299. wait()
  2300. coroutine.resume(coroutine.create(function()
  2301. for i = 0 , 1 , 0.1 do
  2302. wait()
  2303. z.Transparency = (1-z.Transparency)*i
  2304. end
  2305. z.Parent = nil
  2306. end))
  2307. end
  2308. end
  2309. wait(0.5)
  2310. for ii,z in pairs(modemodel:GetChildren()) do
  2311. wait()
  2312. z.Parent = nil
  2313. end
  2314. end))
  2315. for i = 0 , 1 , 0.1 do
  2316. wait()
  2317. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(45), math.rad(0))
  2318. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(100+20*i), math.rad(0), math.rad(0))
  2319. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(-45),math.rad(0))
  2320. LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(100+20*i), math.rad(0), math.rad(0))
  2321. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2322. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(70+20*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
  2323. end
  2324.  
  2325. wait(0.25)
  2326. for i = 0 , 1 , 0.1 do
  2327. wait()
  2328. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i), math.rad(45), math.rad(-45*i))
  2329. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(120-120*i), math.rad(0), math.rad(0))
  2330. LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i),math.rad(-45),math.rad(45*i))
  2331. LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(120-120*i), math.rad(0), math.rad(0))
  2332. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2333. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90-90*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
  2334. end
  2335. RW.C0 = CFrame.new(1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(45), math.rad(-45))
  2336. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  2337. LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45))
  2338. LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  2339. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2340. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2)
  2341. attack=false
  2342. wait(0.5)
  2343. mrdychng = false
  2344. end
  2345.  
  2346. function ob1d(mouse)
  2347. hold = true
  2348. if attack == true then return end
  2349. end
  2350. function ob1u(mouse)
  2351. end
  2352. buttonhold = false
  2353. function key(key)
  2354. if attack == true then return end
  2355. if key == "q" then
  2356. if attacktype == 1 then
  2357. Combo1a()
  2358. elseif attacktype == 2 then
  2359. Combo1b()
  2360. elseif attacktype == 3 then
  2361. Combo1c()
  2362. end
  2363. end
  2364. if key == "e" then
  2365. if attacktype == 1 then
  2366. BlizzardSword()
  2367. end
  2368. end
  2369. if key == "r" then
  2370. FlameTrail()
  2371. end
  2372. if key == "t" then
  2373. LifeDrain()
  2374. end
  2375. if Mode == "None" and not mrdychng then
  2376. if key == "z" then
  2377. FireMode()
  2378. end
  2379. elseif not mrdychng then
  2380. if key == "z" or key == "x" or key == "c" then
  2381. NeutralMode()
  2382. end
  2383. end
  2384. end
  2385.  
  2386. function key2(key)
  2387. end
  2388. function s(mouse)
  2389. repeat wait() until not attack
  2390. while ev.Value ~= false do
  2391. wait(0.1)
  2392. end
  2393. MMouse = mouse
  2394. mouse.Button1Down:connect(function() ob1d(mouse) end)
  2395. mouse.Button1Up:connect(function() ob1u(mouse) end)
  2396. mouse.KeyDown:connect(key)
  2397. mouse.KeyUp:connect(key2)
  2398. equipanim()
  2399. ev.Value = true
  2400. --[[
  2401. script.Parent = Bin.Parent
  2402. Bin:remove()]]
  2403. end
  2404. function ds(mouse)
  2405. repeat wait() until not attack
  2406. while ev.Value == false do
  2407. wait(0.1)
  2408. end
  2409.  
  2410. hideanim()
  2411. wait(0.1)
  2412. ev.Value = false
  2413. end
  2414. Bin.Selected:connect(s)
  2415. Bin.Deselected:connect(ds)
  2416.  
  2417.  
  2418. --lego
Add Comment
Please, Sign In to add comment