Advertisement
memesbruh03

Feeling It

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