Advertisement
Axprotss

Sonic

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