Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tweens = game:GetService("TweenService")
- local debrs = game:GetService("Debris")
- --local owner = game.Players.LocalPlayer
- local plr = owner
- local plrg = plr.PlayerGui
- local char = plr.Character
- local h = char.Head
- local t = char.Torso
- local rut = char.HumanoidRootPart
- local hum = char:FindFirstChildOfClass("Humanoid")
- local nec = t.Neck
- local rutj = rut.RootJoint
- local rs = t["Right Shoulder"]
- local ls = t["Left Shoulder"]
- local rh = t["Right Hip"]
- local lh = t["Left Hip"]
- local cf1 = nec.C1
- local cf2 = rutj.C1
- local cf3 = rs.C1
- local cf4 = ls.C1
- local cf5 = rh.C1
- local cf6 = lh.C1
- local cf01 = nec.C0
- local cf02 = rutj.C0
- local cf03 = rs.C0
- local cf04 = ls.C0
- local cf05 = rh.C0
- local cf06 = lh.C0
- local p0,p1 = nec.Part0,nec.Part1
- local rsp0,rsp1 = rs.Part0,rs.Part1
- local lsp0,lsp1 = ls.Part0,ls.Part1
- local rhp0,rhp1 = rh.Part0,rh.Part1
- local lhp0,lhp1 = lh.Part0,lh.Part1
- local aa = 10
- local aaa = aa*3
- local change = 0
- local lchange = 0
- local sine = 1
- local anim = "idle"
- local animspeed = .005
- local animspeed1 = 1.5
- local walkanimspeed = .1
- local walkspeed = 16
- local sumthin = walkspeed/8
- local idlenum = 0
- local lsvol = 2.5
- local whenbored = math.random(2,6)
- local cos = math.cos
- local sin = math.sin
- local rad = math.rad
- local huge = math.huge
- local using = false
- local hugging = false
- local lookinaround = false
- local landed = false
- local readytoland = false
- local cangrabthecorner = false
- local grabbedc = false
- local fallingafterdash = false
- local doublejumped = false
- local phit
- local ray = Ray.new
- local v3 = Vector3.new
- cf5 = cf5 * CFrame.Angles(rad(2),rad(0),rad(0))
- cf6 = cf6 * CFrame.Angles(rad(2),rad(0),rad(0))
- cff5 = cf5 * CFrame.Angles(rad(2),rad(3),rad(0))
- cff6 = cf6 * CFrame.Angles(rad(2),rad(-3),rad(0))
- 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
- 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
- local pweld = Instance.new("Weld",effpart) pweld.Part0 = t pweld.Part1 = effpart pweld.C0 = CFrame.new(0,-2.2,-.5)
- local gweld = Instance.new("Weld",grabpart) gweld.Part0 = rut gweld.Part1 = grabpart gweld.C0 = CFrame.new(0,3,-1.4)
- local lsound = Instance.new("Sound",effpart) lsound.Volume = lsvol lsound.SoundId = "rbxassetid://1161221108"
- local effects = Instance.new("Model",char) effects.Name = "Effects"
- local rem = Instance.new("RemoteEvent",plr.PlayerGui) rem.Name = "Controls"
- local noanim = true
- local client = NLS([[
- local plr = game:GetService("Players").LocalPlayer
- local char = plr.Character
- local mouse = plr:GetMouse()
- local plrg = plr.PlayerGui
- local rem = plrg:WaitForChild("Controls")
- mouse.KeyDown:Connect(function(key)
- if string.byte(key) == 50 then
- rem:FireServer("walkspeed",24)
- end
- if key == "v" then
- rem:FireServer("dash")
- end
- if key == " " then
- rem:FireServer("djump")
- end
- end)
- mouse.KeyUp:Connect(function(key)
- if string.byte(key) == 50 then
- rem:FireServer("walkspeed",16)
- end
- end)
- ]],plr.PlayerGui)
- if noanim then
- for i,v in pairs(hum:GetPlayingAnimationTracks()) do
- v:Stop()
- end
- if char:FindFirstChild("Animate") then
- char.Animate:Destroy()
- end
- if hum:FindFirstChildOfClass("Animator") then
- char.Humanoid.Animator:Destroy()
- end
- end
- function remove(inst,time)
- debrs:AddItem(inst,time)
- end
- function swait(num)
- game:GetService("RunService").Stepped:Wait()
- end
- function rayc(spos,direc,ignore,dist)
- local rai = ray(spos,direc.Unit * dist)
- local rhit,rpos,rrot = workspace:FindPartOnRayWithIgnoreList(rai,ignore,false,false)
- return rhit,rpos,rrot
- end
- local tlerp = function(part,tablee,leinght,easingstyle,easingdirec)
- local info = TweenInfo.new(
- leinght,
- easingstyle,
- easingdirec,
- 0,
- false,
- 0
- )
- local lerp = tweens:Create(part,info,tablee)
- lerp:Play()
- end
- function fire(partp,parent,color1,color2,ssize,osize,leinght,material,minr,maxr,shape,spread,st,ot,onlyraise)
- 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))
- if onlyraise == true then
- part.CFrame = CFrame.new(part.CFrame.p,Vector3.new(nil,part.CFrame.y,part.CFrame.z))
- else
- end
- local pcf = part.CFrame
- 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)
- game:GetService("Debris"):AddItem(part,leinght)
- end
- function land()
- if phit then
- readytoland = false
- landed = true
- local oldspeed = hum.WalkSpeed
- hum.WalkSpeed = 1.5
- hum.JumpPower = 0
- lsound:Play()
- for i = 0,1,.1 do
- rutj.C0 = rutj.C0:Lerp(CFrame.new(0,-.5,0) * CFrame.Angles(rad(-100),rad(0),rad(180)),i)
- rh.C0 = rh.C0:Lerp(CFrame.new(1,-.5,-.3) * CFrame.Angles(rad(11),rad(90),rad(0)),i)
- lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.5,-.25) * CFrame.Angles(rad(9),rad(-90),rad(0)),i)
- 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)
- 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)
- nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-100),rad(0),rad(180)),i)
- swait()
- end
- for i = 1,math.random(5,8) do
- 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)
- end
- wait(.3)
- landed = false
- hum.WalkSpeed = oldspeed
- hum.JumpPower = 50
- end
- end
- function dash()
- if anim == "jump" and not fallingafterdash or anim == "fall" and not fallingafterdash then
- fallingafterdash = true
- using = true
- local vel = Instance.new("BodyVelocity",rut)
- vel.MaxForce = Vector3.new(huge,huge,huge)
- vel.Velocity = rut.CFrame.LookVector * 75
- remove(vel,.1)
- for i = 0,1,.065 do
- rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-180),rad(0),rad(180)),i)
- 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)
- 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)
- rs.C0 = rs.C0:Lerp(CFrame.new(1,.65,0) * CFrame.Angles(rad(175),rad(90),rad(0)),i)
- ls.C0 = ls.C0:Lerp(CFrame.new(-1,.65,0) * CFrame.Angles(rad(175),rad(-90),rad(0)),i)
- nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-10),rad(0),rad(180)),i)
- nec.C1 = nec.C1:Lerp(cf1,i)
- rutj.C1 = rutj.C1:Lerp(cf2,i)
- rs.C1 = rs.C1:Lerp(cf3,i)
- ls.C1 = ls.C1:Lerp(cf4,i)
- rh.C1 = rh.C1:Lerp(cf5,i)
- lh.C1 = lh.C1:Lerp(cf6,i)
- swait()
- end
- using = false
- repeat
- wait()
- until anim == "idle" or anim == "walk"
- fallingafterdash = false
- end
- end
- function djump()
- if anim == "jump" and not doublejumped or anim == "fall" and not doublejumped then
- using = true
- doublejumped = true
- local vel = Instance.new("BodyVelocity",rut)
- vel.MaxForce = Vector3.new(huge,huge,huge)
- vel.Velocity = Vector3.new(0,35,0)
- remove(vel,.1)
- using = false
- repeat
- wait()
- until anim == "idle" or anim == "walk"
- doublejumped = false
- end
- end
- rem.OnServerEvent:Connect(function(plr,type,num)
- if not using then
- if type == "walkspeed" then
- hum.WalkSpeed = num
- end
- if type == "dash" and not hum.Sit then
- dash()
- end
- if type == "djump" and not hum.Sit then
- djump()
- end
- end
- end)
- local anims = coroutine.wrap(function()
- nec = Instance.new("Motor6D",t) nec.Part0 = p0 nec.Part1 = p1 nec.C0 = cf01
- rs = Instance.new("Motor6D",t) rs.Part0 = rsp0 rs.Part1 = rsp1 rs.C0 = cf03
- ls = Instance.new("Motor6D",t) ls.Part0 = lsp0 ls.Part1 = lsp1 ls.C0 = cf04
- rh = Instance.new("Motor6D",t) rh.Part0 = rhp0 rh.Part1 = rhp1 rh.C0 = cf05
- lh = Instance.new("Motor6D",t) lh.Part0 = lhp0 lh.Part1 = lhp1 lh.C0 = cf06
- while hum.Health > .001 do
- --if hum.WalkSpeed >32 then
- --hum.WalkSpeed = 32
- --end
- if not lsound.Parent then
- lsound = Instance.new("Sound",effpart) lsound.Volume = lsvol lsound.SoundId = "rbxassetid://1161221108"
- end
- local hit,pos,rot = rayc(rut.Position -v3(0,1,0),-rut.CFrame.UpVector,{char},2.7)
- local grhit,grpos,grrot = rayc(grabpart.Position,-grabpart.CFrame.UpVector,{char},1)
- phit = hit
- if not using then
- if grhit and grhit.Anchored == true then
- cangrabthecorner = true
- else
- cangrabthecorner = false
- end
- end
- if cangrabthecorner and not grabbedc and grhit.Anchored == true then
- local shit,spos,srot = rayc(rut.Position+Vector3.new(0,2.5,0),rut.CFrame.LookVector,{char},1.5)
- if shit then
- grabbedc = true
- local cf = CFrame.new(spos,spos+srot) * CFrame.Angles(rad(0),rad(180),0) * CFrame.new(0,-2,.7)
- using = true
- cangrabthecorner = false
- rut.Anchored = true
- local oldws = hum.WalkSpeed
- hum.WalkSpeed = 0
- hum.JumpPower = 0
- rut.CFrame = cf
- local curcf = rut.CFrame
- for i = 0,1,.1 do
- rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),animspeed*50)
- rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)),animspeed*50)
- lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),animspeed*50)
- rs.C0 = rs.C0:Lerp(CFrame.new(.85,.8,.5) * CFrame.Angles(rad(160),rad(90),rad(0)),animspeed*50)
- ls.C0 = ls.C0:Lerp(CFrame.new(-.85,.8,.5) * CFrame.Angles(rad(160),rad(-90),rad(0)),animspeed*50)
- nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-30),rad(0),rad(180)),animspeed*50)
- nec.C1 = nec.C1:Lerp(cf1,.1)
- rutj.C1 = rutj.C1:Lerp(cf2,.1)
- rs.C1 = rs.C1:Lerp(cf3,.1)
- ls.C1 = ls.C1:Lerp(cf4,.1)
- rh.C1 = rh.C1:Lerp(cf5,.1)
- lh.C1 = lh.C1:Lerp(cf6,.1)
- swait()
- end
- for i = 0,.65,.025 do
- rut.CFrame = rut.CFrame:Lerp(curcf * CFrame.new(0,4.5,-1.5),i)
- rutj.C0 = rutj.C0:Lerp(CFrame.new(0,-.4,0) * CFrame.Angles(rad(-120),rad(0),rad(180)),i)
- rh.C0 = rh.C0:Lerp(CFrame.new(1,-.6,-.6) * CFrame.Angles(rad(-20),rad(90),rad(0)),i)
- lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.1,-.6) * CFrame.Angles(rad(30),rad(-90),rad(0)),i)
- 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)
- 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)
- nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-80),rad(0),rad(180)),i)
- nec.C1 = nec.C1:Lerp(cf1,.1)
- rutj.C1 = rutj.C1:Lerp(cf2,.1)
- rs.C1 = rs.C1:Lerp(cf3,.1)
- ls.C1 = ls.C1:Lerp(cf4,.1)
- rh.C1 = rh.C1:Lerp(cf5,.1)
- lh.C1 = lh.C1:Lerp(cf6,.1)
- swait()
- end
- readytoland = false
- hum.WalkSpeed = oldws
- hum.JumpPower = 50
- rut.Anchored = false
- t.Anchored = false
- using = false
- grabbedc = false
- end
- end
- walkspeed = hum.WalkSpeed
- sumthin = walkspeed/8
- animspeed1 = 1.5/sumthin
- change = change +sine
- if lookinaround then
- lchange = lchange +sine
- else
- lchange = 0
- end
- local vervel = rut.Velocity.y
- local tvel = (rut.Velocity * v3(1,0,1)).Magnitude
- local Ccf=rut.CFrame
- local Walktest1 = hum.MoveDirection*Ccf.LookVector
- local Walktest2 = hum.MoveDirection*Ccf.RightVector
- rotfb = Walktest1.X+Walktest1.Z
- rotrl = Walktest2.X+Walktest2.Z
- if anim == "fall" and not hit then
- readytoland = true
- end
- if readytoland then
- hum.JumpPower = 0
- else
- hum.JumpPower = 50
- end
- if not landed then
- if readytoland and hit then
- land()
- end
- if not hum.Sit then
- if anim == "idle" and hit ~= nil then
- if not using then
- --Neck
- 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)
- --Humanoid Root Part
- 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)
- --Shoulders
- 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)
- 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)
- --Hips
- 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)
- 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)
- end
- elseif anim == "sit" then
- nec.C1 = nec.C1:Lerp(cf1,.1)
- rutj.C1 = rutj.C1:Lerp(cf2,.1)
- rs.C1 = rs.C1:Lerp(cf3,.1)
- ls.C1 = ls.C1:Lerp(cf4,.1)
- rh.C1 = rh.C1:Lerp(cf5,.1)
- lh.C1 = lh.C1:Lerp(cf6,.1)
- elseif anim == "jump" and hit == nil then
- if not using then
- nec.C1 = nec.C1:Lerp(cf1 * CFrame.Angles(-rotfb/3,0,rotrl/3),.1)
- rutj.C1 = rutj.C1:Lerp(cf2 * CFrame.Angles(-rotfb/5,rotrl/5,0),.1)
- rs.C1 = rs.C1:Lerp(cf3 * CFrame.Angles(-rotrl/3,rotfb/3,-rotfb/3),.1)
- ls.C1 = ls.C1:Lerp(cf4 * CFrame.Angles(rotrl/3,-rotfb/3,rotfb/3),.1)
- rh.C1 = rh.C1:Lerp(cf5,.1)
- lh.C1 = lh.C1:Lerp(cf6,.1)
- end
- elseif anim == "fall" and hit == nil then
- if not using then
- nec.C1 = nec.C1:Lerp(cf1 * CFrame.Angles(rotfb/2,0,rotrl),.1)
- rutj.C1 = rutj.C1:Lerp(cf2 * CFrame.Angles(-rotfb/5,rotrl/5,rotrl/5),.1)
- rs.C1 = rs.C1:Lerp(cf3 * CFrame.Angles(-rotrl/3,rotfb/3,rotfb/3),.1)
- ls.C1 = ls.C1:Lerp(cf4 * CFrame.Angles(rotrl/3,-rotfb/3,-rotfb/3),.1)
- rh.C1 = rh.C1:Lerp(cf5,.1)
- lh.C1 = lh.C1:Lerp(cf6,.1)
- rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-80),rad(0),rad(180)),.025)
- rh.C0 = rh.C0:Lerp(CFrame.new(1,-.1,-.4) * CFrame.Angles(rad(-10),rad(85),rad(0)),.025)
- lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.55,-.25) * CFrame.Angles(rad(-10),rad(-85),rad(0)),.025)
- 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)
- 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)
- nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-110),rad(0),rad(180)),.025)
- end
- elseif anim == "walk" and hit ~= nil then
- if not using then
- --Neck
- 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)
- --Humanoid Root Part
- 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)
- --Shoulders
- 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)
- 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)
- --Hips
- 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)
- 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)
- end
- end
- else
- nec.C1 = nec.C1:Lerp(cf1,.1)
- rutj.C1 = rutj.C1:Lerp(cf2,.1)
- rs.C1 = rs.C1:Lerp(cf3,.1)
- ls.C1 = ls.C1:Lerp(cf4,.1)
- rh.C1 = rh.C1:Lerp(cf5,.1)
- lh.C1 = lh.C1:Lerp(cf6,.1)
- end
- if not grabbedc then
- if vervel > 1 and hum.Sit == false then
- anim = "jump"
- if not using then
- rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-80),rad(0),rad(180)),animspeed*50)
- rh.C0 = rh.C0:Lerp(CFrame.new(1,-.1,-.4) * CFrame.Angles(rad(-10),rad(85),rad(0)),animspeed*50)
- lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.4,-.25) * CFrame.Angles(rad(-10),rad(-85),rad(0)),animspeed*50)
- 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)
- 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)
- nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-100),rad(0),rad(180)),animspeed*50)
- end
- elseif vervel < -1 and hum.Sit == false then
- anim = "fall"
- if not using then
- rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-80),rad(0),rad(180)),.025)
- rh.C0 = rh.C0:Lerp(CFrame.new(1,-.1,-.4) * CFrame.Angles(rad(-10),rad(85),rad(0)),.025)
- lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.55,-.25) * CFrame.Angles(rad(-10),rad(-85),rad(0)),.025)
- 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)
- 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)
- nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-110),rad(0),rad(180)),.025)
- end
- elseif tvel < 1 and hum.Sit == false then
- anim = "idle"
- if not using then
- rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),animspeed*50)
- rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)),animspeed*50)
- lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),animspeed*50)
- rs.C0 = rs.C0:Lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(90),rad(0)),animspeed*50)
- ls.C0 = ls.C0:Lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),animspeed*50)
- nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),animspeed*50)
- end
- elseif tvel > 1 and hum.Sit == false then
- anim = "walk"
- if not using then
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- end
- elseif hum.Sit == true then
- if plr.UserId ~= 90745958 then
- rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),animspeed*50)
- 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)
- 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)
- 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)
- 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)
- nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-95),rad(0),rad(180)),animspeed*50)
- else
- rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-105),rad(0),rad(180)),animspeed*50)
- 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)
- 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)
- 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)
- 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)
- nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-75),rad(0),rad(180)),animspeed*50)
- end
- end
- else
- end
- else
- nec.C1 = nec.C1:Lerp(cf1,animspeed*50)
- rutj.C1 = rutj.C1:Lerp(cf2,animspeed*50)
- rs.C1 = rs.C1:Lerp(cf3,animspeed*50)
- ls.C1 = ls.C1:Lerp(cf4,animspeed*50)
- rh.C1 = rh.C1:Lerp(cf5,animspeed*50)
- lh.C1 = lh.C1:Lerp(cf6,animspeed*50)
- end
- swait()
- end
- end)
- anims()
Add Comment
Please, Sign In to add comment