daily pastebin goal
61%
SHARE
TWEET

Untitled

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