Advertisement
vL4d_4eVer

some shit or smth

Dec 8th, 2019
518
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 17.80 KB | None | 0 0
  1. local Client=NLS([[
  2.     local HeadCameraFollowing=true
  3.     local Player=game:GetService("Players").LocalPlayer
  4.     local Mouse=Player:GetMouse()
  5.     local UIS=game:GetService("UserInputService")
  6.     local Remote=script:WaitForChild("Control",2).Value
  7.     UIS.InputBegan:Connect(function(IO,Locked)
  8.         Remote:FireServer("UIS+Mouse",{Hit=Mouse.Hit;Target=Mouse.Target;X=Mouse.X;Y=Mouse.Y;},{IO={UserInputType=IO.UserInputType;KeyCode=IO.KeyCode;};Locked=Locked;InputState="Began"})
  9.     end)
  10.     UIS.InputChanged:Connect(function(IO,Locked)
  11.         Remote:FireServer("UIS+Mouse",{Hit=Mouse.Hit;Target=Mouse.Target;X=Mouse.X;Y=Mouse.Y;},{IO={UserInputType=IO.UserInputType;KeyCode=IO.KeyCode;};Locked=Locked;InputState="Changed"})
  12.     end)
  13.     UIS.InputEnded:Connect(function(IO,Locked)
  14.         Remote:FireServer("UIS+Mouse",{Hit=Mouse.Hit;Target=Mouse.Target;X=Mouse.X;Y=Mouse.Y;},{IO={UserInputType=IO.UserInputType;KeyCode=IO.KeyCode;};Locked=Locked;InputState="Ended"})
  15.     end)
  16.     coroutine.wrap(function()
  17.         while wait(1/30) do
  18.             Remote:FireServer("Mouse",{Hit=Mouse.Hit;Target=Mouse.Target;X=Mouse.X;Y=Mouse.Y;})
  19.         end
  20.     end)()
  21.     local HeadCamFollow=coroutine.wrap(function()
  22.         local Head=Player.Character.Head
  23.         local HRP=Player.Character.HumanoidRootPart
  24.         local Hum=Player.Character:FindFirstChildOfClass("Humanoid")
  25.         game:GetService("RunService"):BindToRenderStep("HeadCamFollow",Enum.RenderPriority.Character.Value,function()
  26.             local CF=Head.CFrame:ToObjectSpace(HRP.CFrame*CFrame.new(0,1.5,0))
  27.             Hum.CameraOffset=Hum.CameraOffset:Lerp(Vector3.new(-CF.X,-CF.Y,-CF.Z),.15)
  28.         end)
  29.     end)
  30.     if HeadCameraFollowing then
  31.         HeadCamFollow()
  32.     end
  33. ]],owner.Character)
  34. local ORIGCF=CFrame.new
  35. local math=setmetatable({random=function(Arg1,Arg2,DIV) DIV=DIV or 1 return math.random(Arg1*DIV,Arg2*DIV)/DIV end;CosSin=function(Arg) return (math.sin(Arg/2)*math.cos(Arg/2)) end;},{__index=math;})
  36. local CFrame=setmetatable({new=function(Arg1,Arg2,Arg3,Angles) if not Angles then return CFrame.new(Arg1,Arg2,Arg3) else return CFrame.Angles(math.rad(Arg1),math.rad(Arg2),math.rad(Arg3)) end end;},{__index=CFrame;})
  37. local Instance=setmetatable({new = function(type,args) local instance = Instance.new(type) if args then if string.lower(typeof(args)) == "instance" then instance.Parent = args elseif string.lower(typeof(args)) == "table" then for i,v in pairs(args) do pcall(function() instance[i] = v end) end end end return instance end;Remove=function(Instance_,Time) if string.lower(typeof(Instance_))=="instance" then game:GetService("Debris"):AddItem(Instance_,Time or 0) elseif string.lower(typeof(Instance_))=="table" then table.foreach(Instance_,function(_,v) game:GetService("Debris"):AddItem(v,Time or 0) end) end end},{__index=Instance;})
  38. local Player,UIS,Mouse;
  39. do
  40.     Player=owner
  41.     Mouse={}
  42.     UIS={}
  43.     local Remote=Instance.new("RemoteEvent",{Name="ok";Parent=Player.Character})
  44.     local MouseR=Instance.new("BindableEvent")
  45.     local UISR=Instance.new("BindableEvent")
  46.     UIS.Input=UISR.Event
  47.     Remote.OnServerEvent:Connect(function(plr,InputType,MouseArgs,UISArgs)
  48.         pcall(function()
  49.             if Player~=plr then return end;
  50.             if InputType=="Mouse" then
  51.                 Mouse.Hit=MouseArgs.Hit
  52.                 Mouse.Target=MouseArgs.Target
  53.                 Mouse.X=MouseArgs.X
  54.                 Mouse.Y=MouseArgs.Y
  55.             elseif InputType=="UIS" then
  56.                 UISR:Fire(UISArgs.IO,UISArgs.Locked,UISArgs.InputState)
  57.             elseif InputType=="UIS+Mouse" then
  58.                 Mouse.Hit=MouseArgs.Hit
  59.                 Mouse.Target=MouseArgs.Target
  60.                 Mouse.X=MouseArgs.X
  61.                 Mouse.Y=MouseArgs.Y
  62.                 UISR:Fire(UISArgs.IO,UISArgs.Locked,UISArgs.InputState)
  63.             end
  64.         end)
  65.     end);
  66.     Instance.new("ObjectValue",{Name="Control";Parent=Client;Value=Remote;})
  67. end;
  68. --}{        Default Functions      }{--
  69. local ins=Instance.new
  70. local v3=Vector3.new
  71. local v2=Vector2.new
  72. local cf=CFrame.new
  73. local angles=CFrame.Angles
  74. local ud=UDim.new
  75. local ud2=UDim2.new
  76. local c3=Color3.new
  77. local rgb=Color3.fromRGB
  78. local hsv=Color3.fromHSV
  79. local bc=BrickColor.new
  80. local bcRandom=BrickColor.Random
  81. local palette=BrickColor.palatte
  82. local cs=ColorSequence.new
  83. local ns=NumberSequence.new
  84. local nsk=NumberSequenceKeypoint.new
  85. local nr=NumberRange.new
  86. local random=math.random
  87. local rad=math.rad
  88. local sin=math.sin
  89. local cos=math.cos
  90. local tan=math.tan
  91. local CosSin=math.CosSin
  92. local floor=math.floor
  93. local pi=math.floor
  94. local abs=math.abs
  95. local sqrt=math.sqrt
  96. local clamp=math.clamp
  97. local ray=Ray.new
  98. local huge=math.huge
  99. --}{        Useful Functions       }{--
  100. function Tween(Object,Args,Info)
  101.     if Object and Args then
  102.         Info = Info or TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.In,0,false,0)
  103.         if typeof(Info) == "table" then Info = TweenInfo.new(unpack(Info)) end
  104.         game:GetService("TweenService"):Create(Object,Info,Args):Play()
  105.     end
  106. end
  107. function Sound(Id,Volume,Pitch,Parent,MaxDistance,EmitterSize,Looped)
  108.     local S=ins("Sound",{Volume=Volume or 1;Pitch=Pitch or 1;MaxDistance=MaxDistance or 500;EmitterSize=EmitterSize or 5;Looped=Looped or true;SoundId="rbxassetid://"..Id,Parent=Parent})
  109.     S:Play()
  110.     coroutine.wrap(function()
  111.         if S.IsLoaded then
  112.             Instance.Remove(S,S.TimeLength/S.Pitch)
  113.         else
  114.             S.Loaded:Connect(function()
  115.                 Instance.Remove(S,S.TimeLength/S.Pitch)
  116.             end)
  117.         end
  118.     end)()
  119.     return S
  120. end
  121. function Raycast(Origin,Direction,Blacklist,MaxDistance,IgnoreWater)
  122.     return workspace:FindPartOnRayWithIgnoreList(ray(Origin,Direction.Unit*MaxDistance),Blacklist or {},false,IgnoreWater)
  123. end
  124. function LerpNum(Num,NewNum,Alpha)
  125.     return (v3(Num,0,0):Lerp(v3(NewNum,0,0),Alpha)).X
  126. end
  127. --}{            Character          }{--
  128. local char=Player.Character
  129. local hum=char:FindFirstChildOfClass("Humanoid")
  130. local h=char.Head
  131. local t=char.Torso
  132. local hrp=char.HumanoidRootPart
  133. local ra=char["Right Arm"]
  134. local la=char["Left Arm"]
  135. local rl=char["Right Leg"]
  136. local ll=char["Left Leg"]
  137. local nec=t.Neck
  138. local rutj=hrp.RootJoint
  139. local rs=t["Right Shoulder"]
  140. local ls=t["Left Shoulder"]
  141. local rh=t["Right Hip"]
  142. local lh=t["Left Hip"]
  143. local Effects=ins("Model",{Name="Effects";Parent=char;})
  144. --}{        Character Funtions      }{--
  145. local Hats={}
  146. local Clothes={}
  147. table.foreach(char:GetChildren(),function(_,v) if v:IsA("Accessory") or v:IsA("Hat") then table.insert(Hats,v) elseif v:IsA("Shirt") then Clothes.Shirt=v elseif v:IsA("Pants") then Clothes.Pants=v end end)
  148. Hats.RemoveAll=function()
  149.     for i,v in pairs(Hats) do
  150.         Instance.Remove(v)
  151.     end
  152. end
  153. Clothes.RemoveAll=function()
  154.     for i,v in pairs(Clothes) do
  155.         Instance.Remove(v)
  156.     end
  157.     if char:FindFirstChildOfClass("ShirtGraphic") then
  158.         Instance.Remove(char:FindFirstChildOfClass("ShirtGraphic"))
  159.     end
  160. end
  161. --           Setup            --
  162. for i,v in pairs(char:GetDescendants()) do
  163.     if (v.Name=="Animate" and v:IsA("LocalScript")) or v:IsA("Animator") or v:IsA("Decal") or v:IsA("Sound") or v:IsA("CharacterMesh") or v:IsA("SpecialMesh") then
  164.         Instance.Remove(v)
  165.     end
  166. end
  167. Clothes.RemoveAll()
  168. Hats.RemoveAll()
  169. for i,v in pairs(char:GetDescendants()) do
  170.     if v:IsA("BasePart") then
  171.         v.Transparency=1
  172.         ins("BlockMesh",{Parent=v;Scale=v3(0,0,0)})
  173.     end
  174. end
  175. for i,v in pairs({t;ra;la;rl;ll;hrp}) do
  176.     v.Size=v.Size*2
  177. end
  178. --}{            Variables          }{--
  179. local Using=false
  180. local Sine=0
  181. local Change=1
  182. local TimePos=0
  183. local WS,JP=65,100
  184. local FollowingParts={}
  185. local FallingParts={}
  186. --}{            Other Variables    }{--
  187. local necC0,necC1=cf(0,t.Size.Y/2,0),cf(0,-h.Size.Y/2,0)
  188. local rutjC0,rutjC1=cf(0,0,0),cf(0,0,0)
  189. local rsC0,rsC1=cf(t.Size.X/2,t.Size.Y/4,0),cf(-ra.Size.X/2,ra.Size.Y/4,0)
  190. local lsC0,lsC1=cf(-t.Size.X/2,t.Size.Y/4,0),cf(la.Size.X/2,la.Size.Y/4,0)
  191. local rhC0,rhC1=cf(t.Size.X/4,-t.Size.Y/2,0),cf(0,rl.Size.Y/2,0)
  192. local lhC0,lhC1=cf(-t.Size.X/4,-t.Size.Y/2,0),cf(0,ll.Size.Y/2,0)
  193. --}{            Creates            }{--
  194. ins("ForceField",{Visible=false;Parent=char})
  195. local Effects=ins("Model",{Name="Effects";Parent=char})
  196. Instance.Remove({nec;rutj;rs;ls;rh;lh})
  197. nec=ins("Motor",{Name="Neck";Part0=t;Part1=h;C0=necC0;C1=necC1;Parent=t;})
  198. rutj=ins("Motor",{Name="RootJoint";Part0=hrp;Part1=t;C0=rutjC0;C1=rutjC1;Parent=hrp;})
  199. rs=ins("Motor",{Name="Right Shoulder";Part0=t;Part1=ra;C0=rsC0;C1=rsC1;Parent=t;})
  200. ls=ins("Motor",{Name="Left Shoulder";Part0=t;Part1=la;C0=lsC0;C1=lsC1;Parent=t;})
  201. rh=ins("Motor",{Name="Right Hip";Part0=t;Part1=rl;C0=rhC0;C1=rhC1;Parent=t;})
  202. lh=ins("Motor",{Name="Left Hip";Part0=t;Part1=ll;C0=lhC0;C1=lhC1;Parent=t;})
  203. local MusEmm=ins("Part",{Locked=true;CanCollide=false;Massless=true;Anchored=true;Size=v3(0,0,0);Transparency=1;Parent=t})
  204. local Mus=hrp:FindFirstChild("your local uber bruh") or ins("Sound",{SoundId="rbxassetid://934922220";Name="your local uber bruh";Volume=1;Looped=true;Parent=MusEmm})
  205. Mus:Resume()
  206. for i,v in pairs({t;ra;la;rl;ll}) do
  207.     local P=ins("Part",{Locked=true;Massless=true;Anchored=true;CanCollide=false;CFrame=v.CFrame;Material="Neon";Color=bc("Really black").Color;Transparency=random(.25,.5,100);Size=v.Size;Parent=Effects;})
  208.     table.insert(FollowingParts,{Part=P;FPart=v;})
  209. end
  210. --}{            Functions          }{--
  211. local function BlinkEffect()
  212.     for i,v in pairs({t;ra;la;rl;ll}) do
  213.         if random(0,1,2)==1 then
  214.             local P=ins("Part",{Locked=true;Massless=true;Anchored=true;CanCollide=false;CFrame=v.CFrame;Material=({"ForceField";"Neon"})[random(1,2)];Color=bc("Really black").Color;Transparency=0;Size=v.Size;Parent=Effects;})
  215.             Instance.Remove(P,20)
  216.             local Data={Speed=0;Acceleration=random(.1,.5,100);RotSpeed=0;RotEl=v3(random(-1,1),random(-1,1),random(-1,1))+(v.RotVelocity);OriginVel=v.Velocity/2;Part=P;}
  217.             table.insert(FallingParts,Data)
  218.         end
  219.     end
  220. end
  221. --}{            Connections        }{--
  222. UIS.Input:Connect(function(IO,Locked,InputState)
  223.     if Locked then return end;
  224.     if IO.UserInputType==Enum.UserInputType.Keyboard then
  225.         if InputState=="Began" then
  226.            
  227.         elseif InputState=="Changed" then
  228.            
  229.         elseif InputState=="Ended" then
  230.            
  231.         end
  232.     end
  233. end)
  234. game:GetService("RunService").Stepped:Connect(function()
  235.     if Player.Character~=char then Instance.Remove(script) end
  236.     if not Mus.Parent or Mus.Parent~=MusEmm then
  237.         Instance.Remove(Mus)
  238.         Mus=ins("Sound",{SoundId="rbxassetid://934922220";TimePosition=TimePos;Name="your local uber bruh";Volume=1;Looped=true;Parent=MusEmm})
  239.     end
  240.     Mus.SoundId="rbxassetid://656478412"
  241.     Mus.Name="your local uber bruh"
  242.     Mus.Volume=1.75
  243.     Mus.EmitterSize=15
  244.     Mus.Looped=true
  245.     Mus.Pitch=1
  246.     TimePos=Mus.TimePosition
  247.     Mus:Resume()
  248.     Sine=Sine+Change
  249.     local Direction=hum.MoveDirection
  250.     if Direction.Magnitude==0 then Direction=hrp.Velocity/7.5 end;
  251.     local MoveZ=clamp((Direction*hrp.CFrame.LookVector).X+(Direction*hrp.CFrame.LookVector).Z,-1,1)
  252.     local MoveX=clamp((Direction*hrp.CFrame.RightVector).X+(Direction*hrp.CFrame.RightVector).Z,-1,1)
  253.     local Moving=(hrp.Velocity*v3(1,0,1)).Magnitude>1
  254.     local VerY=hrp.Velocity.Y
  255.     local Stand=Raycast(hrp.CFrame*cf(0,-t.Size.Y/2,0).Position,-hrp.CFrame.UpVector,{char},3*(t.Size.Y/2),true)
  256.     if random(0,1,5)==1 then
  257.         BlinkEffect()
  258.     end
  259.     if random(0,1,10)==1 then
  260.         local P=ins("Part",{Locked=true;Massless=true;Anchored=true;CanCollide=false;CFrame=hrp.CFrame*cf(0,-6,0)*cf(0,random(-180,180,10),0,true)*cf(0,0,-random(1,20,10));Material=({"ForceField";"Neon"})[random(1,2)];Color=bc("Really black").Color;Transparency=-3;Size=v3(1,1,1)*random(.5,1.5,100);Parent=Effects;})
  261.         Instance.Remove(P,20)
  262.         local Data={Speed=.1;Acceleration=random(.25,1,10);RotSpeed=25;RotEl=v3(random(-1,1),random(-1,1),random(-1,1));OriginVel=v3(random(-15,15,10),random(35,100,10),random(-15,15,10))+hrp.Velocity/3;Part=P;}
  263.         table.insert(FallingParts,Data)
  264.     end
  265.     if random(0,1,15)==1 then
  266.         local P=ins("Part",{Locked=true;Massless=true;Anchored=true;CanCollide=false;CFrame=FollowingParts[1].Part.CFrame*cf(0,2,0);Material=({"ForceField";"Neon"})[random(1,2)];Color=bc("Really black").Color;Transparency=-random(1,4);Size=v3(1,1,1)*random(.25,1.5,100);Parent=Effects;})
  267.         Instance.Remove(P,20)
  268.         local Data={Speed=.1;Acceleration=random(.25,1,10);RotSpeed=random(-30,30);RotEl=v3(random(-1,1),random(-1,1),random(-1,1));OriginVel=(v3(random(-15,15,10),random(35,100,10),random(-15,15,10))*t.CFrame.LookVector)+hrp.Velocity/3;Part=P;}
  269.         table.insert(FallingParts,Data)
  270.     end
  271.     hum.WalkSpeed,hum.JumpPower=WS,JP
  272.     if not Moving and Stand then
  273.         local IdleVal=25
  274.         Change=1
  275.         nec.C0=nec.C0:Lerp(necC0*cf(0,0,0)*cf(0,0,0,true)*cf(0,0,0)*cf(0,0,0,true),.1)
  276.         rutj.C0=rutj.C0:Lerp(rutjC0*cf(0,1*CosSin(Sine/IdleVal),.5*cos(Sine/IdleVal))*cf(cos(Sine/IdleVal)*10,0,0,true)*cf(0,-.5,-.5)*cf(-10,0,0,true),.1)
  277.         rs.C0=rs.C0:Lerp(rsC0*cf(0,.25*cos(Sine/IdleVal),0)*cf(cos(Sine/IdleVal)*-10+CosSin(Sine/(IdleVal*2))*5,0,-5+sin(Sine/IdleVal)*5,true)*cf(.5,-1,-.25)*cf(30,0,30,true)*cf(0,10,0,true),.1)
  278.         ls.C0=ls.C0:Lerp(lsC0*cf(0,.25*cos(Sine/IdleVal),0)*cf(cos(Sine/IdleVal)*-10+CosSin(Sine/(IdleVal*2))*5,0,5+sin(Sine/IdleVal)*-5,true)*cf(-.5,-1,.25)*cf(30,0,-30,true)*cf(0,-10,0,true),.1)
  279.         rh.C0=rh.C0:Lerp(rhC0*cf(0,-1*CosSin(Sine/IdleVal),0)*cf(cos(Sine/IdleVal)*-10,0,0,true)*cf(0,.5,-.5)*cf(5,-10,10,true),.1)
  280.         lh.C0=lh.C0:Lerp(lhC0*cf(0,-1*CosSin(Sine/IdleVal),0)*cf(cos(Sine/IdleVal)*-10,0,0,true)*cf(0,.5,-.5)*cf(5,10,-10,true),.1)
  281.     elseif Moving and Stand then
  282.         local WSVal=6/clamp(hum.WalkSpeed/16,.25,2)*t.Size.Y/2
  283.         local WSMul=(1+(WSVal/4))
  284.         Change=.875
  285.         nec.C0=nec.C0:Lerp(necC0*cf(0,0,0)*cf(0,0,0,true)*cf(0,0,0)*cf(sin(Sine/(WSVal/2))*7.5,-sin(Sine/WSVal)*15,0,true)*angles(MoveZ/12,-MoveX/1.5,0),.2/(t.Size.Y/2)*(hum.WalkSpeed/16)/3)
  286.         rutj.C0=rutj.C0:Lerp(rutjC0*cf(0,0,0)*cf(0,0,0,true)*cf(-.5*(t.Size.Y/2)*sin(Sine/(WSVal/2))/(1+(WSVal/4))*MoveX,1.5*(t.Size.Y/2)*cos(Sine/(WSVal/2))/(1+(WSVal/4)),-.5*(t.Size.Y/2)*sin(Sine/(WSVal/2))/(1+(WSVal/4))*MoveZ)*cf(cos(Sine/(WSVal/2))*7.5*MoveZ,math.CosSin(Sine/WSVal)*20,cos(Sine/(WSVal/2))*7.5*MoveX,true)*angles((-MoveZ/7.5)*math.clamp((hum.WalkSpeed/16)/(t.Size.Y/2),.5,3.5),0,-MoveX/5),.2/(t.Size.Y/2)*(hum.WalkSpeed/16)/3)
  287.         rs.C0=rs.C0:Lerp(rsC0*cf(0,0,-.65)*cf(95,0,0,true)*cf(0,0,.1*(t.Size.Y/2)*sin(Sine/WSVal)/(1+(WSVal/4))*math.abs(MoveZ))*cf(sin(Sine/WSVal)*10/(1+(WSVal/4))*MoveZ,-sin(Sine/WSVal)*5,-5*MoveZ,true),.2/(t.Size.Y/2)*(hum.WalkSpeed/16)/3)
  288.         ls.C0=ls.C0:Lerp(lsC0*cf(0,0,0)*cf(0,0,0,true)*cf(0,0,-.75*(t.Size.Y/2)*sin(Sine/WSVal)/(1+(WSVal/4))*math.abs(MoveZ))*cf(7.5+sin(Sine/WSVal)*200/(1+(WSVal/4))*MoveZ,-sin(Sine/WSVal)*30,15*MoveZ,true),.2/(t.Size.Y/2)*(hum.WalkSpeed/16)/3)
  289.         rh.C0=rh.C0:Lerp(rhC0*cf(0,0,0)*cf(0,0,0,true)*cf(0,.5*(t.Size.Y/2)*cos(Sine/WSVal),(.1-.8)*(t.Size.Y/2)*cos(Sine/WSVal))*cf(-5+math.clamp((sin(Sine/WSVal)*200/(1+(WSVal/4)))*MoveZ,-130,130),cos(Sine/WSVal)*5,(sin(Sine/WSVal)*60)*MoveX,true),.2/(t.Size.Y/2)*(hum.WalkSpeed/16)/3)
  290.         lh.C0=lh.C0:Lerp(lhC0*cf(0,0,0)*cf(0,0,0,true)*cf(0,-.5*(t.Size.Y/2)*cos(Sine/WSVal),(.1+.8)*(t.Size.Y/2)*cos(Sine/WSVal))*cf(-5-math.clamp((sin(Sine/WSVal)*200/(1+(WSVal/4)))*MoveZ,-130,130),cos(Sine/WSVal)*5,-(sin(Sine/WSVal)*60)*MoveX,true),.2/(t.Size.Y/2)*(hum.WalkSpeed/16)/3)
  291.         --[[
  292.         nec.C0=nec.C0:Lerp(necC0*cf(0,0,0)*cf(0,0,0,true)*cf(0,0,0)*cf(0,0,0,true),.2/(t.Size.Y/2)*(hum.WalkSpeed/16)/3)
  293.         rutj.C0=rutj.C0:Lerp(rutjC0*cf(0,0,0)*cf(0,0,0,true)*cf(0,0,0)*cf(0,0,0,true),.2/(t.Size.Y/2)*(hum.WalkSpeed/16)/3)
  294.         rs.C0=rs.C0:Lerp(rsC0*cf(0,0,0)*cf(0,0,0,true)*cf(0,0,0)*cf(0,0,0,true),.2/(t.Size.Y/2)*(hum.WalkSpeed/16)/3)
  295.         ls.C0=ls.C0:Lerp(lsC0*cf(0,0,0)*cf(0,0,0,true)*cf(0,0,0)*cf(0,0,0,true),.2/(t.Size.Y/2)*(hum.WalkSpeed/16)/3)
  296.         rh.C0=rh.C0:Lerp(rhC0*cf(0,0,0)*cf(0,0,0,true)*cf(0,0,0)*cf(0,0,0,true),.2/(t.Size.Y/2)*(hum.WalkSpeed/16)/3)
  297.         lh.C0=lh.C0:Lerp(lhC0*cf(0,0,0)*cf(0,0,0,true)*cf(0,0,0)*cf(0,0,0,true),.2/(t.Size.Y/2)*(hum.WalkSpeed/16)/3)
  298.         --]]
  299.     elseif not Stand then
  300.         Change=1
  301.         nec.C0=nec.C0:Lerp(necC0*cf(0,0,0)*cf(0,0,0,true)*cf(0,0,0)*cf(clamp(hrp.Velocity.Y,-15,15),0,0,true),.2)
  302.         rutj.C0=rutj.C0:Lerp(rutjC0*cf(0,0,0)*cf(0,0,0,true)*cf(0,0,0)*cf(clamp(hrp.Velocity.Y,-30,20),0,0,true),.2)
  303.         rs.C0=rs.C0:Lerp(rsC0*cf(0,0,0)*cf(0,5,-7.5,true)*cf(-(clamp(hrp.Velocity.Y/20,-.45,0)),0,0)*cf((clamp(hrp.Velocity.Y*4,0,150)),0,-(clamp(hrp.Velocity.Y*4,-120,0)),true),.2)
  304.         ls.C0=ls.C0:Lerp(lsC0*cf(0,0,0)*cf(0,-5,7.5,true)*cf((clamp(hrp.Velocity.Y/20,-.45,0)),0,0)*cf((clamp(hrp.Velocity.Y*4,0,150)),0,(clamp(hrp.Velocity.Y*4,-120,0)),true),.2)
  305.         rh.C0=rh.C0:Lerp(rhC0*cf(0,0,0)*cf(0,0,0,true)*cf(0,.4,-.35)*cf(-10,-5,5,true),.2)
  306.         lh.C0=lh.C0:Lerp(lhC0*cf(0,0,0)*cf(clamp(-hrp.Velocity.Y,-25,35),0,0,true)*cf(0,.2,-.15)*cf(-2.5,5,-5,true),.2)
  307.     end
  308.     nec.C1=nec.C1:Lerp(necC1,.2)
  309.     rutj.C1=rutj.C1:Lerp(rutjC1,.2)
  310.     rs.C1=rs.C1:Lerp(rsC1,.2)
  311.     ls.C1=ls.C1:Lerp(lsC1,.2)
  312.     rh.C1=rh.C1:Lerp(rhC1,.2)
  313.     lh.C1=lh.C1:Lerp(lhC1,.2)
  314.     necC0,necC1=cf(0,t.Size.Y/2,0),cf(0,-h.Size.Y/2,0)
  315.     rutjC0,rutjC1=cf(0,0,0),cf(0,0,0)
  316.     rsC0,rsC1=cf(t.Size.X/2,t.Size.Y/4,0),cf(-ra.Size.X/2,ra.Size.Y/4,0)
  317.     lsC0,lsC1=cf(-t.Size.X/2,t.Size.Y/4,0),cf(la.Size.X/2,la.Size.Y/4,0)
  318.     rhC0,rhC1=cf(t.Size.X/4,-t.Size.Y/2,0),cf(0,rl.Size.Y/2,0)
  319.     lhC0,lhC1=cf(-t.Size.X/4,-t.Size.Y/2,0),cf(0,ll.Size.Y/2,0)
  320.     MusEmm.CFrame=MusEmm.CFrame:Lerp(h.CFrame*cf(cos(Sine/35)*50,sin(Sine/25)*100,sin(Sine/100)*50),.2)
  321.     if #FollowingParts>0 then
  322.         for i,v in pairs(FollowingParts) do
  323.             local LV=v.FPart.CFrame
  324.             v.Part.CFrame=v.Part.CFrame:Lerp(ORIGCF(v.FPart.Position+(v.FPart.Velocity/3))*(LV-LV.Position),.1*clamp((v.Part.Position-v.FPart.Position).Magnitude/5,1,15))
  325.         end
  326.     end
  327.     if #FallingParts>0 then
  328.         for i,v in pairs(FallingParts) do
  329.             if not v.Part.Parent then
  330.                 table.remove(FallingParts,i)
  331.                 break
  332.             end
  333.             FallingParts[i].Speed=FallingParts[i].Speed+v.Acceleration/3
  334.             FallingParts[i].RotSpeed=FallingParts[i].RotSpeed+v.Acceleration/3
  335.             if v.OriginVel.Y>0 then
  336.                 FallingParts[i].OriginVel=FallingParts[i].OriginVel:Lerp(v3(v.OriginVel.X,0,v.OriginVel.Z),.05)
  337.             end
  338.             v.Part.Transparency=v.Part.Transparency+v.Acceleration/10
  339.             if v.Part.Transparency>=1 then
  340.                 Instance.Remove(v.Part)
  341.                 table.remove(FallingParts,i)
  342.                 break
  343.             end
  344.             v.Part.Position=v.Part.Position:Lerp((v.Part.Position+v.OriginVel)-v3(0,v.Speed,0),.01)
  345.             v.Part.Orientation=v.Part.Orientation:Lerp(v.Part.Orientation+(v3(v.RotSpeed,v.RotSpeed,v.RotSpeed)*v.RotEl),.1)
  346.         end
  347.     end
  348. end)
  349. --}{            Loops          }{--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement