Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print'https://pastebin.com/raw/HVZvi3Hq'
- local function Set_Up_Function(player)
- local Set_Up_1 = {
- };
- local Set_Up_2={
- Name='You_Are_Rude';
- Motor6d_Enabled={
- Left_Arm=true;
- Right_Arm=false;
- Left_Leg=true;
- Right_Leg=true;
- };
- Shirt_Asset=true;
- Pants_Asset=true;
- Health=nil;
- WalkSpeed=20;
- JumpPower=nil;
- Customized_Face_Ids={};
- Destroy_Accessories={
- };
- Destroy_Character_Meshes=false;
- Global_CLerp_Animation_Decimal_Alpha=nil;
- };
- print'https://pastebin.com/raw/5QSqffmx';
- local function Instance_2(c,p)if not c then return;end;p=p or {};
- local a=Instance.new(c,p.Parent);for b,c in pairs(p)do local _,d= pcall(function()a[b]=c;end);
- if d then print(d);end;end;return a;end;
- local function Ragdoll_v2(model)local hum=model:FindFirstChildWhichIsA'Humanoid';if not hum then
- return;end;hum.BreakJointsOnDeath=false;
- local LArm,RArm,LLeg,RLeg,torso,head,LUA,LLA,LH,RUA,RLA,RH,LUL,LLL,LF,RUL,RLL,RF,UT,LT=
- model:FindFirstChild'Left Arm',model:FindFirstChild'Right Arm',model:FindFirstChild
- 'Left Leg',model:FindFirstChild'Right Leg',model:FindFirstChild'Torso',model:
- FindFirstChild'Head',model:FindFirstChild'LeftUpperArm',model:FindFirstChild'LeftLowerArm',
- model:FindFirstChild'LeftHand',model:FindFirstChild'RightUpperArm',model:FindFirstChild
- 'RightLowerArm',model:FindFirstChild'RightHand',model:FindFirstChild'LeftUpperLeg',model:
- FindFirstChild'LeftLowerLeg',model:FindFirstChild'LeftFoot',model:FindFirstChild
- 'RightUpperLeg',model:FindFirstChild'RightLowerLeg',model:FindFirstChild'RightFoot',model:
- FindFirstChild'UpperTorso',model:FindFirstChild'LowerTorso';
- local Set={{{LArm;{Orientation=Vector3.new(0,180,0);Position=Vector3.new(-1,1,0)};
- {Orientation=Vector3.new(0,180,0);Position=Vector3.new(.5,1,0)};{LimitsEnabled=true;
- UpperAngle=15;TwistLimitsEnabled=true;UpperAngle=-45;TwistLowerAngle=-45;};};{RArm;
- {Orientation=Vector3.new(0,0,0);Position=Vector3.new(1,1,0);};{Orientation=
- Vector3.new(0,0,0);Position=Vector3.new(-.5,1,0);};{LimitsEnabled=true;UpperAngle=15;
- TwistLimitsEnabled=true;UpperAngle=-45;TwistLowerAngle=-45;};};{RLeg;{Orientation=
- Vector3.new(90,0,-90);Position=Vector3.new(.5,-1,0);};{Orientation=Vector3.new(90,0,-90);
- Position=Vector3.new(0,1,0);};{LimitsEnabled=true;UpperAngle=165;};};{LLeg;{Orientation=
- Vector3.new(90,0,-90);Position=Vector3.new(-.5,-1,0);};{Orientation=Vector3.new(90,0,-90);
- Position=Vector3.new(0,1,0);};{LimitsEnabled=true;UpperAngle=165;};};{head;{Orientation=
- Vector3.new(180,90,0);Position=Vector3.new(0,1,0);};{Orientation=Vector3.new(180,90,0);
- Position=Vector3.new(0,-.5,0);};{LimitsEnabled=true;UpperAngle=75;TwistLimitsEnabled=true;
- UpperAngle=-45;TwistLowerAngle=-45};};};{{LF;LLL;'LeftAnkleRigAttachment';};{LLL;LUL;
- 'LeftKneeRigAttachment';};{LUL;LT;'LeftHipRigAttachment';};{RF;RLL;'RightAnkleRigAttachment'
- ;};{RLL;RUL;'RightKneeRigAttachment';};{RUL;LT;'RightHipRigAttachment';};{LH;LLA;
- 'LeftWristRigAttachment';};{LLA;LUA;'LeftElbowRigAttachment';};{LUA;UT;
- 'LeftShoulderAttachment';'LeftCollarAttachment'};{RH;RLA;'RightWristRigAttachment';};{RLA;
- RUA;'RightElbowRigAttachment';};{RUA;UT;'RightShoulderAttachment';'RightCollarAttachment'};
- {LT;UT;'WaistRigAttachment'};{UT;head;'NeckRigAttachment';nil;{LimitsEnabled=true;
- UpperAngle=-75;TwistLimitsEnabled=true;UpperAngle=-45;TwistLowerAngle=-45;};};};};
- hum.Died:Connect(function()for _,a in pairs(model:GetDescendants())do if a:IsA'Motor6D'then
- a:Destroy();end;end;if hum.RigType==Enum.HumanoidRigType.R6 then for _,a in pairs(Set[1])do
- local b,c;if torso then a[2].Parent,a[2].Orientation=torso,a[2].Orientation+torso.Orientation;
- b=Instance_2('Attachment',a[2]);end;if a[1]then
- a[3].Parent,a[3].Orientation=a[1],a[3].Orientation+a[1].Orientation;
- c=Instance_2('Attachment',a[3])end;a[4].Parent,a[4].Attachment0,a[4].Attachment1=torso,b,c;
- Instance_2('BallSocketConstraint',a[4])end;else for _,a in pairs(Set[2])do local b=a[5]or{};
- 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;
- b.Parent=UT;Instance_2('BallSocketConstraint',b);end;end;end);
- end;for _,a in pairs(workspace:GetChildren())do Ragdoll_v2(a);end;
- workspace.ChildAdded:Connect(Ragdoll_v2);
- local Players,cwrap,Wait_For_Child_2,Storage,RE,RF,clerp,Asset_Prefix=
- game:GetService("Players"),function(a)local b=coroutine.wrap(a);b();return b;end,
- function(p,c,wt)wt=wt or 1/60;local a;if not p or not c then return;end;
- if typeof(p)~='Instance'or typeof(c)~='string'then return;end;repeat
- a=p:FindFirstChild(c);wait(wt);until a;return a;end,{},nil,nil,function(cf,goal,al)
- return cf:Lerp(goal,al);end,'rbxassetid://';
- player=(player=='FindPlayer'and(loadstring('return owner')()or Players:
- GetPlayerFromCharacter(script.Parent)))or player;
- script.Name=Set_Up_2.Name;if not player or not Players then return;end;
- if loadstring('return owner')()then pcall(function()local NLS;NLS=loadstring('return NLS')();
- NLS([[local lp,re,rf=game:GetService'Players'.LocalPlayer,script:WaitForChild'RE_Client',
- script:WaitForChild'RF_Client';local mouse=lp:GetMouse();mouse.KeyDown:Connect(function(k)
- re:FireServer('KD',k,mouse.Hit,mouse.Target);end);mouse.Button1Down:Connect(function()re:
- FireServer('MB_Down',mouse.Hit,mouse.Target);end);rf.OnClientInvoke=function(...)local args={...};
- if args[1]=='Get_Mouse_CF'then return mouse.Hit;elseif args[1]=='Get_Mouse_Target'then
- return mouse.Target;end;end;]],script);script.Parent=loadstring('return owner')().Character;
- end);end;
- local pchar,Instance_2,Remove=player.Character or(function()repeat wait(1);player:LoadCharacter();
- until player.Character;return player.Character;end)(),function(c,p)
- local a=(function()for a,b in pairs(Storage)do if b.ClassName==c then
- table.remove(Storage,a);return b;end;end;end)()or Instance.new(c);if not a then
- print'No classname';return;end;for b,c in pairs(p)do local _,d= pcall(function()a[b]=c;end);
- if d then print(d);end;end;return a;end,function(a)a.Parent=nil;table.insert(Storage,a);end;
- if not pchar then return;end;local a=(function()if loadstring('return owner')()then return{
- Instance_2('RemoteEvent',{Name='RE_Client';Parent=script:GetChildren()[1];});
- Instance_2('RemoteFunction',{Name='RF_Client';Parent=script:GetChildren()[1];})};end;
- wait(2);return{script:FindFirstChildWhichIsA('RemoteEvent',true);script:
- FindFirstChildWhichIsA('RemoteFunction',true);}end)();RE,RF=unpack(a);if not RE or not RF then
- return;end;
- local Head,HRootPart,Torso,Humanoid,Left_Arm,Right_Arm,Left_Leg,Right_Leg,Damage,Container=
- (function()local a;repeat a=pchar:FindFirstChild'Head';if a then break;end;wait(1);until nil;
- return a;end)(),(function()local a;repeat a=pchar:FindFirstChild'HumanoidRootPart';if a then
- break;end;wait(1);until nil;return a;end)(),(function()local a;repeat
- a=pchar:FindFirstChild'Torso';if a then break;end;wait(1);until nil;return a;end)(),
- (function()local a;repeat a=pchar:FindFirstChildWhichIsA'Humanoid';if a then break;end;wait(1);
- until nil;return a;end)(),(function()local a;repeat a=pchar:FindFirstChild'Left Arm';if a then
- break;end;wait(1);until nil;return a;end)(),(function()local a;repeat
- a=pchar:FindFirstChild'Right Arm';if a then break;end;wait(1);until nil;return a;end)(),
- (function()local a;repeat a=pchar:FindFirstChild'Left Leg';if a then break;end;wait(1);until
- nil;return a;end)(),(function()local a;repeat a=pchar:FindFirstChild'Right Leg';if a then
- break;end;wait(1);until nil;return a;end)(),function(h,d,f)if not h then return;end;d=d or 10;
- f=f or function()end;local a=h:FindFirstAncestorWhichIsA'Model';
- if not a or a==workspace or a==pchar then return;end;
- local b,c=a:FindFirstChildWhichIsA'Humanoid',a:FindFirstChild'Head'or a:FindFirstChild'Torso'
- or a:FindFirstChild'UpperTorso'or a:FindFirstChild'HumanoidRootPart';if b then
- if b.Health>150 then b.Health=0;else b:TakeDamage(d);end;elseif c then Remove(c);else
- pcall(function()a:BreakJoints();end);end;end,Instance_2('Folder',{Parent=pchar});
- local Left_Hip,Left_Shoulder,Neck,Right_Hip,Right_Shoulder,RootJoint=
- (not Set_Up_2.Motor6d_Enabled.Left_Leg and(function()local a=Torso:FindFirstChild'Left Hip';
- if a then Remove(a)end;local b=Instance_2('Weld',{Part0=Torso;Part1=Left_Leg;Parent=Torso;});
- return b;end)())or Torso:FindFirstChild'Left Hip',(not Set_Up_2.Motor6d_Enabled.Left_Arm
- and(function()local a=Torso:FindFirstChild'Left Shoulder';if a then Remove(a)end;
- local b=Instance_2('Weld',{Part0=Torso;Part1=Left_Arm;Parent=Torso;});return b;end)())or
- Torso:FindFirstChild'Left Shoulder',Torso:FindFirstChild'Neck',(not Set_Up_2.Motor6d_Enabled.
- Right_Leg and(function()local a=Torso:FindFirstChild'Right Hip';if a then Remove(a)end;
- local b=Instance_2('Weld',{Part0=Torso;Part1=Right_Leg;Parent=Torso;});return b;end)())or
- Torso:FindFirstChild'Right Hip',(not Set_Up_2.Motor6d_Enabled.Right_Arm and(function()
- local a=Torso:FindFirstChild'Right Shoulder';if a then Remove(a)end;local b=Instance_2('Weld'
- ,{Part0=Torso;Part1=Right_Arm;Parent=Torso;});return b;end)())or Torso:FindFirstChild
- 'Right Shoulder',HRootPart:FindFirstChild'RootJoint';
- if not Left_Hip or not Left_Shoulder or not Neck or not Right_Hip or not Right_Shoulder or
- not RootJoint then return;end;local Joints={Left_Hip;Left_Shoulder;Neck;Right_Hip;
- Right_Shoulder;RootJoint};
- local CFrames,CFrame_Mode={['Right Arm']={Idle={C0=CFrame.new(1,.5,0,0,0,1,0,1,0,-1,0,0);C1=
- 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);
- C1=CFrame.new(-.3,1,0,0,0.906307757,-.42261833,0,-.42261833,-.906307757,-1,0,0);};Act_2={C0
- =CFrame.new(1,.5,0,0,0,1,0,1,0,-1,0,0);C1=CFrame.new(-.3,.600000024,-.1,0,.906307757,-
- .42261833,-.5,.365998209,.784885526,.866025388,.211309195,.453153938);}};Torso={Idle={C0=
- 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,-
- 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,-
- .866025388,.500000119,0,0,0,1,.500000119,.866025388,0);};};Neck={Idle={C0=CFrame.new(0,1,0,
- -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,
- -1,0,0,0,0,1,0,1,0);C1=CFrame.new(0,-.5,0,-.866025388,-.5,0,0,0,1,-.5,.866025388,0);};};},{
- ['Right Arm']='Idle';Torso='Idle';Neck='Idle'};
- (function()--[[Appearence]]local a=pchar:FindFirstChildWhichIsA'Shirt'or Instance_2('Shirt',{
- Parent=pchar;});if Set_Up_2.Shirt_Asset==true then elseif Set_Up_2.Shirt_Asset then
- a.ShirtTemplate=Asset_Prefix..Set_Up_2.Shirt_Asset;else Remove(a);end;
- local a=pchar:FindFirstChildWhichIsA'Pants'or Instance_2('Pants',{Parent=pchar;});
- if Set_Up_2.Pants_Asset==true then elseif Set_Up_2.Pants_Asset then
- a.Pants=Asset_Prefix.. Set_Up_2.Pants_Asset;else Remove(a);end;
- if #Set_Up_2.Customized_Face_Ids~=0 then for _,a in pairs(Head:GetChildren())do
- if a:IsA'Decal'then Remove(a);end;end;for _,a in pairs(Set_Up_2.Customized_Face_Ids)do
- local b=(typeof(a)=='table'and a)or{Color3=Color3.fromRGB(255,255,255);Transparency=0;Texture=
- Asset_Prefix..tostring(a)};b.Parent=Head;b.Face='Front';Instance_2('Decal',b);end;end;
- for a,b in pairs(Set_Up_2.Destroy_Accessories)do if b then
- for _,c in pairs(pchar:GetChildren())do(function()if not c:IsA'Accessory'then return;end;
- local d=c:FindFirstChildWhichIsA('Attachment',true);if not d then return;end;if a~=d.Name then
- return;end;c:Destroy();end)();end;end;end;if Set_Up_2.Destroy_Character_Meshes then
- for _,a in pairs(pchar:GetChildren())do if a:IsA'CharacterMesh'then Remove(a);end;end;end;
- end)();
- local bool,Ev,last_pos,Combo=true,nil,0,0;
- local function Animation(cfs,In_Action)for _,c in pairs(Joints)do for a,b in pairs(cfs)do
- if c.Part1.Name==a then for d,e in pairs(b)do if In_Action[a]==d then
- 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;
- local function ServerHandler(pl,...)local args={...};if not args then return;end;
- if args[1]~='KD'then return;end;if args[2]~='e'then return;end;if not bool then return;end;
- if Ev then Ev:Disconnect();Ev=nil;end;local Run_once=true;bool=false;
- CFrame_Mode["Right Arm"],CFrame_Mode.Torso,CFrame_Mode.Neck='Act_1','Act_1','Act_1';wait(.25);
- CFrame_Mode["Right Arm"],CFrame_Mode.Torso,CFrame_Mode.Neck='Act_2','Idle','Idle';
- Ev=Right_Arm.Touched:Connect(function(a)if not Run_once then return;end;Run_once=false;
- local b=time();if b-last_pos<=3 then Combo=Combo+1;
- local c=Container:FindFirstChild'Slap'or Instance_2('Sound',{MaxDistance=10000;Playing=
- false;Looped=false;Volume=1;Name='Slap';Parent=Container;});if Combo>=3 then Combo=0;last_pos=b;
- local d=Container:FindFirstChild'Dead'or Instance_2('Sound',{MaxDistance=10000;Playing=false;
- Looped=false;Volume=2;Name='Dead';Parent=Container;SoundId=Asset_Prefix..'1921987900';})d:
- Play();Damage(a,1000);local b_1=Instance_2('BodyVelocity',{MaxForce=Vector3.new(1000000,1000000,
- 1000000);Velocity=(a.Position-Torso.Position).unit*100;
- Parent=a});cwrap(function()local a=Instance_2('Part',{Size=Vector3.new(.1,.1,.1);Color=Color3.
- fromRGB(0,0,255);Shape='Ball';Parent=Container;Anchored=true;CanCollide=false;Position=a.
- Position;Orientation=Vector3.new(0,0,0);});local g=Instance_2('SpecialMesh',{MeshId=Asset_Prefix
- ..'1391002977';Parent=a;Scale=Vector3.new(-.01,-.01,-.01)});wait(.1);Remove(b_1);
- local tw,e,f=game:GetService("TweenService"),TweenInfo.new(d.TimeLength*.25,Enum.EasingStyle.
- Linear,Enum.EasingDirection.InOut,0,false,0),TweenInfo.new(d.TimeLength*.75,Enum.
- EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0);tw:Create(g,e,{Scale=g.Scale*
- Vector3.new(100,100,100)}):Play();wait((d.TimeLength*.25)+.15);tw:Create(g,f,{Scale=
- Vector3.new(-.01,-.01,-.01)}):Play();wait((d.TimeLength*.75)+.15)Remove(a);end);return;end;
- c.Volume=1;c.SoundId=Asset_Prefix..'2711959413';c:Play();Damage(a,20);else
- local c=Container:FindFirstChild'Slap'or Instance_2('Sound',{MaxDistance=10000;Playing=false;
- Looped=false;Volume=1;Name='Slap';Parent=Container;});Combo=1;c.Volume=1;
- c.SoundId=Asset_Prefix..'2711959413';c:Play();Damage(a,20);end;last_pos=b;end);wait(.2);
- CFrame_Mode["Right Arm"]='Idle';bool=true;
- end;
- Humanoid.MaxHealth=Set_Up_2.Health or math.huge;Humanoid.WalkSpeed=Set_Up_2.WalkSpeed or 16;
- Humanoid.JumpPower=Set_Up_2.JumpPower or 50;Humanoid.Health=Humanoid.MaxHealth;cwrap(function()
- while true do wait();Animation(CFrames,CFrame_Mode);end;end);
- RE.OnServerEvent:Connect(ServerHandler);RF.OnServerInvoke=ServerHandler;
- end;
- Set_Up_Function'FindPlayer';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement