Advertisement
Arm4GeDon

Arm4GeDon Hub Main

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