SkidScripts

Untitled

Feb 27th, 2022 (edited)
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Protected_by_MoonSecV2
  2.  
  3. --[[KillerDarkness0105's/Codex's Sonic script]]--
  4. Bypass = "death"
  5. FELOADLIBRARY = {}
  6. loadstring(game:GetObjects("rbxassetid://5209815302")[1].Source)()
  7. loadstring(game:GetObjects("rbxassetid://5325226148")[1].Source)()
  8.  
  9. print("Move list")
  10. print("---------")
  11. print("Shift = Boost")
  12. print("Ctrl = Mach Speed Boost")
  13. print("Q = Left QuickStep, E  = Right QuickStep")
  14. print("C = Slide, in air to stomp")
  15. print("Jump Then Hold B near a wall to wallrun")
  16. print("M to change music, if you're standing still you'll do a special animation!")
  17. print("Space near a wall to walljump, away from a wall homing attack")
  18.  
  19. wait(0.07)
  20. Player=game:GetService("Players").LocalPlayer
  21. Character=workspace.non
  22. PlayerGui=Player.PlayerGui
  23. Backpack=Player.Backpack
  24. Torso=Character.Torso
  25. Head=Character.Head
  26. Humanoid=Character.Humanoid
  27. LeftArm=Character["Left Arm"]
  28. LeftLeg=Character["Left Leg"]
  29. RightArm=Character["Right Arm"]
  30. RightLeg=Character["Right Leg"]
  31. LS=Torso["Left Shoulder"]
  32. LH=Torso["Left Hip"]
  33. RS=Torso["Right Shoulder"]
  34. RH=Torso["Right Hip"]
  35. Face = Head.face
  36. Neck=Torso.Neck
  37. it=Instance.new
  38. attacktype=1
  39. attacktype2=1
  40. vt=Vector3.new
  41. cf=CFrame.new
  42. cn=CFrame.new
  43. euler=CFrame.fromEulerAnglesXYZ
  44. angles=CFrame.Angles
  45. combo = 0
  46. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  47. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  48. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  49. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  50. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  51. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  52. RootPart=Character.HumanoidRootPart
  53. RootJoint=RootPart.RootJoint
  54. RootCF=euler(-1.57,0,3.14)
  55. attack = false
  56. attackdebounce = false
  57. trispeed=.2
  58. attackmode='none'
  59. local idle=0
  60. local Anim="Idle"
  61. stance = false
  62. local ff = 2
  63. noleg = false
  64. evadecooldown = false
  65. Humanoid.Animator.Parent = nil
  66. equip = false
  67. local Effects = {}
  68.  attackspeed = 0.14
  69.  df = false
  70.  Swing = 1
  71. local sine = 0
  72. local change = 1
  73. local val = 0
  74. local speed = 0
  75. local rs = game:GetService("RunService").RenderStepped
  76. cam = workspace.CurrentCamera
  77. local Create = FELOADLIBRARY.Create
  78. deb = game:GetService("Debris")
  79. Face.Transparency = 0
  80. --Face.Texture = "rbxassetid://176217905" --176217905
  81. Humanoid.WalkSpeed = 64
  82. local freefall = 0
  83. local headsunsound = RootPart:FindFirstChild("Running") or Instance.new("Sound",RootPart)
  84. headsunsound.SoundId = "rbxassetid://758199523"
  85. headsunsound.Volume = 2
  86. local boost = false
  87. Humanoid.JumpPower = 88
  88. local musicnum = 1
  89.    
  90. local spd = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).magnitude + 10
  91. local dir = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).unit
  92.  local GravPoint = RootPart.Velocity.y
  93.  local NV = Vector3.new(0,0,0)
  94.  
  95.         music = Instance.new("Sound",RootPart)
  96.         music.Volume = 1
  97.         music.TimePosition = 0
  98.         music.Pitch = 1
  99.         music.SoundId = "rbxassetid://1251555494"
  100.         music.Looped = true
  101.         music:Play()
  102.        
  103.  
  104.         boostsound = Instance.new("Sound",RootPart)
  105.         boostsound.Volume = .6
  106.         boostsound.TimePosition = 0
  107.         boostsound.Pitch = 1
  108.         boostsound.SoundId = "rbxassetid://924922553"
  109.         boostsound.Looped = false
  110.  
  111.  
  112.  
  113.         stompsound = Instance.new("Sound",RootPart)
  114.         stompsound.Volume = 2
  115.         stompsound.TimePosition = 0
  116.         stompsound.Pitch = 1
  117.         stompsound.SoundId = "rbxassetid://1295424184"
  118.         stompsound.Looped = false
  119.  
  120.  
  121.  
  122.         so = function(id,par,vol,pit)
  123.         coroutine.resume(coroutine.create(function()
  124.         local sou = Instance.new("Sound",par or workspace)
  125.         sou.Volume=vol
  126.         sou.Pitch=pit or 1
  127.         sou.SoundId=id
  128.         sou:play()
  129.         game:GetService("Debris"):AddItem(sou,8)
  130.         end))
  131.         end
  132.        
  133.         --save shoulders
  134.         RSH, LSH=nil, nil
  135.         --welds
  136.         RW, LW=Instance.new("Weld"), Instance.new("Weld")
  137.         RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  138.         LH=Torso["Left Hip"]
  139.         RH=Torso["Right Hip"]
  140.         TorsoColor=Torso.BrickColor
  141.         function NoOutline(Part)
  142.         Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  143.         end
  144.         player=Player
  145.         ch=Character
  146.         RSH=ch.Torso["Right Shoulder"]
  147.         LSH=ch.Torso["Left Shoulder"]
  148.         --
  149.         RSH.Parent=nil
  150.         LSH.Parent=nil
  151.         --
  152.         RW.Name="Right Shoulder"
  153.         RW.Part0=ch.Torso
  154.         RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  155.         RW.C1=cf(0, 0.5, 0)
  156.         RW.Part1=ch["Right Arm"]
  157.         RW.Parent=ch.Torso
  158.         --
  159.         LW.Name="Left Shoulder"
  160.         LW.Part0=ch.Torso
  161.         LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  162.         LW.C1=cf(0, 0.5, 0)
  163.         LW.Part1=ch["Left Arm"]
  164.         LW.Parent=ch.Torso
  165.          
  166.          
  167.         newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  168.             local wld = Instance.new("Weld", wp1)
  169.             wld.Part0 = wp0
  170.             wld.Part1 = wp1
  171.             wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  172.         end
  173.          local rs = game:GetService("RunService").RenderStepped
  174.          
  175.         newWeld(RootPart, Torso, 0, -1, 0)
  176.         Torso.Weld.C1 = CFrame.new(0, -1, 0)
  177.         newWeld(Torso, LeftLeg, -0.5, -1, 0)
  178.         LeftLeg.Weld.C1 = CFrame.new(0, 1, 0)
  179.         newWeld(Torso, RightLeg, 0.5, -1, 0)
  180.         RightLeg.Weld.C1 = CFrame.new(0, 1, 0)
  181.        
  182.             Player=game:GetService('Players').LocalPlayer
  183.             Character=Player.Character
  184.             mouse=Player:GetMouse()
  185.             m=Instance.new('Model',Character)
  186.          
  187.          
  188.             local function weldBetween(a, b)
  189.                 local weldd = Instance.new("ManualWeld")
  190.                 weldd.Part0 = a
  191.                 weldd.Part1 = b
  192.                 weldd.C0 = CFrame.new()
  193.                 weldd.C1 = b.CFrame:inverse() * a.CFrame
  194.                 weldd.Parent = a
  195.                 return weldd
  196.             end
  197.            
  198.             ArtificialHB = Instance.new("BindableEvent", script)
  199.         ArtificialHB.Name = "Heartbeat"
  200.          
  201.         script:WaitForChild("Heartbeat")
  202.          
  203.         frame = 1 / 80
  204.         tf = 0
  205.         allowframeloss = false
  206.         tossremainder = false
  207.         lastframe = tick()
  208.         script.Heartbeat:Fire()
  209.         game:GetService("RunService").Heartbeat:connect(function(s, p)
  210.             tf = tf + s
  211.             if tf >= frame then
  212.                 if allowframeloss then
  213.                     script.Heartbeat:Fire()
  214.                     lastframe = tick()
  215.                 else
  216.                     for i = 1, math.floor(tf / frame) do
  217.                         script.Heartbeat:Fire()
  218.                     end
  219.                     lastframe = tick()
  220.                 end
  221.                 if tossremainder then
  222.                     tf = 0
  223.                 else
  224.                     tf = tf - frame * math.floor(tf / frame)
  225.                 end
  226.             end
  227.         end)
  228.          
  229. --[[]
  230.         function swait(num)
  231.             if num == 0 or num == nil then
  232.                 ArtificialHB.Event:wait()
  233.             else
  234.                 for i = 0, num do
  235.                     ArtificialHB.Event:wait()
  236.                 end
  237.             end
  238.     end
  239.  
  240.     ]]
  241.    
  242.  
  243.  
  244.  
  245.     function swait(num)
  246.     if num == 0 or num == nil then
  247.         game:service("RunService").Stepped:wait()
  248.     else
  249.         for i = 0, num do
  250.             game:service("RunService").Stepped:wait()
  251.         end
  252.     end
  253. end
  254.  
  255.         function RemoveOutlines(part)
  256.             part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  257.         end
  258.            
  259.        
  260.         part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  261.           local fp = it("Part")
  262.           fp.formFactor = formfactor
  263.           fp.Parent = parent
  264.           fp.Reflectance = reflectance
  265.           fp.Transparency = transparency
  266.           fp.CanCollide = false
  267.           fp.Locked = true
  268.           fp.BrickColor = brickcolor
  269.           fp.Name = name
  270.           fp.Size = size
  271.           fp.Position = Torso.Position
  272.           NoOutline(fp)
  273.           if fp.BrickColor == BrickColor.new("Dark indigo") then
  274.             fp.Material = "Neon"
  275.           else
  276.             if fp.BrickColor == BrickColor.new("Really black") then
  277.               fp.BrickColor = BrickColor.new("Really black")
  278.               fp.Material = "Metal"
  279.             else
  280.               fp.Material = "Neon"
  281.             end
  282.           end
  283.           fp:BreakJoints()
  284.           return fp
  285.         end
  286.        
  287.         mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  288.           local mesh = it(Mesh)
  289.           mesh.Parent = part
  290.           if Mesh == "SpecialMesh" then
  291.             mesh.MeshType = meshtype
  292.             mesh.MeshId = meshid
  293.           end
  294.           mesh.Offset = offset
  295.           mesh.Scale = scale
  296.           return mesh
  297.         end
  298.        
  299.         weld = function(parent, part0, part1, c0)
  300.           local weld = it("Weld")
  301.           weld.Parent = parent
  302.           weld.Part0 = part0
  303.           weld.Part1 = part1
  304.           weld.C0 = c0
  305.           return weld
  306.         end
  307.        
  308.         F1 = Instance.new("Folder", Character)
  309.         F1.Name = "Effects Folder"
  310.         F2 = Instance.new("Folder", F1)
  311.         F2.Name = "Effects"
  312.         Triangle = function(a, b, c)
  313.         end
  314.        
  315.         MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  316.           local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  317.           prt.Anchored = true
  318.           prt.CanCollide = false
  319.           prt.CFrame = cframe
  320.           prt.Name = "prt"
  321.           msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  322.           game:GetService("Debris"):AddItem(prt, 5)
  323.           table.insert(Effects, {prt, "Block1", delay, x3, y3, z3})
  324.         end
  325.        
  326.        
  327.        
  328.         MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  329.           local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  330.           prt.Anchored = true
  331.           prt.CanCollide = false
  332.           prt.CFrame = cframe
  333.           prt.Name = "prt"
  334.           local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  335.           game:GetService("Debris"):AddItem(prt, 5)
  336.           table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3})
  337.         end
  338.        
  339.         MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  340.           local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  341.           prt.Anchored = true
  342.           prt.CFrame = cframe
  343.           local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  344.           game:GetService("Debris"):AddItem(prt, 5)
  345.           table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3})
  346.         end
  347.        
  348.         MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  349.           local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
  350.           prt.Anchored = true
  351.           prt.CFrame = cframe
  352.           msh = mesh("SpecialMesh", prt, "Head", "", vt(0, 0, 0), vt(x1, y1, z1))
  353.           game:GetService("Debris"):AddItem(prt, 5)
  354.           Effects[#Effects + 1] = {prt, "Cylinder", delay, x3, y3, z3}
  355.         end
  356.        
  357.         MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  358.           local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
  359.           prt.Anchored = true
  360.           prt.CFrame = cframe
  361.           msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  362.           game:GetService("Debris"):AddItem(prt, 5)
  363.           Effects[#Effects + 1] = {prt, "Cylinder", delay, x3, y3, z3}
  364.         end
  365.        
  366.         MagicBlood = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  367.           local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  368.           prt.Anchored = true
  369.           prt.CFrame = cframe
  370.           local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  371.           game:GetService("Debris"):AddItem(prt, 5)
  372.           table.insert(Effects, {prt, "Blood", delay, x3, y3, z3})
  373.         end
  374.        
  375.         ElecEffect = function(cff, x, y, z)
  376.           local prt = part(3, F2, 0, 0, BrickColor.new("Dark indigo"), "Part", vt(1, 1, 1))
  377.           prt.Anchored = true
  378.           prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  379.           prt.CFrame = cf(prt.Position)
  380.           game:GetService("Debris"):AddItem(prt, 2)
  381.           xval = math.random() / 2
  382.           yval = math.random() / 2
  383.           zval = math.random() / 2
  384.           msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval))
  385.           Effects[#Effects + 1] = {prt, "Elec", 0.1, x, y, z, xval, yval, zval}
  386.         end
  387.        
  388.         function FindNearestTorso(Position, Distance, SinglePlayer)
  389.             if SinglePlayer then
  390.                 return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  391.             end
  392.             local List = {}
  393.             for i, v in pairs(workspace:GetChildren()) do
  394.                 if v:IsA("Model") then
  395.                     if v:findFirstChild("Torso") then
  396.                         if v ~= Character then
  397.                             if (v.Torso.Position - Position).magnitude <= Distance then
  398.                                 table.insert(List, v)
  399.                             end
  400.                         end
  401.                     end
  402.                 end
  403.             end
  404.             return List
  405.         end
  406.        
  407.        
  408.         function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  409.     local Part = Create("Part"){
  410.         Parent = Parent,
  411.         Reflectance = Reflectance,
  412.         Transparency = Transparency,
  413.         CanCollide = false,
  414.         Locked = true,
  415.         BrickColor = BrickColor.new(tostring(BColor)),
  416.         Name = Name,
  417.         Size = Size,
  418.         Material = Material,
  419.     }
  420.     RemoveOutlines(Part)
  421.     return Part
  422. end
  423.    
  424. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  425.     local Msh = Create(Mesh){
  426.         Parent = Part,
  427.         Offset = OffSet,
  428.         Scale = Scale,
  429.     }
  430.     if Mesh == "SpecialMesh" then
  431.         Msh.MeshType = MeshType
  432.         Msh.MeshId = MeshId
  433.     end
  434.     return Msh
  435. end
  436.        
  437.        
  438.        
  439. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  440.     local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  441.     prt.Anchored = true
  442.     prt.CFrame = cframe
  443.     local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  444.     game:GetService("Debris"):AddItem(prt, 10)
  445.     if Type == 1 or Type == nil then
  446.         table.insert(Effects, {
  447.             prt,
  448.             "Block1",
  449.             delay,
  450.             x3,
  451.             y3,
  452.             z3,
  453.             msh
  454.         })
  455.     elseif Type == 2 then
  456.         table.insert(Effects, {
  457.             prt,
  458.             "Block2",
  459.             delay,
  460.             x3,
  461.             y3,
  462.             z3,
  463.             msh
  464.         })
  465.     end
  466. end
  467.  
  468. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  469.     local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  470.     prt.Anchored = true
  471.     prt.CFrame = cframe
  472.     local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  473.     game:GetService("Debris"):AddItem(prt, 10)
  474.     table.insert(Effects, {
  475.         prt,
  476.         "Cylinder",
  477.         delay,
  478.         x3,
  479.         y3,
  480.         z3,
  481.         msh
  482.     })
  483. end
  484.  
  485. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay,material)
  486. local prt=CreatePart(workspace,material,0,0,brickcolor,"Effect",vt(.5,.5,.5))--part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  487. prt.Anchored=true
  488. prt.CFrame=cframe
  489. msh=CreateMesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  490. game:GetService("Debris"):AddItem(prt,2)
  491. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  492. for i=0,1,delay do
  493. swait()
  494. Part.Transparency=i
  495. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  496. end
  497. Part.Parent=nil
  498. end),prt,msh,(math.random(0,1)+math.random())/5)
  499. end
  500.  
  501. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  502.     local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  503.     prt.Anchored = true
  504.     prt.CFrame = cframe
  505.     local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  506.     game:GetService("Debris"):AddItem(prt, 10)
  507.     table.insert(Effects, {
  508.         prt,
  509.         "Cylinder",
  510.         delay,
  511.         x3,
  512.         y3,
  513.         z3,
  514.         msh
  515.     })
  516. end
  517.  
  518. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  519.     local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  520.     prt.Anchored = true
  521.     prt.CFrame = cframe
  522.     local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  523.     game:GetService("Debris"):AddItem(prt, 10)
  524.     table.insert(Effects, {
  525.         prt,
  526.         "Cylinder",
  527.         delay,
  528.         x3,
  529.         y3,
  530.         z3,
  531.         msh
  532.     })
  533. end
  534.  
  535. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  536.     local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  537.     prt.Anchored = true
  538.     prt.CFrame = cframe
  539.     local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  540.     game:GetService("Debris"):AddItem(prt, 10)
  541.     table.insert(Effects, {
  542.         prt,
  543.         "Cylinder",
  544.         delay,
  545.         x3,
  546.         y3,
  547.         z3,
  548.         msh
  549.     })
  550. end
  551.  
  552.  
  553. function MoonEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  554.     local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  555.     prt.Anchored = true
  556.     prt.CFrame = cframe
  557.     local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://259403370", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  558.     game:GetService("Debris"):AddItem(prt, 10)
  559.     table.insert(Effects, {
  560.         prt,
  561.         "Cylinder",
  562.         delay,
  563.         x3,
  564.         y3,
  565.         z3,
  566.         msh
  567.     })
  568. end
  569.  
  570. function HeadEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  571.     local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  572.     prt.Anchored = true
  573.     prt.CFrame = cframe
  574.     local msh = CreateMesh("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  575.     game:GetService("Debris"):AddItem(prt, 10)
  576.     table.insert(Effects, {
  577.         prt,
  578.         "Cylinder",
  579.         delay,
  580.         x3,
  581.         y3,
  582.         z3,
  583.         msh
  584.     })
  585. end
  586.  
  587. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  588.     local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  589.     prt.Anchored = true
  590.     prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  591.     local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  592.     local num = math.random(10, 50) / 1000
  593.     game:GetService("Debris"):AddItem(prt, 10)
  594.     table.insert(Effects, {
  595.         prt,
  596.         "Shatter",
  597.         num,
  598.         prt.CFrame,
  599.         math.random() - math.random(),
  600.         0,
  601.         math.random(50, 100) / 100
  602.     })
  603. end
  604.        
  605.         local lerp = function(a, b, t)
  606.     return a * (1 - t) + b * t
  607. end
  608.        
  609.         function clerp(a,b,t)
  610.         local qa = {QuaternionFromCFrame(a)}
  611.         local qb = {QuaternionFromCFrame(b)}
  612.         local ax, ay, az = a.x, a.y, a.z
  613.         local bx, by, bz = b.x, b.y, b.z
  614.         local _t = 1-t
  615.         return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  616.         end
  617.          
  618.         function QuaternionFromCFrame(cf)
  619.         local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  620.         local trace = m00 + m11 + m22
  621.         if trace > 0 then
  622.         local s = math.sqrt(1 + trace)
  623.         local recip = 0.5/s
  624.         return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  625.         else
  626.         local i = 0
  627.         if m11 > m00 then
  628.         i = 1
  629.         end
  630.         if m22 > (i == 0 and m00 or m11) then
  631.         i = 2
  632.         end
  633.         if i == 0 then
  634.         local s = math.sqrt(m00-m11-m22+1)
  635.         local recip = 0.5/s
  636.         return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  637.         elseif i == 1 then
  638.         local s = math.sqrt(m11-m22-m00+1)
  639.         local recip = 0.5/s
  640.         return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  641.         elseif i == 2 then
  642.         local s = math.sqrt(m22-m00-m11+1)
  643.         local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  644.         end
  645.         end
  646.         end
  647.        
  648.  
  649.         function QuaternionToCFrame(px, py, pz, x, y, z, w)
  650.         local xs, ys, zs = x + x, y + y, z + z
  651.         local wx, wy, wz = w*xs, w*ys, w*zs
  652.         local xx = x*xs
  653.         local xy = x*ys
  654.         local xz = x*zs
  655.         local yy = y*ys
  656.         local yz = y*zs
  657.         local zz = z*zs
  658.         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))
  659.         end
  660.         function QuaternionSlerp(a, b, t)
  661.         local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  662.         local startInterp, finishInterp;
  663.         if cosTheta >= 0.0001 then
  664.         if (1 - cosTheta) > 0.0001 then
  665.         local theta = math.acos(cosTheta)
  666.         local invSinTheta = 1/math.sin(theta)
  667.         startInterp = math.sin((1-t)*theta)*invSinTheta
  668.         finishInterp = math.sin(t*theta)*invSinTheta  
  669.         else
  670.         startInterp = 1-t
  671.         finishInterp = t
  672.         end
  673.         else
  674.         if (1+cosTheta) > 0.0001 then
  675.         local theta = math.acos(-cosTheta)
  676.         local invSinTheta = 1/math.sin(theta)
  677.         startInterp = math.sin((t-1)*theta)*invSinTheta
  678.         finishInterp = math.sin(t*theta)*invSinTheta
  679.         else
  680.         startInterp = t-1
  681.         finishInterp = t
  682.         end
  683.         end
  684.         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
  685.         end
  686.          
  687.         function weld5(part0, part1, c0, c1)
  688.             weeld=Instance.new("Weld", part0)
  689.             weeld.Part0=part0
  690.             weeld.Part1=part1
  691.             weeld.C0=c0
  692.             weeld.C1=c1
  693.             return weeld
  694.         end
  695.          
  696.         --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)
  697.          
  698.         function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  699.         return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  700.     end
  701.    
  702.    
  703.    
  704.  
  705.  
  706.  
  707.  
  708.  local f = 0
  709.  local b = Instance.new("BlurEffect",cam)
  710. local    c = Instance.new('PointLight', Torso)
  711. c.Range = 16
  712. c.Color = Color3.new(0, 1,1)
  713. c.Brightness = 1.5
  714.  game:GetService("RunService"):BindToRenderStep("W0tT", 0, function()
  715.  
  716. b.Size = b.Size - 4
  717. if boost == true then
  718. c.Enabled = true
  719.     cam.FieldOfView = lerp(cam.FieldOfView, 110, 0.5)
  720.    -- cam.FieldOfView = 110
  721.     freefall = 0
  722.     Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,3),0.25)
  723.  SphereEffect(BrickColor.new("Cyan"),RightLeg.CFrame*CFrame.new(0,-1,0)*angles(math.random(-180,180),math.random(-180,180),math.random(-180,180)),1.4,12,1.4,2.8,26,2.8,0.07)
  724.   SphereEffect(BrickColor.new("Cyan"),LeftLeg.CFrame*CFrame.new(0,-1,0)*angles(math.random(-180,180),math.random(-180,180),math.random(-180,180)),1.4,12,1.4,2.8,26,2.8,0.07)
  725.   if hitfloor ~= nil and Anim ~= "runIdle" then
  726.   SpecialEffect(BrickColor.new("Cyan"),RootPart.CFrame*CFrame.new(0,-3.4,.78) ,2,2,2, 1.5,1.5,1.5,.09)
  727.   end
  728. end
  729. if boost == false then
  730.     cam.FieldOfView = lerp(cam.FieldOfView, 70, 0.076)
  731.     --cam.FieldOfView = 70
  732.     c.Enabled = false
  733. end
  734. end)
  735.  
  736.  
  737.  
  738.                          mouse.KeyDown:connect(function(key)
  739.     if string.byte(key) == 48 then
  740.         b.Size = 40
  741.         Swing = 2
  742.         freefall = 0
  743.        
  744. coroutine.resume(coroutine.create(function()
  745.     for i = 0,1,0.1 do
  746.         swait()
  747.         Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8)),0.24)
  748. end
  749. end))
  750.         Humanoid.WalkSpeed = 180
  751.         RootPart.Velocity = RootPart.CFrame.lookVector*150
  752.         RingEffect(BrickColor.new("Cyan"), RootPart.CFrame*CFrame.new(0,0,-9.2) , 1, 1, 1, 8, 8, 8, 0.14,"Neon")
  753.         boost = true
  754.         boostsound:Play()
  755. end
  756. end)
  757.  
  758. mouse.KeyUp:connect(function(key)
  759.     if string.byte(key) == 48 then
  760.         Swing = 1
  761.         Humanoid.WalkSpeed = 64
  762.         boost = false
  763.         boostsound:Stop()
  764.  
  765. end
  766. end)
  767.  
  768.  
  769.  
  770.  
  771.                          mouse.KeyDown:connect(function(key)
  772.     if string.byte(key) == 50 then
  773.         b.Size = 40
  774.         freefall = 0
  775.         Swing = 2
  776.        
  777. coroutine.resume(coroutine.create(function()
  778.     for i = 0,1,0.1 do
  779.         swait()
  780.         Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.35*2.8,0.35*2.8),math.random(-0.35*2.8,0.35*2.8),math.random(-0.35*2.8,0.35*2.8)),0.48)
  781. end
  782. end))
  783.        
  784.         Humanoid.WalkSpeed = 320
  785.         RootPart.Velocity = RootPart.CFrame.lookVector*550
  786.         RingEffect(BrickColor.new("Cyan"), RootPart.CFrame*CFrame.new(0,0,-9.2) , 1, 1, 1, 18, 18, 18, 0.14,"Neon")
  787.         RingEffect(BrickColor.new("White"), RootPart.CFrame*CFrame.new(0,0,-11.2) , 1, 1, 1, 18, 18, 18, 0.14,"Neon")
  788.         RingEffect(BrickColor.new("Cyan"), RootPart.CFrame*CFrame.new(0,0,-13.2) , 1, 1, 1, 18, 18, 18, 0.14,"Neon")
  789.         boost = true
  790.         boostsound:Play()
  791. end
  792. end)
  793.  
  794. mouse.KeyUp:connect(function(key)
  795.     if string.byte(key) == 50 then
  796.         Swing = 1
  797.         Humanoid.WalkSpeed = 64
  798.         boost = false
  799.         boostsound:Stop()
  800.  
  801. end
  802. end)
  803.  
  804.  
  805. local lastwall = nil
  806. local jumped = false
  807.  
  808.  
  809.  
  810.          
  811.          
  812.          
  813.          local vwall = false
  814.          
  815.                  mouse.KeyDown:connect(function(key)
  816.              if key == 'b' and hitfloor == nil and attack == false then
  817.     vrun()
  818. end
  819.  end)
  820.  
  821.  
  822.  function vrun()
  823.                 local ray = Ray.new(
  824.         RootPart.CFrame.p, RootPart.CFrame.lookVector *2.5
  825.     )
  826.     local hit, position, normal = workspace:FindPartOnRay(ray, character)
  827.    
  828.     if hit then
  829.         if hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "prt" and hit.CanCollide == true then
  830.         vwall = true
  831.             local NV = Vector3.new(0,0,0)
  832.                  local spd = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).magnitude + 10
  833. local dir = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).unit
  834.  local GravPoint = RootPart.Velocity.y
  835.         local velo = Instance.new("BodyVelocity",Torso)
  836.         velo.MaxForce = Vector3.new(400000,400000,400000)
  837.  
  838.         attack = true
  839. while vwall == true and ray and hit do
  840. swait()
  841. change = 0.84+ Humanoid.WalkSpeed/132
  842. if Humanoid.WalkSpeed > 40 and Humanoid.WalkSpeed < 70 then
  843. velo.Velocity =  Vector3.new(0,40,0)
  844. end
  845. if Humanoid.WalkSpeed > 70 and Humanoid.WalkSpeed < 200 then
  846.         velo.Velocity =  Vector3.new(0,80,0)
  847.         end
  848.         if Humanoid.WalkSpeed > 200 then
  849.         velo.Velocity =  Vector3.new(0,130,0)
  850.         end
  851.          ray = Ray.new(
  852.         RootPart.CFrame.p, RootPart.CFrame.lookVector *2.5
  853.     )
  854.     hit, position, normal = workspace:FindPartOnRay(ray, character)
  855.         Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.52*math.cos(sine/2), .6) * angles(math.rad(96), math.rad(0), math.rad(0)+ RootPart.RotVelocity.Y / 26), .1)
  856.         Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-11+20*math.sin(sine/2)),math.rad(0),math.rad(0+5*math.sin(sine/4)) + RootPart.RotVelocity.Y / 13),.1)
  857.         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.1) * angles(math.rad(-90-7*math.sin(sine/4))+ RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(15+2*math.sin(sine/4))- RootPart.RotVelocity.Y / 34),.15)
  858.         LW.C0=clerp(LW.C0,cf(-1.5,0.5,0.1)*angles(math.rad(-90-7*math.sin(sine/4))+ RootPart.RotVelocity.Y / 34,math.rad(0),math.rad(-15+2*math.sin(sine/4))+ RootPart.RotVelocity.Y / -34),.15)
  859.         LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.28*math.cos(sine/4), 0-0.32*math.cos(sine/4)) * CFrame.Angles(math.rad(0+104*math.sin(sine/4)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)+ RootPart.RotVelocity.Y / -54), 0.3+ Humanoid.WalkSpeed/272)
  860. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1-0.28*math.cos(sine/4),0+0.32*math.cos(sine/4)) * CFrame.Angles(math.rad(0-104*math.sin(sine/4)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)- RootPart.RotVelocity.Y / 54), 0.3+ Humanoid.WalkSpeed/272)
  861. end
  862.         velo:Destroy()
  863.         wait(0.07)
  864.  
  865. if vwall == false then
  866.  
  867.  RootPart.Velocity = -RootPart.CFrame.lookVector*68 + Vector3.new(0,86,0)
  868.  
  869. --[[]
  870.         for i = 0,5,0.2 do
  871. rs:wait()
  872. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -0.79, 0) * CFrame.Angles(math.rad(0+100*i), math.rad(0), math.rad(0)), 0.2)
  873. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  874. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(180), math.rad(-60), math.rad(40)),.2)
  875. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(180), math.rad(60), math.rad(-40)),.2)
  876. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  877. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  878. end
  879. ]]
  880.  
  881.  
  882. for i = 0,4,0.1 do
  883. swait()
  884. Humanoid.CameraOffset = Vector3.new(0,0,0)
  885. 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)
  886. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1)
  887. RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1)
  888. LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1)
  889. 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)
  890. 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)
  891. end
  892.  
  893.         attack = false
  894.  
  895.  
  896. end
  897.  
  898.  
  899.         if vwall == true then
  900.  RootPart.Velocity = RootPart.CFrame.lookVector*38 + Vector3.new(0,86,0)
  901.  
  902. --[[]
  903.         for i = 0,5,0.2 do
  904. rs:wait()
  905. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -0.79, 0) * CFrame.Angles(math.rad(0+100*i), math.rad(0), math.rad(0)), 0.2)
  906. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  907. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(180), math.rad(-60), math.rad(40)),.2)
  908. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(180), math.rad(60), math.rad(-40)),.2)
  909. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  910. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  911. end
  912. ]]
  913.  
  914.  
  915. for i = 0,4,0.15 do
  916. swait()
  917. Humanoid.CameraOffset = Vector3.new(0,0,0)
  918. 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)
  919. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1)
  920. RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1)
  921. LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1)
  922. 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)
  923. 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)
  924. end
  925.  
  926.         attack = false
  927.  
  928. end
  929.  
  930.  
  931. end
  932. end
  933. end
  934.  
  935.  
  936.  
  937.  
  938.      mouse.KeyUp:connect(function(key)
  939.              if key == 'b' and vwall == true then
  940.              vwall = false
  941.              end
  942.              end)
  943.          
  944.  
  945.  
  946.          
  947.          
  948. function Ldash()
  949.    
  950.    
  951.  
  952. evadecooldown = true
  953. attack = true
  954. k = math.random(1,2)
  955. if k == 1 then
  956. so("http://www.roblox.com/asset/?id=807766310", Head, 2.5, 1)
  957. else
  958.  so("http://www.roblox.com/asset/?id=807768137", Head, 2.5, 1)
  959.  end
  960.  
  961.  
  962.  
  963.  
  964.  
  965.  --+173.8*i
  966. for i = 0,.7,0.1 do
  967. swait()
  968. Head.Velocity = Head.CFrame.rightVector * -135
  969. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(32)), 0.2)
  970. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(-9),math.rad(-14)),.2)
  971. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.2) * angles(math.rad(27), math.rad(0), math.rad(30)),.2)
  972. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)),.2)
  973. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(12)), 0.2)
  974. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(8)), 0.2)
  975. end
  976.  
  977. attack = false
  978. wait(0.08)
  979. evadecooldown = false
  980.  
  981.  
  982. end
  983.  
  984.  
  985.  
  986.  
  987.  
  988. function Rdash()
  989.    
  990.    
  991.  
  992. evadecooldown = true
  993. attack = true
  994. k = math.random(1,2)
  995. if k == 1 then
  996. so("http://www.roblox.com/asset/?id=807766310", Head, 2.5, 1)
  997. else
  998.  so("http://www.roblox.com/asset/?id=807768137", Head, 2.5, 1)
  999.  end
  1000.  
  1001.  
  1002.  
  1003.  
  1004.  
  1005.  --+173.8*i
  1006. for i = 0,.7,0.1 do
  1007. swait()
  1008. Head.Velocity = Head.CFrame.rightVector * 135
  1009. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-32)), 0.2)
  1010. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(9),math.rad(14)),.2)
  1011. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-30)),.2)
  1012. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.2) * angles(math.rad(27), math.rad(0), math.rad(-30)),.2)
  1013. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-8)), 0.2)
  1014. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-12)), 0.2)
  1015. end
  1016.  
  1017. attack = false
  1018. wait(0.08)
  1019. evadecooldown = false
  1020.  
  1021.  
  1022. end
  1023. local sliding = false
  1024.  
  1025.  
  1026. function Slide()
  1027.    
  1028.      local spd = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).magnitude + 10
  1029.      spd = spd + 30
  1030. local dir = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).unit
  1031.  local GravPoint = RootPart.Velocity.y
  1032.  if spd > 40 and hitfloor ~= nil then
  1033. noleg = true
  1034.  
  1035. attack = true
  1036. k = math.random(1,2)
  1037. if k == 1 then
  1038. so("http://www.roblox.com/asset/?id=807766310", Head, 2.5, 1)
  1039. else
  1040.  so("http://www.roblox.com/asset/?id=807768137", Head, 2.5, 1)
  1041.  end
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  local NV = Vector3.new(0,0,0)
  1053. local bv = Instance.new("BodyVelocity", Torso)
  1054. bv.maxForce = Vector3.new(1/0,1/0,1/0)
  1055. bv.velocity = dir*spd
  1056.             local bg = Instance.new("BodyGyro", Torso)
  1057. bg.maxTorque = Vector3.new(1/0,1/0,1/0)
  1058. bg.cframe = CFrame.new(NV, dir) * CFrame.Angles(math.pi/2.2,0.24,0)
  1059. headsunsound.SoundId = "rbxassetid://1295468446"
  1060. headsunsound.TimePosition = 0
  1061.  
  1062. Humanoid.PlatformStand = true
  1063. while spd > 2 and hitfloor ~= nil and sliding == true do
  1064. swait()
  1065. spd = spd - 0.95
  1066. bv.velocity = dir*spd + Vector3.new(0,0,0)
  1067. bg.cframe = CFrame.new(NV, dir) * CFrame.Angles(math.pi/2.2,0.24,0)
  1068. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -2.3, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(12)), 0.2)
  1069. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(34),math.rad(0),math.rad(12)),.2)
  1070. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(110), math.rad(0), math.rad(70)),.2)
  1071. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.2) * angles(math.rad(0), math.rad(0), math.rad(-60)),.2)
  1072. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1073. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.56, -0.2) * CFrame.Angles(math.rad(-24), math.rad(0), math.rad(0)), 0.2)
  1074. end
  1075. bv:Destroy()
  1076. bg:Destroy()
  1077. headsunsound.SoundId = "rbxassetid://758199523"
  1078. headsunsound.TimePosition = 0
  1079. Humanoid.PlatformStand = false
  1080. attack = false
  1081. sliding = false
  1082. wait(0.05)
  1083. evadecooldown = false
  1084.  
  1085.  
  1086. end
  1087. end
  1088.  
  1089. function land()
  1090.     attack = true
  1091.    RootPart.Velocity = Vector3.new(0,0,0)
  1092.     WaveEffect(BrickColor.new("Cyan"), RootPart.CFrame*CFrame.new(0,-1,0) , 1, 1, 1, 3, 0.8, 3, 0.06)
  1093.      so("http://www.roblox.com/asset/?id=1295424585", Torso, 3.5, 1)
  1094.  
  1095. coroutine.resume(coroutine.create(function()
  1096.     for i = 0,1,0.1 do
  1097.         swait()
  1098.         Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.55*2.8,0.55*2.8),math.random(-0.55*2.8,0.55*2.8),math.random(-0.55*2.8,0.55*2.8)),0.44)
  1099.         Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.5)
  1100. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(7),math.rad(0),math.rad(0)),.5)
  1101. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(87)),.5)
  1102. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0) * angles(math.rad(0), math.rad(0), math.rad(-87)),.5)
  1103. 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.5)
  1104. 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.5)
  1105.        
  1106. end
  1107. attack = false
  1108.  
  1109.  
  1110. end))
  1111.  
  1112.  
  1113.  
  1114. end
  1115.  
  1116.  
  1117.  
  1118.  
  1119. function stomp()
  1120.     attack = true
  1121.     stompsound:Play()
  1122.    
  1123.    while hitfloor == nil do
  1124.        swait()
  1125.        b.Size = 12
  1126.         WaveEffect(BrickColor.new("Cyan"), LeftLeg.CFrame*CFrame.new(0,-2.4,0) , 1, 1, 1, 0.8, 0.8, 0.8, 0.14)
  1127.        RootPart.Velocity = Vector3.new(0,RootPart.Velocity.y/1.6,0) +Vector3.new(0,-150,0)
  1128.                    Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1129. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(0+4*math.sin(sine/1.3)), math.rad(0), math.rad(0)),0.07)
  1130. 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)
  1131. 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)
  1132. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(60+7*math.sin(sine/1.3)),math.rad(0),math.rad(0)),0.07)
  1133. 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(0+4*math.cos(sine/1.3)), math.rad(3), math.rad(0)), 0.1)
  1134. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, .27+0.17*math.cos(sine/1.3), -0.56) * CFrame.Angles(math.rad(-12+4*math.cos(sine/1.3)), math.rad(0), math.rad(0)), 0.1)
  1135.  
  1136. end
  1137.  stompsound:Stop()
  1138. land()
  1139.  
  1140.  
  1141. end
  1142.  
  1143.  
  1144. function changemusic()
  1145.     musicnum = musicnum + 1
  1146.     music.TimePosition = 0
  1147.     local osix = false
  1148.     local spd = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).magnitude
  1149.     if musicnum > 14 then
  1150.         musicnum = 1
  1151.     end
  1152.     if musicnum == 1 then
  1153.         music.SoundId = "rbxassetid://179029173"
  1154.     end
  1155.     if musicnum == 2 then
  1156.         music.SoundId = "rbxassetid://146443855"
  1157.         end
  1158.         if musicnum == 3 then
  1159.            music.SoundId = "rbxassetid://1342408291"
  1160.           end
  1161.           if musicnum == 4 then
  1162.             music.SoundId = "rbxassetid://201219416"  
  1163.         end
  1164.         if musicnum == 5 then
  1165. music.SoundId = "rbxassetid://1390472571"
  1166. end
  1167.         if musicnum == 6 then
  1168.             osix = true
  1169. music.SoundId = "rbxassetid://249974783"
  1170. end
  1171. if musicnum == 7 then
  1172.     music.SoundId = "rbxassetid://1851880603"
  1173. end
  1174. if musicnum == 8 then
  1175.  music.SoundId = "rbxassetid://412034984"
  1176. end
  1177. if musicnum == 9 then
  1178.    music.SoundId = "rbxassetid://536915629"
  1179. end
  1180. if musicnum == 10 then
  1181. music.SoundId = "rbxassetid://1200005861"
  1182. end
  1183. if musicnum == 11 then
  1184.     music.SoundId = "rbxassetid://1055930631"
  1185. end
  1186. if musicnum == 12 then
  1187.     music.SoundId = "rbxassetid://300269553"
  1188. end
  1189. if musicnum == 13 then
  1190.     music.SoundId = "rbxassetid://199897052"
  1191. end
  1192. if musicnum == 14 then
  1193.   music.SoundId = "rbxassetid://638115895"  
  1194. end
  1195.  
  1196. if spd < 14 then
  1197. Humanoid.Jump = true
  1198.  
  1199. if osix == false then
  1200. so("rbxassetid://537371462",RootPart,2,1)
  1201. end
  1202.  
  1203.  
  1204. RootPart.Velocity = Vector3.new(0,102,0)
  1205. attack = true
  1206. wait(0.08)
  1207. for i = 0,7,0.1 do
  1208.     swait()
  1209.     RootPart.Velocity = Vector3.new(0,2,0)
  1210. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1211. 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)
  1212. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1)
  1213. RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1)
  1214. LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1)
  1215. 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)
  1216. 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)
  1217.  
  1218. end
  1219. b.Size = 40
  1220. MoonEffect(BrickColor.new("Cyan"), RootPart.CFrame*CFrame.new(0,0,0) , 1, 1, 1, 8, 8, 8, 0.06)
  1221.  
  1222. if osix == true then
  1223. osix = false
  1224. so("rbxassetid://156821036",RootPart,2,1)
  1225. end
  1226.  
  1227. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1)
  1228. for i = 0,5,0.1 do
  1229.     swait()
  1230. RootPart.Velocity = Vector3.new(0,3.5,0)
  1231. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1232. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1+0.1*i, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.21)
  1233. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(22-2*i),math.rad(0),math.rad(0)),.21)
  1234. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.09*i, 0) * angles(math.rad(20-6*i), math.rad(0), math.rad(90+13*i)), 0.21)
  1235. LW.C0 = clerp(LW.C0, CFrame.new(-1.0-0.12*i, 0.5, -0.4+0.05*i) * angles(math.rad(20+13*i), math.rad(0), math.rad(20-13*i)), 0.21)
  1236. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(45+6*i), math.rad(0), math.rad(-22-4*i)), 0.21)
  1237. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(45+6*i), math.rad(0), math.rad(22+4*i)), 0.21)
  1238. end
  1239. attack = false
  1240. end
  1241. end
  1242.  
  1243.  
  1244.   mouse.KeyDown:connect(function(key)
  1245. if key == 'q' and attack == false and evadecooldown == false then
  1246. Ldash()
  1247. end
  1248. end)
  1249.  
  1250.  
  1251.  
  1252.    mouse.KeyDown:connect(function(key)
  1253. if key == 'e' and attack == false and evadecooldown == false then
  1254. Rdash()
  1255. end
  1256. end)
  1257.  
  1258.    mouse.KeyDown:connect(function(key)
  1259. if key == 'c' and attack == false and evadecooldown == false and hitfloor ~= nil then
  1260.      sliding = true
  1261. Slide()
  1262. end
  1263. end)
  1264.  
  1265.    mouse.KeyDown:connect(function(key)
  1266. if key == 'c' and attack == false and hitfloor == nil then
  1267.      stomp()
  1268. end
  1269. end)
  1270.  
  1271.  
  1272. local walljump = false
  1273.  
  1274.  
  1275. function walljumpp()
  1276.         local ray = Ray.new(
  1277.         Torso.CFrame.p, RootPart.CFrame.lookVector *5
  1278.     )
  1279.     local hit, position, normal = workspace:FindPartOnRay(ray, character)
  1280.    
  1281.     if hit then
  1282.         if  hit.Parent.Parent ~= Character and hit.Parent ~= Character then
  1283.         local dir = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).unit
  1284.         GravPoint = 0
  1285.         freefall = 0
  1286.         walljump = true
  1287.         Humanoid.AutoRotate = false
  1288.         local velo = Instance.new("BodyVelocity",Torso)
  1289.         velo.MaxForce = Vector3.new(400000,400000,400000)
  1290.         --game.Debris:AddItem(velo,0.1)
  1291.         attack = true
  1292. while hitfloor == nil and walljump == true and ray and hit  do
  1293. swait()
  1294. freefall = 0
  1295. GravPoint = GravPoint - 0.36
  1296.          ray = Ray.new(
  1297.         RootPart.CFrame.p, RootPart.CFrame.lookVector *2.5
  1298.     )
  1299.     hit, position, normal = workspace:FindPartOnRay(ray, character)
  1300. velo.Velocity = vt(0,GravPoint,0)
  1301. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0.9) * CFrame.Angles(math.rad(5), math.rad(90), math.rad(8)), 0.2)
  1302. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(7),math.rad(0),math.rad(86)),.2)
  1303. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)),.2)
  1304. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),.2)
  1305. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-6), math.rad(14), math.rad(-12)), 0.2)
  1306. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(23)), 0.2)
  1307. end
  1308. if walljump == false then
  1309.     k = math.random(1,3)
  1310. if k == 1 then
  1311. so("http://www.roblox.com/asset/?id=800121776", Head, 2.5, 1)
  1312. else if k == 2 then
  1313.  so("http://www.roblox.com/asset/?id=804889329", Head, 2.5, 1)
  1314. else if k == 3 then
  1315.      so("http://www.roblox.com/asset/?id=804907617", Head, 2.5, 1)
  1316.      end
  1317.      end
  1318. end
  1319.  
  1320.     velo:Destroy()
  1321.         attack = false
  1322.     coroutine.resume(coroutine.create(function()
  1323.     for i = 0,1,0.1 do
  1324.         swait()
  1325. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1326. 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)
  1327. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1)
  1328. RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1)
  1329. LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1)
  1330. 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)
  1331. 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)
  1332. end
  1333. end))
  1334.    
  1335.     Humanoid.AutoRotate = true
  1336.     RootPart.Velocity = RootPart.CFrame.lookVector * -137 + Vector3.new(0,136,0)
  1337.     wait(0.07)
  1338.      RootPart.CFrame = CFrame.new(RootPart.CFrame.p,-RootPart.CFrame.lookVector)
  1339. end
  1340. if walljump == true then
  1341.         attack = false
  1342. walljump = false
  1343. Humanoid.AutoRotate = true
  1344. velo:Destroy()
  1345. end
  1346. end
  1347. end
  1348. end
  1349.  
  1350.    
  1351.     local homed = nil
  1352.     function home()
  1353.         if walljump ~= true then
  1354.                         for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 80)) do
  1355.                 if v:FindFirstChild('Head') then
  1356.                     Grabbed = true
  1357.                     homed = v
  1358.                 end
  1359.             end
  1360.    
  1361.     if homed ~= nil and homed:FindFirstChildOfClass("Humanoid").Health > 1 and walljump == false then
  1362.                                 so("http://www.roblox.com/asset/?id=162460823", Head, 1, .8)
  1363.                                        local SBall = Instance.new("Part",Character)
  1364.     SBall.Name = "Homing Ball"
  1365.     SBall.CanCollide = false
  1366.     SBall.Anchored = false
  1367.     SBall.Transparency = 0.64
  1368.     SBall.CFrame = CFrame.new(RootPart.CFrame.p)
  1369.     SBall.BrickColor = BrickColor.new("Toothpaste")
  1370.     SBall.Size = Vector3.new(1,1,1)
  1371.     SBall.Material = "Neon"
  1372.     SBallweld = Instance.new("Weld")
  1373. SBallweld.Parent = SBall
  1374. SBallweld.Part0 = RootPart
  1375. SBallweld.Part1 = SBall
  1376. SBallweld.C1 = CFrame.new(0, 1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  1377.         SBallweld.Part0 = RootPart
  1378.     local SBallmesh = Instance.new("SpecialMesh",SBall)
  1379.     SBallmesh.MeshType = "Sphere"
  1380.     SBallmesh.Scale = Vector3.new(6,6,6)
  1381.             trail = Instance.new("Trail", Character)
  1382. a2 = Instance.new("Attachment", Torso) a2.Position = Vector3.new(0,2,0)
  1383. a3 = Instance.new("Attachment", Torso)a3.Position = Vector3.new(0,-2.5,0)
  1384. trail.Texture = "rbxassetid://0"
  1385. trail.Attachment0 = a2
  1386. trail.Attachment1 = a3
  1387. trail.Lifetime  =  0.353
  1388. trail.MinLength = 0.03
  1389. trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,1)})
  1390. trail.Color = ColorSequence.new(Color3.new(0,1,1), Color3.new(0, 0,0))
  1391. trail.LightEmission = 4.8
  1392. trail.TextureLength = 0.034
  1393.         trail.Enabled = true
  1394.  attack = true
  1395.     local position = Instance.new("BodyPosition",Torso)
  1396.     position.P = 68350
  1397.     position.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1398.    
  1399.         while homed ~= nil and (homed.Torso.Position-RootPart.Position).magnitude > 8 do
  1400.         swait()
  1401.         SBall.CFrame = CFrame.new(RootPart.CFrame.p)
  1402.     Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0+420*math.abs(sine/3.2)), math.rad(0), math.rad(0)), 0.6)
  1403. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1)
  1404. RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1)
  1405. LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1)
  1406. 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)
  1407. 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)
  1408.     position.Position = homed.Torso.Position + Vector3.new(0,2,0)
  1409. end
  1410.         local bodvol=Instance.new("BodyVelocity")
  1411. bodvol.velocity= RootPart.CFrame.lookVector*240 + Vector3.new(0,30,0)
  1412. bodvol.P= 35200
  1413. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1414. bodvol.Parent=homed.Head
  1415. game:GetService("Debris"):AddItem(bodvol, 0.2)
  1416. --homed:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(10,30))
  1417.  
  1418. position:Destroy()
  1419. trail.Enabled = false
  1420. SBall:Destroy()
  1421. RootPart.Velocity = Vector3.new(0,93.5,0)
  1422.     coroutine.resume(coroutine.create(function()
  1423. for i = 0,5,0.26 do
  1424.     swait()
  1425. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1426. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1+0.1*i, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.21)
  1427. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(22-2*i),math.rad(0),math.rad(0)),.21)
  1428. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.09*i, 0) * angles(math.rad(20-6*i), math.rad(0), math.rad(90+13*i)), 0.21)
  1429. LW.C0 = clerp(LW.C0, CFrame.new(-1.0-0.12*i, 0.5, -0.4+0.05*i) * angles(math.rad(20+13*i), math.rad(0), math.rad(20-13*i)), 0.21)
  1430. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(45+6*i), math.rad(0), math.rad(-22-4*i)), 0.21)
  1431. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(45+6*i), math.rad(0), math.rad(22+4*i)), 0.21)
  1432. end
  1433. homed = nil
  1434. attack = false
  1435. end))
  1436.  
  1437. end
  1438.    
  1439. end
  1440.  
  1441.  
  1442. end
  1443.  
  1444. mouse.KeyDown:connect(function(key)
  1445.                      wait(0.16)
  1446.              if string.byte(key) == 32 and hitfloor == nil and attack == false and walljump == false and Humanoid.Jump == true then
  1447.          walljumpp()
  1448.      end
  1449.                  if string.byte(key) == 32 and hitfloor == nil and attack == false and walljump == false and Humanoid.Jump == true then
  1450.          home()
  1451.      end
  1452.      
  1453. if string.byte(key) == 32 and hitfloor == nil and attack == true and walljump == true then
  1454. walljump = false
  1455. end
  1456.      end)
  1457.          
  1458.  
  1459.  
  1460. mouse.KeyDown:connect(function(key)
  1461. if key == 'm' and attack == false then
  1462. changemusic()
  1463. end
  1464. end)
  1465.  
  1466. local MutedMusic = false
  1467. mouse.KeyDown:connect(function(key)
  1468. if key == 'n' then
  1469. if not MutedMusic then
  1470. MutedMusic = true
  1471. music.Volume = 0
  1472. elseif MutedMusic then
  1473. MutedMusic = false
  1474. music.Volume = 1
  1475. end
  1476. end
  1477. end)
  1478.  
  1479.  
  1480.  
  1481.  
  1482.    mouse.KeyUp:connect(function(key)
  1483.        wait(0.05)
  1484. if key == 'c' and sliding == true then
  1485.      sliding = false
  1486. end
  1487. end)
  1488. local look = 0
  1489.  
  1490.  
  1491.  
  1492.                 while true do
  1493.     swait()
  1494. sine = sine + change
  1495. --speed = speed + music.PlaybackLoudness/90
  1496. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1497. local velderp=RootPart.Velocity.y
  1498. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1499.    
  1500.     local TiltVelocity = CFrame.new(RootPart.CFrame:vectorToObjectSpace(RootPart.Velocity))
  1501.  
  1502. local rlegray = Ray.new(RightLeg.Position+Vector3.new(0,0.54,0),Vector3.new(0, -1.75, 0))
  1503. local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, Character)
  1504.  
  1505. local llegray = Ray.new(LeftLeg.Position+Vector3.new(0,0.54,0),Vector3.new(0, -1.75, 0))
  1506. local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, Character)
  1507.  
  1508.         local waterthing = Ray.new(RootPart.CFrame.p,Vector3.new(0,-1,0))
  1509.     local start, position = workspace:FindPartOnRay(waterthing, character)
  1510.    
  1511.     if start ~= nil and start.Material == "Water" then
  1512.    
  1513.     RootPart.Velocity = RootPart.Velocity + Vector3.new(0,6,0)
  1514.    
  1515.     end
  1516.  
  1517. headsunsound.Pitch = 0.76 + Humanoid.WalkSpeed/124
  1518. if torvel<1  and Swing == 2 then
  1519.     boost = false
  1520. elseif torvel>1   and Swing == 2 then
  1521.     boost = true
  1522.     freefall = 0
  1523. end
  1524. if hitfloor ~= nil and freefall < 150 then
  1525.     freefall = 0
  1526. end
  1527. if freefall > 150 and hitfloor ~= nil then
  1528. land()
  1529. freefall = 0
  1530. end
  1531.  
  1532.  
  1533.  
  1534.  
  1535.  
  1536.  
  1537.  
  1538.         if RootPart.Velocity.y > 1 and hitfloor==nil then
  1539. Anim="Jump"
  1540.  
  1541.  
  1542.  
  1543.  
  1544.  
  1545. if attack==false then
  1546. change = 1
  1547. look = 0
  1548.                    Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1549. 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)
  1550. 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)
  1551. 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)
  1552. 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)
  1553. 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)
  1554. 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)
  1555. end
  1556.  
  1557. elseif RootPart.Velocity.y < -1 and freefall <150 and hitfloor==nil then
  1558. Anim="Fall"
  1559. change = 1
  1560. freefall = freefall +0.77
  1561.  
  1562.  
  1563. if attack==false then
  1564.                    Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1565. 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)
  1566. 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)
  1567. 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)
  1568. 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)
  1569. 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)
  1570. 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)
  1571. end
  1572.  
  1573.  
  1574.  
  1575. elseif RootPart.Velocity.y < -1 and freefall > 150 and hitfloor==nil then
  1576. Anim="FreeFall"
  1577. change = 1
  1578.  
  1579.  
  1580. if attack==false then
  1581.                    Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1582. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(-90+3*math.sin(sine/1.3)), math.rad(0), math.rad(0)),0.07)
  1583. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(14+12*math.cos(sine/1.3)), math.rad(0), math.rad(110)), 0.07)
  1584. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(14+12*math.cos(sine/1.3)), math.rad(0), math.rad(-110)), 0.07)
  1585. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-12+7*math.sin(sine/1.3)),math.rad(0),math.rad(0)),0.07)
  1586. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.17*math.cos(sine/1.3),0.2) * CFrame.Angles(math.rad(-12+4*math.cos(sine/1.3)), math.rad(3), math.rad(-46)), 0.1)
  1587. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.17*math.cos(sine/1.3), 0.2) * CFrame.Angles(math.rad(-12+4*math.cos(sine/1.3)), math.rad(0), math.rad(46)), 0.1)
  1588. end
  1589.  
  1590. elseif torvel<1 and hitfloor~=nil then
  1591. Anim="Idle"
  1592. change = 1
  1593. if attack==false and equip == false then
  1594.  
  1595.                    Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1596. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.04*math.cos(sine/40), -0) * CFrame.Angles(math.rad(0-0.81*math.cos(sine/40)), math.rad(-40), math.rad(0)), 0.1)
  1597. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0+2.6*math.sin(sine/40)),math.rad(0),math.rad(40)),0.1)
  1598. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.55+0.04*math.sin(sine/40), 0-0.04*math.cos(sine/40)) * angles(math.rad(-2+1.3*math.cos(sine/40)), math.rad(0+4*math.sin(sine/40)), math.rad(6.3+2.2*math.cos(sine/40))),0.1)
  1599. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.55+0.04*math.sin(sine/40), 0-0.04*math.cos(sine/40)) * angles(math.rad(2+1.3*math.cos(sine/40)), math.rad(0-4*math.sin(sine/40)), math.rad(-6.3-2.2*math.cos(sine/40))),0.1)
  1600. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, llegendPoint.Y-LeftLeg.Position.Y+0.04*math.cos(sine/40), 0) * CFrame.Angles(math.rad(0+0.81*math.cos(sine/40)), math.rad(18+0.81*math.cos(sine/40)), math.rad(-2-0.81*math.cos(sine/40))),0.1)
  1601. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.57, rlegendPoint.Y-RightLeg.Position.Y+0.04*math.cos(sine/40), 0)  * CFrame.Angles(math.rad(0+0.81*math.cos(sine/40)), math.rad(-2+0.81*math.cos(sine/40)), math.rad(3-0.81*math.cos(sine/40))),0.1)
  1602. end
  1603.  
  1604.  
  1605.    
  1606. elseif torvel>1.5 and torvel<70 and hitfloor~=nil then
  1607. Anim="Walk"
  1608. change = 0.84+ Character.Humanoid.WalkSpeed/132
  1609. look = 0
  1610. if attack==false and equip == false then
  1611.                            Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.02)
  1612.         Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.52*math.cos(sine/2), -.8) * angles(math.rad(-26), math.rad(0), math.rad(0)+ RootPart.RotVelocity.Y / 26), .1)
  1613.         Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-11+20*math.sin(sine/2)),math.rad(0),math.rad(0+5*math.sin(sine/4)) + RootPart.RotVelocity.Y / 13),.1)
  1614.         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.1) * angles(math.rad(-60-7*math.sin(sine/4))+ RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(15+2*math.sin(sine/4))- RootPart.RotVelocity.Y / 34),.15)
  1615.         LW.C0=clerp(LW.C0,cf(-1.5,0.5,0.1)*angles(math.rad(-60-7*math.sin(sine/4))+ RootPart.RotVelocity.Y / 34,math.rad(0),math.rad(-15+2*math.sin(sine/4))+ RootPart.RotVelocity.Y / -34),.15)
  1616.         LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.28*math.cos(sine/4), 0-0.32*math.cos(sine/4)) * CFrame.Angles(math.rad(0+104*math.sin(sine/4)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)+ RootPart.RotVelocity.Y / -54), 0.3)
  1617. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1-0.28*math.cos(sine/4),0+0.32*math.cos(sine/4)) * CFrame.Angles(math.rad(0-104*math.sin(sine/4)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)- RootPart.RotVelocity.Y / 54), 0.3)
  1618. end
  1619.  
  1620.  
  1621.         elseif torvel>=70 and torvel<200 and hitfloor~=nil then
  1622.         Anim="Run"
  1623.         change = 0.84+ Character.Humanoid.WalkSpeed/142
  1624.         if attack==false and equip == false then
  1625.                            Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.02)
  1626.         Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.52*math.cos(sine/1.5), -.8) * angles(math.rad(-37), math.rad(0), math.rad(0)+ RootPart.RotVelocity.Y / 26), .1)
  1627.         Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-11+25*math.sin(sine/1.5)),math.rad(0),math.rad(0+5*math.sin(sine/3)) + RootPart.RotVelocity.Y / 13),.1)
  1628.         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.3) * angles(math.rad(-72-8*math.sin(sine/1.5))+ RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(1+0*math.cos(sine/3))- RootPart.RotVelocity.Y / 34),.25)
  1629.         LW.C0=clerp(LW.C0,cf(-1.5,0.5,0.3)*angles(math.rad(-72-8*math.sin(sine/1.5))+ RootPart.RotVelocity.Y / 34,math.rad(0),math.rad(-1+0*math.cos(sine/3))+ RootPart.RotVelocity.Y / -34),.25)
  1630.         LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.32*math.cos(sine/3), 0-0.42*math.cos(sine/3)) * CFrame.Angles(math.rad(0+134*math.sin(sine/3)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)+ RootPart.RotVelocity.Y / -54), 0.44)
  1631. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1-0.32*math.cos(sine/3),0+0.42*math.cos(sine/3)) * CFrame.Angles(math.rad(0-134*math.sin(sine/3)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)- RootPart.RotVelocity.Y / 54), 0.44)
  1632.         end
  1633.        
  1634.         --[[
  1635.         if attack==false then
  1636.         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)
  1637.         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)
  1638.         end
  1639.         ]]
  1640.         if attack==true and noleg == false then
  1641.         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)
  1642.            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)
  1643.         end
  1644.        
  1645.        
  1646.        
  1647.                 elseif torvel>=200 and hitfloor~=nil then
  1648.         Anim="MachRun"
  1649.         change = 0.84+ Character.Humanoid.WalkSpeed/182
  1650.         if attack==false and equip == false then
  1651.                            Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.02)
  1652.         Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.52*math.cos(sine/1), -3.8) * angles(math.rad(-44), math.rad(0), math.rad(0)+ RootPart.RotVelocity.Y / 26), .2)
  1653.         Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-11+25*math.sin(sine/1)),math.rad(0),math.rad(0+5*math.sin(sine/2)) + RootPart.RotVelocity.Y / 13),.2)
  1654.         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.5) * angles(math.rad(-78-12*math.sin(sine/1))+ RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(-24+0*math.cos(sine/2))- RootPart.RotVelocity.Y / 34),.35)
  1655.         LW.C0=clerp(LW.C0,cf(-1.5,0.5,0.5)*angles(math.rad(-78-12*math.sin(sine/1))+ RootPart.RotVelocity.Y / 34,math.rad(0),math.rad(24+0*math.cos(sine/2))+ RootPart.RotVelocity.Y / -34),.35)
  1656.         LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.42*math.cos(sine/2), 0-0.62*math.cos(sine/2)) * CFrame.Angles(math.rad(0+134*math.sin(sine/2)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)+ RootPart.RotVelocity.Y / -54), 0.52)
  1657. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1-0.42*math.cos(sine/2),0+0.62*math.cos(sine/2)) * CFrame.Angles(math.rad(0-134*math.sin(sine/2)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)- RootPart.RotVelocity.Y / 54), 0.52)
  1658.         end
  1659.        
  1660.        
  1661.  
  1662. end
  1663.  
  1664.  
  1665.  
  1666.  
  1667.  
  1668.  
  1669.  
  1670.  
  1671.  
  1672.  if 0 < #Effects then
  1673.       for e = 1, #Effects do
  1674.         if Effects[e] ~= nil then
  1675.           local Thing = Effects[e]
  1676.           if Thing ~= nil then
  1677.             local Part = Thing[1]
  1678.             local Mode = Thing[2]
  1679.             local Delay = Thing[3]
  1680.             local IncX = Thing[4]
  1681.             local IncY = Thing[5]
  1682.             local IncZ = Thing[6]
  1683.             if Thing[1].Transparency <= 1 then
  1684.               if Thing[2] == "Block1" then
  1685.                 Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1686.                 Mesh = Thing[1]:FindFirstChild("Mesh")
  1687.                 if not Mesh then
  1688.                   Mesh = Instance.new("BlockMesh")
  1689.                 end
  1690.                 Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1691.                 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1692.               elseif Thing[2] == "Cylinder" then
  1693.                   Mesh = Thing[1]:FindFirstChild("Mesh")
  1694.                   if not Mesh then
  1695.                     Mesh = Instance.new("BlockMesh")
  1696.                   end
  1697.                   Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1698.                   Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1699.                 elseif Thing[2] == "Blood" then
  1700.                     Mesh = Thing[1]:FindFirstChild("Mesh")
  1701.                     if not Mesh then
  1702.                       Mesh = Instance.new("BlockMesh")
  1703.                     end
  1704.                     Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
  1705.                     Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1706.                     Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1707.                   elseif Thing[2] == "Elec" then
  1708.                       Mesh = Thing[1]:FindFirstChild("Mesh")
  1709.                       if not Mesh then
  1710.                         Mesh = Instance.new("BlockMesh")
  1711.                       end
  1712.                       Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  1713.                       Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1714.                     elseif Thing[2] == "Disappear" then
  1715.                         Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1716.                       end
  1717.             else
  1718.               Part.Parent = nil
  1719.               game:GetService("Debris"):AddItem(Part, 0)
  1720.               table.remove(Effects, e)
  1721.             end
  1722.           end
  1723.         end
  1724.       end
  1725.     end
  1726.  
  1727. end
Add Comment
Please, Sign In to add comment