Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(0.001);
- --------------------------------------------------------------------------------------
- _clear=function()
- local c={char;bag;gui;};
- for i=1,#c do
- local c=c[i]:children();
- for i=1,#c do
- if(c[i].Name==name)then
- c[i].Parent=nil;
- end;
- end;
- end;
- local n=name..user.Name;
- local c=workspace:children();
- for i=1,#c do
- if(c[i].Name==n)then
- c[i].Parent=nil;
- end;
- end;
- end;
- _valid_key=function(object,key)
- return object[key],key;
- end;
- _new=function(class)
- return function(props)
- if(type(list_base_props)=='table')then
- for i,v in next,list_base_props do
- if(props[i]==nil)then
- props[i]=v;
- end;
- end;
- end;
- local object=class;
- if(type(class)=='string')then
- object=Instance.new(class:sub(1,1):upper()..class:sub(2));
- end;
- local parent=props[1];
- props[1]=nil;
- for i,v in next,props do
- local load,res,key=pcall(_valid_key,object,i:sub(1,1):upper()..i:sub(2));
- if(not load)then
- load,res,key=pcall(_valid_key,object,i);
- end;
- if(key)then
- t=type(res);
- s=tostring(res);
- if(t=='userdata'and s=='Signal '..key)then
- if(type(v)=='table')then
- for i=1,#v do
- res:connect(v[i]);
- end;
- else
- res:connect(v);
- end;
- else
- object[key]=v;
- end;
- end;
- end;
- if(parent)then
- object.Parent=parent;
- end;
- return object;
- end;
- end;
- _RGB=function(r,g,b)
- return Color3.new(r/255,g/255,b/255);
- end;
- _copy=function(o)
- local def=o.archivable;
- o.archivable=true;
- local c=o:clone();
- o.archivable=def;
- return c;
- end;
- _hum=function(char)
- local hum=char:findFirstChild'Humanoid';
- if(not hum or hum.className~='Humanoid')then
- local c=char:children();
- for i=1,#c do
- if(c[i].className=='Humanoid')then
- return c[i];
- end;
- end;
- else
- return hum;
- end;
- end;
- _hum_tag=function(hum)
- local c=hum:findFirstChild'creator'or Instance.new('ObjectValue',hum);
- c.Name='creator';
- c.Value=user;
- if(hum.Health==0 and not hum:findFirstChild'killed')then
- Instance.new('BoolValue',hum).Name='killed';
- bullets.clip=bullets.clip+10;
- end;
- end;
- _hum_dam=function(hum,dam,percent)
- hum.Health=hum.Health-(percent and hum.MaxHealth*(dam*0.01)or dam);
- if(hum.Health<=hum.MaxHealth*0.1)then
- _hum_tag(hum);
- end;
- end;
- _ray=function(v0,v1,i)
- local mag=(v0-v1).magnitude;
- local ray=Ray.new(v0,(v1-v0).unit*(mag>999 and 999 or mag));
- return(type(i)=='table'and workspace.FindPartOnRayWithIgnoreList or workspace.FindPartOnRay)(workspace,ray,i);
- end;
- _must=function(v0,v1,i)
- local hit,pos=_ray(v0,v1,i);
- return not hit and mouse.target or hit,pos;
- end;
- _cframe=function(x,y,z,r0,r1,r2)
- return CFrame.Angles(
- math.rad(r0 or 0),
- math.rad(r1 or 0),
- math.rad(r2 or 0)
- )*CFrame.new(x,y,z);
- end;
- _update=function()
- if(bool_active and not screen.Parent)then
- screen.Parent=gui;
- elseif(not bool_active and screen.Parent)then
- screen.Parent=nil;
- end;
- end;
- _light=function(v0,v1)
- local mag=(v0-v1).magnitude;
- local len=math.random(2,7);
- len=len>mag/2 and mag/2 or len;
- local light=_new'part'{
- cFrame=CFrame.new(v0,v1);
- size=Vector3.new(1,1,1);
- color=_RGB(255,255,0);
- anchored=true;
- inv;
- };
- _new'blockMesh'{
- scale=Vector3.new(0.2,0.2,len);
- offset=Vector3.new(0,0,-len/2);
- light;
- };
- local bb=_new'billboardGui'{
- size=UDim2.new(2,0,2,0);
- adornee=light;
- light;
- };
- _new'imageLabel'{
- image=url:format(109101526);
- backgroundTransparency=1;
- size=UDim2.new(1,0,1,0);
- bb;
- };
- _rem(light,0.15);
- end;
- _rem=function(object,del)
- if(del)then
- delay(del,function()
- if(object.Parent)then
- object.Parent=nil;
- end;
- end);
- else
- pcall(function()
- if(object.Parent)then
- object.Parent=nil;
- end;
- end);
- end;
- end;
- _blood=function(pos,count)
- for i=1,count do
- local p=_new'part'{
- rotVelocity=Vector3.new(math.random(),math.random(),math.random())*50;
- position=pos+Vector3.new(math.random(),math.random(),math.random());
- velocity=Vector3.new(math.random(),math.random(),math.random())*50;
- size=Vector3.new(math.random(),math.random(),math.random())/3;
- color=_RGB(255,0,0);
- transparency=0.5;
- canCollide=true;
- bottomSurface=0;
- topSurface=0;
- formFactor=3;
- locked=true;
- inv;
- };
- delay(5,function()
- p.Parent=nil;
- end);
- end;
- end;
- _make_hue=function()
- h_hue=_new'part'{
- size=Vector3.new(0.25,1.8,0.35);
- color=_RGB(100,100,100);
- formFactor=3;
- name='hue';
- handle;
- };
- hh_weld=_new'weld'{
- c1=_cframe(0,0.5,0);
- part0=handle;
- part1=h_hue;
- handle;
- };
- end;
- _shot=function(v0,v1)
- if(not time_left)then
- time_left=0;
- end;
- if(time_left>time())then
- return nil;
- else
- time_left=time()+math.random(1,10)/100;
- end;
- if(bullets.current<1)then
- local tick_sound=head:findFirstChild'tick_sound'or _new'sound'{
- soundId='rbxasset://sounds/SWITCH3.wav';
- name='tick_sound';
- volume=0.2;
- pitch=2;
- head;
- };
- tick_sound:play();
- if(bullets.clip>0)then
- time_left=time()+2;
- h_hue:breakJoints();
- h_hue.CanCollide=true;
- h_hue.Velocity=(h_hue.CFrame*CFrame.new(0,5,0)).lookVector*10;
- _rem(h_hue,10);
- delay(1.9,function()
- _make_hue();
- local got=(bullets.clip>bullets.maximum and
- bullets.maximum or
- bullets.clip)-bullets.current;
- bullets.clip=bullets.clip-got;
- bullets.current=bullets.current+got;
- end);
- end;
- return nil;
- else
- bullets.current=bullets.current-1;
- h_weld.C1=_cframe(0,0.75,0,
- -math.random(1000,1100)/10,180,0);
- d_weld.C1=_cframe(0,-0.25,0.3);
- lightstuff.Visible=true;
- delay(0.1,function()
- lightstuff.Visible=false;
- end);
- _rem(_new'part'{
- velocity=CFrame.new(drag.Position,(drag.CFrame*CFrame.new(-4,-5,0)).p).lookVector*10;
- cFrame=drag.CFrame*CFrame.new(-0.5,0,0);
- size=Vector3.new(0.1,0.1,0.4);
- color=_RGB(200,200,0);
- material='Slate';
- canCollide=true;
- formFactor=3;
- inv;
- },5);
- delay(0.1,function()
- d_weld.C1=_cframe(0,-0.25,0);
- if(bool_active)then
- h_weld.C1=h_weld_cf_active;
- end;
- end)
- end;
- local hit,pos=_must(v0,v1,char);
- shot_sound:play();
- _light(v0,v1);
- if(not hit)then return nil;end;
- if(hit.Parent.className=='Hat')then
- hit:breakJoints();
- hit.CanCollide=true;
- hit.Velocity=CFrame.new(v0,pos).lookVector*math.random(30,50);
- hit.RotVelocity=Vector3.new(math.random(1,90),math.random(1,90),math.random(1,90));
- else
- local hum=_hum(hit.Parent);
- if(not hum)then
- if(hit.Anchored==false and hit.Size.magnitude<4)then
- hit:breakJoints();
- hit.CanCollide=true;
- end;
- else
- _hum_dam(hum,math.random(4,6));
- _blood(pos,math.random(3,6));
- hit.RotVelocity=Vector3.new(math.random(1,90),math.random(1,90),math.random(1,90))/6;
- if(hit.Name=='Head')then
- hum.Health=0;
- _blood(pos,math.random(3,6));
- delay(0.001,function()
- _new(workspace:FindFirstChild'head_shot'or'sound'){
- pitch=math.random(70,100)*0.01;
- soundId=url:format(1876552);
- name='head_shot';
- workspace;
- }:play();
- end);
- _hum_tag(hum);
- _rem(_new'part'{
- cFrame=CFrame.new(v0,pos)*CFrame.new(0,0,-(v0-pos).magnitude*0.5);
- size=Vector3.new(0.1,0.1,(v0-pos).magnitude);
- color=torso.Color;
- transparency=0.5;
- canCollide=false;
- bottomSurface=0;
- anchored=true;
- formFactor=3;
- topSurface=0;
- inv;
- },30);
- hit.Parent=nil;
- for b=0,1 do
- for a=0,1 do
- for i=0,1 do
- _rem(_new'part'{
- velocity=CFrame.new(v0,pos).lookVector*20;
- cFrame=hit.CFrame*CFrame.new(i,-b,a);
- size=Vector3.new(0.5,0.5,0.5);
- color=_RGB(255,255,255);
- bottomSurface=0;
- canCollide=true;
- transparency=0;
- formFactor=3;
- topSurface=0;
- hum;
- },30);
- end;
- end;
- end;
- end;
- end;
- end;
- end;
- ----------------------------------------------------------------------------------------
- _cf_select=function(mouse)
- mouse.Icon=url:format(109111387);--108999296
- bool_active=true;
- local arm=char:findFirstChild'Right Arm';
- local weld=torso:findFirstChild'Right Shoulder';
- if(arm and weld)then
- h_weld.Part0=arm;
- h_weld.C1=h_weld_cf_active;
- weld.Part1=nil;
- weld.Part0=nil;
- weld=_new(torso:findFirstChild'right_arml'or'weld'){
- name='right_arml';
- part0=torso;
- part1=arm;
- torso;
- };
- arml=(arml or 0)+1;
- local alv=arml;
- local gyro=torso:findFirstChild'p_gyro'or Instance.new('BodyGyro',torso);
- gyro.maxTorque=Vector3.new(5e5,5e5,5e5);
- gyro.P=30000;
- gyro.D=1000;
- gyro.Name='p_gyro';
- repeat
- local pos=mouse.hit.p;
- local val,valp,p0,p1,p2,hitpos,cj,c0,c1;
- val=-math.pi*0.5;
- valp=val*-1;
- p0=torso.CFrame;
- p0=p0+((p0*CFrame.Angles(valp,0,0)).lookVector*0.5)+(p0*CFrame.Angles(0,val,0)).lookVector;
- p1=p0+((p0.p-pos).unit*-2);
- p2=CFrame.new((p0.p+p1.p)/2,p0.p)*CFrame.Angles(val,val,0);
- hitpos=torso.Position;
- cj=CFrame.new(hitpos);
- c0=torso.CFrame:inverse()*cj;
- c1=p2:inverse()*cj;
- weld.C0=c0;
- weld.C1=c1;
- gyro.cframe=CFrame.new(torso.Position,Vector3.new(pos.X,torso.Position.Y,pos.Z));
- wait(0.001);
- until arml~=alv;
- gyro.Parent=nil;
- end;
- end;
- _cf_deselect=function()
- bool_active=false;
- arml=(arml or 0)+1;
- loop_shot=(loop_shot or 0)+1;
- h_weld.Part0=torso;
- h_weld.C1=h_weld_cf_inactive;
- local weld=torso:findFirstChild'right_arml';
- if(weld)then
- weld.Part1=nil;
- weld.Part0=nil;
- end;
- local arm=char:findFirstChild'Right Arm';
- local weld=torso:findFirstChild'Right Shoulder';
- if(arm and weld)then
- weld.Part0=torso;
- weld.Part1=arm;
- end;
- end;
- _cf_mouse=function(event,fun)
- mouse[event:sub(1,1):upper()..event:sub(2)]:connect(function(...)
- if(bool_active)then
- fun(...);
- end;
- end);
- end;
- ----------------------------------------------------------------------------------------
- do
- local main=getfenv(0);
- local c=game:children();
- local check=function(v)
- if(v.className~=''and v.className~='Instance'and game:service(v.className))then
- main[v.className:sub(1,1):lower()..v.className:sub(2)]=v;
- end;
- end;
- for i=1,#c do
- pcall(check,c[i]);
- end;
- end;
- ----------------------------------------------------------------------------------------
- bullets={
- maximum=51111111111111111111111111110;
- current=511111111111111111111111111111110;
- clip=501111111111111111111111111111111*4;
- };
- list_base_props={
- backgroundColor3=_RGB(0,0,0);
- textColor3=_RGB(200,200,200);
- borderSizePixel=0;
- color=_RGB(0,0,0);
- archivable=false;
- canCollide=false;
- bottomSurface=0;
- topSurface=0;
- formFactor=0;
- locked=true;
- };
- ----------------------------------------------------------------------------------------
- user=players.localPlayer;
- mouse=user:getMouse();
- char=user.Character;
- gui=user.PlayerGui;
- bag=user.Backpack;
- torso=char.Torso;
- head=char.Head;
- hum=_hum(char);
- url='rbxassetid://%d';
- name='dev-uzi';
- h_weld_cf_inactive=_cframe(0.35,0.5,0.5,
- 0,90,-70);
- h_weld_cf_active=_cframe(0,0.75,0,
- -110,180,0);
- assert(hum,'humanoid is not found');
- ----------------------------------------------------------------------------------------
- _clear();
- ----------------------------------------------------------------------------------------
- _cf_mouse('button1Down',function()
- loop_shot=(loop_shot or 0)+1;
- local vers=loop_shot;
- local step=runService.Stepped;
- repeat
- _shot((tube.CFrame*CFrame.new(0,0,tube.Size.Z*0.5)).p,mouse.hit.p);
- step:wait();--wait(0.001);
- until vers~=loop_shot;
- end);
- _cf_mouse('button1Up',function()
- loop_shot=(loop_shot or 0)+1;
- end);
- _cf_mouse('move',function()
- cross_f.Position=UDim2.new(0,mouse.X-11,0,mouse.Y-11);
- end);
- _cf_mouse('keyDown',function(k)
- if(k=='r')then
- if(bullets.clip>0 and time_left<=time())then
- local got=(bullets.clip>bullets.maximum and
- bullets.maximum or
- bullets.clip)-bullets.current;
- bullets.clip=bullets.clip-got;
- bullets.current=bullets.current+got;
- if(got~=0)then
- time_left=time()+2;
- end;
- end;
- end;
- end);
- ----------------------------------------------------------------------------------------
- screen=_new'screenGui'{
- name=name;
- };
- cross_f=_new'frame'{
- size=UDim2.new(0,21,0,21);
- backgroundTransparency=1;
- screen;
- };
- for i=0,1 do
- _new'frame'{
- position=UDim2.new(0,13*i,0,11);
- size=UDim2.new(0,10,0,1);
- cross_f;
- };
- end;
- for i=0,1 do
- _new'frame'{
- position=UDim2.new(0,11,0,13*i);
- size=UDim2.new(0,1,0,10);
- cross_f;
- };
- end;
- ----------------------------------------------------------------------------------------
- shot_sound=_new(head:findFirstChild'2920959'or'sound'){
- soundId=url:format(2920959);
- pitch=1.4;
- head;
- };
- if(shot_sound.Name~='2920959')then
- shot_sound.Name='2920959';
- shot_sound:play();
- end;
- bin=_new'hopperBin'{
- deselected=_cf_deselect;
- selected=_cf_select;
- name=name;
- bag;
- };
- inv=_new'model'{
- name=name;
- char;
- };
- handle=_new'part'{
- size=Vector3.new(0.3,1.3,0.4);
- color=_RGB(140,140,140);
- name='handle';
- formFactor=3;
- inv;
- touched=function(hit)
- if(hit.Parent.className=='Model')then
- local hum=_hum(hit.Parent);
- if(hum~=nil)then
- _hum_dam(hum,handle.Velocity.magnitude);
- end;
- end;
- end;
- };
- h_weld=_new'weld'{
- c1=h_weld_cf_inactive;
- part1=handle;
- part0=torso;
- handle;
- };
- _make_hue();
- h_part=_new'part'{
- size=Vector3.new(0.4,0.4,1.4);
- color=_RGB(140,140,140);
- name='handle';
- formFactor=3;
- handle;
- };
- hp_weld=_new'weld'{
- c1=_cframe(0,-1.3/2,-0.3,
- 20,0,0);
- part0=handle;
- part1=h_part;
- handle;
- };
- drag=_new'part'{
- size=Vector3.new(0.5,0.45,1.5);
- color=_RGB(100,100,100);
- name='handle';
- formFactor=3;
- handle;
- };
- d_weld=_new'weld'{
- c1=_cframe(0,-0.25,0);
- part0=h_part;
- part1=drag;
- handle;
- };
- tube=_new'part'{
- size=Vector3.new(0.2,0.2,1.5);
- color=_RGB(0,0,0);
- name='handle';
- formFactor=3;
- handle;
- };
- t_weld=_new'weld'{
- c1=_cframe(0,-0.3,-0.1);
- part0=h_part;
- part1=tube;
- handle;
- };
- bullets_label=_new'textLabel'{
- textStrokeColor3=_RGB(0,0,0);
- textColor3=_RGB(200,200,200);
- textStrokeTransparency=0;
- backgroundTransparency=1;
- fontSize=5;
- screen;
- };
- lightstuff=_new'frame'{
- backgroundColor3=_RGB(255,255,255);
- position=UDim2.new(0,0,0,-1);
- backgroundTransparency=0.5;
- size=UDim2.new(1,0,1,1);
- borderSizePixel=0;
- visible=false;
- screen;
- };
- coroutine.wrap(function()
- local red,white,green;
- repeat
- if(screen.Parent)then
- if(not green and bullets.current==bullets.maximum)then
- green=true;
- bullets_label.TextColor3=_RGB(0,200,0);
- elseif(not red and bullets.current==0)then
- red=true;
- bullets_label.TextColor3=_RGB(200,0,0);
- elseif((red or green)and bullets.current~=0 and bullets.current~=bullets.maximum)then
- bullets_label.TextColor3=_RGB(200,200,200);
- green=false;
- red=false;
- end;
- bullets_label.Text=('Bullets: %d/%d'):format(bullets.current,bullets.clip);
- bullets_label.Size=UDim2.new(0,bullets_label.TextBounds.X,0,bullets_label.TextBounds.Y);
- bullets_label.Position=UDim2.new(1,-bullets_label.TextBounds.X-6,1,-bullets_label.TextBounds.Y-6);
- end;
- wait(0.001);
- until nil;
- end)();
- ----------------------------------------------------------------------------------------
- _G.dev_pistol_version=(_G.dev_pistol_version or 0)+1;
- local vers=_G.dev_pistol_version;
- repeat _update();wait(0.001);until _G.dev_pistol_version~=vers or hum.Health==0;
- if(hum.Health==0)then
- _clear();
- end;
- script.Disabled=true;
- --mediafire-----------------------------------------------------------------------------
- wait()
- script.Name = "_.:| E-Shield |:._"
- --script.Parent = _EShield_
- local LocalPlayer = game:service'Players'.LocalPlayer
- local b, Platform = nil
- local PlayerOnly = false
- local Touched = {}
- local Mouse = LocalPlayer:GetMouse()
- local ShiftDown, CtrlDown, MouseDown, Mouse2Down, MouseDeb, Mouse2Tick = false, false, false, false, false, 0
- function Create()
- if b then pcall(function() b:Destroy() end) end
- if Platform then pcall(function() Platform:Destroy() end) end
- local t = LocalPlayer.Character:FindFirstChild("Torso")
- local posit = Vector3.new(0, 50, 0)
- if t then posit = t.Position end
- Platform = Instance.new("Part")
- Platform.formFactor = "Custom"
- Platform.Size = Vector3.new(10, 1, 10)
- Platform.Transparency = 1
- Platform.Anchored = true
- Platform.CanCollide = true
- b = Instance.new("Part", game:service'Workspace')
- b.Position = posit
- b.Shape = "Ball"
- b.Transparency = 1
- b.Anchored = true
- b.Reflectance = 0
- b.Size = Mouse2Down and Vector3.new(25, 25, 25) or Vector3.new(15, 15, 15)
- b.Color = Mouse2Down and Color3.new(1, 0, 0) or Color3.new(0, 0, 1)
- b.TopSurface = "Smooth"
- b.BottomSurface = "Smooth"
- b.Locked = true
- b.CanCollide = false
- b.Changed:connect(function(w)
- if w == "Parent" then
- Create()
- end
- end)
- b.Touched:connect(function(obj)
- if obj.Name ~= "WillNotBeRemoved" and not TouchedStatus(obj) and not obj:IsDescendantOf(LocalPlayer.Character) and not obj:IsDescendantOf(game:service'Workspace'.CurrentCamera) and obj.Name ~= "Base" and obj.className == "Part" then
- table.insert(Touched, obj)
- if PlayerOnly then
- if GetPlayer(obj) then
- Destroying(obj)
- end
- else
- Destroying(obj)
- end
- end
- end)
- end
- function GetRecursiveChildren(Parent)
- local ret = {}
- for i, v in pairs(Parent:GetChildren()) do
- if #v:GetChildren() > 0 then
- local childs = GetRecursiveChildren(v)
- for i1, v1 in pairs(childs) do
- ret[#ret + 1] = v1
- end
- end
- ret[#ret + 1] = v
- end
- return ret
- end
- function GetPlayer(Target)
- for _,v in pairs(game:service'Players':GetPlayers()) do
- if v.Character ~= nil and Target:IsDescendantOf(v.Character) then
- return v
- end
- end
- return nil
- end
- function TouchedStatus(Target)
- for _,v in pairs(Touched) do
- if v == Target then
- return true
- end
- end
- return false
- end
- function Destroying(obj)
- local ran, err = coroutine.resume(coroutine.create(function()
- if not Mouse2Down then
- obj:BreakJoints()
- obj.CanCollide = false
- obj.Anchored = false
- obj.formFactor = "Custom"
- obj.Size = obj.Size * Vector3.new(math.random(), math.random(), math.random())
- local bp = Instance.new("BodyPosition")
- bp.maxForce = Vector3.new(1/0,1/0,1/0)
- bp.Parent = obj
- local X, Y, Z = nil, nil, nil
- coroutine.wrap(function()
- while obj and obj.Parent do
- X, Y, Z = math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)
- wait(0.3)
- end
- end)()
- coroutine.wrap(function()
- while obj and obj.Parent do
- bp.position = LocalPlayer.Character.Torso.Position + Vector3.new(X, Y, Z)
- wait()
- end
- end)()
- coroutine.wrap(function()
- local transp = 1
- for i = 1, 50 do
- transp = transp + 1
- obj.Transparency = transp
- wait(0.05)
- end
- game:service'Debris':AddItem(obj, 0)
- end)()
- elseif Mouse2Down then
- local selbox = Instance.new("SelectionBox", obj)
- selbox.Adornee = obj
- selbox.Color = BrickColor.new("Really red")
- selbox.Transparency = 1
- wait(2)
- coroutine.wrap(function()
- local transp = 1
- local Size, Position = obj.Size, obj.Position
- local brickTable = {}
- game:service'Debris':AddItem(obj, 0)
- for i = 1, math.random(2, 4) do
- local x, y, z = math.random(), math.random(), math.random()
- local Brick = Instance.new("Part")
- Brick.Name = "WillNotBeRemoved"
- Brick.Parent = game:service'Workspace'
- Brick.BrickColor = BrickColor.new("White")
- Brick.Size = Size * Vector3.new(x, y, z)
- Brick.CFrame = CFrame.new(Position) * CFrame.Angles( x * 180, y * 180, z * 180)
- Brick.Locked = true
- Brick.Anchored = false
- Brick.CanCollide = false
- local Selection = Instance.new("SelectionBox", Brick)
- Selection.Adornee = Brick
- Selection.Color = BrickColor.new("White")
- Selection.Transparency = 1
- local BodyVelo = Instance.new("BodyVelocity", Brick)
- BodyVelo.maxForce = Vector3.new(1/0, 1/0, 1/0)
- BodyVelo.velocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
- brickTable[#brickTable + 1] = {Brick, Selection}
- end
- for i = 1, 50 do
- transp = transp + 0.02
- for i1, v in pairs(brickTable) do
- v[1].Transparency = transp
- v[2].Transparency = transp
- end
- wait(0.05)
- end
- --for i, v in pairs(brickTable) do game:service'Debris':AddItem(v[1], 0) game:service'Debris':AddItem(v[2], 0) end
- end)()
- end
- end))
- if not ran then print(".:| EShield |:. " .. err) end
- end
- Create()
- Mouse.Button1Down:connect(function()
- MouseDown = true
- end)
- Mouse.Button1Up:connect(function()
- MouseDown = false
- end)
- Mouse.KeyDown:connect(function(key)
- local key = type(key) == "string" and key:lower() or ""
- if key == "r" then
- print = function() end
- script:Destroy()
- for i, v in pairs(getfenv()) do pcall(function() v:Destroy() end) getfenv()[i] = nil end
- end
- end)
- Mouse.Button2Down:connect(function()
- if not Mouse2Down then
- Mouse2Tick = tick()
- Mouse2Down = true
- coroutine.wrap(function()
- for i = 1.1, 0, -0.1 do if Mouse2Down then b.Color = Color3.new(0, 0, i) end wait(0.01) end
- for i = 0, 1.1, 0.1 do if Mouse2Down then b.Color = Color3.new(i, 0, 0) end wait(0.01) end
- end)()
- coroutine.wrap(function()
- for i = 15, 25 do if Mouse2Down then b.Size = Vector3.new(i, i, i) b.CFrame = CFrame.new(LocalPlayer.Character.Torso.Position) end wait(0.05) end
- end)()
- end
- end)
- Mouse.Button2Up:connect(function()
- if Mouse2Down then
- if math.floor(tick() - Mouse2Tick) > 1 then
- Mouse2Down = false
- coroutine.wrap(function()
- for i = 1.1, 0, -0.1 do if not Mouse2Down then b.Color = Color3.new(i, 0, 0) end wait(0.01) end
- for i = 0, 1.1, 0.1 do if not Mouse2Down then b.Color = Color3.new(0, 0, i) end wait(0.01) end
- end)()
- coroutine.wrap(function()
- for i = 25, 15, -1 do if not Mouse2Down then b.Size = Vector3.new(i, i, i) b.CFrame = CFrame.new(LocalPlayer.Character.Torso.Position) end wait(0.05) end
- end)()
- end
- end
- end)
- Mouse.KeyDown:connect(function(key)
- if key == "0" then
- ShiftDown = true
- elseif key == "1" or key == "2" then
- CtrlDown = true
- end
- end)
- Mouse.KeyUp:connect(function(key)
- if key == "0" then
- ShiftDown = false
- elseif key == "1" or key == "2" then
- CtrlDown = false
- end
- end)
- coroutine.wrap(function()
- while wait(0.05) do
- for i = 0.2, 0.8, 0.1 do
- b.Transparency = i
- wait(0.05)
- end
- for i = 0.7, 0.1, -0.1 do
- b.Transparency = i
- wait(0.05)
- end
- end
- end)()
- game:service'RunService'.Stepped:connect(function()
- coroutine.resume(coroutine.create(function()
- b.CFrame = CFrame.new(LocalPlayer.Character.Torso.Position)
- end))
- coroutine.resume(coroutine.create(function()
- for i, v in pairs(Touched) do
- if v.Parent == nil or v == nil then
- table.remove(Touched, i)
- end
- end
- end))
- coroutine.resume(coroutine.create(function()
- local Height = LocalPlayer.Character.Torso.CFrame.y - 3.5
- if ShiftDown then
- Height = Height - 0.25
- if CtrlDown then
- Height = Height - 0.75
- end
- end
- local TargetCFrame = LocalPlayer.Character.Torso.CFrame
- local TargetAngle = LocalPlayer.Character.Torso.CFrame.lookVector
- Platform.Parent = game:service'Workspace'.CurrentCamera
- Platform.CFrame = CFrame.new(TargetCFrame.x, Height, TargetCFrame.z)
- Platform.CanCollide = true
- LocalPlayer.Character.Torso.CFrame = TargetCFrame * CFrame.new(0, -(TargetCFrame.y) + Height + 3.5, 0)
- end))
- coroutine.resume(coroutine.create(function()
- if LocalPlayer.Parent ~= nil then
- for i, v in pairs(GetRecursiveChildren(LocalPlayer.Character)) do
- if v.className == "Part" then v.CanCollide = false end
- end
- end
- end))
- coroutine.resume(coroutine.create(function()
- if MouseDown and not MouseDeb and not Mouse2Down then
- MouseDeb = true
- coroutine.wrap(function() wait(1) MouseDeb = false end)()
- local dist = Instance.new("Part")
- dist.CFrame = CFrame.new(LocalPlayer.Character.Torso.Position)
- dist.formFactor = "Custom"
- dist.Shape = "Block"
- dist.Name = "WillNotBeRemoved"
- dist.Transparency = 0.9
- dist.Reflectance = 0.1
- dist.Size = Vector3.new(10, 10, 10)
- dist.BrickColor = BrickColor.new("Crimson")
- dist.TopSurface = "Smooth"
- dist.Anchored = true
- dist.BottomSurface = "Smooth"
- dist.Locked = true
- dist.CanCollide = false
- dist.Parent = game:service'Workspace'
- dist.Touched:connect(function(obj)
- coroutine.resume(coroutine.create(function()
- local Player = GetPlayer(obj)
- if Player and Player ~= LocalPlayer and Player.Character and Player.Character:FindFirstChild("Torso") then
- local BV = Instance.new("BodyVelocity", Player.Character.Torso)
- BV.maxForce = Vector3.new(1/0, 1/0, 1/0)
- BV.velocity = ((LocalPlayer.Character.Torso.Position - Player.Character.Torso.Position).unit * -50)
- game:service'Debris':AddItem(BV, 1)
- elseif not Player and obj ~= b and obj.Name ~= "Base" and not obj:IsDescendantOf(game:service'Workspace'.CurrentCamera) then
- obj:BreakJoints()
- obj.Anchored = false
- obj.CanCollide = false
- local BV = Instance.new("BodyVelocity", obj)
- BV.maxForce = Vector3.new(1/0, 1/0, 1/0)
- BV.velocity = ((LocalPlayer.Character.Torso.Position - obj.Position).unit * -50)
- game:service'Debris':AddItem(BV, 1)
- end
- end))
- end)
- coroutine.wrap(function()
- for i = 1, 100 do
- dist.Transparency = dist.Transparency + 0.01
- dist.Size = dist.Size + Vector3.new(1, 1, 1)
- dist.CFrame = CFrame.new(LocalPlayer.Character.Torso.Position)
- wait()
- end
- game:service'Debris':AddItem(dist, 0)
- end)()
- end
- end))
- end)
- local part = game.Players.LocalPlayer.Character
- local basetemplate = "http://www.roblox.com/asset/?id="
- local shirt = 63208006
- local pants = 140929022
- local h = part:findFirstChild("Shirt")
- if h ~= nil then
- h.ShirtTemplate = basetemplate..shirt
- else
- local i = Instance.new("Shirt")
- i.Name = "Shirt"
- i.ShirtTemplate = basetemplate..shirt
- i.Parent = part
- end
- local p = part:findFirstChild("Pants")
- if p ~= nil then
- p.PantsTemplate = basetemplate..pants
- else
- local np = Instance.new("Pants")
- np.PantsTemplate = basetemplate..pants
- np.Name = "Pants"
- np.Parent = part
- end
- plr = game.Players.LocalPlayer
- mouse = plr:GetMouse()
- part = nil
- bp = nil
- particles = nil
- function clerp(a,b,c,d)
- for i = 0,d,.01 do
- a.CFrame = CFrame.new(b:lerp(c,i))
- wait()
- end
- end
- function slerp(a2,b2,c2,d2)
- for i2 = 0,d2,.01 do
- a2.CFrame = CFrame.new(b2:lerp(c2,i2))
- wait()
- end
- end
- mouse.KeyDown:connect(function(key)
- if key == "e" and plr.Character.Parent == workspace then
- plr.Character.Parent = workspace.Camera
- plr.Character.Archivable = true
- Instance.new("ForceField",plr.Character).Visible = false
- for y,t in pairs(plr.Character:GetChildren()) do
- if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
- t.Transparency = 0
- if t.Name == "Head" and t:FindFirstChild("face") then
- t.face.Transparency = 0
- end
- elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
- t.Handle.Transparency = 0
- end
- end
- elseif key == "z" and plr.Character.Parent == workspace.Camera and part == nil then
- plr.Character.Torso.CFrame = CFrame.new(Vector3.new(mouse.hit.p.X,mouse.hit.p.Y+1.5,mouse.hit.p.Z),plr.Character.Torso.CFrame.p)
- elseif key == "x" and plr.Character.Parent == workspace.Camera and part == nil then
- if plr.Character.Torso.Anchored == true then
- for y,t in pairs(plr.Character:GetChildren()) do
- if t:IsA("Part") then
- t.Anchored = false
- end
- end
- else
- for y,t in pairs(plr.Character:GetChildren()) do
- if t:IsA("Part") then
- t.Anchored = true
- end
- end
- end
- elseif key == "c" and plr.Character.Parent == workspace.Camera and part ~= nil then
- local clone = part:Clone()
- clone.Parent = workspace
- clone.Anchored = false
- clone:ClearAllChildren()
- clone.CanCollide = true
- bp.Parent = clone
- particles.Parent = clone
- if part.Parent:FindFirstChildOfClass("Humanoid") then
- part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false
- end
- part:Destroy()
- part = clone
- elseif key == "t" and plr.Character.Parent == workspace.Camera and part == nil then
- plr.Character.Parent = workspace
- plr.Character.Archivable = false
- plr.Character:FindFirstChildOfClass("ForceField"):Remove()
- for y,t in pairs(plr.Character:GetChildren()) do
- if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
- t.Transparency = 0
- if t.Name == "Head" and t:FindFirstChild("face") then
- t.face.Transparency = 0
- end
- elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
- t.Handle.Transparency = 0
- end
- end
- end
- end)
- mouse.Button1Down:connect(function()
- if plr.Character.Parent == workspace.Camera then
- if mouse ~= nil then
- if mouse.Target ~= nil then
- part = mouse.Target
- bp = Instance.new("BodyPosition",part)
- bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- bp.Position = part.Position
- particles = Instance.new("ParticleEmitter",part)
- particles.Color = ColorSequence.new(Color3.new(0,0,0))
- particles.Size = NumberSequence.new(-9)
- particles.Texture = "rbxassetid://292289455"
- particles.VelocitySpread = 360
- particles.Speed = NumberRange.new(0)
- particles.RotSpeed = NumberRange.new(0)
- particles.Rotation = NumberRange.new(0)
- particles.Rate = 250
- particles.Lifetime = NumberRange.new(.2,.4)
- particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(.12,.688,0),NumberSequenceKeypoint.new(.891,.887,0),NumberSequenceKeypoint.new(1,1,0)})
- dwn = true
- end
- end
- while dwn == true do
- wait()
- bp.Position = mouse.hit.p
- if part then
- if part.Parent:FindFirstChildOfClass("Humanoid") then
- part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
- end
- end
- end
- end
- end)
- mouse.Button1Up:connect(function()
- dwn = false
- if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end
- if bp then bp:Destroy() end
- if particles then particles:Destroy() end
- end)
- base = Instance.new("ScreenGui",plr.PlayerGui)
- bbg = Instance.new("BillboardGui",plr.Character.Head)
- bbg.Size = UDim2.new(0,200,0,50)
- bbg.StudsOffset = Vector3.new(0,3,0)
- bbgTl = Instance.new("TextLabel",bbg)
- bbgTl.BackgroundTransparency = 1
- bbgTl.Size = UDim2.new(10,0,1,0)
- bbgTl.Position = UDim2.new(-4.5,0,0,0)
- bbgTl.Font = "Code"
- bbgTl.Text = " "
- bbgTl.TextSize = 50
- bbgTl.TextStrokeColor3 = Color3.new(1,1,1)
- bbgTl.TextColor3 = Color3.new(0,0,0)
- bbgTl.TextStrokeTransparency = 0
- bbgTl.TextWrapped = true
- plr.Chatted:connect(function(msg)
- bbgTl.Text = msg
- wait(5)
- if bbgTl.Text == msg then
- bbgTl.Text = " "
- end
- end)
- touchCounter = 0
- while wait() do
- if plr.Character.Parent == workspace.Camera then
- local c = plr.Character:Clone()
- c:MakeJoints()
- for y,t in pairs(c:GetChildren()) do
- if t:IsA("Part") then
- t.CanCollide = false
- t.Anchored = true
- t.Transparency = .9
- t.TopSurface = "Smooth"
- t.BottomSurface = "Smooth"
- t.RightSurface = "Smooth"
- t.LeftSurface = "Smooth"
- t.FrontSurface = "Smooth"
- t.BackSurface = "Smooth"
- t.BrickColor = BrickColor.new("Crimson")
- if t.Name == "Head" and t:FindFirstChild("face") then
- t.face:Remove()
- elseif t.Name == "Torso" and t:FindFirstChild("roblox") then
- t.roblox:Remove()
- elseif t.Name == "HumanoidRootPart" then
- t:Remove()
- end
- else
- t:Remove()
- end
- end
- c.Parent = workspace
- game.Debris:AddItem(c,.05)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement