Advertisement
InTesting

Disrepect Slap

Dec 10th, 2019
524
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 14.46 KB | None | 0 0
  1. print'https://pastebin.com/raw/HVZvi3Hq'
  2. local function Set_Up_Function(player)
  3.     local Set_Up_1 = {
  4.        
  5.        
  6.        
  7.         };
  8.    
  9.     local Set_Up_2={
  10.         Name='You_Are_Rude';
  11.         Motor6d_Enabled={
  12.             Left_Arm=true;
  13.             Right_Arm=false;
  14.             Left_Leg=true;
  15.             Right_Leg=true;
  16.             };
  17.         Shirt_Asset=true;
  18.         Pants_Asset=true;
  19.         Health=nil;
  20.         WalkSpeed=20;
  21.         JumpPower=nil;
  22.         Customized_Face_Ids={};
  23.         Destroy_Accessories={
  24.             };
  25.         Destroy_Character_Meshes=false;
  26.         Global_CLerp_Animation_Decimal_Alpha=nil;
  27.        
  28.     };
  29.     print'https://pastebin.com/raw/5QSqffmx';
  30. local function Instance_2(c,p)if not c then return;end;p=p or {};
  31. local a=Instance.new(c,p.Parent);for b,c in pairs(p)do local _,d= pcall(function()a[b]=c;end);
  32. if d then print(d);end;end;return a;end;
  33. local function Ragdoll_v2(model)local hum=model:FindFirstChildWhichIsA'Humanoid';if not hum then
  34.     return;end;hum.BreakJointsOnDeath=false;
  35.     local LArm,RArm,LLeg,RLeg,torso,head,LUA,LLA,LH,RUA,RLA,RH,LUL,LLL,LF,RUL,RLL,RF,UT,LT=
  36.         model:FindFirstChild'Left Arm',model:FindFirstChild'Right Arm',model:FindFirstChild
  37.         'Left Leg',model:FindFirstChild'Right Leg',model:FindFirstChild'Torso',model:
  38.         FindFirstChild'Head',model:FindFirstChild'LeftUpperArm',model:FindFirstChild'LeftLowerArm',
  39.         model:FindFirstChild'LeftHand',model:FindFirstChild'RightUpperArm',model:FindFirstChild
  40.         'RightLowerArm',model:FindFirstChild'RightHand',model:FindFirstChild'LeftUpperLeg',model:
  41.         FindFirstChild'LeftLowerLeg',model:FindFirstChild'LeftFoot',model:FindFirstChild
  42.         'RightUpperLeg',model:FindFirstChild'RightLowerLeg',model:FindFirstChild'RightFoot',model:
  43.         FindFirstChild'UpperTorso',model:FindFirstChild'LowerTorso';
  44.     local Set={{{LArm;{Orientation=Vector3.new(0,180,0);Position=Vector3.new(-1,1,0)};
  45.     {Orientation=Vector3.new(0,180,0);Position=Vector3.new(.5,1,0)};{LimitsEnabled=true;
  46.     UpperAngle=15;TwistLimitsEnabled=true;UpperAngle=-45;TwistLowerAngle=-45;};};{RArm;
  47.     {Orientation=Vector3.new(0,0,0);Position=Vector3.new(1,1,0);};{Orientation=
  48.     Vector3.new(0,0,0);Position=Vector3.new(-.5,1,0);};{LimitsEnabled=true;UpperAngle=15;
  49.     TwistLimitsEnabled=true;UpperAngle=-45;TwistLowerAngle=-45;};};{RLeg;{Orientation=
  50.     Vector3.new(90,0,-90);Position=Vector3.new(.5,-1,0);};{Orientation=Vector3.new(90,0,-90);
  51.     Position=Vector3.new(0,1,0);};{LimitsEnabled=true;UpperAngle=165;};};{LLeg;{Orientation=
  52.     Vector3.new(90,0,-90);Position=Vector3.new(-.5,-1,0);};{Orientation=Vector3.new(90,0,-90);
  53.     Position=Vector3.new(0,1,0);};{LimitsEnabled=true;UpperAngle=165;};};{head;{Orientation=
  54.     Vector3.new(180,90,0);Position=Vector3.new(0,1,0);};{Orientation=Vector3.new(180,90,0);
  55.     Position=Vector3.new(0,-.5,0);};{LimitsEnabled=true;UpperAngle=75;TwistLimitsEnabled=true;
  56.     UpperAngle=-45;TwistLowerAngle=-45};};};{{LF;LLL;'LeftAnkleRigAttachment';};{LLL;LUL;
  57.     'LeftKneeRigAttachment';};{LUL;LT;'LeftHipRigAttachment';};{RF;RLL;'RightAnkleRigAttachment'
  58.     ;};{RLL;RUL;'RightKneeRigAttachment';};{RUL;LT;'RightHipRigAttachment';};{LH;LLA;
  59.     'LeftWristRigAttachment';};{LLA;LUA;'LeftElbowRigAttachment';};{LUA;UT;
  60.     'LeftShoulderAttachment';'LeftCollarAttachment'};{RH;RLA;'RightWristRigAttachment';};{RLA;
  61.     RUA;'RightElbowRigAttachment';};{RUA;UT;'RightShoulderAttachment';'RightCollarAttachment'};
  62.     {LT;UT;'WaistRigAttachment'};{UT;head;'NeckRigAttachment';nil;{LimitsEnabled=true;
  63.     UpperAngle=-75;TwistLimitsEnabled=true;UpperAngle=-45;TwistLowerAngle=-45;};};};};
  64.     hum.Died:Connect(function()for _,a in pairs(model:GetDescendants())do if a:IsA'Motor6D'then
  65.     a:Destroy();end;end;if hum.RigType==Enum.HumanoidRigType.R6 then for _,a in pairs(Set[1])do
  66.     local b,c;if torso then a[2].Parent,a[2].Orientation=torso,a[2].Orientation+torso.Orientation;
  67.     b=Instance_2('Attachment',a[2]);end;if a[1]then
  68.     a[3].Parent,a[3].Orientation=a[1],a[3].Orientation+a[1].Orientation;
  69.     c=Instance_2('Attachment',a[3])end;a[4].Parent,a[4].Attachment0,a[4].Attachment1=torso,b,c;
  70.     Instance_2('BallSocketConstraint',a[4])end;else for _,a in pairs(Set[2])do local b=a[5]or{};
  71.     if a[1]then b.Attachment0=a[1][a[3]];end;if a[2]then b.Attachment1=a[2][a[4]or a[3]];end;
  72.     b.Parent=UT;Instance_2('BallSocketConstraint',b);end;end;end);  
  73. end;for _,a in pairs(workspace:GetChildren())do Ragdoll_v2(a);end;
  74. workspace.ChildAdded:Connect(Ragdoll_v2);
  75.     local Players,cwrap,Wait_For_Child_2,Storage,RE,RF,clerp,Asset_Prefix=
  76.         game:GetService("Players"),function(a)local b=coroutine.wrap(a);b();return b;end,
  77.         function(p,c,wt)wt=wt or 1/60;local a;if not p or not c then return;end;
  78.         if typeof(p)~='Instance'or typeof(c)~='string'then return;end;repeat
  79.         a=p:FindFirstChild(c);wait(wt);until a;return a;end,{},nil,nil,function(cf,goal,al)
  80.         return cf:Lerp(goal,al);end,'rbxassetid://';
  81.     player=(player=='FindPlayer'and(loadstring('return owner')()or Players:
  82.         GetPlayerFromCharacter(script.Parent)))or player;
  83.     script.Name=Set_Up_2.Name;if not player or not Players then return;end;
  84.     if loadstring('return owner')()then pcall(function()local NLS;NLS=loadstring('return NLS')();
  85.         NLS([[local lp,re,rf=game:GetService'Players'.LocalPlayer,script:WaitForChild'RE_Client',
  86.     script:WaitForChild'RF_Client';local mouse=lp:GetMouse();mouse.KeyDown:Connect(function(k)
  87. re:FireServer('KD',k,mouse.Hit,mouse.Target);end);mouse.Button1Down:Connect(function()re:
  88. FireServer('MB_Down',mouse.Hit,mouse.Target);end);rf.OnClientInvoke=function(...)local args={...};
  89. if args[1]=='Get_Mouse_CF'then return mouse.Hit;elseif args[1]=='Get_Mouse_Target'then
  90. return mouse.Target;end;end;]],script);script.Parent=loadstring('return owner')().Character;
  91.         end);end;
  92.     local pchar,Instance_2,Remove=player.Character or(function()repeat wait(1);player:LoadCharacter();
  93.         until player.Character;return player.Character;end)(),function(c,p)
  94.         local a=(function()for a,b in pairs(Storage)do if b.ClassName==c then
  95.         table.remove(Storage,a);return b;end;end;end)()or Instance.new(c);if not a then
  96.         print'No classname';return;end;for b,c in pairs(p)do local _,d= pcall(function()a[b]=c;end);
  97.         if d then print(d);end;end;return a;end,function(a)a.Parent=nil;table.insert(Storage,a);end;
  98.     if not pchar then return;end;local a=(function()if loadstring('return owner')()then return{
  99.         Instance_2('RemoteEvent',{Name='RE_Client';Parent=script:GetChildren()[1];});
  100.         Instance_2('RemoteFunction',{Name='RF_Client';Parent=script:GetChildren()[1];})};end;
  101.         wait(2);return{script:FindFirstChildWhichIsA('RemoteEvent',true);script:
  102.     FindFirstChildWhichIsA('RemoteFunction',true);}end)();RE,RF=unpack(a);if not RE or not RF then
  103.     return;end;
  104.     local Head,HRootPart,Torso,Humanoid,Left_Arm,Right_Arm,Left_Leg,Right_Leg,Damage,Container=
  105.         (function()local a;repeat a=pchar:FindFirstChild'Head';if a then break;end;wait(1);until nil;
  106.         return a;end)(),(function()local a;repeat a=pchar:FindFirstChild'HumanoidRootPart';if a then
  107.         break;end;wait(1);until nil;return a;end)(),(function()local a;repeat
  108.         a=pchar:FindFirstChild'Torso';if a then break;end;wait(1);until nil;return a;end)(),
  109.         (function()local a;repeat a=pchar:FindFirstChildWhichIsA'Humanoid';if a then break;end;wait(1);
  110.         until nil;return a;end)(),(function()local a;repeat a=pchar:FindFirstChild'Left Arm';if a then
  111.         break;end;wait(1);until nil;return a;end)(),(function()local a;repeat
  112.         a=pchar:FindFirstChild'Right Arm';if a then break;end;wait(1);until nil;return a;end)(),
  113.         (function()local a;repeat a=pchar:FindFirstChild'Left Leg';if a then break;end;wait(1);until
  114.         nil;return a;end)(),(function()local a;repeat a=pchar:FindFirstChild'Right Leg';if a then
  115.         break;end;wait(1);until nil;return a;end)(),function(h,d,f)if not h then return;end;d=d or 10;
  116.         f=f or function()end;local a=h:FindFirstAncestorWhichIsA'Model';
  117.         if not a or a==workspace or a==pchar then return;end;
  118.         local b,c=a:FindFirstChildWhichIsA'Humanoid',a:FindFirstChild'Head'or a:FindFirstChild'Torso'
  119.             or a:FindFirstChild'UpperTorso'or a:FindFirstChild'HumanoidRootPart';if b then
  120.         if b.Health>150 then b.Health=0;else b:TakeDamage(d);end;elseif c then Remove(c);else
  121.         pcall(function()a:BreakJoints();end);end;end,Instance_2('Folder',{Parent=pchar});
  122.     local Left_Hip,Left_Shoulder,Neck,Right_Hip,Right_Shoulder,RootJoint=
  123.         (not Set_Up_2.Motor6d_Enabled.Left_Leg and(function()local a=Torso:FindFirstChild'Left Hip';
  124.         if a then Remove(a)end;local b=Instance_2('Weld',{Part0=Torso;Part1=Left_Leg;Parent=Torso;});
  125.         return b;end)())or Torso:FindFirstChild'Left Hip',(not Set_Up_2.Motor6d_Enabled.Left_Arm
  126.         and(function()local a=Torso:FindFirstChild'Left Shoulder';if a then Remove(a)end;
  127.         local b=Instance_2('Weld',{Part0=Torso;Part1=Left_Arm;Parent=Torso;});return b;end)())or
  128.         Torso:FindFirstChild'Left Shoulder',Torso:FindFirstChild'Neck',(not Set_Up_2.Motor6d_Enabled.
  129.         Right_Leg and(function()local a=Torso:FindFirstChild'Right Hip';if a then Remove(a)end;
  130.         local b=Instance_2('Weld',{Part0=Torso;Part1=Right_Leg;Parent=Torso;});return b;end)())or
  131.         Torso:FindFirstChild'Right Hip',(not Set_Up_2.Motor6d_Enabled.Right_Arm and(function()
  132.         local a=Torso:FindFirstChild'Right Shoulder';if a then Remove(a)end;local b=Instance_2('Weld'
  133.         ,{Part0=Torso;Part1=Right_Arm;Parent=Torso;});return b;end)())or Torso:FindFirstChild
  134.         'Right Shoulder',HRootPart:FindFirstChild'RootJoint';
  135.     if not Left_Hip or not Left_Shoulder or not Neck or not Right_Hip or not Right_Shoulder or
  136.         not RootJoint then return;end;local Joints={Left_Hip;Left_Shoulder;Neck;Right_Hip;
  137.     Right_Shoulder;RootJoint}; 
  138.     local CFrames,CFrame_Mode={['Right Arm']={Idle={C0=CFrame.new(1,.5,0,0,0,1,0,1,0,-1,0,0);C1=
  139.         CFrame.new(-.5,.5,0,0,0,1,0,1,0,-1,0,0);};Act_1={C0=CFrame.new(1,.5,0,0,0,1,0,1,0,-1,0,0);
  140.         C1=CFrame.new(-.3,1,0,0,0.906307757,-.42261833,0,-.42261833,-.906307757,-1,0,0);};Act_2={C0
  141.         =CFrame.new(1,.5,0,0,0,1,0,1,0,-1,0,0);C1=CFrame.new(-.3,.600000024,-.1,0,.906307757,-
  142.         .42261833,-.5,.365998209,.784885526,.866025388,.211309195,.453153938);}};Torso={Idle={C0=
  143.         CFrame.new(0,0,0,-1,0,0,0,0,1,0,1,0);C1=CFrame.new(0,0,0,-1,-1.1920929e-07,0,0,0,1,-
  144.         1.1920929e-07,1,0);};Act_1={C0=CFrame.new(0,0,0,-1,0,0,0,0,1,0,1,0);C1=CFrame.new(0,0,0,-
  145.         .866025388,.500000119,0,0,0,1,.500000119,.866025388,0);};};Neck={Idle={C0=CFrame.new(0,1,0,
  146.         -1,0,0,0,0,1,0,1,-0);C1=CFrame.new(0,-.5,0,-1,0,0,0,0,1,0,1,0);};Act_1={C0=CFrame.new(0,1,0,
  147.         -1,0,0,0,0,1,0,1,0);C1=CFrame.new(0,-.5,0,-.866025388,-.5,0,0,0,1,-.5,.866025388,0);};};},{
  148.         ['Right Arm']='Idle';Torso='Idle';Neck='Idle'};
  149.     (function()--[[Appearence]]local a=pchar:FindFirstChildWhichIsA'Shirt'or Instance_2('Shirt',{
  150.         Parent=pchar;});if Set_Up_2.Shirt_Asset==true then elseif Set_Up_2.Shirt_Asset then
  151.         a.ShirtTemplate=Asset_Prefix..Set_Up_2.Shirt_Asset;else Remove(a);end;
  152.         local a=pchar:FindFirstChildWhichIsA'Pants'or Instance_2('Pants',{Parent=pchar;});
  153.         if Set_Up_2.Pants_Asset==true then elseif Set_Up_2.Pants_Asset then
  154.         a.Pants=Asset_Prefix.. Set_Up_2.Pants_Asset;else Remove(a);end;
  155.         if #Set_Up_2.Customized_Face_Ids~=0 then for _,a in pairs(Head:GetChildren())do
  156.         if a:IsA'Decal'then Remove(a);end;end;for _,a in pairs(Set_Up_2.Customized_Face_Ids)do
  157.         local b=(typeof(a)=='table'and a)or{Color3=Color3.fromRGB(255,255,255);Transparency=0;Texture=
  158.         Asset_Prefix..tostring(a)};b.Parent=Head;b.Face='Front';Instance_2('Decal',b);end;end;
  159.         for a,b in pairs(Set_Up_2.Destroy_Accessories)do if b then
  160.         for _,c in pairs(pchar:GetChildren())do(function()if not c:IsA'Accessory'then return;end;
  161.         local d=c:FindFirstChildWhichIsA('Attachment',true);if not d then return;end;if a~=d.Name then
  162.         return;end;c:Destroy();end)();end;end;end;if Set_Up_2.Destroy_Character_Meshes then
  163.         for _,a in pairs(pchar:GetChildren())do if a:IsA'CharacterMesh'then Remove(a);end;end;end;
  164.     end)();
  165.     local bool,Ev,last_pos,Combo=true,nil,0,0;
  166.     local function Animation(cfs,In_Action)for _,c in pairs(Joints)do for a,b in pairs(cfs)do
  167.         if c.Part1.Name==a then for d,e in pairs(b)do if In_Action[a]==d then
  168.         c.C0,c.C1=clerp(c.C0,e.C0,e[3]or.5),clerp(c.C1,e.C1,e[3]or.5);end;end;break;end;end;end;end;
  169.     local function ServerHandler(pl,...)local args={...};if not args then return;end;
  170.     if args[1]~='KD'then return;end;if args[2]~='e'then return;end;if not bool then return;end;
  171.     if Ev then Ev:Disconnect();Ev=nil;end;local Run_once=true;bool=false;
  172.     CFrame_Mode["Right Arm"],CFrame_Mode.Torso,CFrame_Mode.Neck='Act_1','Act_1','Act_1';wait(.25);
  173.     CFrame_Mode["Right Arm"],CFrame_Mode.Torso,CFrame_Mode.Neck='Act_2','Idle','Idle';
  174.     Ev=Right_Arm.Touched:Connect(function(a)if not Run_once then return;end;Run_once=false;
  175.     local b=time();if b-last_pos<=3 then Combo=Combo+1;
  176.     local c=Container:FindFirstChild'Slap'or Instance_2('Sound',{MaxDistance=10000;Playing=
  177.     false;Looped=false;Volume=1;Name='Slap';Parent=Container;});if Combo>=3 then Combo=0;last_pos=b;
  178.     local d=Container:FindFirstChild'Dead'or Instance_2('Sound',{MaxDistance=10000;Playing=false;
  179.     Looped=false;Volume=2;Name='Dead';Parent=Container;SoundId=Asset_Prefix..'1921987900';})d:
  180.     Play();Damage(a,1000);local b_1=Instance_2('BodyVelocity',{MaxForce=Vector3.new(1000000,1000000,
  181.     1000000);Velocity=(a.Position-Torso.Position).unit*100;
  182.     Parent=a});cwrap(function()local a=Instance_2('Part',{Size=Vector3.new(.1,.1,.1);Color=Color3.
  183.     fromRGB(0,0,255);Shape='Ball';Parent=Container;Anchored=true;CanCollide=false;Position=a.
  184.     Position;Orientation=Vector3.new(0,0,0);});local g=Instance_2('SpecialMesh',{MeshId=Asset_Prefix
  185.     ..'1391002977';Parent=a;Scale=Vector3.new(-.01,-.01,-.01)});wait(.1);Remove(b_1);
  186.     local tw,e,f=game:GetService("TweenService"),TweenInfo.new(d.TimeLength*.25,Enum.EasingStyle.
  187.         Linear,Enum.EasingDirection.InOut,0,false,0),TweenInfo.new(d.TimeLength*.75,Enum.
  188.         EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0);tw:Create(g,e,{Scale=g.Scale*
  189.         Vector3.new(100,100,100)}):Play();wait((d.TimeLength*.25)+.15);tw:Create(g,f,{Scale=
  190.         Vector3.new(-.01,-.01,-.01)}):Play();wait((d.TimeLength*.75)+.15)Remove(a);end);return;end;
  191.     c.Volume=1;c.SoundId=Asset_Prefix..'2711959413';c:Play();Damage(a,20);else
  192.     local c=Container:FindFirstChild'Slap'or Instance_2('Sound',{MaxDistance=10000;Playing=false;
  193.     Looped=false;Volume=1;Name='Slap';Parent=Container;});Combo=1;c.Volume=1;
  194.     c.SoundId=Asset_Prefix..'2711959413';c:Play();Damage(a,20);end;last_pos=b;end);wait(.2);
  195.     CFrame_Mode["Right Arm"]='Idle';bool=true;
  196.     end;
  197.     Humanoid.MaxHealth=Set_Up_2.Health or math.huge;Humanoid.WalkSpeed=Set_Up_2.WalkSpeed or 16;
  198.     Humanoid.JumpPower=Set_Up_2.JumpPower or 50;Humanoid.Health=Humanoid.MaxHealth;cwrap(function()
  199.     while true do wait();Animation(CFrames,CFrame_Mode);end;end);
  200.     RE.OnServerEvent:Connect(ServerHandler);RF.OnServerInvoke=ServerHandler;
  201. end;
  202. Set_Up_Function'FindPlayer';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement