Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function Set_Up_Function(player)
- local Set_Up_1 = {
- };
- local Set_Up_2={Name='Time_Stop';Motor6d_Enabled={Left_Arm=true;Right_Arm=true;Left_Leg=true;
- Right_Leg=true;};Shirt_Asset=true;Pants_Asset=true;Health=nil;WalkSpeed=nil;JumpPower=nil;
- Customized_Face_Ids={};Destroy_Accessories={};Destroy_Character_Meshes=false;Booleans={
- Active=true;In_Pause=false;Global_Table_1={};Global_Event_1=nil;
- };};wait(2);local function Get_Player_From_Descendant(de)if not de then return;end;
- local fn=de:GetFullName();local sep1=string.find(fn,'%.');if not sep1 then return;end;
- local sep2=string.find(fn,'%.',sep1+1);if not sep2 then return;end;
- local pl=game:service'Players':FindFirstChild(fn:sub(sep1+1,sep2-1));if not pl then return;end;
- return pl;end;
- 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)for _,b in pairs(a:GetDescendants())do
- pcall(function()b.Parent=nil;table.insert(Storage,b);end);end;pcall(function()a.Parent=nil;
- table.insert(Storage,a);end);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};
- local CFrames,CFrame_Mode={
- },{};
- (function()--[[Appearence]]local a=pchar:FindFirstChildWhichIsA'Shirt'or Instance_2('Shirt',{
- Parent=pchar;});if Set_Up_2.Shirt_Asset and typeof(Set_Up_2.Shirt_Asset)~='boolean'then
- a.ShirtTemplate=Asset_Prefix..Set_Up_2.Shirt_Asset;elseif Set_Up_2.Shirt_Asset==true then else
- Remove(a);end;local a=pchar:FindFirstChildWhichIsA'Pants'or Instance_2('Pants',{Parent=pchar;});
- if Set_Up_2.Pants_Asset and typeof(Set_Up_2.Pants_Asset)~='boolean'then
- a.Pants=Asset_Prefix.. Set_Up_2.Pants_Asset;elseif Set_Up_2.Pants_Asset then 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 function Animation(cfs,In_Action)for _,c in pairs(Joints)do for a,b in pairs(cfs)do
- if c.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 args[2]=='e'and Set_Up_2.Booleans.Active and args[1]=='KD'then Set_Up_2.Booleans.Active=false;
- Set_Up_2.Booleans.In_Pause=not Set_Up_2.Booleans.In_Pause;if Set_Up_2.Booleans.In_Pause then
- local Size_Number=400;local orb=Instance_2('Part',{Size=Vector3.new(.4,.4,.4);Color=Color3.
- fromRGB(0,123, 255);Position=HRootPart.Position;Shape='Ball';Anchored=true;CanCollide=false;
- Massless=true;Parent=Container;Name='Time_Stop_Orb'});Instance_2('SpecialMesh',{Parent=
- orb;MeshId='rbxassetid://1391002977';TextureId='';Scale=Vector3.new(-.01,-.01,-.01);});
- wait(.1);
- local a=game:GetService'TweenService':Create(orb,TweenInfo.new(1.4,Enum.EasingStyle.Linear,
- Enum.EasingDirection.Out,0,false,0),{Size=Vector3.new(Size_Number,Size_Number,Size_Number
- );Color=Color3.fromRGB(197,255,7);});a:Play();
- local b=game:GetService'TweenService':Create(orb:FindFirstChildWhichIsA'SpecialMesh',
- TweenInfo.new(1.4,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0),{Scale=
- orb:FindFirstChildWhichIsA'SpecialMesh'.Scale*Vector3.new(Size_Number/.4,Size_Number/.4,
- Size_Number/.4);});b:Play();
- local sound=Instance_2('Sound',{SoundId='rbxassetid://1636723480';Volume=4;Parent=orb;Looped
- =false;Playing=false;TimePosition=0;PlaybackSpeed=1;});sound:Play();wait(1.4);
- orb.Touched:Connect(function()end);local d=function(e)if not e then return;end;
- if not e:IsA'BasePart'then return;end;local cm=e:FindFirstAncestorWhichIsA'Model';
- if game.PlaceId==843468296 and Get_Player_From_Descendant(e) then return;end;
- if player==Get_Player_From_Descendant(e)then return;end;if e.Anchored==true then return;end;
- e.Anchored=true;table.insert(Set_Up_2.Booleans.Global_Table_1,e);end;
- for _,c in pairs(orb:GetTouchingParts())do d(c);end;
- Set_Up_2.Booleans.Global_Event_1=workspace.DescendantAdded:Connect(d);
- local a=game:GetService'TweenService':Create(orb,TweenInfo.new(1.4,Enum.EasingStyle.Linear,
- Enum.EasingDirection.Out,0,false,0),{Size=Vector3.new(.4,.4,.4);});a:Play();
- local b=game:GetService'TweenService':Create(orb:FindFirstChildWhichIsA'SpecialMesh',
- TweenInfo.new(1.4,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0),{Scale=
- Vector3.new(-.01,-.01,-.01);});b:Play();sound.Ended:Connect(function()Remove(orb);end);else
- local sound=Instance_2('Sound',{SoundId='rbxassetid://864569342';Volume=4;Parent=HRootPart;
- Looped=false;Playing=false;TimePosition=0;PlaybackSpeed=1;});sound:Play();wait(sound.
- TimeLength);
- if Set_Up_2.Booleans.Global_Event_1 then
- Set_Up_2.Booleans.Global_Event_1:Disconnect();
- Set_Up_2.Booleans.Global_Event_1=nil;
- end;
- for a,b in pairs(Set_Up_2.Booleans.Global_Table_1)do
- (function()
- if not b then return;end;b.Anchored=false;
- Set_Up_2.Booleans.Global_Table_1[a]=nil;
- end)();
- end;
- end;
- Set_Up_2.Booleans.Active=true;
- end;
- end;
- Humanoid.MaxHealth=Set_Up_2.Health or 100;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