The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Magic Unknown script pastebin roblox
By Magic Unknown on 2024-11-26 08:00 am | Syntax: LUA | Views: 14



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  1. --[[Magic Unknown, By KillerDarkness0105/Codex#6685.]]--
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Player=game:GetService("Players").LocalPlayer
  8. Character=Player.Character
  9. PlayerGui=Player.PlayerGui
  10. Backpack=Player.Backpack
  11. Torso=Character.Torso
  12. Head=Character.Head
  13. Humanoid=Character.Humanoid
  14. LeftArm=Character["Left Arm"]
  15. LeftLeg=Character["Left Leg"]
  16. RightArm=Character["Right Arm"]
  17. RightLeg=Character["Right Leg"]
  18. LS=Torso["Left Shoulder"]
  19. LH=Torso["Left Hip"]
  20. RS=Torso["Right Shoulder"]
  21. RH=Torso["Right Hip"]
  22. Face = Head.face
  23. Neck=Torso.Neck
  24. it=Instance.new
  25. attacktype=1
  26. attacktype2=1
  27. vt=Vector3.new
  28. it=Instance.new
  29. cf=CFrame.new
  30. cn=CFrame.new
  31. euler=CFrame.fromEulerAnglesXYZ
  32. angles=CFrame.Angles
  33. combo = 0
  34. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  35. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  36. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  37. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  38. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  39. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  40. RootPart=Character.HumanoidRootPart
  41. RootJoint=RootPart.RootJoint
  42. RootCF=euler(-1.57,0,3.14)
  43. attack = false
  44. attackdebounce = false
  45. trispeed=.2
  46. attackmode='none'
  47. local idle=0
  48. local Anim="Idle"
  49. stance = false
  50. local ff = 2
  51. noleg = false
  52. evadecooldown = false
  53. Humanoid.Animator.Parent = nil
  54. local equip = false
  55. local Effects = {}
  56.  attackspeed = 0.14
  57.  df = false
  58.  Swing = 1
  59. local sine = 0
  60. local change = 1
  61. local val = 0
  62. local speed = 0
  63. local rs = game:GetService("RunService").RenderStepped
  64. cam = workspace.CurrentCamera
  65. local RbxUtility = LoadLibrary("RbxUtility")
  66. local Create = RbxUtility.Create
  67. deb = game:GetService("Debris")
  68. Face:Destroy()
  69.  
  70. --game.Lighting.TimeOfDay = 210
  71.  
  72.           local eye1 = Instance.new("Part")
  73. eye1.Parent = Character
  74. eye1.Size = Vector3.new(0.2,0.2,0.2)
  75. eye1.Archivable = true
  76. eye1.Transparency = 0
  77. eye1.CanCollide = false
  78. eye1.Material = "Neon"
  79. eye1.Color = Color3.fromRGB(48,0,211)
  80. local eye1mesh = Instance.new("SpecialMesh",eye1)
  81. eye1mesh.MeshType = "Sphere"
  82. eye1mesh.Scale = Vector3.new(0.66,1.22,0.66)
  83. ko2 = eye1mesh.Scale
  84. local eye1weld = Instance.new("Weld")
  85. eye1weld.Parent = eye1
  86. eye1weld.Part0 = Head
  87. eye1weld.Part1 = eye1
  88. eye1weld.C0 = CFrame.new(.13,.19,-.55)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  89.   eye1weld.Part0 = Head
  90.  
  91.  
  92.  
  93.  
  94. local eye2 = Instance.new("Part")
  95. eye2.Parent = Character
  96. eye2.Size = Vector3.new(0.2,0.2,0.2)
  97. eye2.Archivable = true
  98. eye2.Transparency = 0
  99. eye2.CanCollide = false
  100. eye2.Material = "Neon"
  101. eye2.Color = Color3.fromRGB(48,0,211)
  102. local eye2mesh = Instance.new("SpecialMesh",eye2)
  103. eye2mesh.MeshType = "Sphere"
  104. eye2mesh.Scale = Vector3.new(0.66,1.22,0.66)
  105. local eye2weld = Instance.new("Weld")
  106. eye2weld.Parent = eye2
  107. eye2weld.Part0 = Head
  108. eye2weld.Part1 = eye2
  109. eye2weld.C0 = CFrame.new(-.13,.19,-.55)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  110.   eye2weld.Part0 = Head
  111.  
  112.  
  113.  
  114.  
  115.   music = Instance.new("Sound",PlayerGui)
  116.   music.Volume = 1
  117.   music.TimePosition = 0
  118.   music.Pitch = 1
  119.   music.SoundId = "rbxassetid://1849245030"
  120.   music.Looped = true
  121.   music:Play()
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.            so = function(id,par,vol,pit)
  143.   coroutine.resume(coroutine.create(function()
  144.   local sou = Instance.new("Sound",par or workspace)
  145.   sou.Volume=vol
  146.   sou.Pitch=pit or 1
  147.   sou.SoundId=id
  148.   sou:play()
  149.   game:GetService("Debris"):AddItem(sou,8)
  150.   end))
  151.   end
  152.  
  153.   --save shoulders
  154.   RSH, LSH=nil, nil
  155.   --welds
  156.   RW, LW=Instance.new("Weld"), Instance.new("Weld")
  157.   RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  158.   LH=Torso["Left Hip"]
  159.   RH=Torso["Right Hip"]
  160.   TorsoColor=Torso.BrickColor
  161.   function NoOutline(Part)
  162.   Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  163.   end
  164.   player=Player
  165.   ch=Character
  166.   RSH=ch.Torso["Right Shoulder"]
  167.   LSH=ch.Torso["Left Shoulder"]
  168.   --
  169.   RSH.Parent=nil
  170.   LSH.Parent=nil
  171.   --
  172.   RW.Name="Right Shoulder"
  173.   RW.Part0=ch.Torso
  174.   RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  175.   RW.C1=cf(0, 0.5, 0)
  176.   RW.Part1=ch["Right Arm"]
  177.   RW.Parent=ch.Torso
  178.   --
  179.   LW.Name="Left Shoulder"
  180.   LW.Part0=ch.Torso
  181.   LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  182.   LW.C1=cf(0, 0.5, 0)
  183.   LW.Part1=ch["Left Arm"]
  184.   LW.Parent=ch.Torso
  185.    
  186.    
  187.   newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  188.       local wld = Instance.new("Weld", wp1)
  189.       wld.Part0 = wp0
  190.       wld.Part1 = wp1
  191.       wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  192.   end
  193.    local rs = game:GetService("RunService").RenderStepped
  194.    
  195.   newWeld(RootPart, Torso, 0, -1, 0)
  196.   Torso.Weld.C1 = CFrame.new(0, -1, 0)
  197.   newWeld(Torso, LeftLeg, -0.5, -1, 0)
  198.   LeftLeg.Weld.C1 = CFrame.new(0, 1, 0)
  199.   newWeld(Torso, RightLeg, 0.5, -1, 0)
  200.   RightLeg.Weld.C1 = CFrame.new(0, 1, 0)
  201.  
  202.       Player=game:GetService('Players').LocalPlayer
  203.       Character=Player.Character
  204.       mouse=Player:GetMouse()
  205.       m=Instance.new('Model',Character)
  206.    
  207.    
  208.       local function weldBetween(a, b)
  209.           local weldd = Instance.new("ManualWeld")
  210.           weldd.Part0 = a
  211.           weldd.Part1 = b
  212.           weldd.C0 = CFrame.new()
  213.           weldd.C1 = b.CFrame:inverse() * a.CFrame
  214.           weldd.Parent = a
  215.           return weldd
  216.       end
  217.      
  218.       ArtificialHB = Instance.new("BindableEvent", script)
  219.   ArtificialHB.Name = "Heartbeat"
  220.    
  221.   script:WaitForChild("Heartbeat")
  222.    
  223.   frame = 1 / 80
  224.   tf = 0
  225.   allowframeloss = false
  226.   tossremainder = false
  227.   lastframe = tick()
  228.   script.Heartbeat:Fire()
  229.   game:GetService("RunService").Heartbeat:connect(function(s, p)
  230.       tf = tf + s
  231.       if tf >= frame then
  232.           if allowframeloss then
  233.               script.Heartbeat:Fire()
  234.               lastframe = tick()
  235.           else
  236.               for i = 1, math.floor(tf / frame) do
  237.                   script.Heartbeat:Fire()
  238.               end
  239.               lastframe = tick()
  240.           end
  241.           if tossremainder then
  242.               tf = 0
  243.           else
  244.               tf = tf - frame * math.floor(tf / frame)
  245.           end
  246.       end
  247.   end)
  248.    
  249. --[[]
  250.   function swait(num)
  251.       if num == 0 or num == nil then
  252.           ArtificialHB.Event:wait()
  253.       else
  254.           for i = 0, num do
  255.               ArtificialHB.Event:wait()
  256.           end
  257.       end
  258.  end
  259.  
  260.  ]]
  261.  
  262.  
  263.  function swait(num)
  264.  if num == 0 or num == nil then
  265.   game:service("RunService").Stepped:wait()
  266.  else
  267.   for i = 0, num do
  268.    game:service("RunService").Stepped:wait()
  269.   end
  270.  end
  271. end
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.   function RemoveOutlines(part)
  281.       part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  282.   end
  283.      
  284.  
  285.   part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  286.     local fp = it("Part")
  287.     fp.formFactor = formfactor
  288.     fp.Parent = parent
  289.     fp.Reflectance = reflectance
  290.     fp.Transparency = transparency
  291.     fp.CanCollide = false
  292.     fp.Locked = true
  293.     fp.BrickColor = brickcolor
  294.     fp.Name = name
  295.     fp.Size = size
  296.     fp.Position = Torso.Position
  297.     NoOutline(fp)
  298.     if fp.BrickColor == BrickColor.new("Dark indigo") then
  299.       fp.Material = "Neon"
  300.     else
  301.       if fp.BrickColor == BrickColor.new("Really black") then
  302.         fp.BrickColor = BrickColor.new("Really black")
  303.         fp.Material = "Metal"
  304.       else
  305.         fp.Material = "Neon"
  306.       end
  307.     end
  308.     fp:BreakJoints()
  309.     return fp
  310.   end
  311.  
  312. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  313.   local mesh = it(Mesh)
  314.   mesh.Parent = part
  315.   if Mesh == "SpecialMesh" then
  316.     mesh.MeshType = meshtype
  317.     if meshid ~= "nil" then
  318.       mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  319.     end
  320.   end
  321.   mesh.Offset = offset
  322.   mesh.Scale = scale
  323.   return mesh
  324. end
  325.   weld = function(parent, part0, part1, c0)
  326.     local weld = it("Weld")
  327.     weld.Parent = parent
  328.     weld.Part0 = part0
  329.     weld.Part1 = part1
  330.     weld.C0 = c0
  331.     return weld
  332.   end
  333.  
  334.   F1 = Instance.new("Folder", Character)
  335.   F1.Name = "Effects Folder"
  336.   F2 = Instance.new("Folder", F1)
  337.   F2.Name = "Effects"
  338.   Triangle = function(a, b, c)
  339.   end
  340.  
  341. MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, parent)
  342.   local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  343.   prt.Anchored = true
  344.   prt.CFrame = cframe
  345.   msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  346.   game:GetService("Debris"):AddItem(prt, 10)
  347.   if Type == 1 or Type == nil then
  348.     table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  349.   else
  350.     if Type == 2 then
  351.       table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  352.     else
  353.       if Type == 3 then
  354.         table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh, prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0})
  355.       end
  356.     end
  357.   end
  358. end
  359. MagicSkull = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe)
  360.   local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  361.   prt.Anchored = true
  362.   prt.CFrame = cframe
  363.   msh = mesh("SpecialMesh", prt, "FileMesh", "14028428", vt(0, 0, 0), vt(x1, y1, z1))
  364.   game:GetService("Debris"):AddItem(prt, 10)
  365.   table.insert(Effects, {prt, "Skull", delay, x3, y3, z3, msh, goe})
  366. end
  367. MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  368.   local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  369.   prt.Anchored = true
  370.   prt.CFrame = cframe
  371.   local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  372.   game:GetService("Debris"):AddItem(prt, 10)
  373.   table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  374. end
  375. MagicRing = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  376.   local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  377.   prt.Anchored = true
  378.   prt.CFrame = cframe * cf(x2, y2, z2)
  379.   local msh = mesh("SpecialMesh", prt, "FileMesh", "3270017", vt(0, 0, 0), vt(x1, y1, z1))
  380.   game:GetService("Debris"):AddItem(prt, 10)
  381.   table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  382. end
  383. MagicCircle2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, push)
  384.   local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  385.   prt.Anchored = true
  386.   prt.CFrame = cframe
  387.   local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  388.   game:GetService("Debris"):AddItem(prt, 10)
  389.   table.insert(Effects, {prt, "Blood", delay, x3, y3, z3, msh, push})
  390. end
  391. MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  392.   local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  393.   prt.Anchored = true
  394.   prt.CFrame = cframe
  395.   local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  396.   game:GetService("Debris"):AddItem(prt, 10)
  397.   table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  398. end
  399. MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe)
  400.   local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  401.   prt.Anchored = true
  402.   prt.CFrame = cframe
  403.   local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  404.   game:GetService("Debris"):AddItem(prt, 10)
  405.   table.insert(Effects, {prt, "Cylinder2", delay, x3, y3, z3, msh, goe})
  406. end
  407. MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  408.   local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  409.   prt.Anchored = true
  410.   prt.CFrame = cframe
  411.   local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  412.   game:GetService("Debris"):AddItem(prt, 10)
  413.   table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  414. end
  415. ClangEffect = function(brickcolor, cframe, duration, decrease, size, power)
  416.   local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
  417.   prt.Anchored = true
  418.   prt.CFrame = cframe
  419.   local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5))
  420.   game:GetService("Debris"):AddItem(prt, 10)
  421.   table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil})
  422. end
  423. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  424.   local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  425.   prt.Anchored = true
  426.   prt.CFrame = cframe
  427.   local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
  428.   game:GetService("Debris"):AddItem(prt, 10)
  429.   table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  430. end
  431. MagicFire = function(brickcolor, cframe, x1, y1, z1, delay)
  432.   local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  433.   prt.Anchored = true
  434.   prt.CFrame = cframe
  435.   msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  436.   game:GetService("Debris"):AddItem(prt, 10)
  437.   table.insert(Effects, {prt, "Fire", delay, 1, 1, 1, msh})
  438. end
  439. MagicFireWave = function(brickcolor, cframe, x1, y1, z1)
  440.   local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
  441.   prt.Anchored = true
  442.   prt.CFrame = cframe
  443.   msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  444.   d = Instance.new("Decal")
  445.   d.Parent = prt
  446.   d.Texture = "http://www.roblox.com/asset/?id=26356434"
  447.   d.Face = "Top"
  448.   d = Instance.new("Decal")
  449.   d.Parent = prt
  450.   d.Texture = "http://www.roblox.com/asset/?id=26356434"
  451.   d.Face = "Bottom"
  452.   game:GetService("Debris"):AddItem(prt, 10)
  453.   table.insert(Effects, {prt, "FireWave", 1, 30, math.random(400, 600) / 100, msh})
  454. end
  455. ElecEffect = function(cff, x, y, z)
  456.   local prt = part(3, workspace, 0, 0, BrickColor.new("White"), "Part", vt(1, 1, 1))
  457.   prt.Anchored = true
  458.   prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  459.   prt.CFrame = cf(prt.Position)
  460.   game:GetService("Debris"):AddItem(prt, 10)
  461.   xval = math.random() / 3
  462.   yval = math.random() / 3
  463.   zval = math.random() / 3
  464.   msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval))
  465.   Effects[#Effects + 1] = {prt, "Elec", 0.2, x, y, z, xval, yval, zval, msh}
  466. end
  467.  
  468.   function FindNearestTorso(Position, Distance, SinglePlayer)
  469.    if SinglePlayer then
  470.     return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed prt=CreatePart(workspace, prt.Anchored=true prt.CFrame=cframe msh=CreateMesh( id=3270017 i=0,1,delay Part.Transparency=i Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) Part.Parent=nil xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed> (SinglePlayer.Torso.CFrame.p - Position).magnitude
  471.  end
  472.  local List = {}
  473.  for i, v in pairs(workspace:GetChildren()) do
  474.   if v:IsA("Model") and v:findFirstChild("Head") and v ~= Character and Distance >= (v.Head.Position - Position).magnitude then
  475.    table.insert(List, v)
  476.   end
  477.  end
  478.  return List
  479. end
  480.  
  481.  
  482.  
  483.   function clerp(a,b,t)
  484.   local qa = {QuaternionFromCFrame(a)}
  485.   local qb = {QuaternionFromCFrame(b)}
  486.   local ax, ay, az = a.x, a.y, a.z
  487.   local bx, by, bz = b.x, b.y, b.z
  488.   local _t = 1-t
  489.   return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  490.   end
  491.    
  492.   function QuaternionFromCFrame(cf)
  493.   local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  494.   local trace = m00 + m11 + m22
  495.   if trace > 0 then
  496.   local s = math.sqrt(1 + trace)
  497.   local recip = 0.5/s
  498.   return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  499.   else
  500.   local i = 0
  501.   if m11 > m00 then
  502.   i = 1
  503.   end
  504.   if m22 > (i == 0 and m00 or m11) then
  505.   i = 2
  506.   end
  507.   if i == 0 then
  508.   local s = math.sqrt(m00-m11-m22+1)
  509.   local recip = 0.5/s
  510.   return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  511.   elseif i == 1 then
  512.   local s = math.sqrt(m11-m22-m00+1)
  513.   local recip = 0.5/s
  514.   return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  515.   elseif i == 2 then
  516.   local s = math.sqrt(m22-m00-m11+1)
  517.   local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  518.   end
  519.   end
  520.  end
  521.    local lerp = function(a, b, t)
  522.  return a * (1 - t) + b * t
  523. end
  524.  
  525.  
  526.  
  527.  
  528.   function QuaternionToCFrame(px, py, pz, x, y, z, w)
  529.   local xs, ys, zs = x + x, y + y, z + z
  530.   local wx, wy, wz = w*xs, w*ys, w*zs
  531.   local xx = x*xs
  532.   local xy = x*ys
  533.   local xz = x*zs
  534.   local yy = y*ys
  535.   local yz = y*zs
  536.   local zz = z*zs
  537.   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))
  538.   end
  539.   function QuaternionSlerp(a, b, t)
  540.   local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  541.   local startInterp, finishInterp;
  542.   if cosTheta >= 0.0001 then
  543.   if (1 - cosTheta) > 0.0001 then
  544.   local theta = math.acos(cosTheta)
  545.   local invSinTheta = 1/math.sin(theta)
  546.   startInterp = math.sin((1-t)*theta)*invSinTheta
  547.   finishInterp = math.sin(t*theta)*invSinTheta  
  548.   else
  549.   startInterp = 1-t
  550.   finishInterp = t
  551.   end
  552.   else
  553.   if (1+cosTheta) > 0.0001 then
  554.   local theta = math.acos(-cosTheta)
  555.   local invSinTheta = 1/math.sin(theta)
  556.   startInterp = math.sin((t-1)*theta)*invSinTheta
  557.   finishInterp = math.sin(t*theta)*invSinTheta
  558.   else
  559.   startInterp = t-1
  560.   finishInterp = t
  561.   end
  562.   end
  563.   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
  564.   end
  565.    
  566.   function weld5(part0, part1, c0, c1)
  567.       weeld=Instance.new("Weld", part0)
  568.       weeld.Part0=part0
  569.       weeld.Part1=part1
  570.       weeld.C0=c0
  571.       weeld.C1=c1
  572.       return weeld
  573.   end
  574.    
  575.   --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  576.    
  577.   function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  578.   return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  579.  end
  580.  
  581.  
  582.  function Bullets(thinggy,place,size,color,velocity,damage,bounce,collide,rotation)
  583.     swait()
  584.     local Bullet = Instance.new("Part",Workspace)
  585.  Bullet.Locked = true
  586.  Bullet.Name = "Bullet"
  587.  Bullet.Anchored = bounce
  588.  Bullet.CanCollide = collide
  589.  Bullet.Transparency = 0.24
  590.  Bullet.Reflectance = 0
  591.  Bullet.BottomSurface = 0
  592.  Bullet.TopSurface = 0
  593.  Bullet.Shape = 0
  594.  Bullet.BrickColor = BrickColor.new(color)
  595.  Bullet.Size = Vector3.new(size,size,size)
  596.  Bullet.Material = "Neon"
  597.  Bullet.Orientation = vt(-90,0,0)
  598.  local Bulletthing = Instance.new("SpecialMesh",Bullet)
  599.  Bulletthing.MeshType = "Sphere"
  600.   local Bulletforce = Instance.new("BodyForce")
  601.  Bulletforce.force = Vector3.new(0,Bullet:GetMass()*166.2,0)
  602.  Bulletforce.Parent = Bullet
  603.  Bullet.CFrame = thinggy.CFrame*CFrame.new(math.random(-place,place),math.random(-place,place),math.random(-place,place))
  604.  local bv = Instance.new("BodyVelocity",Bullet)
  605.  bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  606.     Bullet.CFrame = CFrame.new(Bullet.Position,mouse.Hit.p)
  607.   bv.velocity = Bullet.CFrame.lookVector*velocity
  608.  
  609.    
  610.    Bullet.Touched:connect(function(hit)
  611.  
  612.  if (hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "prt" and hit.Name ~= "Effect" and hit.Name ~= "orb" and Bullet.Anchored == false) then
  613.           local orbexplode = Instance.new("Sound", Bullet)
  614.     orbexplode.Volume = 4
  615.     orbexplode.PlayOnRemove = true
  616.     orbexplode.SoundId = "http://roblox.com/asset/?id=142070127"
  617.     orbexplode.Pitch = 1
  618.     orbexplode:Destroy()
  619.     deb:AddItem(orbexplode, 4)
  620.  Bullet.Anchored = true
  621.  Bullet.Transparency = 1
  622.  deb:AddItem(Bullet, 4)
  623.  local Explode = Instance.new("Explosion")
  624.  Explode.Position = Bullet.Position
  625.  Explode.Parent = Workspace
  626.  Explode.BlastPressure = 0
  627.  Explode.BlastRadius = Bullet.Size.X *5.6
  628.  Explode.Visible = false
  629.  
  630.  Explode.Hit:connect(function(hit)
  631. if hit.Parent:FindFirstChildOfClass("Humanoid")~=nil and hit.Parent ~= Character then
  632.           if hit.Parent:FindFirstChildOfClass("Humanoid").MaxHealth > 500 then
  633.           hit.Parent:FindFirstChildOfClass("Humanoid").MaxHealth = 100
  634.           hit.Parent:FindFirstChildOfClass("Humanoid").Health = 100
  635.           end
  636. if attackdebounce == false then
  637.     attackdebounce = true
  638.  hit.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(damage/2,damage))
  639.  wait(0.02)
  640. attackdebounce = false
  641. end
  642. end
  643. end)
  644. coroutine.resume(coroutine.create(function()
  645.  
  646.      MagicCircle(BrickColor.new("Royal purple"), cf(Bullet.Position), 10, 10, 10, 50, 50, 50, 0.065)
  647.      MagicCircle(BrickColor.new("Royal purple"), cf(Bullet.Position), 0, 1, 0, 15, 0, 15, 0.025)
  648.      MagicRing(BrickColor.new("Royal purple"), cf(Bullet.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 4, 4, 4, 0, 0.025)
  649.     MagicRing(BrickColor.new("Royal purple"), cf(Bullet.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 0.5, -1, -1, 0, 0.025)
  650.          end))
  651.   end
  652.  end)
  653. coroutine.resume(coroutine.create(function()
  654.     for i = 0,16,0.1 do
  655.         swait()
  656. end
  657. if Bullet.Anchored == false then
  658.     Bullet:Destroy()
  659.     end
  660. end))
  661.  
  662.   end
  663.  
  664.  
  665.  
  666.  
  667.  
  668.  local bl = Instance.new("BlurEffect",cam)
  669. bl.Size = 0
  670.  
  671.  
  672. function Dash()
  673. evadecooldown = true
  674. attack = true
  675. so("http://www.roblox.com/asset/?id=231917788", Torso, 1, 1)
  676.  
  677.         so("http://www.roblox.com/asset/?id=231917788", Torso, 1, 1)
  678.  
  679.  
  680.  
  681.  
  682.  
  683.  
  684.  
  685.  
  686.  
  687.  
  688. bl.Size = 84
  689.  
  690.  
  691.            MagicCircle(BrickColor.new("White"), cf(RootPart.Position), 800, 5, 800, 0, 0, 0, 0.05)
  692.          MagicCircle(BrickColor.new("Royal purple"), cf(RootPart.Position), 800, 10, 800, -40, 0, -40, 0.025)
  693.          MagicCircle(BrickColor.new("White"), cf(RootPart.Position), 800, 10, 800, -42, 1000, -42, 0.05)
  694.          MagicCircle(BrickColor.new("Royal purple"), cf(RootPart.Position), 1000, 10, 1000, -62, 1200, -62, 0.05)
  695.  
  696.  RootPart.CFrame = RootPart.CFrame*CFrame.new(0,0,-96)
  697.  RootPart.Velocity = RootPart.CFrame.lookVector *280
  698.  
  699.  for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  700.   if v:FindFirstChild("Torso") and v:FindFirstChild("Humanoid") then
  701.      
  702. so("http://www.roblox.com/asset/?id=138186576", v.Torso, 10, 1)
  703.    v:FindFirstChild("Humanoid"):TakeDamage(math.random(18,36))
  704.    SphereEffect(BrickColor.new("Royal purple"), cf(v.Torso.Position) , 1, 1, 1, 6.8, 6.8, 6.8, 0.04)
  705.             MagicBlock(BrickColor.new("White"), cf(v.Torso.Position), 2000, 2000, 2000, -100, -100, -100, 0.05, 1)
  706.          MagicBlock(BrickColor.new("Royal purple"), cf(v.Torso.Position), 2500, 2500, 2500, -150, -150, -150, 0.05, 1)
  707.          MagicBlock(BrickColor.new("White"), cf(v.Torso.Position), 3000, 3000, 3000, -200, -200, -200, 0.05, 1)
  708.          MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 800, 2, 800, 150, 2, 150, 0.05)
  709.          MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 800, 2, 800, 100, 4, 100, 0.05)
  710.          MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 800, 2, 800, 50, 6, 50, 0.05)
  711.          MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 0, 0, 0, 100, 100, 100, 0.05)
  712.          MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 0, 0, 0, 200, 200, 200, 0.05)
  713.          MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 0, 0, 0, 300, 300, 300, 0.05)
  714.          MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 0, 0, 0, 400, 400, 400, 0.05)
  715.          MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 800, 2, 800, 4, 350, 4, 0.005)
  716.          MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 600, 2, 600, 4, 300, 4, 0.005)
  717.          MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 400, 2, 400, 4, 250, 4, 0.005)
  718.   end
  719. end
  720.  
  721. for i = 0,1,0.064 do
  722. swait()
  723. cam.FieldOfView = lerp(cam.FieldOfView, 110, 0.5)
  724. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,12),0.24)
  725. RootPart.Velocity = RootPart.CFrame.lookVector * 175
  726. bl.Size = bl.Size - 8.5
  727. SphereEffect(BrickColor.new("Royal purple"),RootPart.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,5.5,10,5.5,0.03)
  728. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, -12) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.4)
  729. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(0)),.4)
  730. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)),.4)
  731. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.4)
  732. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, -0.4) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.8)
  733. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.7, -0.7) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.8)
  734.  
  735.      
  736.  
  737. end
  738.  
  739.  
  740.  
  741. attack = false
  742. attackdebounce = false
  743. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.1)
  744. wait(.2)
  745. bl.Size = 0
  746. evadecooldown = false
  747.  
  748.  
  749.  
  750. end
  751.  
  752.  
  753.  
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  local shooting = false
  764.  
  765.  
  766.  
  767. function shoot()
  768.     attack = true
  769. shooting = true
  770.    
  771.    
  772.                     local thing = Instance.new("BodyGyro",RootPart)
  773. thing.D = 50
  774. thing.P = 6000
  775. thing.MaxTorque = vt(100000,math.huge,0)
  776. thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
  777.       for i = 0,2,0.16 do
  778.         swait()
  779. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.2)
  780. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-80)),.2)
  781. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)),.2)
  782. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
  783. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.73, -1.0, 0) * CFrame.Angles(math.rad(-25), math.rad(-66), math.rad(-25)), 0.1)
  784. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.6, -1.0, 0)  * CFrame.Angles(math.rad(0), math.rad(-83), math.rad(0)), 0.1)
  785. end
  786.  
  787.  
  788. while shooting == true do
  789.         swait(1)
  790.  
  791.  RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)),.2)
  792.         so("http://roblox.com/asset/?id=200633327",Torso,2,1)
  793.         thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
  794.             Torso.Velocity =  RootPart.CFrame.lookVector * -13
  795.     Bullets(RightArm,0,1.5,"Royal purple",700,25.5,false,false)
  796. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(40), math.rad(80)),.2)
  797.             coroutine.resume(coroutine.create(function()
  798.     for i = 0, 0.5, 0.1 do
  799.         swait()
  800. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.24)
  801. end
  802. end))
  803. end
  804.  
  805. attack = false
  806. thing:Destroy()
  807.     end
  808.  
  809.  
  810.  
  811.  function dshoot()
  812.     attack = true
  813. shooting = true
  814.    
  815.    
  816.                     local thing = Instance.new("BodyGyro",RootPart)
  817. thing.D = 50
  818. thing.P = 6000
  819. thing.MaxTorque = vt(100000,math.huge,0)
  820. thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
  821. so("http://roblox.com/asset/?id=1268159756",Torso,5,1)
  822.       for i = 0,3,0.16 do
  823.         swait()
  824.         MagicRing(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,0,-8), 9, 9, 1, -0.7, -0.7, 0, 0.07)
  825.         MagicCircle(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,0,-8), 9, 9, 9, -0.7, -0.7, -0.7, 0.07)
  826. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  827. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  828. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * angles(math.rad(90), math.rad(0), math.rad(-20)),.2)
  829. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -0.4) * angles(math.rad(90), math.rad(0), math.rad(20)),.2)
  830. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(-25)), 0.1)
  831. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0)  * CFrame.Angles(math.rad(25), math.rad(0), math.rad(25)), 0.1)
  832. end
  833.  
  834.  
  835.  
  836. while shooting == true do
  837.         swait(0.5)
  838.         coroutine.resume(coroutine.create(function()
  839.         MagicRing(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,0,-8), 3, 3, 1, 10.2, 10.2, 0, 0.07)
  840.         end))
  841. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(-25)), 0.3)
  842. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0)  * CFrame.Angles(math.rad(25), math.rad(0), math.rad(25)), 0.3)
  843.         so("http://roblox.com/asset/?id=200633327",Torso,2,1)
  844.         thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
  845.             Torso.Velocity =  RootPart.CFrame.lookVector * -63
  846.            
  847.      
  848. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.4)
  849.     Bullets(RightArm,0,2.5,"Royal purple",1200,45.5,false,false)
  850.             coroutine.resume(coroutine.create(function()
  851.     for i = 0, 0.5, 0.1 do
  852.         swait()
  853. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.55*4.8,0.55*4.8),math.random(-0.55*4.8,0.55*4.8),math.random(-0.55*4.8,0.55*4.8)),0.44)
  854. end
  855. end))
  856.        
  857.     Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.2)
  858.     Bullets(LeftArm,0,2.5,"Royal purple",1200,45.5,false,false)
  859.             coroutine.resume(coroutine.create(function()
  860.     for i = 0, 0.5, 0.1 do
  861.         swait()
  862. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.24)
  863. end
  864. end))
  865.        
  866. end
  867.  
  868. attack = false
  869. thing:Destroy()
  870.     end
  871.  
  872.  
  873.  
  874.  
  875.  
  876.  function finaldev()
  877.      attack = true
  878.      so("http://roblox.com/asset/?id=815032096",Head,6,0.84)
  879.      so("http://roblox.com/asset/?id=200633529",Workspace,3,0.84)
  880.  
  881.      for i = 0,14,0.1 do
  882.         swait()
  883.             WaveEffect(BrickColor.new("White"), RootPart.CFrame*CFrame.new(0,-1,0)*angles(0,math.rad(0+90*i),0) , 1, 1, 1, 7, 0.8, 7, 0.09)
  884.             WaveEffect(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,-1,0)*angles(0,math.rad(0-90*i),0) , 1, 1, 1, 5, 0.8, 5, 0.05)
  885.         Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.25*2.8,0.25*2.8),math.random(-0.25*2.8,0.25*2.8),math.random(-0.25*2.8,0.25*2.8)),0.16)
  886.         Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.15)
  887. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(14),math.rad(0),math.rad(0)),.15)
  888. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(87)),.15)
  889. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0) * angles(math.rad(0), math.rad(0), math.rad(-87)),.15)
  890. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, 0, -0.5) * CFrame.Angles(math.rad(16), math.rad(0), math.rad(0)), 0.15)
  891. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.14, 0.2) * CFrame.Angles(math.rad(-17), math.rad(0), math.rad(0)), 0.15)
  892.        
  893. end
  894. so("http://roblox.com/asset/?id=197161452",Torso,7,1)
  895.      for i = 0,6,0.1 do
  896. swait()
  897.  WaveEffect(BrickColor.new("White"), RootPart.CFrame*CFrame.new(0,-1,0)*angles(0,math.rad(0+90*i),0) , 1, 1, 1, 7, 0.8, 7, 0.09)
  898.             WaveEffect(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,-1,0)*angles(0,math.rad(0-90*i),0) , 1, 1, 1, 5, 0.8, 5, 0.05)
  899.         Head.Velocity = Vector3.new(0,320,0)
  900. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0+260*i), math.rad(0), math.rad(0)), 0.6)
  901. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1)
  902. RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1)
  903. LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1)
  904. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
  905. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
  906. end
  907.  
  908.  
  909.  local bel = part(3, Character, 0, 1, BrickColor.new("Royal purple"), "Ball", vt(0.126,0.126,0.126))
  910.   local belmsh = mesh("SpecialMesh", bel, "Sphere", "nil", vt(0, 0, 0), vt(10, 10, 10))
  911.  
  912.  
  913.  
  914.     local Charge = Instance.new("Sound", bel)
  915.     Charge.Volume = 10
  916.     Charge.SoundId = "http://roblox.com/asset/?id=244578827"
  917.     Charge.Pitch = 0.8
  918.     Charge.PlayOnRemove = true
  919.     Charge:Play()
  920.     Charge:Destroy()
  921. bel.Anchored = true
  922.      for i = 0,47,0.1 do
  923.         swait()
  924.                    bel.CFrame = RootPart.CFrame * cf(0, 90*i/3.5, 0)
  925.         bel.Transparency = bel.Transparency - 0.0034
  926.         belmsh.Scale = belmsh.Scale + Vector3.new(24,24,24)
  927.         Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0+1*i,0+1*i),0.15)
  928.         cam.FieldOfView = lerp(cam.FieldOfView, 40+1*i, 0.15)
  929. Head.Velocity = Vector3.new(0,2.4+0.8*i,0)
  930. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(35), math.rad(0), math.rad(0)), 0.2)
  931. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-13),math.rad(0),math.rad(0)),.2)
  932. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(140)),.2)
  933. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(-140)),.2)
  934. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(-45), math.rad(34), math.rad(-25)), 0.1)
  935. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0)  * CFrame.Angles(math.rad(-45), math.rad(-34), math.rad(25)), 0.1)
  936. end
  937. so("http://roblox.com/asset/?id=160212892",Head,10,0.84)
  938.      for i = 0,4,0.1 do
  939.         swait()
  940.         Head.Velocity = Vector3.new(0,2.4,0)
  941.                 Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  942. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(35), math.rad(0), math.rad(0)), 0.2)
  943. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(13),math.rad(0),math.rad(0)),.2)
  944. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(140)),.2)
  945. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(-140)),.2)
  946. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(-45), math.rad(34), math.rad(-25)), 0.1)
  947. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0)  * CFrame.Angles(math.rad(-45), math.rad(-34), math.rad(25)), 0.1)
  948. end
  949.  
  950.  
  951.  
  952.  
  953.  
  954. bel.Anchored = false
  955.  local bv = Instance.new("BodyVelocity",bel)
  956.  bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  957.     bel.CFrame = CFrame.new(bel.Position,mouse.Hit.p)
  958.   bv.velocity = bel.CFrame.lookVector*350
  959.  
  960.  
  961.  
  962. --[[  
  963.      bel.Touched:connect(function(hit)
  964.  
  965.  if hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "prt" and hit.Name ~= "Effect" and hit.Name ~= "orb" and Bullet.Anchored == false then
  966.           local orbexplode = Instance.new("Sound", bel)
  967.     orbexplode.Volume = 10
  968.     orbexplode.PlayOnRemove = true
  969.     orbexplode.SoundId = "http://roblox.com/asset/?id=142070127"
  970.     orbexplode.Pitch = 1
  971.     orbexplode:Destroy()
  972.     deb:AddItem(orbexplode, 4)
  973.  bel.Anchored = true
  974.  bel.Transparency = 1
  975.  deb:AddItem(bel, 4)
  976.  local Explode = Instance.new("Explosion")
  977.  Explode.Position = bel.Position
  978.  Explode.Parent = Workspace
  979.  Explode.BlastPressure = 90
  980.  Explode.BlastRadius = Bullet.Size.X *25.6
  981.  Explode.Visible = false
  982.  
  983. coroutine.resume(coroutine.create(function()
  984.  
  985.  
  986.  
  987.          MagicBlock(BrickColor.new("White"), cf(bel.Position), 2000, 2000, 2000, -100, -100, -100, 0.05, 1)
  988.          MagicBlock(BrickColor.new("Royal purple"), cf(bel.Position), 2500, 2500, 2500, -150, -150, -150, 0.05, 1)
  989.          MagicBlock(BrickColor.new("White"), cf(bel.Position), 3000, 3000, 3000, -200, -200, -200, 0.05, 1)
  990.          MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1800, 2, 1800, 1150, 2, 1150, 0.05)
  991.          MagicCircle(BrickColor.new("White"), cf(bel.Position), 1800, 2, 1800, 1100, 4, 1100, 0.05)
  992.          MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1800, 2, 1800, 150, 16, 150, 0.05)
  993.          MagicCircle(BrickColor.new("White"), cf(bel.Position), 0, 0, 0, 1100, 4100, 1100, 0.05)
  994.          MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 0, 0, 1200, 1200, 1200, 0.05)
  995.          MagicCircle(BrickColor.new("White"), cf(bel.Position), 0, 0, 0, 1300, 1300,1300, 0.05)
  996.          MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 0, 0, 1400, 1400, 1400, 0.05)
  997.          MagicCircle(BrickColor.new("White"), cf(bel.Position), 4800, 2, 1800, 4, 1350, 4, 0.005)
  998.          MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1600, 2, 1600, 4, 1300, 4, 0.005)
  999.          MagicCircle(BrickColor.new("White"), cf(bel.Position), 1400, 2, 1400, 4, 1250, 4, 0.005)
  1000.  
  1001.  
  1002.      MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 10, 10, 10, 50, 50, 50, 0.065)
  1003.      MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 1, 0, 15, 0, 15, 0.025)
  1004.      MagicRing(BrickColor.new("Royal purple"), cf(bel.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 4, 4, 4, 0, 0.025)
  1005.     MagicRing(BrickColor.new("Royal purple"), cf(bel.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 0.5, -1, -1, 0, 0.025)
  1006.          end))
  1007.   end
  1008.  end)
  1009.  
  1010.   ]]
  1011.  
  1012.   con5=bel.Touched:connect(function(hit)
  1013.      
  1014.           local orbexplode = Instance.new("Sound", bel)
  1015.     orbexplode.Volume = 10
  1016.     orbexplode.PlayOnRemove = true
  1017.     orbexplode.SoundId = "http://roblox.com/asset/?id=167115397"
  1018.     orbexplode.Pitch = 1
  1019.     orbexplode:Destroy()
  1020.     deb:AddItem(orbexplode, 4)
  1021.  bel.Anchored = true
  1022.  bel.Transparency = 1
  1023.  deb:AddItem(bel, 5.2)
  1024.  
  1025.  
  1026.  
  1027.  
  1028. coroutine.resume(coroutine.create(function()
  1029. so("http://www.roblox.com/asset/?id=167115397", Workspace, 6, 1)
  1030. so("http://www.roblox.com/asset/?id=138186576", Workspace, 6, 1)
  1031. for i = 0, 0.4, 0.1 do
  1032.     swait()
  1033.    
  1034.    
  1035.      for i, v in pairs(FindNearestHead(bel.CFrame.p, 252.5)) do
  1036.   if v:FindFirstChild("Torso") and v:FindFirstChild("Humanoid") then
  1037.           if v:FindFirstChildOfClass("Humanoid").MaxHealth > 500 then
  1038.            v:FindFirstChildOfClass("Humanoid").MaxHealth = 100
  1039.            v:FindFirstChildOfClass("Humanoid").Health = 100
  1040.           end
  1041.    v.Humanoid:TakeDamage(math.random(43,86))
  1042.    coroutine.resume(coroutine.create(function()
  1043.     for i = 0,2,0.1 do
  1044.         swait()
  1045.         v.Head.Velocity = -v.Head.CFrame.lookVector*660 + Vector3.new(0,684,0)
  1046.     end
  1047.     end))
  1048. end
  1049. end
  1050.  
  1051. coroutine.resume(coroutine.create(function()
  1052.     for i = 0, 2.4, 0.1 do
  1053.         swait()
  1054. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.55*4.8,0.55*4.8),math.random(-0.55*4.8,0.55*4.8),math.random(-0.55*4.8,0.55*4.8)),0.44)
  1055. end
  1056. end))
  1057.  
  1058.          MagicBlock(BrickColor.new("White"), cf(bel.Position), 2000, 2000, 2000, -100, -100, -100, 0.05, 1)
  1059.          MagicBlock(BrickColor.new("Royal purple"), cf(bel.Position), 2500, 2500, 2500, -150, -150, -150, 0.05, 1)
  1060.          MagicBlock(BrickColor.new("White"), cf(bel.Position), 3000, 3000, 3000, -200, -200, -200, 0.05, 1)
  1061.          MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1800,222, 1800, 1150, 222, 1150, 0.05)
  1062.          MagicCircle(BrickColor.new("White"), cf(bel.Position), 1800, 222, 1800, 1100, 224, 1100, 0.05)
  1063.          MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1800, 222, 1800, 150, 216, 150, 0.05)
  1064.          MagicCircle(BrickColor.new("White"), cf(bel.Position), 0, 0, 0, 1100, 4100, 1100, 0.05)
  1065.          MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 0, 0, 1200, 1200, 1200, 0.05)
  1066.          MagicCircle(BrickColor.new("White"), cf(bel.Position), 0, 0, 0, 1300, 1300,1300, 0.05)
  1067.          MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 0, 0, 1400, 1400, 1400, 0.05)
  1068.          MagicCircle(BrickColor.new("White"), cf(bel.Position), 4800, 222, 1800, 224, 1350, 224, 0.005)
  1069.          MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1600, 222, 1600, 224, 1300, 224, 0.005)
  1070.          MagicCircle(BrickColor.new("White"), cf(bel.Position), 1400, 222, 1400, 224, 1250, 224, 0.005)
  1071.  
  1072.             WaveEffect(BrickColor.new("White"), cf(bel.Position)*angles(0,math.rad(0+90*i),0) , 1, 1, 1, 24, 5.4, 24, 0.09)
  1073.             WaveEffect(BrickColor.new("Royal purple"), cf(bel.Position)*angles(0,math.rad(0-90*i),0) , 1, 1, 1, 22, 4.8, 22, 0.05)
  1074.            
  1075.      MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 10, 10, 10, 50, 50, 50, 0.065)
  1076.      MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 1, 0, 15, 0, 15, 0.025)
  1077.      MagicRing(BrickColor.new("White"), cf(bel.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 24, 24, 1, 12, 12, 0, 0.015)
  1078.     MagicRing(BrickColor.new("Royal purple"), cf(bel.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 24, 24, 1, 12, 12, 0, 0.015)
  1079.     MagicRing(BrickColor.new("White"), cf(bel.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 24, 24, 1, 8, 8, 0, 0.015)
  1080.     MagicRing(BrickColor.new("Royal purple"), cf(bel.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 24, 24, 1, 12, 12, 0, 0.015)
  1081.     end
  1082.          end))
  1083.  
  1084.  
  1085. end)
  1086.  
  1087.  
  1088.  
  1089.  
  1090.      for i = 0,32,0.1 do
  1091.         swait()
  1092.         Head.Velocity = Vector3.new(0,2.4,0)
  1093. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-35), math.rad(0), math.rad(0)), 0.2)
  1094. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(43),math.rad(0),math.rad(0)),.2)
  1095. RW.C0 = clerp(RW.C0, CFrame.new(1.0, 0.5, -0.4) * angles(math.rad(80), math.rad(12), math.rad(-30)),.2)
  1096. LW.C0 = clerp(LW.C0, CFrame.new(-1., 0.5, -0.4) * angles(math.rad(80), math.rad(-12), math.rad(30)),.2)
  1097. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(75), math.rad(34), math.rad(-35)), 0.2)
  1098. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0)  * CFrame.Angles(math.rad(75), math.rad(-34), math.rad(35)), 0.2)
  1099. end
  1100.  
  1101. coroutine.resume(coroutine.create(function()
  1102.     for i = 0, 63, 0.1 do
  1103.         swait()
  1104.     end
  1105.     if bel.Anchored == false then
  1106.         bel:Destroy()
  1107.     end
  1108.     end))
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  attack = false
  1114.  end
  1115.  
  1116.  
  1117.  
  1118.    mouse.Button1Down:connect(function(key)
  1119. if attack == false then
  1120. shoot()
  1121. end
  1122. end)
  1123.  
  1124.  
  1125.  
  1126.  
  1127.   mouse.Button1Up:connect(function(key)
  1128. if shooting == true then
  1129. shooting = false
  1130. end
  1131. end)
  1132.  
  1133.  
  1134.  
  1135.  
  1136.   mouse.KeyDown:connect(function(key)
  1137. if key == 'e' and attack == false then
  1138. dshoot()
  1139. end
  1140. end)
  1141.  
  1142.  
  1143.  
  1144.  
  1145.   mouse.KeyDown:connect(function(key)
  1146. if key == 'q' and attack == false then
  1147. finaldev()
  1148. end
  1149. end)
  1150.  
  1151.   mouse.KeyUp:connect(function(key)
  1152. if key == 'e' and shooting == true then
  1153. shooting = false
  1154. end
  1155. end)
  1156.  
  1157.  
  1158.            
  1159.               mouse.KeyDown:connect(function(key)
  1160.        if key == 'f' and attack == false and evadecooldown == false then
  1161.            Dash()
  1162.           end
  1163.           end)
  1164.  
  1165.  
  1166.  local orb = part(3, Character, 0, 0.9, BrickColor.new("White"), "Effect", vt())
  1167.   local msh = mesh("SpecialMesh", orb, "Sphere", "nil", vt(0, 0, 0), vt(15, 15, 15))
  1168.      
  1169.       local orb2 = part(3, Character, 0, 0.9, BrickColor.new("White"), "Effect", vt())
  1170.   local msh = mesh("SpecialMesh", orb2, "Sphere", "nil", vt(0, 0, 0), vt(15, 15, 15))
  1171.             orb.Anchored = true
  1172.             orb2.Anchored = true
  1173.             Humanoid.WalkSpeed = 32
  1174.            
  1175.            
  1176.             local f = 0
  1177.  game:GetService("RunService"):BindToRenderStep("W0tT", 0, function()
  1178.  
  1179.  
  1180. f = f+1
  1181.  cam.FieldOfView = lerp(cam.FieldOfView, 70, 0.076)
  1182. if f >= 6 then
  1183.     f=0
  1184.     SphereEffect(BrickColor.new("Royal purple"),cf(orb.Position)*angles(math.random(-360, 360),math.random(-360, 360),math.random(-360, 360)),1,5,1,.05,4,.05,0.03)
  1185.     SphereEffect(BrickColor.new("Royal purple"),cf(orb2.Position)*angles(math.random(-360, 360),math.random(-360, 360),math.random(-360, 360)),1,5,1,.05,4,.05,0.03)
  1186.  MagicRing(BrickColor.new("Royal purple"), cf(orb.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 3, 3, 1, -0.2, -0.2, 0, 0.07)
  1187.  MagicCircle(BrickColor.new("Royal purple"), cf(orb.Position), 0, 0, 0, 1.25, 1.25, 1.25, 0.05)
  1188.   MagicRing(BrickColor.new("Royal purple"), cf(orb2.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 3, 3, 1, -0.2, -0.2, 0, 0.07)
  1189.  MagicCircle(BrickColor.new("Royal purple"), cf(orb2.Position), 0, 0, 0, 1.25, 1.25, 1.25, 0.05)
  1190.         MagicBlock(BrickColor.new("Royal purple"), cf(orb.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 1, 1, 1, 1, 1, 1, 0.1, 2)
  1191.        MagicBlock(BrickColor.new("Royal purple"), cf(orb2.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 1, 1, 1, 1, 1, 1, 0.1, 2)
  1192.  
  1193. end
  1194. end)
  1195.  
  1196. Humanoid.MaxHealth = 400
  1197.            
  1198.         print("Move list")
  1199. print("---------")
  1200. print("F: Time Dash")
  1201. print("Hold Click: Lesser Bullets")
  1202. print("Hold E: Mega Bullets")
  1203. print("Q: Final Devastator")
  1204.  
  1205.            
  1206.            
  1207.            
  1208.      while true do
  1209.     swait()
  1210. sine = sine + change
  1211. --speed = speed + music.PlaybackLoudness/90
  1212. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1213. local velderp=RootPart.Velocity.y
  1214. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1215.     local TiltVelocity = CFrame.new(RootPart.CFrame:vectorToObjectSpace(RootPart.Velocity))
  1216.     if attack==true or attack==false then
  1217. if attack==false then
  1218. idle=idle+1
  1219. else
  1220. idle=0
  1221. end
  1222. if idle>=500 then
  1223. if attack==false then
  1224. end
  1225. end
  1226.  
  1227. Humanoid.Health = Humanoid.Health + 4
  1228.  
  1229.            orb.CFrame = RightArm.CFrame * cf(0, -1, 0)
  1230.             orb2.CFrame = LeftArm.CFrame * cf(0, -1, 0)
  1231.   if RootPart.Velocity.y > 1 and hitfloor==nil then
  1232. Anim="Jump"
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238. if attack==false then
  1239. change = 1
  1240. look = 0
  1241.           Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1242. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(4), math.rad(0), math.rad(0)), 0.07)
  1243. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10+2.05*math.cos(sine/5)),math.rad(0),math.rad(0)),0.07)
  1244. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(50-2.05*math.cos(sine/5))), 0.07)
  1245. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(-50+2.05*math.cos(sine/5))), 0.07)
  1246. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, -0.6) * CFrame.Angles(math.rad(-25+3.05*math.cos(sine/5)), math.rad(-3), math.rad(0)), 0.1)
  1247. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.47, -0.7) * CFrame.Angles(math.rad(-12+3.05*math.cos(sine/5)), math.rad(0), math.rad(0)), 0.1)
  1248. end
  1249.  
  1250. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1251. Anim="Fall"
  1252. change = 1
  1253.  
  1254.  
  1255.  
  1256. if attack==false then
  1257.           Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1258. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(7+4*math.sin(sine/1.3)), math.rad(0), math.rad(0)),0.07)
  1259. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.65, 0) * angles(math.rad(0), math.rad(0), math.rad(140+12*math.cos(sine/1.3))), 0.07)
  1260. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.65, 0) * angles(math.rad(0), math.rad(0), math.rad(-140+12*math.cos(sine/1.3))), 0.07)
  1261. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40+7*math.sin(sine/1.3)),math.rad(0),math.rad(0)),0.07)
  1262. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.17*math.cos(sine/1.3), -0.13) * CFrame.Angles(math.rad(18+7*math.cos(sine/1.3)), math.rad(3), math.rad(0)), 0.1)
  1263. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.37+0.17*math.cos(sine/1.3), -0.2) * CFrame.Angles(math.rad(32+7*math.cos(sine/1.3)), math.rad(0), math.rad(0)), 0.1)
  1264. end
  1265.  
  1266. elseif torvel1.5 and torvel=22 and hitfloor~=nil then
  1267.   Anim="Run"
  1268.   change = 0.84+ Character.Humanoid.WalkSpeed/112
  1269.   if attack==false and equip == false then
  1270.             Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.02)
  1271.    Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.5*math.cos(sine/2.5), -.8) * angles(math.rad(-23+4*math.cos(sine/5)), math.rad(0+4*math.sin(sine/5)), math.rad(0)+ RootPart.RotVelocity.Y / 26), .1)
  1272.  Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-12+20*math.sin(sine/2.5)),math.rad(0),math.rad(0+5*math.sin(sine/5)) + RootPart.RotVelocity.Y / 13),.1)
  1273.  RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0-0.34*math.cos(sine/5)) * angles(math.rad(10+57*math.cos(sine/5))+ RootPart.RotVelocity.Y / -34, math.rad(0+43*math.cos(sine/5)), math.rad(5)- RootPart.RotVelocity.Y / 34),.25)
  1274.  LW.C0=clerp(LW.C0,cf(-1.5,0.5,0+0.34*math.cos(sine/5))*angles(math.rad(10-57*math.cos(sine/5))+ RootPart.RotVelocity.Y / 34,math.rad(0+43*math.cos(sine/5)),math.rad(-5)+ RootPart.RotVelocity.Y / -34),.25)
  1275.  
  1276.  
  1277.  LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.56*math.cos(sine/5), 0-0.48*math.cos(sine/5)) * CFrame.Angles(math.rad(0+73*math.sin(sine/5)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)+ RootPart.RotVelocity.Y / -54), 0.3)
  1278.  RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1-0.56*math.cos(sine/5),0+0.48*math.cos(sine/5)) * CFrame.Angles(math.rad(0-73*math.sin(sine/5)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)- RootPart.RotVelocity.Y / 54), 0.3)
  1279.   end
  1280.  
  1281.   --[[
  1282.   if attack==false then
  1283.   LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.4*math.cos(sine/5.5)/2, 0 *math.sin(sine/6.6)/2) * CFrame.Angles(math.rad(0) + -math.sin(sine/5.5)/1.2, math.rad(0), 0), .8)
  1284.   RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.4*math.cos(sine/5.5)/2,0 *-math.sin(sine/6.6)/2) * CFrame.Angles(math.rad(0) + math.sin(sine/5.5)/1.2, math.rad(0), 0), .8)
  1285.   end
  1286.   ]]
  1287.   if attack==true and noleg == false then
  1288.   LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.24*math.cos(sine/5), 0.+0.24*math.cos(sine/5)) * CFrame.Angles(math.rad(0-74*math.sin(sine/5)), math.rad(0), math.rad(0)), 0.3)
  1289.      RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.24*math.cos(sine/5),0.-0.24*math.cos(sine/5)) * CFrame.Angles(math.rad(0+74*math.sin(sine/5)), math.rad(0), math.rad(0)), 0.3)
  1290.   end
  1291.  
  1292.  
  1293. end
  1294. end
  1295.  
  1296.  
  1297.  
  1298.      if 0 < #Effects then
  1299.         for e = 1, #Effects do
  1300.           if Effects[e] ~= nil then
  1301.             local Thing = Effects[e]
  1302.             if Thing ~= nil then
  1303.               local Part = Thing[1]
  1304.               local Mode = Thing[2]
  1305.               local Delay = Thing[3]
  1306.               local IncX = Thing[4]
  1307.               local IncY = Thing[5]
  1308.               local IncZ = Thing[6]
  1309.               if Thing[2] == "CylinderClang" then
  1310.                 if Thing[3] <= 1 then
  1311.                   Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1312.                   Thing[7] = Thing[1].CFrame
  1313.                   effect("New Yeller", 0, Thing[8], Thing[7])
  1314.                   Thing[8] = Thing[7]
  1315.                   Thing[3] = Thing[3] + Thing[4]
  1316.                 else
  1317.                   Part.Parent = nil
  1318.                   table.remove(Effects, e)
  1319.                 end
  1320.               end
  1321.               if Thing[2] == "showDamage" then
  1322.                 if Thing[6] < Thing[5] then
  1323.                   Thing[6] = Thing[6] + 1
  1324.                 else
  1325.                   if Thing[6] < Thing[7] then
  1326.                     Thing[4].position = Thing[4].position + vt(0, -0.2, 0)
  1327.                     Thing[6] = Thing[6] + 1
  1328.                   else
  1329.                     if Thing[6] < Thing[8] then
  1330.                       Thing[6] = Thing[6] + 1
  1331.                     else
  1332.                       if Thing[6] < Thing[9] then
  1333.                         Thing[6] = Thing[6] + 1
  1334.                         Thing[4].position = Thing[4].position + vt(0, 0.2, 0)
  1335.                         Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1
  1336.                         Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1
  1337.                       else
  1338.                         Thing[1].Parent = nil
  1339.                         table.remove(Effects, e)
  1340.                       end
  1341.                     end
  1342.                   end
  1343.                 end
  1344.               end
  1345.               if Thing[2] == "PartiEmi" then
  1346.                 Thing[3] = Thing[3] - 1
  1347.                 if Thing[3] <= 0 then
  1348.                   Thing[1].Enabled = false
  1349.                   table.remove(Effects, e)
  1350.                 end
  1351.               end
  1352.               if Thing[2] == "AdjuEff" then
  1353.                 if 0 < Thing[3] then
  1354.                   Thing[3] = Thing[3] - 1
  1355.                   Thing[1].Size = Thing[1].Size + UDim2.new(0.2, 0, 0.2, 0)
  1356.                   Thing[1].StudsOffset = Thing[1].StudsOffset + vt(0, -0.2, 0)
  1357.                   Thing[4].ImageTransparency = Thing[4].ImageTransparency + 0.1
  1358.                 else
  1359.                   Thing[1].Parent = nil
  1360.                   table.remove(Effects, e)
  1361.                 end
  1362.               end
  1363.               if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" and Thing[2] ~= "showDamage" and Thing[2] ~= "PartiEmi" and Thing[2] ~= "AdjuEff" then
  1364.                 if Thing[1].Transparency <= 1 then
  1365.                   if Thing[2] == "Block1" then
  1366.                     Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1367.                     Mesh = Thing[7]
  1368.                     Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1369.                     Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1370.                   else
  1371.                     if Thing[2] == "Block2" then
  1372.                       Thing[1].CFrame = Thing[1].CFrame
  1373.                       Mesh = Thing[7]
  1374.                       Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1375.                       Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1376.                     else
  1377.                       if Thing[2] == "Block3" then
  1378.                         Thing[9] = Thing[9] + 0.5
  1379.                         Thing[1].CFrame = Thing[8] * cf(0, Thing[9], 0)
  1380.                         Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1381.                         Mesh = Thing[7]
  1382.                         Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1383.                         Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1384.                       else
  1385.                         if Thing[2] == "Skull" then
  1386.                           Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8] / 2, -Thing[8])
  1387.                           Mesh = Thing[7]
  1388.                           Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1389.                           Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1390.                         else
  1391.                           if Thing[2] == "Cylinder" then
  1392.                             Mesh = Thing[7]
  1393.                             Mesh.Scale = Mesh.Scale + vt(Thing[4]-Thing[1].Transparency, Thing[5]-Thing[1].Transparency, Thing[6]-Thing[1].Transparency)
  1394.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1395.                           else
  1396.                             if Thing[2] == "Cylinder2" then
  1397.                               Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8], 0)
  1398.                               Mesh = Thing[7]
  1399.                               Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1400.                               Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1401.                             else
  1402.                               if Thing[2] == "Blood" then
  1403.                                 Mesh = Thing[7]
  1404.                                 Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
  1405.                                 Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1406.                                 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1407.                               else
  1408.                                 if Thing[2] == "Elec" then
  1409.                                   Mesh = Thing[10]
  1410.                                   Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  1411.                                   Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1412.                                 else
  1413.                                   if Thing[2] == "Disappear" then
  1414.                                     Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1415.                                   end
  1416.                                 end
  1417.                               end
  1418.                             end
  1419.                           end
  1420.                         end
  1421.                       end
  1422.                     end
  1423.                   end
  1424.                 else
  1425.                   Part.Parent = nil
  1426.                   table.remove(Effects, e)
  1427.         end
  1428.         end
  1429.           end
  1430.         end
  1431.       end
  1432.     end
  1433. end



  • Recent Roblox Scripts