wamandnj

Untitled

Feb 13th, 2019
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local tweens = game:GetService("TweenService")
  2. local debrs = game:GetService("Debris")
  3. --local owner = game.Players.LocalPlayer
  4. local plr = owner
  5. local plrg = plr.PlayerGui
  6. local char = plr.Character
  7. local h = char.Head
  8. local t = char.Torso
  9. local rut = char.HumanoidRootPart
  10. local hum = char:FindFirstChildOfClass("Humanoid")
  11. local nec = t.Neck
  12. local rutj = rut.RootJoint
  13. local rs = t["Right Shoulder"]
  14. local ls = t["Left Shoulder"]
  15. local rh = t["Right Hip"]
  16. local lh = t["Left Hip"]
  17. local cf1 = nec.C1
  18. local cf2 = rutj.C1
  19. local cf3 = rs.C1
  20. local cf4 = ls.C1
  21. local cf5 = rh.C1
  22. local cf6 = lh.C1
  23. local cf01 = nec.C0
  24. local cf02 = rutj.C0
  25. local cf03 = rs.C0
  26. local cf04 = ls.C0
  27. local cf05 = rh.C0
  28. local cf06 = lh.C0
  29. local p0,p1 = nec.Part0,nec.Part1
  30. local rsp0,rsp1 = rs.Part0,rs.Part1
  31. local lsp0,lsp1 = ls.Part0,ls.Part1
  32. local rhp0,rhp1 = rh.Part0,rh.Part1
  33. local lhp0,lhp1 = lh.Part0,lh.Part1
  34. local aa = 10
  35. local aaa = aa*3
  36. local change = 0
  37. local lchange = 0
  38. local sine = 1
  39. local anim = "idle"
  40. local animspeed = .005
  41. local animspeed1 = 1.5
  42. local walkanimspeed = .1
  43. local walkspeed = 16
  44. local sumthin = walkspeed/8
  45. local idlenum = 0
  46. local lsvol = 2.5
  47. local whenbored = math.random(2,6)
  48. local cos = math.cos
  49. local sin = math.sin
  50. local rad = math.rad
  51. local huge = math.huge
  52. local using = false
  53. local hugging = false
  54. local lookinaround = false
  55. local landed = false
  56. local readytoland = false
  57. local cangrabthecorner = false
  58. local grabbedc = false
  59. local fallingafterdash = false
  60. local doublejumped = false
  61. local phit
  62. local ray = Ray.new
  63. local v3 = Vector3.new
  64. cf5 = cf5 * CFrame.Angles(rad(2),rad(0),rad(0))
  65. cf6 = cf6 * CFrame.Angles(rad(2),rad(0),rad(0))
  66. cff5 = cf5 * CFrame.Angles(rad(2),rad(3),rad(0))
  67. cff6 = cf6 * CFrame.Angles(rad(2),rad(-3),rad(0))
  68. local effpart = Instance.new("Part") effpart.Size = Vector3.new(2,.1,1) effpart.Massless = true effpart.Transparency = 1 effpart.CanCollide = false effpart.Anchored = false effpart.Parent = char
  69. local grabpart = Instance.new("Part") grabpart.Size = Vector3.new(.1,.1,.1) grabpart.Massless = true grabpart.Transparency = 1 grabpart.CanCollide = false grabpart.Anchored = false grabpart.Material = "Neon" grabpart.Parent = char
  70. local pweld = Instance.new("Weld",effpart) pweld.Part0 = t pweld.Part1 = effpart pweld.C0 = CFrame.new(0,-2.2,-.5)
  71. local gweld = Instance.new("Weld",grabpart) gweld.Part0 = rut gweld.Part1 = grabpart gweld.C0 = CFrame.new(0,3,-1.4)
  72. local lsound = Instance.new("Sound",effpart) lsound.Volume = lsvol lsound.SoundId = "rbxassetid://1161221108"
  73. local effects = Instance.new("Model",char) effects.Name = "Effects"
  74. local rem = Instance.new("RemoteEvent",plr.PlayerGui) rem.Name = "Controls"
  75. local noanim = true
  76. local client = NLS([[
  77. local plr = game:GetService("Players").LocalPlayer
  78. local char = plr.Character
  79. local mouse = plr:GetMouse()
  80. local plrg = plr.PlayerGui
  81. local rem = plrg:WaitForChild("Controls")
  82. mouse.KeyDown:Connect(function(key)
  83. if string.byte(key) == 50 then
  84. rem:FireServer("walkspeed",24)
  85. end
  86. if key == "v" then
  87. rem:FireServer("dash")
  88. end
  89. if key == " " then
  90. rem:FireServer("djump")
  91. end
  92. end)
  93. mouse.KeyUp:Connect(function(key)
  94. if string.byte(key) == 50 then
  95. rem:FireServer("walkspeed",16)
  96. end
  97. end)
  98. ]],plr.PlayerGui)
  99. if noanim then
  100. for i,v in pairs(hum:GetPlayingAnimationTracks()) do
  101.     v:Stop()
  102. end
  103. if char:FindFirstChild("Animate") then
  104. char.Animate:Destroy()
  105. end
  106. if hum:FindFirstChildOfClass("Animator") then
  107. char.Humanoid.Animator:Destroy()
  108. end
  109. end
  110. function remove(inst,time)
  111. debrs:AddItem(inst,time)
  112. end
  113. function swait(num)
  114.    game:GetService("RunService").Stepped:Wait()
  115. end
  116. function rayc(spos,direc,ignore,dist)
  117. local rai = ray(spos,direc.Unit * dist)
  118. local rhit,rpos,rrot = workspace:FindPartOnRayWithIgnoreList(rai,ignore,false,false)
  119. return rhit,rpos,rrot
  120. end
  121. local tlerp = function(part,tablee,leinght,easingstyle,easingdirec)
  122.     local info = TweenInfo.new(
  123.     leinght,
  124.     easingstyle,
  125.     easingdirec,
  126.     0,
  127.     false,
  128.     0
  129.     )
  130.     local lerp = tweens:Create(part,info,tablee)
  131.     lerp:Play()
  132. end
  133. function fire(partp,parent,color1,color2,ssize,osize,leinght,material,minr,maxr,shape,spread,st,ot,onlyraise)
  134.     local part = Instance.new("Part",parent) part.Size = Vector3.new(ssize,ssize,ssize) part.Transparency = st part.CanCollide = false part.Anchored = true part.Shape = shape part.Material = material part.BrickColor = BrickColor.new(color1) part.CFrame = partp.CFrame * CFrame.new(partp.Size.x/math.random(-20,20),partp.Size.y/math.random(-20,20),partp.Size.z/math.random(-20,20))
  135.     if onlyraise == true then
  136.         part.CFrame = CFrame.new(part.CFrame.p,Vector3.new(nil,part.CFrame.y,part.CFrame.z))
  137.     else    
  138.     end
  139.     local pcf = part.CFrame
  140.     tlerp(part,{CFrame = pcf * CFrame.new(math.random(-spread,spread)/math.random(2,4),math.random(minr,maxr),math.random(-spread,spread)/math.random(2,4)) * CFrame.Angles(rad(math.random(-180,180)),rad(math.random(-180,180)),rad(math.random(-180,180))),Size = Vector3.new(osize,osize,osize),Color = BrickColor.new(color2).Color,Transparency = ot},leinght,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut)
  141.     game:GetService("Debris"):AddItem(part,leinght)
  142. end
  143. function land()
  144. if phit then
  145.     readytoland = false
  146.     landed = true
  147.     local oldspeed = hum.WalkSpeed
  148.     hum.WalkSpeed = 1.5
  149.     hum.JumpPower = 0
  150.     lsound:Play()
  151.     for i = 0,1,.1 do
  152.     rutj.C0 = rutj.C0:Lerp(CFrame.new(0,-.5,0) * CFrame.Angles(rad(-100),rad(0),rad(180)),i)
  153.     rh.C0 = rh.C0:Lerp(CFrame.new(1,-.5,-.3) * CFrame.Angles(rad(11),rad(90),rad(0)),i)
  154.     lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.5,-.25) * CFrame.Angles(rad(9),rad(-90),rad(0)),i)
  155.     rs.C0 = rs.C0:Lerp(CFrame.new(1,.35,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(-15),rad(0),rad(10)),i)
  156.     ls.C0 = ls.C0:Lerp(CFrame.new(-1,.35,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(-15),rad(0),rad(-10)),i)
  157.     nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-100),rad(0),rad(180)),i)
  158.     swait()
  159.     end
  160.     for i = 1,math.random(5,8) do
  161.     fire(effpart,effects,tostring(phit.BrickColor),tostring(phit.BrickColor),math.random(7,13)/10,math.random(3,6)/10,math.random(4,6)/10,phit.Material,0,0,"Block",5,0,1,true)
  162.     end
  163.     wait(.3)
  164.     landed = false
  165.     hum.WalkSpeed = oldspeed
  166.     hum.JumpPower = 50
  167. end
  168. end
  169. function dash()
  170. if anim == "jump" and not fallingafterdash or anim == "fall" and not fallingafterdash then
  171. fallingafterdash = true
  172. using = true
  173. local vel = Instance.new("BodyVelocity",rut)
  174. vel.MaxForce = Vector3.new(huge,huge,huge)
  175. vel.Velocity = rut.CFrame.LookVector * 75
  176. remove(vel,.1)
  177. for i = 0,1,.065 do
  178.     rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-180),rad(0),rad(180)),i)
  179.         rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(-5),rad(0),rad(0)),i)
  180.         lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(-5),rad(0),rad(0)),i)
  181.         rs.C0 = rs.C0:Lerp(CFrame.new(1,.65,0) * CFrame.Angles(rad(175),rad(90),rad(0)),i)
  182.         ls.C0 = ls.C0:Lerp(CFrame.new(-1,.65,0) * CFrame.Angles(rad(175),rad(-90),rad(0)),i)
  183.         nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-10),rad(0),rad(180)),i)
  184.         nec.C1 = nec.C1:Lerp(cf1,i)
  185.         rutj.C1 = rutj.C1:Lerp(cf2,i)
  186.         rs.C1 = rs.C1:Lerp(cf3,i)
  187.         ls.C1 = ls.C1:Lerp(cf4,i)
  188.         rh.C1 = rh.C1:Lerp(cf5,i)
  189.         lh.C1 = lh.C1:Lerp(cf6,i)
  190.         swait()
  191.     end
  192. using = false
  193. repeat
  194. wait()
  195. until anim == "idle" or anim == "walk"
  196. fallingafterdash = false
  197. end
  198. end
  199. function djump()
  200. if anim == "jump" and not doublejumped or anim == "fall" and not doublejumped then
  201. using = true
  202. doublejumped = true
  203. local vel = Instance.new("BodyVelocity",rut)
  204. vel.MaxForce = Vector3.new(huge,huge,huge)
  205. vel.Velocity = Vector3.new(0,35,0)
  206. remove(vel,.1)
  207. using = false
  208. repeat
  209. wait()
  210. until anim == "idle" or anim == "walk"
  211. doublejumped = false
  212. end
  213. end
  214.  
  215. rem.OnServerEvent:Connect(function(plr,type,num)
  216. if not using then
  217. if type == "walkspeed" then
  218. hum.WalkSpeed = num
  219. end
  220. if type == "dash" and not hum.Sit then
  221. dash()
  222. end
  223. if type == "djump" and not hum.Sit then
  224. djump()
  225. end
  226. end
  227. end)
  228.  
  229. local anims = coroutine.wrap(function()
  230. nec = Instance.new("Motor6D",t) nec.Part0 = p0 nec.Part1 = p1 nec.C0 = cf01
  231. rs = Instance.new("Motor6D",t) rs.Part0 = rsp0 rs.Part1 = rsp1 rs.C0 = cf03
  232. ls = Instance.new("Motor6D",t) ls.Part0 = lsp0 ls.Part1 = lsp1 ls.C0 = cf04
  233. rh = Instance.new("Motor6D",t) rh.Part0 = rhp0 rh.Part1 = rhp1 rh.C0 = cf05
  234. lh = Instance.new("Motor6D",t) lh.Part0 = lhp0 lh.Part1 = lhp1 lh.C0 = cf06
  235. while hum.Health > .001 do
  236.     --if hum.WalkSpeed >32 then
  237.         --hum.WalkSpeed = 32
  238.     --end
  239.     if not lsound.Parent then
  240.     lsound = Instance.new("Sound",effpart) lsound.Volume = lsvol lsound.SoundId = "rbxassetid://1161221108"
  241.     end
  242.    
  243.     local hit,pos,rot = rayc(rut.Position -v3(0,1,0),-rut.CFrame.UpVector,{char},2.7)
  244.     local grhit,grpos,grrot = rayc(grabpart.Position,-grabpart.CFrame.UpVector,{char},1)
  245.     phit = hit
  246.     if not using then
  247.     if grhit and grhit.Anchored == true then
  248.     cangrabthecorner = true
  249.     else
  250.     cangrabthecorner = false
  251.     end
  252.     end
  253.    
  254.     if cangrabthecorner and not grabbedc and grhit.Anchored == true then
  255.     local shit,spos,srot = rayc(rut.Position+Vector3.new(0,2.5,0),rut.CFrame.LookVector,{char},1.5)
  256.     if shit then
  257.     grabbedc = true
  258.     local cf = CFrame.new(spos,spos+srot) * CFrame.Angles(rad(0),rad(180),0) * CFrame.new(0,-2,.7)
  259.     using = true
  260.     cangrabthecorner = false
  261.     rut.Anchored = true
  262.     local oldws = hum.WalkSpeed
  263.     hum.WalkSpeed = 0
  264.     hum.JumpPower = 0
  265.     rut.CFrame = cf
  266.     local curcf = rut.CFrame
  267.     for i = 0,1,.1 do
  268.         rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),animspeed*50)
  269.         rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)),animspeed*50)
  270.         lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),animspeed*50)
  271.         rs.C0 = rs.C0:Lerp(CFrame.new(.85,.8,.5) * CFrame.Angles(rad(160),rad(90),rad(0)),animspeed*50)
  272.         ls.C0 = ls.C0:Lerp(CFrame.new(-.85,.8,.5) * CFrame.Angles(rad(160),rad(-90),rad(0)),animspeed*50)
  273.         nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-30),rad(0),rad(180)),animspeed*50)
  274.         nec.C1 = nec.C1:Lerp(cf1,.1)
  275.         rutj.C1 = rutj.C1:Lerp(cf2,.1)
  276.         rs.C1 = rs.C1:Lerp(cf3,.1)
  277.         ls.C1 = ls.C1:Lerp(cf4,.1)
  278.         rh.C1 = rh.C1:Lerp(cf5,.1)
  279.         lh.C1 = lh.C1:Lerp(cf6,.1)
  280.         swait()
  281.     end
  282.     for i = 0,.65,.025 do
  283.         rut.CFrame = rut.CFrame:Lerp(curcf * CFrame.new(0,4.5,-1.5),i)
  284.        rutj.C0 = rutj.C0:Lerp(CFrame.new(0,-.4,0) * CFrame.Angles(rad(-120),rad(0),rad(180)),i)
  285.         rh.C0 = rh.C0:Lerp(CFrame.new(1,-.6,-.6) * CFrame.Angles(rad(-20),rad(90),rad(0)),i)
  286.         lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.1,-.6) * CFrame.Angles(rad(30),rad(-90),rad(0)),i)
  287.         rs.C0 = rs.C0:Lerp(CFrame.new(.85,.3,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(10)),i)
  288.         ls.C0 = ls.C0:Lerp(CFrame.new(-.85,.3,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(10)),i)
  289.         nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-80),rad(0),rad(180)),i)
  290.         nec.C1 = nec.C1:Lerp(cf1,.1)
  291.         rutj.C1 = rutj.C1:Lerp(cf2,.1)
  292.         rs.C1 = rs.C1:Lerp(cf3,.1)
  293.         ls.C1 = ls.C1:Lerp(cf4,.1)
  294.         rh.C1 = rh.C1:Lerp(cf5,.1)
  295.         lh.C1 = lh.C1:Lerp(cf6,.1)
  296.         swait()
  297.     end
  298.     readytoland = false
  299.     hum.WalkSpeed = oldws
  300.     hum.JumpPower = 50
  301.     rut.Anchored = false
  302.     t.Anchored = false
  303.     using = false
  304.     grabbedc = false
  305.     end
  306.     end
  307.    
  308.     walkspeed = hum.WalkSpeed
  309.     sumthin = walkspeed/8
  310.     animspeed1 = 1.5/sumthin
  311.     change = change +sine
  312.    
  313.     if lookinaround then
  314.         lchange = lchange +sine
  315.     else
  316.         lchange = 0
  317.     end
  318.    
  319.     local vervel = rut.Velocity.y
  320.     local tvel = (rut.Velocity * v3(1,0,1)).Magnitude
  321.     local Ccf=rut.CFrame
  322.     local Walktest1 = hum.MoveDirection*Ccf.LookVector
  323.     local Walktest2 = hum.MoveDirection*Ccf.RightVector
  324.     rotfb = Walktest1.X+Walktest1.Z
  325.     rotrl = Walktest2.X+Walktest2.Z
  326.    
  327.     if anim == "fall" and not hit then
  328.     readytoland = true
  329.     end
  330.    
  331.     if readytoland then
  332.     hum.JumpPower = 0
  333.     else
  334.     hum.JumpPower = 50
  335.     end
  336.    
  337.     if not landed then
  338.     if readytoland and hit then
  339.     land()
  340.     end
  341.     if not hum.Sit then
  342.     if anim == "idle" and hit ~= nil then
  343.     if not using then
  344.     --Neck
  345.         nec.C1 = nec.C1:Lerp(cf1 * CFrame.new(0,0,cos(change/aa/2.5)/(2.5*10)) * CFrame.Angles(sin(change/aa/2.5)*rad(1),0,-sin(change/aa/2.5)*rad(1)),.1)
  346.     --Humanoid Root Part
  347.         rutj.C1 = rutj.C1:Lerp(cf2 * CFrame.new(0,cos(change/aa/2.5)/(2.5*10),cos(change/aa/2.5)/(2.5*10)) * CFrame.Angles(sin(change/aa/2.5)*rad(1),0,0),.1)
  348.     --Shoulders
  349.         rs.C1 = rs.C1:Lerp(cf3 * CFrame.new(-cos(change/aa/2.5)/(2.5*10),cos(change/aa/2.5)/(2.5*10),0) * CFrame.Angles(.1,0,0) * CFrame.Angles(sin(change/aa/1.5)*rad(1),sin(change/aa/2.5)*rad(1),sin(change/aa/2.5)*rad(2.5)),.1)
  350.         ls.C1 = ls.C1:Lerp(cf4 * CFrame.new(cos(change/aa/2.5)/(2.5*10),cos(change/aa/2.5)/(2.5*10),0) * CFrame.Angles(.1,0,0) * CFrame.Angles(sin(change/aa/2.5)*rad(1),sin(change/aa/2.5)*rad(1),-sin(change/aa/2.5)*rad(2.5)),.1)
  351.     --Hips
  352.         rh.C1 = rh.C1:Lerp(cff5 * CFrame.new(cos(change/aa/2.5)/(2.5*10),-cos(change/aa/2.5)/(2.5*10),0) * CFrame.Angles(0,0,sin(change/aa/2.5)*rad(1)) * CFrame.Angles(0,0,0),.1)
  353.         lh.C1 = lh.C1:Lerp(cff6 * CFrame.new(-cos(change/aa/2.5)/(2.5*10),-cos(change/aa/2.5)/(2.5*10),0) * CFrame.Angles(0,0,-sin(change/aa/2.5)*rad(1)) * CFrame.Angles(0,0,0),.1)
  354.         end
  355.     elseif anim == "sit" then
  356.         nec.C1 = nec.C1:Lerp(cf1,.1)
  357.         rutj.C1 = rutj.C1:Lerp(cf2,.1)
  358.         rs.C1 = rs.C1:Lerp(cf3,.1)
  359.         ls.C1 = ls.C1:Lerp(cf4,.1)
  360.         rh.C1 = rh.C1:Lerp(cf5,.1)
  361.         lh.C1 = lh.C1:Lerp(cf6,.1)
  362.     elseif anim == "jump" and hit == nil then
  363.         if not using then
  364.         nec.C1 = nec.C1:Lerp(cf1 * CFrame.Angles(-rotfb/3,0,rotrl/3),.1)
  365.         rutj.C1 = rutj.C1:Lerp(cf2 * CFrame.Angles(-rotfb/5,rotrl/5,0),.1)
  366.         rs.C1 = rs.C1:Lerp(cf3 * CFrame.Angles(-rotrl/3,rotfb/3,-rotfb/3),.1)
  367.         ls.C1 = ls.C1:Lerp(cf4 * CFrame.Angles(rotrl/3,-rotfb/3,rotfb/3),.1)
  368.         rh.C1 = rh.C1:Lerp(cf5,.1)
  369.         lh.C1 = lh.C1:Lerp(cf6,.1)
  370.         end
  371.     elseif anim == "fall" and hit == nil then
  372.         if not using then
  373.         nec.C1 = nec.C1:Lerp(cf1 * CFrame.Angles(rotfb/2,0,rotrl),.1)
  374.         rutj.C1 = rutj.C1:Lerp(cf2 * CFrame.Angles(-rotfb/5,rotrl/5,rotrl/5),.1)
  375.         rs.C1 = rs.C1:Lerp(cf3 * CFrame.Angles(-rotrl/3,rotfb/3,rotfb/3),.1)
  376.         ls.C1 = ls.C1:Lerp(cf4 * CFrame.Angles(rotrl/3,-rotfb/3,-rotfb/3),.1)
  377.         rh.C1 = rh.C1:Lerp(cf5,.1)
  378.         lh.C1 = lh.C1:Lerp(cf6,.1)
  379.         rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-80),rad(0),rad(180)),.025)
  380.         rh.C0 = rh.C0:Lerp(CFrame.new(1,-.1,-.4) * CFrame.Angles(rad(-10),rad(85),rad(0)),.025)
  381.         lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.55,-.25) * CFrame.Angles(rad(-10),rad(-85),rad(0)),.025)
  382.         rs.C0 = rs.C0:Lerp(CFrame.new(1,.35,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(-50),rad(0),rad(20)),.025)
  383.         ls.C0 = ls.C0:Lerp(CFrame.new(-1,.25,-0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(-50),rad(0),rad(-20)),.025)
  384.         nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-110),rad(0),rad(180)),.025)
  385.         end
  386.     elseif anim == "walk" and hit ~= nil then
  387.         if not using then
  388.         --Neck
  389.             nec.C1 = nec.C1:Lerp(cf1 * CFrame.new(0,0,cos(change/aa/animspeed1)/17.5) * CFrame.Angles(-sin(change/aa/animspeed1)*rad(5),-rut.RotVelocity.y/90,rut.RotVelocity.y/60),walkanimspeed)
  390.         --Humanoid Root Part
  391.             rutj.C1 = rutj.C1:Lerp(cf2 * CFrame.new(0,0,cos(change/aa/animspeed1)/15) * CFrame.Angles(sin(change/aa/animspeed1)*rad(2.5*sumthin),-rut.RotVelocity.y/100,sin(change/aa/animspeed1)*rad(5*sumthin) * -rut.RotVelocity.y/100) * CFrame.Angles(-rotfb/5,rotrl/5,0),walkanimspeed)
  392.         --Shoulders
  393.             rs.C1 = rs.C1:Lerp(cf3 * CFrame.new(0,0,0) * CFrame.Angles(-sin(change/aa/animspeed1)*rad(3*sumthin)*rotfb,-sin(change/aa/animspeed1)*rad(10)*rotfb,0) * CFrame.Angles(sin(change/aa/animspeed1)*rad(5*sumthin)*rotrl,-sin(change/aa/animspeed1)*rad(5*sumthin)*rotrl,-sin(change/aa/animspeed1)*rad(35*sumthin)*rotfb or rotrl),walkanimspeed)
  394.             ls.C1 = ls.C1:Lerp(cf4 * CFrame.new(0,0,0) * CFrame.Angles(sin(change/aa/animspeed1)*rad(3*sumthin)*rotfb,-sin(change/aa/animspeed1)*rad(10)*rotfb,0) * CFrame.Angles(sin(change/aa/animspeed1)*rad(5*sumthin)*rotrl,-sin(change/aa/animspeed1)*rad(5*sumthin)*rotrl,-sin(change/aa/animspeed1)*rad(35*sumthin)*rotfb or rotrl),walkanimspeed)
  395.         --Hips
  396.             rh.C1 = rh.C1:Lerp(cf5 * CFrame.new((cos(change/aa/animspeed1)/3.5)*rotfb or (cos(change/aa/animspeed1)/3.5)*rotrl,(cos(change/aa/animspeed1)/4),(cos(change/aa/animspeed1)/4)*rotrl) * CFrame.Angles(-sin(change/aa/animspeed1)*rad(15*sumthin)*rotrl,-sin(change/aa/animspeed1)*rad(15*sumthin)*rotrl,sin(change/aa/animspeed1)*rad(30*sumthin)*rotfb),walkanimspeed)
  397.             lh.C1 = lh.C1:Lerp(cf6 * CFrame.new((cos(change/aa/animspeed1)/3.5)*rotfb or (cos(change/aa/animspeed1)/3.5)*rotrl,(-cos(change/aa/animspeed1)/4),(cos(change/aa/animspeed1)/4)*rotrl) * CFrame.Angles(-sin(change/aa/animspeed1)*rad(15*sumthin)*rotrl,-sin(change/aa/animspeed1)*rad(15*sumthin)*rotrl,sin(change/aa/animspeed1)*rad(30*sumthin)*rotfb),walkanimspeed)
  398.         end
  399.     end
  400.     else
  401.         nec.C1 = nec.C1:Lerp(cf1,.1)
  402.         rutj.C1 = rutj.C1:Lerp(cf2,.1)
  403.         rs.C1 = rs.C1:Lerp(cf3,.1)
  404.         ls.C1 = ls.C1:Lerp(cf4,.1)
  405.         rh.C1 = rh.C1:Lerp(cf5,.1)
  406.         lh.C1 = lh.C1:Lerp(cf6,.1)
  407.     end
  408.     if not grabbedc then
  409.     if vervel > 1 and hum.Sit == false then
  410.         anim = "jump"
  411.         if not using then
  412.         rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-80),rad(0),rad(180)),animspeed*50)
  413.         rh.C0 = rh.C0:Lerp(CFrame.new(1,-.1,-.4) * CFrame.Angles(rad(-10),rad(85),rad(0)),animspeed*50)
  414.         lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.4,-.25) * CFrame.Angles(rad(-10),rad(-85),rad(0)),animspeed*50)
  415.         rs.C0 = rs.C0:Lerp(CFrame.new(1,.25,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(-40),rad(0),rad(0)),animspeed*50)
  416.         ls.C0 = ls.C0:Lerp(CFrame.new(-1,.25,-0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(-40),rad(0),rad(0)),animspeed*50)
  417.         nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-100),rad(0),rad(180)),animspeed*50)
  418.         end
  419.     elseif vervel < -1 and hum.Sit == false then
  420.         anim = "fall"
  421.         if not using then
  422.         rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-80),rad(0),rad(180)),.025)
  423.         rh.C0 = rh.C0:Lerp(CFrame.new(1,-.1,-.4) * CFrame.Angles(rad(-10),rad(85),rad(0)),.025)
  424.         lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.55,-.25) * CFrame.Angles(rad(-10),rad(-85),rad(0)),.025)
  425.         rs.C0 = rs.C0:Lerp(CFrame.new(1,.35,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(-50),rad(0),rad(0)),.025)
  426.         ls.C0 = ls.C0:Lerp(CFrame.new(-1,.25,-0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(-50),rad(0),rad(0)),.025)
  427.         nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-110),rad(0),rad(180)),.025)
  428.         end
  429.     elseif tvel < 1 and hum.Sit == false then
  430.         anim = "idle"
  431.         if not using then
  432.         rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),animspeed*50)
  433.         rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)),animspeed*50)
  434.         lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),animspeed*50)
  435.         rs.C0 = rs.C0:Lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(90),rad(0)),animspeed*50)
  436.         ls.C0 = ls.C0:Lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),animspeed*50)
  437.         nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),animspeed*50)
  438.         end
  439.     elseif tvel > 1 and hum.Sit == false then
  440.         anim = "walk"
  441.         if not using then
  442.         rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-90),rad(0),rad(180)) * CFrame.Angles(rad(0*sumthin),rad(0),rad(0)),animspeed*50)
  443.         rh.C0 = rh.C0:Lerp(CFrame.new(1,-.8+rotrl/4,-.15) * CFrame.Angles(rad(0),rad(90),rad(-10)) * CFrame.Angles(rad(0),rad(0),0) * CFrame.Angles(-rotrl/5,-rotrl/5,rotfb/5),animspeed*50)
  444.         lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.8-rotrl/4,-.15) * CFrame.Angles(rad(0),rad(-90),rad(10)) * CFrame.Angles(rad(0),rad(0),0) * CFrame.Angles(rotrl/5,-rotrl/5,-rotfb/5),animspeed*50)
  445.         rs.C0 = rs.C0:Lerp(CFrame.new(1,.5,0) * CFrame.Angles(0,rad(90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(5*sumthin)),animspeed*50)
  446.         ls.C0 = ls.C0:Lerp(CFrame.new(-1,.5,0) * CFrame.Angles(0,rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(-5*sumthin)),animspeed*50)
  447.         nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)) * CFrame.Angles(rad(-5),rad(0),rad(-40*rotrl)),animspeed*50)
  448.         end
  449.     elseif hum.Sit == true then
  450.         if plr.UserId ~= 90745958 then
  451.             rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),animspeed*50)
  452.                 rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(90)),animspeed*50)
  453.                 lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(-90)),animspeed*50)
  454.             rs.C0 = rs.C0:Lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(90),rad(30)) * CFrame.Angles(rad(30),rad(0),rad(0)),animspeed*50)
  455.                 ls.C0 = ls.C0:Lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(-30)) * CFrame.Angles(rad(30),rad(0),rad(0)),animspeed*50)
  456.             nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-95),rad(0),rad(180)),animspeed*50)
  457.         else
  458.             rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-105),rad(0),rad(180)),animspeed*50)
  459.                 rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(15),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(-20),rad(90)),animspeed*50)
  460.                 lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(15),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(20),rad(-90)),animspeed*50)
  461.             rs.C0 = rs.C0:Lerp(CFrame.new(.5,.2,-.3) * CFrame.Angles(rad(-10),rad(95),rad(30)) * CFrame.Angles(rad(25),rad(20),rad(0)),animspeed*50)
  462.                 ls.C0 = ls.C0:Lerp(CFrame.new(-.5,.2,-.3) * CFrame.Angles(rad(-10),rad(-95),rad(-30)) * CFrame.Angles(rad(25),rad(-20),rad(0)),animspeed*50)
  463.             nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-75),rad(0),rad(180)),animspeed*50)
  464.         end
  465.     end
  466.     else
  467.     end
  468.     else
  469.         nec.C1 = nec.C1:Lerp(cf1,animspeed*50)
  470.         rutj.C1 = rutj.C1:Lerp(cf2,animspeed*50)
  471.         rs.C1 = rs.C1:Lerp(cf3,animspeed*50)
  472.         ls.C1 = ls.C1:Lerp(cf4,animspeed*50)
  473.         rh.C1 = rh.C1:Lerp(cf5,animspeed*50)
  474.         lh.C1 = lh.C1:Lerp(cf6,animspeed*50)
  475.     end
  476.     swait()
  477. end
  478. end)
  479. anims()
Add Comment
Please, Sign In to add comment