Hmm465_Gaming

evil hmm465, ultimate edition.

Jan 27th, 2018
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 89.23 KB | None | 0 0
  1. function smooth(obj)
  2.     local sides = {"Left", "Right", "Top", "Bottom", "Front", "Back"}
  3.     for i,v in pairs(sides) do
  4.         obj[v.."Surface"] = "SmoothNoOutlines"
  5.     end
  6. end
  7.  
  8. --player stuff, and functions.
  9. print("player stuff, and functions")
  10. Player = game:GetService("Players").LocalPlayer
  11. Character = Player.Character
  12. PlayerGui=Player.PlayerGui
  13. Backpack=Player.Backpack
  14. Torso=Character.Torso
  15. Head=Character.Head
  16. Humanoid=Character.Humanoid
  17. LeftArm=Character["Left Arm"]
  18. LeftLeg=Character["Left Leg"]
  19. RightArm=Character["Right Arm"]
  20. RightLeg=Character["Right Leg"]
  21. cam=game.Workspace.CurrentCamera
  22. LS=Torso["Left Shoulder"]
  23. LH=Torso["Left Hip"]
  24. RS=Torso["Right Shoulder"]
  25. RH=Torso["Right Hip"]
  26. Face = Head.face
  27. Neck=Torso.Neck
  28. it=Instance.new
  29. attacktype=1
  30. vt=Vector3.new
  31. cf=CFrame.new
  32. script.Name = "MagicBlade"
  33. euler=CFrame.fromEulerAnglesXYZ
  34. angles=CFrame.Angles
  35. cloaked=false
  36. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  37. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  38. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  39. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  40. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  41. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  42. RootPart=Character.HumanoidRootPart
  43. RootJoint=RootPart.RootJoint
  44. RootCF=euler(-1.57,0,3.14)
  45. attack = false
  46. bounce=false
  47. cooldown=false
  48. deeznuts=false
  49. attackdebounce = false
  50. deb=false
  51. equipped=true
  52. hand=false
  53. MMouse=nil
  54. combo=0
  55. mana=0
  56. trispeed=.2
  57. attackmode='none'
  58. local idle=0
  59. local Anim="Idle"
  60. local Effects={}
  61. local gun=false
  62. local shoot=false
  63. player=nil
  64. mana=0
  65. cam = workspace.CurrentCamera
  66. ZTarget = nil
  67. RocketTarget = nil
  68. local rage = false
  69. local canrage = true
  70. local p = Instance.new("Part")
  71. p.CanCollide = false
  72. p.Size = Vector3.new(0.2,0.2,0.2)
  73. smooth(p)
  74. p.Material = "Neon"
  75. p.BrickColor = BrickColor.new("Institutional white")
  76. p.CFrame = Character.Head.CFrame
  77. p.Name = "Right Eye"
  78. local m = Instance.new("SpecialMesh", p)
  79. m.MeshType = "Sphere"
  80. m.Scale = Vector3.new(0.7,1.1,0.7)
  81. local p2 = p:Clone()
  82. p2.Name = "Left Eye"
  83. local reye = p
  84. local leye = p2
  85. local reyeweld = w
  86. local leyeweld = w2
  87. reye.Parent = Character
  88. leye.Parent = Character
  89. local w2 = Instance.new("Weld", p2)
  90. w2.Part0 = p2
  91. w2.Part1 = Character.Head
  92. w2.C0 = CFrame.new(0.109999999, -0.25, 0.550000012, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  93. local w = Instance.new("Weld", p)
  94. w.Part0 = p
  95. w.Part1 = Character.Head
  96. w.C0 = CFrame.new(-0.109999999, -0.25, 0.550000012, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  97. local p = Instance.new("Part")
  98. p.Size = Vector3.new(0.2,0.2,0.2)
  99. p.CanCollide = false
  100. p.CFrame = Character.Head.CFrame
  101. p.Transparency = 1
  102. p.Name = "Effect"
  103. p.Parent = Character
  104. local w = Instance.new("Weld", p)
  105. w.Name = "justaweld"
  106. w.Part0 = p
  107. w.Part1 = Character.Head
  108. w.C0 = CFrame.new(-0.109999999, -0.25, 0.550000012, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  109. local effect = Instance.new("ParticleEmitter")
  110. effect.Color = ColorSequence.new(Color3.new(250/255,80/255,1/255))
  111. effect.LightEmission = 0.7
  112. effect.Size = NumberSequence.new(0.3)
  113. effect.Texture = "rbxassetid://243664672"
  114. effect.Transparency = NumberSequence.new(0.5)
  115. effect.Lifetime = NumberRange.new(1.5)
  116. effect.Rate = 500
  117. effect.Speed = NumberRange.new(3)
  118. effect.Enabled = false
  119. effect.Parent = p
  120. local effectp = p
  121. Create = LoadLibrary("RbxUtility").Create
  122.  
  123. if Humanoid.Health < 100
  124. then
  125. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  126. game.Players.LocalPlayer.Character.Humanoid.Health = 100
  127. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  128. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  129. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  130. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  131. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  132. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  133. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  134. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  135. game.Players.LocalPlayer.Character.Humanoid.Health = 100
  136. end
  137.  
  138.  
  139. CFuncs = {
  140.     ["Part"] = {
  141.         Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  142.             local Part = Create("Part"){
  143.                 Parent = Parent,
  144.                 Reflectance = Reflectance,
  145.                 Transparency = Transparency,
  146.                 CanCollide = false,
  147.                 Locked = true,
  148.                 BrickColor = BrickColor.new(tostring(BColor)),
  149.                 Name = Name,
  150.                 Size = Size,
  151.                 Material = Material,
  152.             }
  153. --remove these lines if u want it purple--------
  154. if Part.BrickColor == BrickColor.new("Mulberry") then
  155. Part.BrickColor = BrickColor.new(colorone)
  156. end
  157. if Part.BrickColor == BrickColor.new("Royal purple") then
  158. Part.BrickColor = BrickColor.new(colortwo)
  159. end
  160. if Part.BrickColor == BrickColor.new("Alder") or Part.BrickColor == BrickColor.new("Dark indigo") then
  161. Part.BrickColor = BrickColor.new(colorthree)
  162. end
  163. ------------------------------------------------
  164.             RemoveOutlines(Part)
  165.             return Part
  166.         end;
  167.     };
  168.    
  169.     ["Mesh"] = {
  170.         Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  171.             local Msh = Create(Mesh){
  172.                 Parent = Part,
  173.                 Offset = OffSet,
  174.                 Scale = Scale,
  175.             }
  176.             if Mesh == "SpecialMesh" then
  177.                 Msh.MeshType = MeshType
  178.                 Msh.MeshId = MeshId
  179.             end
  180.             return Msh
  181.         end;
  182.     };
  183.    
  184.     ["Mesh"] = {
  185.         Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  186.             local Msh = Create(Mesh){
  187.                 Parent = Part,
  188.                 Offset = OffSet,
  189.                 Scale = Scale,
  190.             }
  191.             if Mesh == "SpecialMesh" then
  192.                 Msh.MeshType = MeshType
  193.                 Msh.MeshId = MeshId
  194.             end
  195.             return Msh
  196.         end;
  197.     };
  198.    
  199.     ["Weld"] = {
  200.         Create = function(Parent, Part0, Part1, C0, C1)
  201.             local Weld = Create("Weld"){
  202.                 Parent = Parent,
  203.                 Part0 = Part0,
  204.                 Part1 = Part1,
  205.                 C0 = C0,
  206.                 C1 = C1,
  207.             }
  208.             return Weld
  209.         end;
  210.     };
  211.  
  212.     ["Sound"] = {
  213.         Create = function(id, par, vol, pit)
  214.             coroutine.resume(coroutine.create(function()
  215.                 local S = Create("Sound"){
  216.                     Volume = vol,
  217.                     Pitch = pit or 1,
  218.                     SoundId = id,
  219.                     Parent = par or workspace,
  220.                 }
  221.                 wait()
  222.                 S:play()
  223.                 game:GetService("Debris"):AddItem(S, 6)
  224.             end))
  225.         end;
  226.     };
  227.    
  228.     ["ParticleEmitter"] = {
  229.         Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  230.             local fp = Create("ParticleEmitter"){
  231.                 Parent = Parent,
  232.                 Color = ColorSequence.new(Color1, Color2),
  233.                 LightEmission = LightEmission,
  234.                 Size = Size,
  235.                 Texture = Texture,
  236.                 Transparency = Transparency,
  237.                 ZOffset = ZOffset,
  238.                 Acceleration = Accel,
  239.                 Drag = Drag,
  240.                 LockedToPart = LockedToPart,
  241.                 VelocityInheritance = VelocityInheritance,
  242.                 EmissionDirection = EmissionDirection,
  243.                 Enabled = Enabled,
  244.                 Lifetime = LifeTime,
  245.                 Rate = Rate,
  246.                 Rotation = Rotation,
  247.                 RotSpeed = RotSpeed,
  248.                 Speed = Speed,
  249.                 VelocitySpread = VelocitySpread,
  250.             }
  251.             return fp
  252.         end;
  253.     };
  254.  
  255.     CreateTemplate = {
  256.    
  257.     };
  258. }
  259. --name, and chat.
  260. print("name and chat")
  261.  
  262. print("naming...")
  263. function chatfunc(text)
  264. local chat = coroutine.wrap(function()
  265. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  266. Character:FindFirstChild("TalkingBillBoard"):destroy()
  267. end
  268. local naeeym2 = Instance.new("BillboardGui",Character)
  269. naeeym2.Size = UDim2.new(0,100,0,40)
  270. naeeym2.StudsOffset = Vector3.new(0,3,0)
  271. naeeym2.Adornee = Head
  272. naeeym2.Name = "TalkingBillBoard"
  273. local tecks2 = Instance.new("TextLabel",naeeym2)
  274. tecks2.BackgroundTransparency = 1
  275. tecks2.BorderSizePixel = 0
  276. tecks2.Text = ""
  277. tecks2.Font = "Fantasy"
  278. tecks2.FontSize = "Size24"
  279. tecks2.TextStrokeTransparency = 0
  280. tecks2.Size = UDim2.new(1,0,0.5,0)
  281. local shk = coroutine.wrap(function()
  282. while tecks2 ~= nil do
  283. wait(.05)
  284. tecks2.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3))
  285. end
  286. end)
  287. shk()
  288. for i = 1,string.len(text),1 do
  289. CFuncs.Sound.Create("rbxassetid://358280695", Torso, 2, 0.5)
  290. tecks2.Text = string.sub(text,1,i)
  291. wait(0.01)
  292. end
  293. wait(1)
  294. for i = 1, 5 do
  295. wait(.01)
  296. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  297. tecks2.Rotation = tecks2.Rotation + 2
  298. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  299. tecks2.TextTransparency = tecks2.TextTransparency + .2
  300. end
  301. naeeym2:Destroy()
  302. end)
  303. chat()
  304. end
  305. function onChatted(msg)
  306. chatfunc(msg)
  307. end
  308. Player.Chatted:connect(onChatted)
  309. print("name all done")
  310.  
  311. local naeeym = Instance.new("BillboardGui",Character)
  312. naeeym.Size = UDim2.new(0,100,0,40)
  313. naeeym.StudsOffset = Vector3.new(0,2,0)
  314. naeeym.Adornee = Head
  315. local tecks = Instance.new("TextLabel",naeeym)
  316. tecks.BackgroundTransparency = 1
  317. tecks.BorderSizePixel = 0
  318. tecks.Text = "???"
  319. tecks.Font = "ArialBold"
  320. tecks.FontSize = "Size24"
  321. tecks.TextStrokeTransparency = 0
  322. tecks.Size = UDim2.new(1,0,0.5,0)
  323. Spawn(function()
  324. while true do
  325. wait(.01)
  326. tecks.TextTransparency = Head.Transparency
  327. tecks.TextStrokeTransparency = Head.Transparency
  328. tecks.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3))
  329. tecks.Rotation = math.random(-1, 3)
  330. tecks.Text = "evil hmm465"
  331. end
  332. end)
  333.  
  334.  
  335. chatfunc("heh")
  336. wait(2)
  337. chatfunc("you've made me mad")
  338. wait(3)
  339. chatfunc("and the last thing you want is to make me mad")
  340. wait(3)
  341. chatfunc("now for my revenge")
  342. wait(2)
  343. chatfunc("D O N T M A K E M E M A D E V E R A G A I N")
  344. wait(3)
  345.  
  346. local s = Instance.new("Sound",Workspace)
  347. s.Volume = 100
  348. s.Looped = true
  349. s.SoundId = "rbxassetid://370475890"
  350. s:Play()
  351.  
  352. local kolor = Instance.new("ColorCorrectionEffect",game.Lighting)
  353.  
  354. kolor.Brightness = -0.1
  355. kolor.Contrast = 0.1
  356. wait(0.1)
  357. kolor.Brightness = -0.2
  358. kolor.Contrast = 0.2
  359. wait(0.1)
  360. kolor.Brightness = -0.3
  361. kolor.Contrast = 0.3
  362. wait(0.1)
  363. kolor.Brightness = -0.4
  364. kolor.Contrast = 0.4
  365. wait(0.1)
  366. kolor.Brightness = -0.5
  367. kolor.Contrast = 0.5
  368. wait(0.1)
  369. kolor.Brightness = -0.6
  370. kolor.Contrast = 0.6
  371. wait(0.1)
  372. kolor.Brightness = -0.7
  373. kolor.Contrast = 0.7
  374. wait(0.1)
  375. kolor.Brightness = -0.8
  376. kolor.Contrast = 0.8
  377. wait(0.1)
  378. kolor.Brightness = -0.9
  379. kolor.Contrast = 0.9
  380. wait(0.1)
  381. kolor.Brightness = -1
  382. kolor.Contrast = 1
  383. wait(0.1)
  384. kolor.Brightness = -1
  385. kolor.Contrast = 0.75
  386. wait(0.1)
  387. kolor.Brightness = -1
  388. kolor.Contrast = 0.5
  389. wait(0.1)
  390. kolor.Brightness = -1
  391. kolor.Contrast = 0.25
  392. wait(0.1)
  393. kolor.Brightness = -1
  394. kolor.Contrast = 0.15
  395. wait(0.1)
  396. kolor.Brightness = -1
  397. kolor.Contrast = 0
  398. wait(0.1)
  399. kolor:Destroy()
  400. s:Stop()
  401.  
  402. wait(0.1)
  403. local m = Instance.new("Model",Character)
  404. m.Name = "WeaponModelz"
  405. local SHEZ = Instance.new("Sound",Character.HumanoidRootPart)
  406. SHEZ.SoundId = "rbxassetid://1383509454"
  407. SHEZ.Looped = true SHEZ.Volume = 100
  408. SHEZ.Pitch = 1
  409. SHEZ:Play()
  410.  
  411. local mobs = Instance.new("Sound",Character.HumanoidRootPart)
  412. mobs.SoundId = "rbxassetid://1383509454"
  413. mobs.Looped = true
  414. mobs.Volume = 100
  415. mobs.Pitch = 1.27
  416.  
  417. chatfunc("now its time to die! :D")
  418. mouse=Player:GetMouse()
  419. --save shoulders
  420. RSH, LSH=nil, nil
  421. --welds
  422. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  423. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  424. LH=Torso["Left Hip"]
  425. RH=Torso["Right Hip"]
  426. TorsoColor=Torso.BrickColor
  427. function NoOutline(Part)
  428. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  429. end
  430. player=Player
  431. ch=Character
  432. RSH=ch.Torso["Right Shoulder"]
  433. LSH=ch.Torso["Left Shoulder"]
  434. --
  435. RSH.Parent=nil
  436. LSH.Parent=nil
  437. --
  438. RW.Name="Right Shoulder"
  439. RW.Part0=ch.Torso
  440. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  441. RW.C1=cf(0, 0.5, 0)
  442. RW.Part1=ch["Right Arm"]
  443. RW.Parent=ch.Torso
  444. --
  445. LW.Name="Left Shoulder"
  446. LW.Part0=ch.Torso
  447. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  448. LW.C1=cf(0, 0.5, 0)
  449. LW.Part1=ch["Left Arm"]
  450. LW.Parent=ch.Torso
  451.  
  452.     function swait(num)
  453.     if num==0 or num==nil then
  454.     game:service'RunService'.Heartbeat:wait(0)
  455.     else
  456.     for i=0,num do
  457.     game:service'RunService'.Heartbeat:wait(0)
  458.     end
  459.     end
  460.     end
  461.    
  462.     function nooutline(part)
  463.         part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  464.     end
  465.    
  466.     function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  467.         local fp=it("Part")
  468.         fp.formFactor=formfactor
  469.         fp.Parent=parent
  470.         fp.Reflectance=reflectance
  471.         fp.Transparency=transparency
  472.         fp.CanCollide=false
  473.         fp.Locked=true
  474.         fp.BrickColor=BrickColor.new(tostring(brickcolor))
  475.         fp.Name=name
  476.         fp.Size=size
  477.         fp.Position=Character.Torso.Position
  478.         nooutline(fp)
  479.         fp.Material=material
  480.         fp:BreakJoints()
  481.         return fp
  482.     end
  483.    
  484.     function ppart(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  485.         local fp = it("Part")
  486.         fp.formFactor = formfactor
  487.         fp.Parent = parent
  488.         fp.Reflectance = reflectance
  489.         fp.Transparency = transparency
  490.         fp.CanCollide = false
  491.         fp.Locked=true
  492.         fp.BrickColor = brickcolor
  493.         fp.Name = name
  494.         fp.Size = size
  495.         fp.Position = EffectPart.Position
  496.         NoOutline(fp)
  497.         fp.Material="Neon"
  498.         fp:BreakJoints()
  499.         return fp
  500.     end
  501.    
  502.     function wweld(parent,part0,part1,c0)
  503.         local weld=it("Weld")
  504.         weld.Parent=parent 
  505.         weld.Part0=part0
  506.         weld.Part1=part1
  507.         weld.C0=c0
  508.         return weld
  509.     end
  510.    
  511.     function mesh(Mesh,part,meshtype,meshid,offset,scale)
  512.         local mesh=it(Mesh)
  513.         mesh.Parent=part
  514.         if Mesh=="SpecialMesh" then
  515.             mesh.MeshType=meshtype
  516.             mesh.MeshId=meshid
  517.         end
  518.         mesh.Offset=offset
  519.         mesh.Scale=scale
  520.         return mesh
  521.     end
  522.    
  523.     function decal(part,face,texture,transparency,shiny,specular,name)
  524.         local d=it("Decal",part)
  525.         d.Shiny=shiny
  526.         d.Face=face
  527.         d.Specular=specular
  528.         d.Transparency=transparency
  529.         d.Texture=texture
  530.         d.Name=name
  531.         return d
  532.     end
  533.    
  534.     function weld(parent,part0,part1,c0,c1)
  535.         local weld=it("Weld")
  536.         weld.Parent=parent
  537.         weld.Part0=part0
  538.         weld.Part1=part1
  539.         weld.C0=c0
  540.         weld.C1=c1
  541.         return weld
  542.     end
  543.    
  544. Humanoid.Name = "Noctis"
  545. local SH = Instance.new("Sound")
  546. local list = {}
  547.    
  548. so = function(id,par,vol,pit)
  549. coroutine.resume(coroutine.create(function()
  550. local sou = SH:clone() sou.Parent = par or workspace
  551. sou.Volume=vol
  552. sou.Pitch=pit or 1
  553. sou.SoundId=id
  554. sou:play()
  555. game:GetService("Debris"):AddItem(sou,15)
  556. end))
  557. end
  558.  
  559. function clerp(a,b,t)
  560. local qa = {QuaternionFromCFrame(a)}
  561. local qb = {QuaternionFromCFrame(b)}
  562. local ax, ay, az = a.x, a.y, a.z
  563. local bx, by, bz = b.x, b.y, b.z
  564. local _t = 1-t
  565. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  566. end
  567.  
  568. function QuaternionFromCFrame(cf)
  569. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  570. local trace = m00 + m11 + m22
  571. if trace > 0 then
  572. local s = math.sqrt(1 + trace)
  573. local recip = 0.5/s
  574. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  575. else
  576. local i = 0
  577. if m11 > m00 then
  578. i = 1
  579. end
  580. if m22 > (i == 0 and m00 or m11) then
  581. i = 2
  582. end
  583. if i == 0 then
  584. local s = math.sqrt(m00-m11-m22+1)
  585. local recip = 0.5/s
  586. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  587. elseif i == 1 then
  588. local s = math.sqrt(m11-m22-m00+1)
  589. local recip = 0.5/s
  590. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  591. elseif i == 2 then
  592. local s = math.sqrt(m22-m00-m11+1)
  593. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  594. end
  595. end
  596. end
  597.  
  598. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  599. local xs, ys, zs = x + x, y + y, z + z
  600. local wx, wy, wz = w*xs, w*ys, w*zs
  601. local xx = x*xs
  602. local xy = x*ys
  603. local xz = x*zs
  604. local yy = y*ys
  605. local yz = y*zs
  606. local zz = z*zs
  607. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  608. end
  609.  
  610. function QuaternionSlerp(a, b, t)
  611. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  612. local startInterp, finishInterp;
  613. if cosTheta >= 0.0001 then
  614. if (1 - cosTheta) > 0.0001 then
  615. local theta = math.acos(cosTheta)
  616. local invSinTheta = 1/math.sin(theta)
  617. startInterp = math.sin((1-t)*theta)*invSinTheta
  618. finishInterp = math.sin(t*theta)*invSinTheta  
  619. else
  620. startInterp = 1-t
  621. finishInterp = t
  622. end
  623. else
  624. if (1+cosTheta) > 0.0001 then
  625. local theta = math.acos(-cosTheta)
  626. local invSinTheta = 1/math.sin(theta)
  627. startInterp = math.sin((t-1)*theta)*invSinTheta
  628. finishInterp = math.sin(t*theta)*invSinTheta
  629. else
  630. startInterp = t-1
  631. finishInterp = t
  632. end
  633. end
  634. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  635. end
  636.  
  637. function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  638. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  639. end
  640.  
  641. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  642.         if hit.Parent==nil then
  643.                 return
  644.         end
  645.         local h=hit.Parent:FindFirstChild("Humanoid")
  646.         for _,v in pairs(hit.Parent:children()) do
  647.         if v:IsA("Humanoid") then
  648.         h=v
  649.         end
  650.         end
  651.         if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  652.         h=hit.Parent.Parent:FindFirstChild("Humanoid")
  653.         end
  654.         if hit.Parent.className=="Hat" then
  655.         hit=hit.Parent.Parent:findFirstChild("Head")
  656.         end
  657.         if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  658.         if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  659.         --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  660.                         return
  661.                 end]]
  662. --                        hs(hit,1.2)
  663.                         local c=Instance.new("ObjectValue")
  664.                         c.Name="creator"
  665.                         c.Value=game:service("Players").LocalPlayer
  666.                         c.Parent=h
  667.                         game:GetService("Debris"):AddItem(c,.5)
  668.                 local Damage=math.random(minim,maxim)
  669. --                h:TakeDamage(Damage)
  670.                 local  blocked=false
  671.                 local  block=hit.Parent:findFirstChild("Block")
  672.                 if block~=nil then
  673.                 print(block.className)
  674.                 if block.className=="NumberValue" then
  675.                 if block.Value>0 then
  676.                 blocked=true
  677.                 if decreaseblock==nil then
  678.                 block.Value=block.Value-1
  679.                 end
  680.                 end
  681.                 end
  682.                 if block.className=="IntValue" then
  683.                 if block.Value>0 then
  684.                 blocked=true
  685.                 if decreaseblock~=nil then
  686.                 block.Value=block.Value-1
  687.                 end
  688.                 end
  689.                 end
  690.                 end
  691.                 if blocked==false then
  692. --                h:TakeDamage(Damage)
  693.                 h.Health=h.Health-Damage
  694.                 ShowDamage((Part.CFrame * CFrame.new(math.random(-5,5), math.random(-5,5), math.random(-5,5)+ (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  695.                 else
  696.                 h.Health=h.Health-(Damage/2)
  697.                 ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
  698.                 end
  699.                 if Type=="Knockdown" then
  700.                 local hum=hit.Parent.Humanoid
  701. hum.PlatformStand=true
  702. coroutine.resume(coroutine.create(function(HHumanoid)
  703. swait(1)
  704. HHumanoid.PlatformStand=false
  705. end),hum)
  706.                 local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  707. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  708. local bodvol=Instance.new("BodyVelocity")
  709. bodvol.velocity=angle*knockback
  710. bodvol.P=5000
  711. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  712. bodvol.Parent=hit
  713. local rl=Instance.new("BodyAngularVelocity")
  714. rl.P=3000
  715. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  716. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  717. rl.Parent=hit
  718. game:GetService("Debris"):AddItem(bodvol,.5)
  719. game:GetService("Debris"):AddItem(rl,.5)
  720.                 elseif Type=="Normal" then
  721.                 local vp=Instance.new("BodyVelocity")
  722.                 vp.P=500
  723.                 vp.maxForce=Vector3.new(math.huge,0,math.huge)
  724. --                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  725.                 if KnockbackType==1 then
  726.                 vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  727.                 elseif KnockbackType==2 then
  728.                 vp.velocity=Property.CFrame.lookVector*knockback
  729.                 end
  730.                 if knockback>0 then
  731.                         vp.Parent=hit.Parent.Torso
  732.                 end
  733.                 game:GetService("Debris"):AddItem(vp,.5)
  734.                 elseif Type=="Up" then
  735.                 local bodyVelocity=Instance.new("BodyVelocity")
  736.                 bodyVelocity.velocity=vt(0,60,0)
  737.                 bodyVelocity.P=5000
  738.                 bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  739.                 bodyVelocity.Parent=hit
  740.                 game:GetService("Debris"):AddItem(bodyVelocity,1)
  741.                 local rl=Instance.new("BodyAngularVelocity")
  742.                 rl.P=3000
  743.                 rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  744.                 rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  745.                 rl.Parent=hit
  746.                 game:GetService("Debris"):AddItem(rl,.5)
  747.                 elseif Type=="Snare" then
  748.                 local bp=Instance.new("BodyPosition")
  749.                 bp.P=2000
  750.                 bp.D=100
  751.                 bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  752.                 bp.position=hit.Parent.Torso.Position
  753.                 bp.Parent=hit.Parent.Torso
  754.                 game:GetService("Debris"):AddItem(bp,1)
  755.                 elseif Type=="Target" then
  756.                 local Targetting = false
  757.                 if Targetting==false then
  758.                 ZTarget=hit.Parent.Torso
  759.                 coroutine.resume(coroutine.create(function(Part)
  760.                 so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  761.                 swait(5)
  762.                 so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  763.                 end),ZTarget)
  764.                 local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  765.                 local  targetgui=Instance.new("BillboardGui")
  766.                 targetgui.Parent=ZTarget
  767.                 targetgui.Size=UDim2.new(10,100,10,100)
  768.                 local targ=Instance.new("ImageLabel")
  769.                 targ.Parent=targetgui
  770.                 targ.BackgroundTransparency=1
  771.                 targ.Image="rbxassetid://4834067"
  772.                 targ.Size=UDim2.new(1,0,1,0)
  773.                 cam.CameraType="Scriptable"
  774.                 cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  775.                 local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  776.                 workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  777.                 Targetting=true
  778.                 RocketTarget=ZTarget
  779.                 for i=1,Property do
  780.                 --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  781.                 if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  782.                 swait()
  783.                 end
  784.                 --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  785.                 cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  786.                 dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  787.                 cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  788.                 end
  789.                 Targetting=false
  790.                 RocketTarget=nil
  791.                 targetgui.Parent=nil
  792.                 cam.CameraType="Custom"
  793.                 end
  794.                 end
  795.                         c=Instance.new("ObjectValue")
  796.                         c.Name="creator"
  797.                         c.Value=Player
  798.                         c.Parent=h
  799.                         game:GetService("Debris"):AddItem(c,.5)
  800.         end
  801. end
  802.  
  803.  
  804. function ShowDamage(Pos, Text, Time, Color)
  805.     local Rate = (1 / 30)
  806.     local Pos = (Pos or Vector3.new(0, 0, 0))
  807.     local Text = (Text or "")
  808.     local Time = (Time or 2)
  809.     local Color = (Color or Color3.new(1, 0, 0))
  810.     local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  811.     EffectPart.Anchored = true
  812.     local BillboardGui = Instance.new("BillboardGui")
  813.     BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  814.     BillboardGui.Adornee = EffectPart
  815.     local TextLabel = Instance.new("TextLabel")
  816.     TextLabel.BackgroundTransparency = 1
  817.     TextLabel.Size = UDim2.new(1, 0, 1, 0)
  818.     TextLabel.Text = Text
  819.     TextLabel.TextColor3 = Color
  820.     TextLabel.TextScaled = true
  821.     TextLabel.Font = Enum.Font.ArialBold
  822.     TextLabel.Parent = BillboardGui
  823.     BillboardGui.Parent = EffectPart
  824.     game.Debris:AddItem(EffectPart, (Time + 0.1))
  825.     EffectPart.Parent = game:GetService("Workspace")
  826.     Delay(0, function()
  827.         local Frames = (Time / Rate)
  828.         for Frame = 1, Frames do
  829.             wait(Rate)
  830.             local Percent = (Frame / Frames)
  831.             EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  832.             TextLabel.TextTransparency = Percent
  833.         end
  834.         if EffectPart and EffectPart.Parent then
  835.             EffectPart:Destroy()
  836.         end
  837.     end)
  838. end
  839.  
  840. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","Handle",Vector3.new(0.200000003, 1.61857152, 0.200000003))
  841. handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.995889783, -0.101109691, 0.0468789339, -5.23798153e-005, 0.99999994, -0.000210702419, -6.36925748e-008, -0.000210702419, -0.99999994, -1, -5.23798008e-005, 7.47295417e-008))
  842. handleweld.Name = "MagicWeld"
  843. mesh("CylinderMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(0.857142806, 1, 0.857142746))
  844. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.200000003, 0.257142872, 0.911428571))
  845. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00982296467, -0.128642559, 5.57254982, -1.21753502e-007, -2.87620594e-010, 1, -1, -1.04306673e-006, -1.2175461e-007, 1.04306673e-006, -1, -2.87123214e-010))
  846. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
  847. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(0.200000003, 3.74285722, 0.571428657))
  848. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0100114346, 3.24283266, 2.64644623e-005, -2.98713599e-006, -1.63886575e-008, -1, -1.18017197e-005, -0.99999994, 1.64265153e-008, -0.99999994, 1.18017197e-005, 2.98713007e-006))
  849. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
  850. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.200000003, 3.74285722, 0.514285743))
  851. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00896048546, 3.24313331, -6.2584877e-006, -2.62832918e-006, -1.58840017e-008, -1, -1.16825104e-005, -0.99999994, 1.59122848e-008, -0.99999994, 1.16825104e-005, 2.62831986e-006))
  852. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
  853. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.200000003, 0.914285779, 0.254285723))
  854. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0080575943, -5.57459974, 0.127099097, -7.20826961e-007, -1.18548371e-009, 1, 6.25863322e-007, 1, 1.18891563e-009, -1, 6.25863322e-007, -7.20827984e-007))
  855. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
  856. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(0.200000003, 0.942857206, 0.28285715))
  857. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00858414173, -5.58866072, 0.142816901, -5.41048905e-007, -8.99582631e-010, 1, -5.96046448e-007, 0.99999994, 9.00953978e-010, -0.99999994, -5.96046448e-007, -5.41057148e-007))
  858. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
  859. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(0.200000003, 0.285714328, 0.940000057))
  860. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.011053443, -0.142930448, 5.58944941, 2.97432763e-007, 3.64387631e-010, 1, -1, 6.25863322e-007, 2.9743137e-007, -6.25863322e-007, -1, 3.63804986e-010))
  861. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
  862. Part=part(Enum.FormFactor.Brick,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(1, 1.20000005, 1))
  863. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.57627869e-007, -0.809324801, 1.96695328e-006, 6.20105922e-008, 2.27451835e-010, -1, 1.81795622e-006, 1, 2.27856845e-010, 1, -1.81795622e-006, 6.2011928e-008))
  864. mesh("SpecialMesh",Part,Enum.MeshType.Head,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 0.142857134, 0.285714298))
  865. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(0.483492821, 0.539954185, 0.539909601))
  866. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00226664543, 0.69951874, 1.00827909, 5.41296288e-007, 9.50464596e-010, -1, 0.707107663, -0.707105815, 3.8208583e-007, -0.707105815, -0.707107663, -3.83435292e-007))
  867. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714179))
  868. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.892679513, 0.539954185, 0.771299422))
  869. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19487548, -0.00217807293, 3.74913216e-005, 2.29479338e-006, 1, 7.06279479e-012, -6.20287395e-008, -7.34701189e-012, 1, 1, -2.29479338e-006, 6.20337914e-008))
  870. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.857145786, 1))
  871. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(0.892679513, 0.539954185, 0.771299422))
  872. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19487882, -0.00217807293, 4.00543213e-005, 2.0563748e-006, 1, 1.14326326e-011, -6.20178255e-008, -1.28039801e-011, 1, 1, -2.0563748e-006, 6.20228633e-008))
  873. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.10000002, 0.571431458, 1.10000002))
  874. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(0.483492851, 0.539954185, 0.539909601))
  875. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00595891476, -1.00750566, 1.00747085, -1.81721958e-007, -3.98678424e-010, 1, -0.707107067, 0.707106411, -1.28216811e-007, -0.707106411, -0.707106948, -1.28784094e-007))
  876. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714179))
  877. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(0.483492821, 0.539954185, 0.539909601))
  878. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00534570217, -1.00757694, -0.698815584, 2.4158129e-007, 4.89748686e-010, -1, -0.707107604, 0.707105875, -1.70486445e-007, 0.707105815, 0.707107544, 1.71177419e-007))
  879. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714269))
  880. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(0.493492872, 0.539954185, 0.539909601))
  881. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000260472298, 0.6988675, -0.698937058, 3.01447898e-007, 5.80818948e-010, -1, -0.707105994, -0.707107365, -2.13563524e-007, -0.707107365, 0.707106113, -2.12752497e-007))
  882. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714269))
  883. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(1.46267962, 0.200000003, 0.200000003))
  884. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00927072763, -0.0121991634, 1.19311547, 0.999999881, -2.08614802e-006, 1.9306286e-007, -1.93059051e-007, -1.09411957e-007, 1, -2.08616257e-006, -0.999999881, -1.09408283e-007))
  885. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  886. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(1.06267953, 0.200000003, 0.200000003))
  887. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.604586363, -0.0121991634, 1.02863288, 0.866026282, 0.499998033, 2.28958157e-007, -1.93872992e-007, -1.22099237e-007, 1, 0.499998033, -0.866026282, -8.79730777e-009))
  888. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  889. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(1.46267962, 0.200000003, 0.200000003))
  890. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.03790355, -0.0121991634, 0.588528812, 0.500001669, 0.866024196, 1.74744486e-007, -1.6279435e-007, -1.0777579e-007, 1, 0.866024196, -0.500001669, 8.71042545e-008))
  891. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  892. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(0.662679553, 0.200000003, 0.200000003))
  893. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.39311564, -0.0121991634, -0.00927072763, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
  894. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  895. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(1.46267951, 0.200000003, 0.200000003))
  896. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.02863288, -0.0121997595, -0.604586482, -0.499998093, 0.866026223, -6.44970513e-008, -1.45620604e-007, -9.60127267e-009, 1, 0.866026223, 0.499998093, 1.30918266e-007))
  897. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  898. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(1.06267953, 0.200000003, 0.200000003))
  899. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.588528991, -0.0121992826, -1.03790355, -0.866024137, 0.500001729, -9.11133142e-008, -1.16737233e-007, -1.99774206e-008, 1, 0.500001729, 0.866024137, 7.56750538e-008))
  900. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  901. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(0.372464359, 0.762464345, 0.762464285))
  902. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00338602066, -0.736121356, -0.540583551, 5.41296288e-007, 9.50464596e-010, -1, 0.707107663, -0.707105815, 3.8208583e-007, -0.707105815, -0.707107663, -3.83435292e-007))
  903. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366609, 0.128561974, 0.128542364))
  904. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(0.382464379, 0.762464345, 0.762464285))
  905. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00803625584, -0.737174749, 0.736498654, 3.01447898e-007, 5.80818948e-010, -1, -0.707105994, -0.707107365, -2.13563524e-007, -0.707107365, 0.707106113, -2.12752497e-007))
  906. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.913885474, 0.128561974, 0.128542408))
  907. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(0.40246433, 0.762464345, 0.762464285))
  908. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00594449043, 0.540397167, 0.737201214, 2.4158129e-007, 4.89748686e-010, -1, -0.707107604, 0.707105875, -1.70486445e-007, 0.707105815, 0.707107544, 1.71177419e-007))
  909. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366609, 0.128561974, 0.128542408))
  910. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(0.40246433, 0.762464345, 0.762464285))
  911. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00681877136, 0.540436149, -0.541088939, -1.81721958e-007, -3.98678424e-010, 1, -0.707107067, 0.707106411, -1.28216811e-007, -0.707106411, -0.707106948, -1.28784094e-007))
  912. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366669, 0.128561974, 0.128542364))
  913. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(1.26045096, 0.762464345, 0.762464285))
  914. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.910848916, -0.00147974491, 0.000465214252, 2.29479338e-006, 1, 7.06279479e-012, -6.20287395e-008, -7.34701189e-012, 1, 1, -2.29479338e-006, 6.20337914e-008))
  915. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.385687381, 0.642712057))
  916. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(1.26045096, 0.762464345, 0.762464285))
  917. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.910846829, -0.00147974491, 0.000467300415, 2.0563748e-006, 1, 1.14326326e-011, -6.20178255e-008, -1.28039801e-011, 1, 1, -2.0563748e-006, 6.20228633e-008))
  918. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.10000002, 0.257125348, 0.706983268))
  919. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  920. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.98755074e-005, -0.86527884, -0.00526940823, 0.99999994, -3.33786011e-006, -1.61662047e-006, 3.33786011e-006, 0.99999994, -1.75251103e-009, 1.61662604e-006, 1.74897963e-009, 1))
  921. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.857142806, 0.857145548, 0.857142746))
  922. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Black","Hitbox",Vector3.new(0.650000036, 4.19999981, 0.200000003))
  923. Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0107657909, -3.95914412, 0.00325751305, 0.999999821, -0.000211339415, 2.39198562e-006, 0.000211339124, 0.999997795, -6.21902582e-005, -2.38056168e-006, 6.20116552e-005, 0.999992907))
  924. EffectPart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Cyan","EffectPart",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  925. EffectPartweld=weld(m,handle,EffectPart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00693154335, 0.014090538, 6.03910685, -5.23798153e-005, -6.36925748e-008, -1, 0.99999994, -0.000210702419, -5.23798008e-005, -0.000210702419, -0.99999994, 7.47295417e-008))
  926. mesh("BlockMesh",EffectPart,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  927. EffectPart2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Black","EffectPart2",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  928. EffectPart2weld=weld(m,Character["Left Arm"],EffectPart2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.15575993, 0.00814216491, -0.0231294632, -5.23798153e-005, 0.999999821, -0.000210702419, -6.36925748e-008, -0.00021070239, -0.99999994, -1, -5.23797935e-005, 7.47295417e-008))
  929.  
  930. local ColorsArray = {ColorSequenceKeypoint.new(0, Color3.new(0/255,170/255,255/255)),ColorSequenceKeypoint.new(1, Color3.new(0/255,170/255,255/255))}
  931. local Atch1 = Instance.new("Attachment",Hitbox)Atch1.Position = Vector3.new(0,2,0)
  932. local Atch2 = Instance.new("Attachment",Hitbox)Atch2.Position = Vector3.new(0,-2.5,0)
  933. local Trail = Instance.new("Trail",Hitbox)Trail.Attachment0 = Atch1 Trail.Attachment1 = Atch2
  934. Trail.Texture = "rbxassetid://22636887" Trail.Lifetime = 0.05 Trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  935. Trail.Color = ColorSequence.new(ColorsArray) Trail.LightEmission = 1
  936.  
  937. DarkRiftF=function(par)
  938. while lol == true do
  939. wait()
  940. local PWN={}
  941. for _,v in pairs(game.Workspace:children()) do
  942. if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
  943. if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
  944. table.insert(PWN,v.Torso)
  945. end
  946. end
  947. end
  948. for _,t in pairs(PWN) do
  949. local targ=par.Position-t.Position
  950. local Mag=targ.magnitude
  951. if not t:IsDescendantOf(Character) and t~=nil and Mag<=50 then
  952. if Mag<=30 then
  953. t.Parent.Humanoid:TakeDamage(.5)
  954. local rl=Instance.new("BodyAngularVelocity")
  955. rl.P=3000
  956. rl.maxTorque=Vector3.new(500000,500000,500000)*5000
  957. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))/10
  958. rl.Parent=t
  959. game:GetService("Debris"):AddItem(rl,.1)
  960. end
  961. if Mag<=20 then
  962. t.Parent.Humanoid:TakeDamage(.1)
  963. else
  964. local vl=Instance.new("BodyVelocity")
  965. vl.P=3000
  966. vl.maxForce=Vector3.new(50000000000,50000000000,50000000000)
  967. vl.velocity=(t.Position-par.Position).unit*-(70/(Mag))
  968. vl.Parent=t
  969. game:GetService("Debris"):AddItem(vl,.1)
  970. end
  971. end
  972. end
  973. wait(.08)
  974. end
  975. end
  976.  
  977. function DerpMagic(part,x1,y1,z1,x2,y2,z2,color)
  978.     local msh1 = Instance.new("BlockMesh")
  979.     msh1.Scale = Vector3.new(0.5,0.5,0.5)
  980.     local S=Instance.new("Part")
  981.     S.Name="Effect"
  982.     S.Material="Neon"
  983.     S.formFactor=0
  984.     S.Size=Vector3.new(x1,y1,z1)
  985.     S.BrickColor=color
  986.     S.Reflectance = 0
  987.     S.TopSurface=0
  988.     S.BottomSurface=0
  989.     S.Transparency=0
  990.     S.Anchored=false
  991.     S.CanCollide=false
  992.     S.CFrame=part.CFrame
  993.     S.Parent=game.Workspace
  994.     msh1.Parent = S
  995.     local W=Instance.new("Weld")
  996.     W.Parent=S
  997.     W.Part0=S
  998.     W.Part1=part
  999.     W.C0=CFrame.new(x2,y2,z2) * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1000.     W.Parent=nil
  1001.     S.Anchored=true
  1002.     coroutine.resume(coroutine.create(function(Part,Weld) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) --[[Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))]] Part.Transparency=i*.1 wait() end Part.Parent=nil Weld.Parent=nil end),S,W)
  1003. end
  1004.  
  1005. local function BlackHole(parent,cframe)
  1006. local effectsmsh = Instance.new("SpecialMesh")
  1007. effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  1008. --effectsmsh.Scale = Vector3.new(1,1,2.5)
  1009. effectsmsh.Scale = Vector3.new(3,3,3)
  1010. local effectsg = Instance.new("Part")
  1011. effectsg.formFactor = 3
  1012. effectsg.CanCollide = false
  1013. effectsg.Name = "Effect"
  1014. effectsg.Locked = true
  1015. effectsg.Transparency = 1
  1016. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  1017. effectsg.Parent = parent
  1018. effectsg.BrickColor = BrickColor.new("Cyan")
  1019. effectsg.Material="Neon"
  1020. coroutine.resume(coroutine.create(function(Part,Mesh)
  1021.     local Mesh = Instance.new("SpecialMesh")
  1022.     Mesh.Scale = Vector3.new(0.5,0.5,0.5)
  1023.     Mesh.MeshType = "Sphere"
  1024. --  Mesh.TextureId="http://www.roblox.com/asset/?id=1529460"
  1025.     Part=Instance.new("Part")
  1026.     Part.Name="Effect"
  1027.     Part.formFactor=0
  1028.     Part.Size=Vector3.new(1,1,1)
  1029.     Part.BrickColor=BrickColor.new("Cyan")
  1030.     Part.Material="Neon"
  1031.     Part.Reflectance = 0
  1032.     Part.TopSurface=0
  1033.     Part.BottomSurface=0
  1034.     Part.Transparency=0
  1035.     Part.Anchored=true
  1036. NoOutline(Part)
  1037.     Part.CanCollide=false
  1038.     Part.CFrame=cframe
  1039.     Part.Parent=parent
  1040.     Mesh.Parent = Part
  1041.     lol=true
  1042. coroutine.resume(coroutine.create(function()
  1043.     DarkRiftF(Part)
  1044. end))
  1045.     for i=0,200 do
  1046.     wait()
  1047.     DerpMagic(Part,1,i/3,1,0,i/3,0,BrickColor.new("Cyan"))
  1048.     Mesh.Scale=Mesh.Scale-Vector3.new(0.2,0.2,0.2)
  1049.     Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1050.     end
  1051.     local fff=200
  1052.     for i=0,100 do
  1053.     wait()
  1054.     DerpMagic(Part,1,fff/3,1,0,fff/3,0,BrickColor.new("Cyan"))
  1055.     Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1056.     end
  1057.     for i=0,1,0.05 do
  1058.     wait()
  1059.     Part.Transparency=Part.Transparency+0.05
  1060.     Mesh.Scale=Mesh.Scale+Vector3.new(1.5,1.5,1.5)
  1061.     end
  1062.     lol=false
  1063.     Part.Parent=nil
  1064. end),nil,nil)
  1065. end
  1066.  
  1067. function makeShockwave(height,color,speed,range,pulse)
  1068. local range = range or 2000
  1069. local p = Instance.new("Part")
  1070. p.Anchored = true
  1071. p.CanCollide = false
  1072. p.FormFactor = "Custom"
  1073. p.BrickColor = color
  1074. p.Parent = workspace
  1075. local m = Instance.new("SpecialMesh",p)
  1076. m.MeshId = "rbxassetid://3270017"
  1077. local estimateSurvival = math.floor(range/speed) * 0.03
  1078. game:GetService("Debris"):AddItem(p,estimateSurvival)
  1079. Spawn(function ()
  1080. for i = 1,range,speed do
  1081. p.Transparency = 1-math.min(0.5,3-(i/500))
  1082. m.Scale = Vector3.new(i,i,i*height)
  1083. p.CFrame = CFrame.new(Torso.Position) * CFrame.Angles(math.rad(90),0,0)
  1084. wait()
  1085. end
  1086. p:Destroy()
  1087. end)
  1088. end
  1089.  
  1090. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1091. local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1092. prt.Anchored=true
  1093. prt.CFrame=cframe
  1094. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(.1,.1,.1))
  1095. game:GetService("Debris"):AddItem(prt,2)
  1096. coroutine.resume(coroutine.create(function(Part,Mesh)
  1097. for i=0,2,delay do
  1098. wait()
  1099. Part.CFrame=Part.CFrame
  1100. Part.Transparency=i
  1101. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1102. end
  1103. Part.Parent=nil
  1104. end),prt,msh)
  1105. end
  1106.  
  1107. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1108. local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1109. prt.Anchored=true
  1110. prt.CFrame=cframe
  1111. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1112. game:GetService("Debris"):AddItem(prt,5)
  1113. coroutine.resume(coroutine.create(function(Part,Mesh)
  1114. for i=0,1,delay do
  1115. wait()
  1116. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1117. Part.Transparency=i
  1118. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1119. end
  1120. Part.Parent=nil
  1121. end),prt,msh)
  1122. end
  1123.  
  1124. local function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent)
  1125. local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt())
  1126. if Type~=2 then
  1127. prt.Anchored=true
  1128. end
  1129. prt.CFrame=cframe
  1130. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  1131. game:GetService("Debris"):AddItem(prt,5)
  1132. coroutine.resume(coroutine.create(function(Part,Mesh,dur)
  1133. local wld=nil
  1134. if dur==2 then
  1135. wld=weld(Part,Part,parent,euler(0,0,0)*cf(0,0,0))
  1136. end
  1137. for i=0,1,delay do
  1138. swait()
  1139. if dur==1 then
  1140. Part.CFrame=Part.CFrame
  1141. elseif dur==2 then
  1142. wld.C0=cframe
  1143. end
  1144. Part.Transparency=i
  1145. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1146. end
  1147. Part.Parent=nil
  1148. end),prt,msh,Type)
  1149. end
  1150.  
  1151. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1152. local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1153. prt.Anchored=true
  1154. prt.CFrame=cframe
  1155. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1156. game:GetService("Debris"):AddItem(prt,5)
  1157. coroutine.resume(coroutine.create(function(Part,Mesh)
  1158. for i=0,1,delay do
  1159. swait()
  1160. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1161. Part.Transparency=i
  1162. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1163. end
  1164. Part.Parent=nil
  1165. end),prt,msh)
  1166. end
  1167.  
  1168. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1169. local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1170. prt.Anchored=true
  1171. prt.CFrame=cframe
  1172. local msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  1173. game:GetService("Debris"):AddItem(prt,5)
  1174. coroutine.resume(coroutine.create(function(Part,Mesh)
  1175. for i=0,1,delay do
  1176. wait()
  1177. Part.CFrame=Part.CFrame
  1178. Part.Transparency=i
  1179. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1180. end
  1181. Part.Parent=nil
  1182. end),prt,msh)
  1183. end
  1184.  
  1185. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1186. local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt())
  1187. prt.Anchored=true
  1188. prt.CFrame=cframe
  1189. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1190. game:GetService("Debris"):AddItem(prt,5)
  1191. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  1192. end
  1193.  
  1194. function Blast(parent)
  1195. MagicBlock(BrickColor.new("Black"),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01)
  1196. MagicWaveThing(BrickColor.new("Black"),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01)
  1197. end
  1198.  
  1199. function ChargeBall(parent,t)
  1200. local counter=0
  1201. local size=1
  1202. for i=0,t,1 do
  1203. swait()
  1204. counter=counter+1
  1205. if counter%10==0 then
  1206. if size==3 then
  1207. MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1208. elseif size==2 then
  1209. MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1210. end
  1211. end
  1212. if counter%5==0 then
  1213. if size==1 then
  1214. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1215. elseif size==2 then
  1216. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1217. elseif size==3 then
  1218. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1219. end
  1220. end
  1221. end
  1222. end
  1223.  
  1224. function ChargeBall2(parent,t)
  1225. local counter=0
  1226. local size=1
  1227. for i=0,t,1 do
  1228. swait()
  1229. counter=counter+1
  1230. if counter%10==0 then
  1231. if size==3 then
  1232. MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1233. elseif size==2 then
  1234. MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1235. end
  1236. end
  1237. if counter%5==0 then
  1238. if size==1 then
  1239. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1240. MagicWave(BrickColor.new("Cyan"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  1241. elseif size==2 then
  1242. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1243. MagicWave(BrickColor.new("Cyan"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  1244. elseif size==3 then
  1245. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1246. MagicWave(BrickColor.new("Cyan"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  1247. end
  1248. end
  1249. end
  1250. end
  1251.  
  1252. function MagniDamage(Part,dis,mind,maxd,force,knock)
  1253. for _,c in pairs(workspace:children()) do
  1254. local hum=c:findFirstChild("Humanoid")
  1255. if hum~=nil then
  1256. local head=c:findFirstChild("Torso")
  1257. if head~=nil then
  1258. local targ=head.Position-Part.Position
  1259. local mag=targ.magnitude
  1260. if mag<=dis and c.Name~=Character.Name then
  1261. Damagefunc(Part,hum.Parent.Torso,mind,maxd,force,knock,RootPart,.2,1)
  1262. end
  1263. end
  1264. end
  1265. end
  1266. end
  1267.  
  1268. function computeDirection(vec)
  1269. local lenSquared = vec.magnitude * vec.magnitude
  1270. local invSqrt = 1 / math.sqrt(lenSquared)
  1271. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  1272. end
  1273.  
  1274. function attackone()
  1275. attack = true
  1276. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  1277. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,5,9,math.random(5,5),"Normal",RootPart,.2,1) end)
  1278. local fx=Hitbox.Touched:connect(function(part)
  1279.     local human=part.Parent:findFirstChild("Humanoid")
  1280.     if human~=nil and bounce==false then
  1281.         bounce=true
  1282.         local rndm=math.random(1,#hitsounds)
  1283.         local r=rndm
  1284.         so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
  1285.     end
  1286. end)
  1287. for i = 0,1,0.25 do
  1288. swait()
  1289. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),1)
  1290. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(50)),1)
  1291. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(100)),1)
  1292. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),1)
  1293. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0)),1)
  1294. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  1295. end
  1296. so("http://www.roblox.com/asset/?id=712781677",handle,1,.9)
  1297. for i = 0,1,0.5 do
  1298. swait()
  1299. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1300. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1301. local h = 5
  1302. scfr = blcf
  1303. elseif not scfr then
  1304. scfr = blcf
  1305. end
  1306. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.5)
  1307. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-80)),0.5)
  1308. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.5)
  1309. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.5)
  1310. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0)),0.5)
  1311. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),0.5)
  1312. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.5)
  1313. end
  1314. attack = false
  1315. bounce=false
  1316. scfr=nil
  1317. fx:disconnect()
  1318. con:disconnect()
  1319. end
  1320.  
  1321. function attacktwo()
  1322. attack=true
  1323. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  1324. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,4,9,math.random(5,5),"Normal",RootPart,.2,1) end)
  1325. local fx=Hitbox.Touched:connect(function(part)
  1326.     local human=part.Parent:findFirstChild("Humanoid")
  1327.     if human~=nil and bounce==false then
  1328.         bounce=true
  1329.         local rndm=math.random(1,#hitsounds)
  1330.         local r=rndm
  1331.         so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
  1332.     end
  1333. end)
  1334. for i=0,1,.25 do
  1335. swait()
  1336. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.5)
  1337. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-90)),0.5)
  1338. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.5)
  1339. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.5)
  1340. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(40),math.rad(0)),0.4)
  1341. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-10)),0.5)
  1342. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.5)
  1343. end
  1344. so("http://www.roblox.com/asset/?id=712781677",handle,1,1)
  1345. for i = 0,1,0.5 do
  1346. swait()
  1347. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1348. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1349. local h = 5
  1350. scfr = blcf
  1351. elseif not scfr then
  1352. scfr = blcf
  1353. end
  1354. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.5)
  1355. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(90)),0.5)
  1356. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)),0.5)
  1357. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)),0.5)
  1358. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(0)),0.5)
  1359. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-40),math.rad(-10)),0.5)
  1360. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  1361. end
  1362. scfr=nil
  1363. attack=false
  1364. bounce=false
  1365. con:disconnect()
  1366. fx:disconnect()
  1367. end
  1368.  
  1369. function attackthree()
  1370. attack=true
  1371. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  1372. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,12,16,math.random(5,5),"Normal",RootPart,.2,1) end)
  1373. local fx=Hitbox.Touched:connect(function(part)
  1374.     local human=part.Parent:findFirstChild("Humanoid")
  1375.     if human~=nil and bounce==false then
  1376.         bounce=true
  1377.         local rndm=math.random(1,#hitsounds)
  1378.         local r=rndm
  1379.         so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
  1380.     end
  1381. end)
  1382. for i=0,1,.25 do
  1383. swait()
  1384. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.5)
  1385. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.5)
  1386. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.5)
  1387. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.5)
  1388. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.5)
  1389. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.5)
  1390. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  1391. end
  1392. so("http://www.roblox.com/asset/?id=712781677",handle,1,.9)
  1393. for i = 0,1,0.5 do
  1394. swait()
  1395. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1396. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1397. local h = 5
  1398. scfr = blcf
  1399. elseif not scfr then
  1400. scfr = blcf
  1401. end
  1402. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.5)
  1403. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.5)
  1404. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)),0.5)
  1405. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.5)
  1406. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.5)
  1407. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.5)
  1408. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.5)
  1409. end
  1410. attack=false
  1411. bounce=false
  1412. scfr=nil
  1413. con:disconnect()
  1414. fx:disconnect()
  1415. end
  1416.  
  1417. function attackfour()
  1418. attack = true
  1419. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  1420. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,4,9,math.random(20,30),"Normal",RootPart,.2,1) end)
  1421. local fx=Hitbox.Touched:connect(function(part)
  1422.     local human=part.Parent:findFirstChild("Humanoid")
  1423.     if human~=nil and bounce==false then
  1424.         bounce=true
  1425.         local rndm=math.random(1,#hitsounds)
  1426.         local r=rndm
  1427.         so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
  1428.     end
  1429. end)
  1430. for i = 0,1,0.25 do
  1431. swait()
  1432. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(-5),math.rad(-60)),.5)
  1433. Torso.Neck.C0=clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.5)
  1434. RW.C0=clerp(RW.C0,cf(1.5, 0.8, 0.2) * angles(math.rad(5), math.rad(-15), math.rad(112)), 0.5)
  1435. LW.C0=clerp(LW.C0,cf(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-20)), 0.5)
  1436. RH.C0=clerp(RH.C0,cf(1.1,-1,0)*angles(math.rad(-5),math.rad(120),math.rad(-8)),.5)
  1437. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(5),math.rad(-60),math.rad(0)),.5)
  1438. handleweld.C0=clerp(handleweld.C0,cf(0,-.2,.5)*angles(math.rad(50),math.rad(-15),math.rad(0)),.5)
  1439. end
  1440. so("http://www.roblox.com/asset/?id=712781677",Hitbox,1,1.1)
  1441. local v=it("BodyVelocity",Torso)
  1442. v.maxForce=Vector3.new(4e+005,4e+005,4e+005)*1
  1443. v.velocity=RootPart.CFrame.lookVector*50
  1444. for i = 0,1,0.5 do
  1445. swait()
  1446. local blcf = Hitbox.CFrame*cf(0,0,0)
  1447. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1448. local h = 5
  1449. scfr = blcf
  1450. elseif not scfr then
  1451. scfr = blcf
  1452. end
  1453. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(60)),.5)
  1454. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.5)
  1455. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(60), math.rad(100)), 0.5)
  1456. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-15)), 0.5)
  1457. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.5)
  1458. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.5)
  1459. handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(-100),math.rad(0),math.rad(0)),.5)
  1460. end
  1461. v.Parent=nil
  1462. scfr=nil
  1463. attack = false
  1464. bounce=false
  1465. con:disconnect()
  1466. fx:disconnect()
  1467. end
  1468.  
  1469. function Shockwave1(CFramez, Rangez)
  1470. local Shock = Instance.new("Part",game.Workspace)Shock.Transparency = 0.75 Shock.Size = Vector3.new(0.2,0.2,0.2) Shock.Anchored = true
  1471. Shock.CanCollide = false Shock.BrickColor = BrickColor.new("Medium stone grey") local SM = Instance.new("SpecialMesh",Shock)
  1472. SM.MeshId = "rbxassetid://20329976" Shock.CFrame = CFramez SM.Scale = Vector3.new(0,0,0)
  1473. Spawn(function ()
  1474. for i = 1,3 do
  1475. SM.Scale = SM.Scale + Vector3.new(2+Rangez/2,0.15+Rangez/12,2+Rangez/2)
  1476. Shock.CFrame = Shock.CFrame* CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(-80/Rangez),0)
  1477. wait()
  1478. end
  1479. for i = 1,math.huge do
  1480. if Shock.Transparency >= 1 then break end
  1481. Shock.Transparency = Shock.Transparency + 0.025 Shock.CFrame = Shock.CFrame* CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(-150/Rangez),0)
  1482. SM.Scale = SM.Scale + Vector3.new(0.5,0.05,0.5)
  1483. wait()
  1484. end
  1485. Shock:remove()
  1486. end)
  1487. end
  1488.  
  1489.  
  1490. function PortalStorm()
  1491. attack=true
  1492. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  1493. so("http://www.roblox.com/asset/?id=562500427",handle,1,.9)
  1494. MagniDamage(Character.HumanoidRootPart,20,150,235,0,"Normal",Character.HumanoidRootPart)
  1495. local BV = Instance.new("BodyVelocity",Character.HumanoidRootPart)BV.Velocity = Vector3.new(0,1,0)game.Debris:AddItem(BV,0.1)
  1496. BV.maxForce = Vector3.new(0,math.huge,0)
  1497. for i2 = 1,10 do
  1498. Shockwave1(Character.HumanoidRootPart.CFrame*CFrame.new(0,-2.5,0)*CFrame.Angles(0,math.rad(-5),0), i2)
  1499. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-(i2*100))),1)
  1500. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(125)),1)
  1501. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(100)),1)
  1502. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),1)
  1503. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0)),1)
  1504. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  1505. swait()
  1506. end
  1507. attack = false
  1508. bounce=false
  1509. scfr=nil
  1510. attack = false
  1511. end
  1512.  
  1513. function Spin()
  1514. attack=true
  1515. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  1516. so("http://www.roblox.com/asset/?id=562500427",handle,1,.9)
  1517. local BV = Instance.new("BodyVelocity",Character.HumanoidRootPart)BV.Velocity = Vector3.new(0,50,0)game.Debris:AddItem(BV,0.25)
  1518. BV.maxForce = Vector3.new(0,math.huge,0)
  1519. for i2 = 1,25 do
  1520. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(math.random(-100,100)/10),math.rad(math.random(-100,100)/10),math.rad(-(i2*50))),1)
  1521. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(125)),1)
  1522. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(100)),1)
  1523. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),1)
  1524. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0)),1)
  1525. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  1526. MagniDamage(Character.HumanoidRootPart,10,8,16,0,"Normal",Character.HumanoidRootPart)
  1527. swait()
  1528. end
  1529. attack = false
  1530. bounce=false
  1531. scfr=nil
  1532. attack = false
  1533. end
  1534.  
  1535. function ProjectileStrike()
  1536. attack=true
  1537. for i=0,1,.25 do
  1538. swait()
  1539. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.5)
  1540. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.5)
  1541. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.5)
  1542. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.5)
  1543. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.5)
  1544. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.5)
  1545. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  1546. end
  1547. Wave=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Black","Wave",Vector3.new(0.650000036, 8, 0.200000003)) Wave.Parent = game.Workspace
  1548. local Atch3 = Instance.new("Attachment",Wave)Atch3.Position = Vector3.new(0,4,0)
  1549. local Atch4 = Instance.new("Attachment",Wave)Atch4.Position = Vector3.new(0,-4,0)
  1550. local Trail2 = Instance.new("Trail",Wave)Trail2.Attachment0 = Atch3 Trail2.Attachment1 = Atch4
  1551. Trail2.Texture = "rbxassetid://22636887" Trail2.Lifetime = 0.05 Trail2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  1552. Trail2.Color = ColorSequence.new(ColorsArray) Trail2.LightEmission = 1
  1553. Wave.CFrame = Character.HumanoidRootPart.CFrame*CFrame.new(0,0,-1)*CFrame.Angles(0,0,math.rad(math.random(-20,20)))
  1554. local BV = Instance.new("BodyVelocity",Wave)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.velocity = Character.HumanoidRootPart.CFrame.lookVector*250
  1555. so("http://www.roblox.com/asset/?id=506383970",handle,1,.9)
  1556. local con=Wave.Touched:connect(function(hit) Damagefunc(Wave,hit,24,46,0,"Normal",RootPart,.2,1) end)
  1557. for i = 0,1,0.1 do
  1558. swait()
  1559. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.5)
  1560. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.5)
  1561. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(math.random(-20,20)), math.rad(0), math.rad(-10)),0.5)
  1562. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.5)
  1563. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.5)
  1564. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.5)
  1565. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.5)
  1566. end
  1567. attack=false
  1568. bounce=false
  1569. scfr=nil
  1570. con:disconnect()
  1571. end
  1572.  
  1573. function WorldBreaker()
  1574. attack=true
  1575. for i=0,1,.25 do
  1576. swait()
  1577. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.5)
  1578. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.5)
  1579. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.5)
  1580. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.5)
  1581. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.5)
  1582. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.5)
  1583. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  1584. end
  1585. Wave=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Black","Wave",Vector3.new(6, 100, 20)) Wave.Parent = game.Workspace
  1586. local Atch3 = Instance.new("Attachment",Wave)Atch3.Position = Vector3.new(0,50,-10)
  1587. local Atch4 = Instance.new("Attachment",Wave)Atch4.Position = Vector3.new(0,-50,-10)
  1588. local Trail2 = Instance.new("Trail",Wave)Trail2.Attachment0 = Atch3 Trail2.Attachment1 = Atch4 Trail2.MinLength = 4
  1589. Trail2.Texture = "rbxassetid://22636887" Trail2.Lifetime = 5 Trail2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  1590. Trail2.Color = ColorSequence.new(ColorsArray) Trail2.LightEmission = 1
  1591. local Soond = SH:clone()Soond.SoundId = "rbxassetid://666736107" Soond.Volume = 3 Soond.Looped = true Soond.Parent = Wave Soond:Play()
  1592. Wave.CFrame = Character.HumanoidRootPart.CFrame*CFrame.Angles(0,0,math.rad(-90))*CFrame.new(0,0,-10)
  1593. game.Debris:AddItem(Wave,5)
  1594. local BV = Instance.new("BodyVelocity",Wave)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.velocity = Character.HumanoidRootPart.CFrame.lookVector*25
  1595. Wave.Touched:connect(function(hit)
  1596. if hit.Anchored == false and hit.Parent ~= Character and hit.Parent.Parent ~= Character then
  1597. hit:remove()
  1598. end
  1599. end)
  1600. so("http://www.roblox.com/asset/?id=517249876",handle,1,.9)
  1601. for i = 0,1,0.1 do
  1602. swait()
  1603. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.5)
  1604. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.5)
  1605. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(math.random(-20,20)), math.rad(0), math.rad(-10)),0.5)
  1606. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.5)
  1607. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.5)
  1608. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.5)
  1609. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.5)
  1610. end
  1611. attack=false
  1612. bounce=false
  1613. scfr=nil
  1614. end
  1615.  
  1616. function SuperProjectile()
  1617. attack=true
  1618. for i=0,1,.25 do
  1619. swait()
  1620. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.5)
  1621. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.5)
  1622. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.5)
  1623. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.5)
  1624. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.5)
  1625. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.5)
  1626. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  1627. end
  1628. for i2 = 1,3 do
  1629. for i = 1,12 do
  1630. Wave=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Black","Wave",Vector3.new(0.650000036, 10, 10*i2)) Wave.Parent = game.Workspace
  1631. game.Debris:AddItem(Wave,10)
  1632. local Atch3 = Instance.new("Attachment",Wave)Atch3.Position = Vector3.new(0,10,0)
  1633. local Atch4 = Instance.new("Attachment",Wave)Atch4.Position = Vector3.new(0,-10,0)
  1634. local Trail2 = Instance.new("Trail",Wave)Trail2.Attachment0 = Atch3 Trail2.Attachment1 = Atch4 Trail2.MinLength = 4
  1635. Trail2.Texture = "rbxassetid://22636887" Trail2.Lifetime = 0.5 Trail2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  1636. Trail2.Color = ColorSequence.new(ColorsArray) Trail2.LightEmission = 1
  1637. local Soond = SH:clone()Soond.SoundId = "rbxassetid://666736107" Soond.Volume = 0.05 Soond.Looped = true Soond.Parent = Wave Soond:Play()
  1638. Wave.CFrame = Character.HumanoidRootPart.CFrame*CFrame.Angles(0,0,math.rad(30*i))
  1639. Wave.CFrame = Wave.CFrame*CFrame.new(-5*i2,0,4*i2)
  1640. local BV = Instance.new("BodyVelocity",Wave)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.velocity = Character.HumanoidRootPart.CFrame.lookVector*300
  1641. Wave.Touched:connect(function(hit)
  1642. if hit.Anchored == false and hit.Parent ~= Character and hit.Parent.Parent ~= Character then
  1643. hit:remove()
  1644. end
  1645. end)
  1646. end
  1647. end
  1648. so("http://www.roblox.com/asset/?id=517249876",handle,1,.9)
  1649. for i = 0,1,0.1 do
  1650. swait()
  1651. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.5)
  1652. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.5)
  1653. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(math.random(-20,20)), math.rad(0), math.rad(-10)),0.5)
  1654. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.5)
  1655. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.5)
  1656. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.5)
  1657. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.5)
  1658. end
  1659. attack=false
  1660. bounce=false
  1661. scfr=nil
  1662. end
  1663.  
  1664.  
  1665. function ShockSpin(Partz,SM)
  1666. Spawn(function()
  1667. for i = 1,math.huge do
  1668. if Partz.Transparency >= 1 then break end
  1669. Partz.Transparency = Partz.Transparency + 0.025 Partz.CFrame = Partz.CFrame* CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(-50),0)
  1670. SM.Scale = SM.Scale + Vector3.new(1,0.25,1)
  1671. wait()
  1672. end
  1673. Partz:remove()
  1674. end)
  1675. end
  1676.  
  1677. function Shockwave2(Partz)
  1678. local W = 0
  1679. Spawn(function()
  1680. for i = 1,math.huge do
  1681. W = W + 1
  1682. local Shock = Instance.new("Part",game.Workspace)Shock.Transparency = 0.75 Shock.Size = Vector3.new(0.2,0.2,0.2) Shock.Anchored = true
  1683. Shock.CanCollide = false Shock.BrickColor = BrickColor.new("Medium stone grey") local SM = Instance.new("SpecialMesh",Shock)
  1684. SM.MeshId = "rbxassetid://20329976" Shock.CFrame = Partz.CFrame*CFrame.Angles(math.rad(90),math.rad(W*10),0) SM.Scale = Vector3.new(0,0,0)
  1685. ShockSpin(Shock,SM)
  1686. wait()
  1687. end
  1688. end)
  1689. end
  1690.  
  1691. function SuperProjectile2()
  1692. attack=true
  1693. for i=0,1,.25 do
  1694. swait()
  1695. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.5)
  1696. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.5)
  1697. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.5)
  1698. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.5)
  1699. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.5)
  1700. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.5)
  1701. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  1702. end
  1703. local Wave2 = Instance.new("Part",game.Workspace)Wave2.Size = Vector3.new(20,20,20)Wave2.CanCollide = false Wave2.Anchored = false Wave2.Transparency = 1
  1704. local Soond = SH:clone()Soond.SoundId = "rbxassetid://666736107" Soond.Volume = 0.05 Soond.Looped = true Soond.Parent = Wave2 Soond:Play() Wave2.CFrame = Character.HumanoidRootPart.CFrame
  1705. local BV = Instance.new("BodyVelocity",Wave2)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.velocity = Character.HumanoidRootPart.CFrame.lookVector*150
  1706. Wave2.Touched:connect(function(hit) Damagefunc(Wave2,hit,24,46,0,"Normal",RootPart,.2,1) end)
  1707. Shockwave2(Wave2) game.Debris:addItem(Wave2,5)
  1708. so("http://www.roblox.com/asset/?id=517249876",handle,1,.9)
  1709. for i = 0,1,0.1 do
  1710. swait()
  1711. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.5)
  1712. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.5)
  1713. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(math.random(-20,20)), math.rad(0), math.rad(-10)),0.5)
  1714. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.5)
  1715. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.5)
  1716. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.5)
  1717. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.5)
  1718. end
  1719. attack=false
  1720. bounce=false
  1721. scfr=nil
  1722. end
  1723.  
  1724. function Warp()
  1725. for i=0,1,.25 do
  1726. swait()
  1727. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.5)
  1728. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.5)
  1729. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.5)
  1730. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.5)
  1731. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.5)
  1732. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.5)
  1733. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  1734. end
  1735. local WarpS = m:clone() WarpS:FindFirstChild("MagicWeld"):remove() WarpS.Name = "WarpSword"
  1736. WarpS.Parent = Character local Partzs = Instance.new("Part",WarpS)Partzs.Size = Vector3.new(0.2,0.2,0.2)Partzs.CanCollide = false Partzs.Anchored = false Partzs.Transparency = 1
  1737. local WeldS = Instance.new("Weld",WarpS.Hitbox)WeldS.Part0 = WarpS.Hitbox WeldS.Part1 = Partzs
  1738. Partzs.CFrame = CFrame.new(Character.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,0)).p,mouse.hit.p)
  1739. local BV = Instance.new("BodyVelocity",Partzs)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.velocity = Partzs.CFrame.lookVector*750
  1740. Partzs.CFrame = Partzs.CFrame*CFrame.Angles(math.rad(90),math.rad(90),0)
  1741. local Soond = SH:clone()Soond.SoundId = "rbxassetid://181004943" Soond.Volume = 10 Soond.Parent = Partzs Soond.PlaybackSpeed = 3 Soond:Play()
  1742. local SE = Instance.new("PitchShiftSoundEffect",Soond)SE.Octave = 0.5
  1743. Trail.Enabled = false
  1744. for i, v in pairs(m:children()) do
  1745. if v.ClassName == "Part" then
  1746. if v.Transparency ~= 1 then
  1747. v.Transparency = 0.99
  1748. end
  1749. end
  1750. end
  1751. for i = 0,1,0.1 do
  1752. swait()
  1753. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.5)
  1754. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.5)
  1755. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(math.random(-20,20)), math.rad(0), math.rad(-10)),0.5)
  1756. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.5)
  1757. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.5)
  1758. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.5)
  1759. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.5)
  1760. end
  1761. wait(0.05)
  1762. local Soond2 = SH:clone()Soond2.SoundId = "rbxassetid://181004957" Soond2.Volume = 5 Soond2.Parent = Character.HumanoidRootPart Soond2:Play()
  1763. Character.HumanoidRootPart.CFrame = Partzs.CFrame
  1764. Humanoid.Jump = true
  1765. WarpS:remove()
  1766. Trail.Enabled = true
  1767. for i, v in pairs(m:children()) do
  1768. if v.ClassName == "Part" then
  1769. if v.Transparency ~= 1 then
  1770. v.Transparency = 0
  1771. end
  1772. end
  1773. end
  1774. end
  1775.  
  1776. function NukeShockwaves(Size, CFramez)
  1777. local Shock = Instance.new("Part",game.Workspace)Shock.Transparency = 0.5 Shock.Size = Vector3.new(0.2,0.2,0.2) Shock.Anchored = true
  1778. Shock.CanCollide = false Shock.BrickColor = BrickColor.new("Medium stone grey") local SM = Instance.new("SpecialMesh",Shock)
  1779. SM.MeshId = "rbxassetid://20329976" SM.Scale = Vector3.new(Size,5,Size) Shock.CFrame = CFramez*CFrame.new(0,1,0)*CFrame.Angles(0,math.rad(math.random(-360,360)),0)
  1780. Spawn(function()
  1781. for i = 1,math.huge do
  1782. if Shock.Transparency >= 1 then break end
  1783. Shock.Transparency = Shock.Transparency + 0.025
  1784. wait()
  1785. end
  1786. end)
  1787. end
  1788.  
  1789. function NukeBlade()
  1790. for i=0,1,.25 do
  1791. swait()
  1792. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.5)
  1793. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.5)
  1794. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.5)
  1795. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.5)
  1796. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.5)
  1797. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.5)
  1798. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5)
  1799. end
  1800. local WarpS = m:clone() WarpS:FindFirstChild("MagicWeld"):remove() WarpS.Name = "WarpSword"
  1801. WarpS.Parent = Character local Partzs = Instance.new("Part",WarpS)Partzs.Size = Vector3.new(0.2,0.2,0.2)Partzs.CanCollide = false Partzs.Anchored = false Partzs.Transparency = 1
  1802. local WeldS = Instance.new("Weld",WarpS.Hitbox)WeldS.Part0 = WarpS.Hitbox WeldS.Part1 = Partzs
  1803. Partzs.CFrame = CFrame.new(Character.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,0)).p,mouse.hit.p)
  1804. local BV = Instance.new("BodyVelocity",Partzs)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.velocity = Partzs.CFrame.lookVector*750
  1805. Partzs.CFrame = Partzs.CFrame*CFrame.Angles(math.rad(90),math.rad(90),0)
  1806. local Soond = SH:clone()Soond.SoundId = "rbxassetid://181004943" Soond.Volume = 10 Soond.Parent = Partzs Soond.PlaybackSpeed = 2 Soond:Play()
  1807. local SE = Instance.new("PitchShiftSoundEffect",Soond)SE.Octave = 0.5
  1808. Trail.Enabled = false
  1809. for i, v in pairs(m:children()) do
  1810. if v.ClassName == "Part" then
  1811. if v.Transparency ~= 1 then
  1812. v.Transparency = 0.99
  1813. end
  1814. end
  1815. end
  1816. wait(0.02)
  1817. local Hit = false
  1818. Partzs.Touched:connect(function(Hit)
  1819. if Hit == true then return end
  1820. Hit = true
  1821. Partzs.Anchored = true
  1822. local Shock = Instance.new("Part",game.Workspace)Shock.Transparency = 0 Shock.Size = Vector3.new(1,1,1) Shock.Anchored = true
  1823. Shock.CanCollide = false Shock.BrickColor = BrickColor.new("Cyan") Shock.Material = "Neon" local SM = Instance.new("SpecialMesh",Shock)
  1824. Shock.CFrame = CFrame.new(Partzs.Position) SM.MeshType = "Sphere"
  1825. local Pos = Shock.Position
  1826. for i = 1,3 do
  1827. local Sound = SH:clone()Sound.SoundId = "rbxassetid://258057783" Sound.Volume = 10 Sound.Parent = Shock Sound.PlaybackSpeed = 0.4 Sound:Play()
  1828. end
  1829. for i = 1,200 do
  1830. SM.Scale = SM.Scale + Vector3.new(i*0.025,i*0.025,i*0.025)
  1831. NukeShockwaves(i*1.5,CFrame.new(Shock.Position))
  1832. MagniDamage(Shock,i*1,10,30,0,"Normal",Character.HumanoidRootPart)
  1833. wait()
  1834. end
  1835. for i = 1,30 do
  1836. Shock.Transparency = Shock.Transparency + 1/30
  1837. SM.Scale = SM.Scale + Vector3.new(i*0.0,i*0.025,i*0.025)
  1838. wait()
  1839. end
  1840. end)
  1841. game.Debris:AddItem(WarpS,10)
  1842. for i = 0,1,0.1 do
  1843. swait()
  1844. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.5)
  1845. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.5)
  1846. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(math.random(-20,20)), math.rad(0), math.rad(-10)),0.5)
  1847. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.5)
  1848. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.5)
  1849. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.5)
  1850. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.5)
  1851. end
  1852. wait(0.05)
  1853. Trail.Enabled = true
  1854. for i, v in pairs(m:children()) do
  1855. if v.ClassName == "Part" then
  1856. if v.Transparency ~= 1 then
  1857. v.Transparency = 0
  1858. end
  1859. end
  1860. end
  1861. end
  1862.  
  1863. attacktype=1
  1864. mouse.Button1Down:connect(function()
  1865. if attacktype==1 and attack==false then
  1866. attacktype=2
  1867. attackone()
  1868. elseif attacktype==2 and attack==false then
  1869. attacktype=3
  1870. attacktwo()
  1871. elseif attacktype==3 and attack==false then
  1872. attacktype=4
  1873. attackthree()
  1874. elseif attacktype==4 and attack==false then
  1875. attacktype=1
  1876. attackfour()
  1877. end
  1878. end)
  1879.  
  1880. mouse.KeyDown:connect(function(k)
  1881. k=k:lower()
  1882. if attack == false and k == 'e' then
  1883. Spin()
  1884. end
  1885. if attack == false and k == 'q' then
  1886. ProjectileStrike()
  1887. end
  1888. if attack == false and k == 'z' then
  1889. SuperProjectile()
  1890. end
  1891. if attack == false and k == 'x' then
  1892. SuperProjectile2()
  1893. end
  1894. if attack == false and k == 'c' then
  1895. NukeBlade()
  1896. end
  1897. if attack == false and k == 'v' then
  1898. Warp()
  1899. end
  1900. if attack == false and k == 'f'then
  1901. WorldBreaker()
  1902. end
  1903. if attack == false and k == 'r'then
  1904. PortalStorm()
  1905. end
  1906. if attack == false and k == 'o'then
  1907. print("enabling rage mode")
  1908. SHEZ:Stop()
  1909. mobs:Play()
  1910. wait(.01)
  1911. chatfunc("this is why you shouldnt mess with me >: )")
  1912. wait(1)
  1913. rage = true
  1914.         canrage = false
  1915.         local truenumber = 0
  1916.         for i = 0, 1 do
  1917.             reye.Mesh.Scale = reye.Mesh.Scale:Lerp(Vector3.new(0.7,0,0.7),0.6)
  1918.             leye.Mesh.Scale = reye.Mesh.Scale
  1919.             wait()
  1920.         end
  1921.         reye.BrickColor = BrickColor.new("Deep orange")
  1922.         leye.BrickColor = BrickColor.new("Deep orange")
  1923.         wait(0.1)
  1924.         for i = 0, 1 do
  1925.             reye.Mesh.Scale = reye.Mesh.Scale:Lerp(Vector3.new(0.7,1.1,0.7),0.6)
  1926.             leye.Mesh.Scale = reye.Mesh.Scale
  1927.             wait()
  1928.         end
  1929.         wait(0.3)
  1930.         effect.Enabled = true
  1931.         canrage = true
  1932.         repeat wait()
  1933.             truenumber = truenumber+0.05
  1934.             local num = math.sin(truenumber)*25
  1935.         until not rage
  1936. print("done")
  1937. end
  1938.  
  1939. if attack == false and k == 'p'then
  1940. print("disabling rage mode")
  1941.         canrage = false
  1942.         for i = 0, 1 do
  1943.             reye.Mesh.Scale = reye.Mesh.Scale:Lerp(Vector3.new(0.7,0,0.7),0.6)
  1944.             leye.Mesh.Scale = reye.Mesh.Scale
  1945.             wait()
  1946.         end
  1947.         rage = false
  1948.         reye.BrickColor = BrickColor.new("Institutional white")
  1949.         leye.BrickColor = BrickColor.new("Institutional white")
  1950.         wait(0.1)
  1951. mobs:Stop()
  1952. SHEZ:Play()
  1953.         for i = 0, 1 do
  1954.             reye.Mesh.Scale = reye.Mesh.Scale:Lerp(Vector3.new(0.7,1.1,0.7),0.6)
  1955.             leye.Mesh.Scale = reye.Mesh.Scale
  1956.             wait()
  1957.         end
  1958.         effect.Enabled = false
  1959.         canrage = true
  1960. print("done")
  1961. end
  1962. end)
  1963.  
  1964.  
  1965. local sine = 0
  1966. local change = 1
  1967. local val = 0
  1968.  
  1969. while true do
  1970. swait()
  1971. for i, v in pairs(m:children()) do
  1972. if v.ClassName == "Part" then
  1973. v.Anchored = false
  1974. v.CanCollide = false
  1975. end
  1976. end
  1977. for i,v in pairs (Character:children()) do
  1978. if v.ClassName == "Part" then
  1979. v.Anchored = false
  1980. end
  1981. if v.ClassName == "Accessory" then
  1982. for i,v2 in pairs (v:children()) do
  1983. if v2.ClassName == "Part" then
  1984. v2.Anchored = false
  1985. end
  1986. end
  1987. end
  1988. end
  1989. sine = sine + change
  1990. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1991. local velderp=RootPart.Velocity.y
  1992. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1993. if equipped==true or equipped==false then
  1994. if attack==false then
  1995. idle=idle+1
  1996. else
  1997. idle=0
  1998. end
  1999. if idle>=500 then
  2000. if attack==false then
  2001. end
  2002. end
  2003. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2004. Anim="Jump"
  2005. if attack==false then
  2006. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2007. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  2008. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(15)), 0.3)
  2009. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-15)), 0.3)
  2010. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-30),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2011. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-30),math.rad(-90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2012. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2013. end
  2014. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2015. Anim="Fall"
  2016. if attack==false then
  2017. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  2018. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(13),math.rad(0),math.rad(0)),.3)
  2019. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(20)), 0.3)
  2020. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  2021. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2022. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2023. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-15),math.rad(0),math.rad(0)),.3)
  2024. end
  2025. elseif torvel<1 and hitfloor~=nil then
  2026. Anim="Idle"
  2027. if attack==false then
  2028. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-2),math.rad(0),math.rad(15)),.3)
  2029. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(2),math.rad(0),math.rad(-15)),.3)
  2030. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(0)), 0.3)
  2031. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2032. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-2),math.rad(85),math.rad(0)),.3)
  2033. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-4),math.rad(-95),math.rad(0)),.3)
  2034. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-10),math.rad(-2),math.rad(0)),.2)
  2035. end
  2036. elseif torvel>2 and hitfloor~=nil then
  2037. Anim="Walk"
  2038. if attack==false then
  2039. change=3
  2040. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(-20)),.3)
  2041. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(-5),math.rad(25)),.3)
  2042. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(-25), math.rad(5)), 0.3)
  2043. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30)*math.cos(sine/10), math.rad(5), math.rad(0)), 0.3)
  2044. RH.C0=clerp(RH.C0,cf(1.1,-.9,0)*angles(math.rad(0),math.rad(110),math.rad(0)),.3)
  2045. LH.C0=clerp(LH.C0,cf(-1.1,-.9,0)*angles(math.rad(0),math.rad(-70),math.rad(0)),.3)
  2046. handleweld.C0=clerp(handleweld.C0,cf(0,0,.3)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  2047. end
  2048. end
  2049. end
  2050. if #Effects>0 then
  2051. for e=1,#Effects do
  2052. if Effects[e]~=nil then
  2053. local Thing=Effects[e]
  2054. if Thing~=nil then
  2055. local Part=Thing[1]
  2056. local Mode=Thing[2]
  2057. local Delay=Thing[3]
  2058. local IncX=Thing[4]
  2059. local IncY=Thing[5]
  2060. local IncZ=Thing[6]
  2061. if Thing[1].Transparency<=1 then
  2062. if Thing[2]=="Block1" then
  2063. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2064. Mesh=Thing[1].Mesh
  2065. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2066. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2067. elseif Thing[2]=="Cylinder" then
  2068. Mesh=Thing[1].Mesh
  2069. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2070. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2071. elseif Thing[2]=="Blood" then
  2072. Mesh=Thing[7]
  2073. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  2074. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2075. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2076. elseif Thing[2]=="Elec" then
  2077. Mesh=Thing[1].Mesh
  2078. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  2079. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2080. elseif Thing[2]=="Disappear" then
  2081. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2082. end
  2083. else
  2084. Part.Parent=nil
  2085. table.remove(Effects,e)
  2086. end
  2087. end
  2088. end
  2089. end
  2090. end
  2091. end
  2092.  
  2093. --[[game:GetService("RunService").RenderStepped:connect(function()
  2094. for i,v in pairs (ShockModel:children()) do
  2095. if v.Transparency == 1 then break end
  2096. v.Transparency = v.Transparency + 0.05 v.CFrame = CFrame.new(0,math.rad(2),0)
  2097. local SM = v:findFirstChild("Mesh")
  2098. SM.Scale = SM.Scale + Vector3.new(1,0,1)
  2099. end
  2100. end
  2101. end)]]
Add Comment
Please, Sign In to add comment