Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Client=NLS([[
- local HeadCameraFollowing=true
- local Player=game:GetService("Players").LocalPlayer
- local Mouse=Player:GetMouse()
- local UIS=game:GetService("UserInputService")
- local Remote=script:WaitForChild("Control",2).Value
- UIS.InputBegan:Connect(function(IO,Locked)
- 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"})
- end)
- UIS.InputChanged:Connect(function(IO,Locked)
- 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"})
- end)
- UIS.InputEnded:Connect(function(IO,Locked)
- 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"})
- end)
- coroutine.wrap(function()
- while wait(1/30) do
- Remote:FireServer("Mouse",{Hit=Mouse.Hit;Target=Mouse.Target;X=Mouse.X;Y=Mouse.Y;})
- end
- end)()
- local HeadCamFollow=coroutine.wrap(function()
- local Head=Player.Character.Head
- local HRP=Player.Character.HumanoidRootPart
- local Hum=Player.Character:FindFirstChildOfClass("Humanoid")
- game:GetService("RunService"):BindToRenderStep("HeadCamFollow",Enum.RenderPriority.Character.Value,function()
- local CF=Head.CFrame:ToObjectSpace(HRP.CFrame*CFrame.new(0,1.5,0))
- Hum.CameraOffset=Hum.CameraOffset:Lerp(Vector3.new(-CF.X,-CF.Y,-CF.Z),.15)
- end)
- end)
- if HeadCameraFollowing then
- HeadCamFollow()
- end
- ]],owner.Character)
- local ORIGCF=CFrame.new
- 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;})
- 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;})
- 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;})
- local Player,UIS,Mouse;
- do
- Player=owner
- Mouse={}
- UIS={}
- local Remote=Instance.new("RemoteEvent",{Name="ok";Parent=Player.Character})
- local MouseR=Instance.new("BindableEvent")
- local UISR=Instance.new("BindableEvent")
- UIS.Input=UISR.Event
- Remote.OnServerEvent:Connect(function(plr,InputType,MouseArgs,UISArgs)
- pcall(function()
- if Player~=plr then return end;
- if InputType=="Mouse" then
- Mouse.Hit=MouseArgs.Hit
- Mouse.Target=MouseArgs.Target
- Mouse.X=MouseArgs.X
- Mouse.Y=MouseArgs.Y
- elseif InputType=="UIS" then
- UISR:Fire(UISArgs.IO,UISArgs.Locked,UISArgs.InputState)
- elseif InputType=="UIS+Mouse" then
- Mouse.Hit=MouseArgs.Hit
- Mouse.Target=MouseArgs.Target
- Mouse.X=MouseArgs.X
- Mouse.Y=MouseArgs.Y
- UISR:Fire(UISArgs.IO,UISArgs.Locked,UISArgs.InputState)
- end
- end)
- end);
- Instance.new("ObjectValue",{Name="Control";Parent=Client;Value=Remote;})
- end;
- --}{ Default Functions }{--
- local ins=Instance.new
- local v3=Vector3.new
- local v2=Vector2.new
- local cf=CFrame.new
- local angles=CFrame.Angles
- local ud=UDim.new
- local ud2=UDim2.new
- local c3=Color3.new
- local rgb=Color3.fromRGB
- local hsv=Color3.fromHSV
- local bc=BrickColor.new
- local bcRandom=BrickColor.Random
- local palette=BrickColor.palatte
- local cs=ColorSequence.new
- local ns=NumberSequence.new
- local nsk=NumberSequenceKeypoint.new
- local nr=NumberRange.new
- local random=math.random
- local rad=math.rad
- local sin=math.sin
- local cos=math.cos
- local tan=math.tan
- local CosSin=math.CosSin
- local floor=math.floor
- local pi=math.floor
- local abs=math.abs
- local sqrt=math.sqrt
- local clamp=math.clamp
- local ray=Ray.new
- local huge=math.huge
- --}{ Useful Functions }{--
- function Tween(Object,Args,Info)
- if Object and Args then
- Info = Info or TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.In,0,false,0)
- if typeof(Info) == "table" then Info = TweenInfo.new(unpack(Info)) end
- game:GetService("TweenService"):Create(Object,Info,Args):Play()
- end
- end
- function Sound(Id,Volume,Pitch,Parent,MaxDistance,EmitterSize,Looped)
- 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})
- S:Play()
- coroutine.wrap(function()
- if S.IsLoaded then
- Instance.Remove(S,S.TimeLength/S.Pitch)
- else
- S.Loaded:Connect(function()
- Instance.Remove(S,S.TimeLength/S.Pitch)
- end)
- end
- end)()
- return S
- end
- function Raycast(Origin,Direction,Blacklist,MaxDistance,IgnoreWater)
- return workspace:FindPartOnRayWithIgnoreList(ray(Origin,Direction.Unit*MaxDistance),Blacklist or {},false,IgnoreWater)
- end
- function LerpNum(Num,NewNum,Alpha)
- return (v3(Num,0,0):Lerp(v3(NewNum,0,0),Alpha)).X
- end
- --}{ Character }{--
- local char=Player.Character
- local hum=char:FindFirstChildOfClass("Humanoid")
- local h=char.Head
- local t=char.Torso
- local hrp=char.HumanoidRootPart
- local ra=char["Right Arm"]
- local la=char["Left Arm"]
- local rl=char["Right Leg"]
- local ll=char["Left Leg"]
- local nec=t.Neck
- local rutj=hrp.RootJoint
- local rs=t["Right Shoulder"]
- local ls=t["Left Shoulder"]
- local rh=t["Right Hip"]
- local lh=t["Left Hip"]
- local Effects=ins("Model",{Name="Effects";Parent=char;})
- --}{ Character Funtions }{--
- local Hats={}
- local Clothes={}
- 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)
- Hats.RemoveAll=function()
- for i,v in pairs(Hats) do
- Instance.Remove(v)
- end
- end
- Clothes.RemoveAll=function()
- for i,v in pairs(Clothes) do
- Instance.Remove(v)
- end
- if char:FindFirstChildOfClass("ShirtGraphic") then
- Instance.Remove(char:FindFirstChildOfClass("ShirtGraphic"))
- end
- end
- -- Setup --
- for i,v in pairs(char:GetDescendants()) do
- 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
- Instance.Remove(v)
- end
- end
- Clothes.RemoveAll()
- Hats.RemoveAll()
- for i,v in pairs(char:GetDescendants()) do
- if v:IsA("BasePart") then
- v.Transparency=1
- ins("BlockMesh",{Parent=v;Scale=v3(0,0,0)})
- end
- end
- for i,v in pairs({t;ra;la;rl;ll;hrp}) do
- v.Size=v.Size*2
- end
- --}{ Variables }{--
- local Using=false
- local Sine=0
- local Change=1
- local TimePos=0
- local WS,JP=65,100
- local FollowingParts={}
- local FallingParts={}
- --}{ Other Variables }{--
- local necC0,necC1=cf(0,t.Size.Y/2,0),cf(0,-h.Size.Y/2,0)
- local rutjC0,rutjC1=cf(0,0,0),cf(0,0,0)
- local rsC0,rsC1=cf(t.Size.X/2,t.Size.Y/4,0),cf(-ra.Size.X/2,ra.Size.Y/4,0)
- local lsC0,lsC1=cf(-t.Size.X/2,t.Size.Y/4,0),cf(la.Size.X/2,la.Size.Y/4,0)
- local rhC0,rhC1=cf(t.Size.X/4,-t.Size.Y/2,0),cf(0,rl.Size.Y/2,0)
- local lhC0,lhC1=cf(-t.Size.X/4,-t.Size.Y/2,0),cf(0,ll.Size.Y/2,0)
- --}{ Creates }{--
- ins("ForceField",{Visible=false;Parent=char})
- local Effects=ins("Model",{Name="Effects";Parent=char})
- Instance.Remove({nec;rutj;rs;ls;rh;lh})
- nec=ins("Motor",{Name="Neck";Part0=t;Part1=h;C0=necC0;C1=necC1;Parent=t;})
- rutj=ins("Motor",{Name="RootJoint";Part0=hrp;Part1=t;C0=rutjC0;C1=rutjC1;Parent=hrp;})
- rs=ins("Motor",{Name="Right Shoulder";Part0=t;Part1=ra;C0=rsC0;C1=rsC1;Parent=t;})
- ls=ins("Motor",{Name="Left Shoulder";Part0=t;Part1=la;C0=lsC0;C1=lsC1;Parent=t;})
- rh=ins("Motor",{Name="Right Hip";Part0=t;Part1=rl;C0=rhC0;C1=rhC1;Parent=t;})
- lh=ins("Motor",{Name="Left Hip";Part0=t;Part1=ll;C0=lhC0;C1=lhC1;Parent=t;})
- local MusEmm=ins("Part",{Locked=true;CanCollide=false;Massless=true;Anchored=true;Size=v3(0,0,0);Transparency=1;Parent=t})
- 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})
- Mus:Resume()
- for i,v in pairs({t;ra;la;rl;ll}) do
- 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;})
- table.insert(FollowingParts,{Part=P;FPart=v;})
- end
- --}{ Functions }{--
- local function BlinkEffect()
- for i,v in pairs({t;ra;la;rl;ll}) do
- if random(0,1,2)==1 then
- 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;})
- Instance.Remove(P,20)
- 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;}
- table.insert(FallingParts,Data)
- end
- end
- end
- --}{ Connections }{--
- UIS.Input:Connect(function(IO,Locked,InputState)
- if Locked then return end;
- if IO.UserInputType==Enum.UserInputType.Keyboard then
- if InputState=="Began" then
- elseif InputState=="Changed" then
- elseif InputState=="Ended" then
- end
- end
- end)
- game:GetService("RunService").Stepped:Connect(function()
- if Player.Character~=char then Instance.Remove(script) end
- if not Mus.Parent or Mus.Parent~=MusEmm then
- Instance.Remove(Mus)
- Mus=ins("Sound",{SoundId="rbxassetid://934922220";TimePosition=TimePos;Name="your local uber bruh";Volume=1;Looped=true;Parent=MusEmm})
- end
- Mus.SoundId="rbxassetid://656478412"
- Mus.Name="your local uber bruh"
- Mus.Volume=1.75
- Mus.EmitterSize=15
- Mus.Looped=true
- Mus.Pitch=1
- TimePos=Mus.TimePosition
- Mus:Resume()
- Sine=Sine+Change
- local Direction=hum.MoveDirection
- if Direction.Magnitude==0 then Direction=hrp.Velocity/7.5 end;
- local MoveZ=clamp((Direction*hrp.CFrame.LookVector).X+(Direction*hrp.CFrame.LookVector).Z,-1,1)
- local MoveX=clamp((Direction*hrp.CFrame.RightVector).X+(Direction*hrp.CFrame.RightVector).Z,-1,1)
- local Moving=(hrp.Velocity*v3(1,0,1)).Magnitude>1
- local VerY=hrp.Velocity.Y
- local Stand=Raycast(hrp.CFrame*cf(0,-t.Size.Y/2,0).Position,-hrp.CFrame.UpVector,{char},3*(t.Size.Y/2),true)
- if random(0,1,5)==1 then
- BlinkEffect()
- end
- if random(0,1,10)==1 then
- 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;})
- Instance.Remove(P,20)
- 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;}
- table.insert(FallingParts,Data)
- end
- if random(0,1,15)==1 then
- 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;})
- Instance.Remove(P,20)
- 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;}
- table.insert(FallingParts,Data)
- end
- hum.WalkSpeed,hum.JumpPower=WS,JP
- if not Moving and Stand then
- local IdleVal=25
- Change=1
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- elseif Moving and Stand then
- local WSVal=6/clamp(hum.WalkSpeed/16,.25,2)*t.Size.Y/2
- local WSMul=(1+(WSVal/4))
- Change=.875
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- --[[
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- --]]
- elseif not Stand then
- Change=1
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- end
- nec.C1=nec.C1:Lerp(necC1,.2)
- rutj.C1=rutj.C1:Lerp(rutjC1,.2)
- rs.C1=rs.C1:Lerp(rsC1,.2)
- ls.C1=ls.C1:Lerp(lsC1,.2)
- rh.C1=rh.C1:Lerp(rhC1,.2)
- lh.C1=lh.C1:Lerp(lhC1,.2)
- necC0,necC1=cf(0,t.Size.Y/2,0),cf(0,-h.Size.Y/2,0)
- rutjC0,rutjC1=cf(0,0,0),cf(0,0,0)
- rsC0,rsC1=cf(t.Size.X/2,t.Size.Y/4,0),cf(-ra.Size.X/2,ra.Size.Y/4,0)
- lsC0,lsC1=cf(-t.Size.X/2,t.Size.Y/4,0),cf(la.Size.X/2,la.Size.Y/4,0)
- rhC0,rhC1=cf(t.Size.X/4,-t.Size.Y/2,0),cf(0,rl.Size.Y/2,0)
- lhC0,lhC1=cf(-t.Size.X/4,-t.Size.Y/2,0),cf(0,ll.Size.Y/2,0)
- MusEmm.CFrame=MusEmm.CFrame:Lerp(h.CFrame*cf(cos(Sine/35)*50,sin(Sine/25)*100,sin(Sine/100)*50),.2)
- if #FollowingParts>0 then
- for i,v in pairs(FollowingParts) do
- local LV=v.FPart.CFrame
- 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))
- end
- end
- if #FallingParts>0 then
- for i,v in pairs(FallingParts) do
- if not v.Part.Parent then
- table.remove(FallingParts,i)
- break
- end
- FallingParts[i].Speed=FallingParts[i].Speed+v.Acceleration/3
- FallingParts[i].RotSpeed=FallingParts[i].RotSpeed+v.Acceleration/3
- if v.OriginVel.Y>0 then
- FallingParts[i].OriginVel=FallingParts[i].OriginVel:Lerp(v3(v.OriginVel.X,0,v.OriginVel.Z),.05)
- end
- v.Part.Transparency=v.Part.Transparency+v.Acceleration/10
- if v.Part.Transparency>=1 then
- Instance.Remove(v.Part)
- table.remove(FallingParts,i)
- break
- end
- v.Part.Position=v.Part.Position:Lerp((v.Part.Position+v.OriginVel)-v3(0,v.Speed,0),.01)
- v.Part.Orientation=v.Part.Orientation:Lerp(v.Part.Orientation+(v3(v.RotSpeed,v.RotSpeed,v.RotSpeed)*v.RotEl),.1)
- end
- end
- end)
- --}{ Loops }{--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement