SilentWraith

Dev Uzi

May 18th, 2018
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 25.14 KB | None | 0 0
  1. --Dev Uzi
  2.  
  3. wait(0.001);
  4.  
  5. --------------------------------------------------------------------------------------
  6.  
  7. _clear=function()
  8.         local c={char;bag;gui;};
  9.         for i=1,#c do
  10.                 local c=c[i]:children();
  11.                 for i=1,#c do
  12.                         if(c[i].Name==name)then
  13.                                 c[i].Parent=nil;
  14.                         end;
  15.                 end;
  16.         end;
  17.         local n=name..user.Name;
  18.         local c=workspace:children();
  19.         for i=1,#c do
  20.                 if(c[i].Name==n)then
  21.                         c[i].Parent=nil;
  22.                 end;
  23.         end;
  24. end;
  25.  
  26. _valid_key=function(object,key)
  27.         return object[key],key;
  28. end;
  29.  
  30. _new=function(class)
  31.         return function(props)
  32.                 if(type(list_base_props)=='table')then
  33.                         for i,v in next,list_base_props do
  34.                                 if(props[i]==nil)then
  35.                                         props[i]=v;
  36.                                 end;
  37.                         end;
  38.                 end;
  39.                
  40.                 local object=class;
  41.                
  42.                 if(type(class)=='string')then
  43.                         object=Instance.new(class:sub(1,1):upper()..class:sub(2));
  44.                 end;
  45.                
  46.                 local parent=props[1];
  47.                         props[1]=nil;
  48.                
  49.                 for i,v in next,props do
  50.                         local load,res,key=pcall(_valid_key,object,i:sub(1,1):upper()..i:sub(2));
  51.                         if(not load)then
  52.                                 load,res,key=pcall(_valid_key,object,i);
  53.                         end;
  54.                        
  55.                         if(key)then
  56.                                 t=type(res);
  57.                                 s=tostring(res);
  58.                                 if(t=='userdata'and s=='Signal '..key)then
  59.                                         if(type(v)=='table')then
  60.                                                 for i=1,#v do
  61.                                                         res:connect(v[i]);
  62.                                                 end;
  63.                                         else
  64.                                                 res:connect(v);
  65.                                         end;
  66.                                 else
  67.                                         object[key]=v;
  68.                                 end;
  69.                         end;
  70.                 end;
  71.                
  72.                 if(parent)then
  73.                         object.Parent=parent;
  74.                 end;
  75.                
  76.                 return object;
  77.         end;
  78. end;
  79.  
  80. _RGB=function(r,g,b)
  81.         return Color3.new(r/255,g/255,b/255);
  82. end;
  83.  
  84. _copy=function(o)
  85.         local def=o.archivable;
  86.         o.archivable=true;
  87.         local c=o:clone();
  88.         o.archivable=def;
  89.         return c;
  90. end;
  91.  
  92. _hum=function(char)
  93.         local hum=char:findFirstChild'Humanoid';
  94.         if(not hum or hum.className~='Humanoid')then
  95.                 local c=char:children();
  96.                 for i=1,#c do
  97.                         if(c[i].className=='Humanoid')then
  98.                                 return c[i];
  99.                         end;
  100.                 end;
  101.         else
  102.                 return hum;
  103.         end;
  104. end;
  105.  
  106. _hum_tag=function(hum)
  107.         local c=hum:findFirstChild'creator'or Instance.new('ObjectValue',hum);
  108.                 c.Name='creator';
  109.                 c.Value=user;
  110.         if(hum.Health==0 and not hum:findFirstChild'killed')then
  111.                 Instance.new('BoolValue',hum).Name='killed';
  112.                 bullets.clip=bullets.clip+10;
  113.         end;
  114. end;
  115.  
  116. _hum_dam=function(hum,dam,percent)
  117.         hum.Health=hum.Health-(percent and hum.MaxHealth*(dam*0.01)or dam);
  118.         if(hum.Health<=hum.MaxHealth*0.1)then
  119.                 _hum_tag(hum);
  120.         end;
  121. end;
  122.  
  123. _ray=function(v0,v1,i)
  124.         local mag=(v0-v1).magnitude;
  125.         local ray=Ray.new(v0,(v1-v0).unit*(mag>999 and 999 or mag));
  126.        
  127.         return(type(i)=='table'and workspace.FindPartOnRayWithIgnoreList or workspace.FindPartOnRay)(workspace,ray,i);
  128. end;
  129.  
  130. _must=function(v0,v1,i)
  131.         local hit,pos=_ray(v0,v1,i);
  132.         return not hit and mouse.target or hit,pos;
  133. end;
  134.  
  135. _cframe=function(x,y,z,r0,r1,r2)
  136.         return CFrame.Angles(
  137.                 math.rad(r0 or 0),
  138.                 math.rad(r1 or 0),
  139.                 math.rad(r2 or 0)
  140.         )*CFrame.new(x,y,z);
  141. end;
  142.  
  143. _update=function()
  144.         if(bool_active and not screen.Parent)then
  145.                 screen.Parent=gui;
  146.         elseif(not bool_active and screen.Parent)then
  147.                 screen.Parent=nil;
  148.         end;
  149. end;
  150.  
  151. _light=function(v0,v1)
  152.         local mag=(v0-v1).magnitude;
  153.         local len=math.random(2,7);
  154.                 len=len>mag/2 and mag/2 or len;
  155.        
  156.         local light=_new'part'{
  157.                 cFrame=CFrame.new(v0,v1);
  158.                 size=Vector3.new(1,1,1);
  159.                 color=_RGB(255,255,0);
  160.                 anchored=true;
  161.                 inv;
  162.         };
  163.                 _new'blockMesh'{
  164.                         scale=Vector3.new(0.2,0.2,len);
  165.                         offset=Vector3.new(0,0,-len/2);
  166.                         light;
  167.                 };
  168.                
  169.         local bb=_new'billboardGui'{
  170.                 size=UDim2.new(2,0,2,0);
  171.                 adornee=light;
  172.                 light;
  173.         };
  174.                 _new'imageLabel'{
  175.                         image=url:format(109101526);
  176.                         backgroundTransparency=1;
  177.                         size=UDim2.new(1,0,1,0);
  178.                         bb;
  179.                 };
  180.                
  181.         _rem(light,0.15);
  182. end;
  183.  
  184. _rem=function(object,del)
  185.         if(del)then
  186.                 delay(del,function()
  187.                         if(object.Parent)then
  188.                                 object.Parent=nil;
  189.                         end;
  190.                 end);
  191.         else
  192.                 pcall(function()
  193.                         if(object.Parent)then
  194.                                 object.Parent=nil;
  195.                         end;
  196.                 end);
  197.         end;
  198. end;
  199.  
  200. _blood=function(pos,count)
  201.         for i=1,count do
  202.                 local p=_new'part'{
  203.                         rotVelocity=Vector3.new(math.random(),math.random(),math.random())*50;
  204.                         position=pos+Vector3.new(math.random(),math.random(),math.random());
  205.                         velocity=Vector3.new(math.random(),math.random(),math.random())*50;
  206.                         size=Vector3.new(math.random(),math.random(),math.random())/3;
  207.                         color=_RGB(255,0,0);
  208.                         transparency=0.5;
  209.                         canCollide=true;
  210.                         bottomSurface=0;
  211.                         topSurface=0;
  212.                         formFactor=3;
  213.                         locked=true;
  214.                         inv;
  215.                 };
  216.                 delay(5,function()
  217.                         p.Parent=nil;
  218.                 end);
  219.         end;
  220. end;
  221.  
  222. _make_hue=function()
  223.         h_hue=_new'part'{
  224.                 size=Vector3.new(0.25,1.8,0.35);
  225.                 color=_RGB(100,100,100);
  226.                 formFactor=3;
  227.                 name='hue';
  228.                 handle;
  229.         };
  230.         hh_weld=_new'weld'{
  231.                 c1=_cframe(0,0.5,0);
  232.                 part0=handle;
  233.                 part1=h_hue;
  234.                 handle;
  235.         };
  236. end;
  237.  
  238. _shot=function(v0,v1)
  239.         if(not time_left)then
  240.                 time_left=0;
  241.         end;
  242.         if(time_left>time())then
  243.                 return nil;
  244.         else
  245.                 time_left=time()+math.random(1,10)/100;
  246.         end;
  247.        
  248.         if(bullets.current<1)then
  249.                 local tick_sound=head:findFirstChild'tick_sound'or _new'sound'{
  250.                         soundId='rbxasset://sounds/SWITCH3.wav';
  251.                         name='tick_sound';
  252.                         volume=0.2;
  253.                         pitch=2;
  254.                         head;
  255.                 };
  256.                 tick_sound:play();
  257.                 if(bullets.clip>0)then
  258.                         time_left=time()+2;
  259.                         h_hue:breakJoints();
  260.                         h_hue.CanCollide=true;
  261.                         h_hue.Velocity=(h_hue.CFrame*CFrame.new(0,5,0)).lookVector*10;
  262.                         _rem(h_hue,10);
  263.                         delay(1.9,function()
  264.                                 _make_hue();
  265.                                 local got=(bullets.clip>bullets.maximum and
  266.                                         bullets.maximum or
  267.                                         bullets.clip)-bullets.current;
  268.  
  269.                                 bullets.clip=bullets.clip-got;
  270.                                 bullets.current=bullets.current+got;
  271.                         end);
  272.                 end;
  273.                 return nil;
  274.         else
  275.                 bullets.current=bullets.current-1;
  276.                
  277.                 h_weld.C1=_cframe(0,0.75,0,
  278.                                         -math.random(1000,1100)/10,180,0);
  279.                 d_weld.C1=_cframe(0,-0.25,0.3);
  280.                
  281.                 lightstuff.Visible=true;
  282.                 delay(0.1,function()
  283.                         lightstuff.Visible=false;
  284.                 end);
  285.                
  286.                 _rem(_new'part'{
  287.                         velocity=CFrame.new(drag.Position,(drag.CFrame*CFrame.new(-4,-5,0)).p).lookVector*10;
  288.                         cFrame=drag.CFrame*CFrame.new(-0.5,0,0);
  289.                         size=Vector3.new(0.1,0.1,0.4);
  290.                         color=_RGB(200,200,0);
  291.                         material='Slate';
  292.                         canCollide=true;
  293.                         formFactor=3;
  294.                         inv;
  295.                 },5);
  296.                 delay(0.1,function()
  297.                         d_weld.C1=_cframe(0,-0.25,0);
  298.                         if(bool_active)then
  299.                                 h_weld.C1=h_weld_cf_active;
  300.                         end;
  301.                 end)
  302.         end;
  303.        
  304.         local hit,pos=_must(v0,v1,char);
  305.        
  306.         shot_sound:play();
  307.        
  308.         _light(v0,v1);
  309.        
  310.         if(not hit)then return nil;end;
  311.        
  312.         if(hit.Parent.className=='Hat')then
  313.                 hit:breakJoints();
  314.                 hit.CanCollide=true;
  315.                 hit.Velocity=CFrame.new(v0,pos).lookVector*math.random(30,50);
  316.                 hit.RotVelocity=Vector3.new(math.random(1,90),math.random(1,90),math.random(1,90));
  317.         else
  318.                 local hum=_hum(hit.Parent);
  319.                 if(not hum)then
  320.                         if(hit.Anchored==false and hit.Size.magnitude<4)then
  321.                                 hit:breakJoints();
  322.                                 hit.CanCollide=true;
  323.                         end;
  324.                 else
  325.                         _hum_dam(hum,math.random(4,6));
  326.                         _blood(pos,math.random(3,6));
  327.                         hit.RotVelocity=Vector3.new(math.random(1,90),math.random(1,90),math.random(1,90))/6;
  328.                         if(hit.Name=='Head')then
  329.                                 hum.Health=0;
  330.                                 _blood(pos,math.random(3,6));
  331.                                 delay(0.001,function()
  332.                                         _new(workspace:FindFirstChild'head_shot'or'sound'){
  333.                                                 pitch=math.random(70,100)*0.01;
  334.                                                 soundId=url:format(1876552);
  335.                                                 name='head_shot';
  336.                                                 workspace;
  337.                                         }:play();
  338.                                 end);
  339.                                 _hum_tag(hum);
  340.                                 _rem(_new'part'{
  341.                                         cFrame=CFrame.new(v0,pos)*CFrame.new(0,0,-(v0-pos).magnitude*0.5);
  342.                                         size=Vector3.new(0.1,0.1,(v0-pos).magnitude);
  343.                                         color=torso.Color;
  344.                                         transparency=0.5;
  345.                                         canCollide=false;
  346.                                         bottomSurface=0;
  347.                                         anchored=true;
  348.                                         formFactor=3;
  349.                                         topSurface=0;
  350.                                         inv;
  351.                                 },30);
  352.                                 hit.Parent=nil;
  353.                                 for b=0,1 do
  354.                                         for a=0,1 do
  355.                                                 for i=0,1 do
  356.                                                         _rem(_new'part'{
  357.                                                                 velocity=CFrame.new(v0,pos).lookVector*20;
  358.                                                                 cFrame=hit.CFrame*CFrame.new(i,-b,a);
  359.                                                                 size=Vector3.new(0.5,0.5,0.5);
  360.                                                                 color=_RGB(255,255,255);
  361.                                                                 bottomSurface=0;
  362.                                                                 canCollide=true;
  363.                                                                 transparency=0;
  364.                                                                 formFactor=3;
  365.                                                                 topSurface=0;
  366.                                                                 hum;
  367.                                                         },30);
  368.                                                 end;
  369.                                         end;
  370.                                 end;
  371.                         end;
  372.                 end;
  373.         end;
  374. end;
  375.  
  376. ----------------------------------------------------------------------------------------
  377.  
  378. _cf_select=function(mouse)
  379.         mouse.Icon=url:format(109111387);--108999296
  380.         bool_active=true;
  381.        
  382.         local arm=char:findFirstChild'Right Arm';
  383.         local weld=torso:findFirstChild'Right Shoulder';
  384.         if(arm and weld)then
  385.                 h_weld.Part0=arm;
  386.                 h_weld.C1=h_weld_cf_active;
  387.                
  388.                 weld.Part1=nil;
  389.                 weld.Part0=nil;
  390.                
  391.                 weld=_new(torso:findFirstChild'right_arml'or'weld'){
  392.                         name='right_arml';
  393.                         part0=torso;
  394.                         part1=arm;
  395.                         torso;
  396.                 };
  397.                
  398.                 arml=(arml or 0)+1;
  399.                 local alv=arml;
  400.                 local gyro=torso:findFirstChild'p_gyro'or Instance.new('BodyGyro',torso);
  401.                         gyro.maxTorque=Vector3.new(5e5,5e5,5e5);
  402.                         gyro.P=30000;
  403.                         gyro.D=1000;
  404.                         gyro.Name='p_gyro';
  405.                 repeat
  406.                         local pos=mouse.hit.p;
  407.                         local val,valp,p0,p1,p2,hitpos,cj,c0,c1;
  408.                        
  409.                         val=-math.pi*0.5;
  410.                         valp=val*-1;
  411.                         p0=torso.CFrame;
  412.                         p0=p0+((p0*CFrame.Angles(valp,0,0)).lookVector*0.5)+(p0*CFrame.Angles(0,val,0)).lookVector;
  413.                         p1=p0+((p0.p-pos).unit*-2);
  414.                         p2=CFrame.new((p0.p+p1.p)/2,p0.p)*CFrame.Angles(val,val,0);
  415.                         hitpos=torso.Position;
  416.                         cj=CFrame.new(hitpos);
  417.                         c0=torso.CFrame:inverse()*cj;
  418.                         c1=p2:inverse()*cj;
  419.                         weld.C0=c0;
  420.                         weld.C1=c1;
  421.                        
  422.                         gyro.cframe=CFrame.new(torso.Position,Vector3.new(pos.X,torso.Position.Y,pos.Z));
  423.                        
  424.                         wait(0.001);
  425.                 until arml~=alv;
  426.                 gyro.Parent=nil;
  427.         end;
  428. end;
  429.  
  430. _cf_deselect=function()
  431.         bool_active=false;
  432.         arml=(arml or 0)+1;
  433.         loop_shot=(loop_shot or 0)+1;
  434.                
  435.         h_weld.Part0=torso;
  436.         h_weld.C1=h_weld_cf_inactive;
  437.        
  438.         local weld=torso:findFirstChild'right_arml';
  439.         if(weld)then
  440.                 weld.Part1=nil;
  441.                 weld.Part0=nil;
  442.         end;
  443.         local arm=char:findFirstChild'Right Arm';
  444.         local weld=torso:findFirstChild'Right Shoulder';
  445.         if(arm and weld)then
  446.                 weld.Part0=torso;
  447.                 weld.Part1=arm;
  448.         end;
  449. end;
  450.  
  451. _cf_mouse=function(event,fun)
  452.         mouse[event:sub(1,1):upper()..event:sub(2)]:connect(function(...)
  453.                 if(bool_active)then
  454.                         fun(...);
  455.                 end;
  456.         end);
  457. end;
  458.  
  459. ----------------------------------------------------------------------------------------
  460.  
  461. do
  462.         local main=getfenv(0);
  463.         local c=game:children();
  464.         local check=function(v)
  465.                 if(v.className~=''and v.className~='Instance'and game:service(v.className))then
  466.                         main[v.className:sub(1,1):lower()..v.className:sub(2)]=v;
  467.                 end;
  468.         end;
  469.         for i=1,#c do
  470.                 pcall(check,c[i]);
  471.         end;
  472. end;
  473.  
  474. ----------------------------------------------------------------------------------------
  475.  
  476. bullets={
  477.         maximum=51111111111111111111111111110;
  478.         current=511111111111111111111111111111110;
  479.         clip=501111111111111111111111111111111*4;
  480. };
  481.  
  482. list_base_props={
  483.         backgroundColor3=_RGB(0,0,0);
  484.         textColor3=_RGB(200,200,200);
  485.         borderSizePixel=0;
  486.         color=_RGB(0,0,0);
  487.         archivable=false;
  488.         canCollide=false;
  489.         bottomSurface=0;
  490.         topSurface=0;
  491.         formFactor=0;
  492.         locked=true;
  493. };
  494.  
  495. ----------------------------------------------------------------------------------------
  496.  
  497. user=players.localPlayer;
  498. mouse=user:getMouse();
  499. char=user.Character;
  500. gui=user.PlayerGui;
  501. bag=user.Backpack;
  502. torso=char.Torso;
  503. head=char.Head;
  504. hum=_hum(char);
  505.  
  506. url='rbxassetid://%d';
  507. name='dev-uzi';
  508.  
  509. h_weld_cf_inactive=_cframe(0.35,0.5,0.5,
  510.                                                         0,90,-70);
  511. h_weld_cf_active=_cframe(0,0.75,0,
  512.                                                 -110,180,0);
  513.  
  514. assert(hum,'humanoid is not found');
  515.  
  516. ----------------------------------------------------------------------------------------
  517.  
  518. _clear();
  519.  
  520. ----------------------------------------------------------------------------------------
  521.  
  522. _cf_mouse('button1Down',function()
  523.         loop_shot=(loop_shot or 0)+1;
  524.         local vers=loop_shot;
  525.         local step=runService.Stepped;
  526.         repeat
  527.                 _shot((tube.CFrame*CFrame.new(0,0,tube.Size.Z*0.5)).p,mouse.hit.p);
  528.                 step:wait();--wait(0.001);
  529.         until vers~=loop_shot;
  530. end);
  531.  
  532. _cf_mouse('button1Up',function()
  533.         loop_shot=(loop_shot or 0)+1;
  534. end);
  535.  
  536. _cf_mouse('move',function()
  537.         cross_f.Position=UDim2.new(0,mouse.X-11,0,mouse.Y-11);
  538. end);
  539.  
  540. _cf_mouse('keyDown',function(k)
  541.         if(k=='r')then
  542.                 if(bullets.clip>0 and time_left<=time())then
  543.                         local got=(bullets.clip>bullets.maximum and
  544.                                 bullets.maximum or
  545.                                 bullets.clip)-bullets.current;
  546.  
  547.                         bullets.clip=bullets.clip-got;
  548.                         bullets.current=bullets.current+got;
  549.                         if(got~=0)then
  550.                                 time_left=time()+2;
  551.                         end;
  552.                 end;
  553.         end;
  554. end);
  555.  
  556. ----------------------------------------------------------------------------------------
  557.  
  558. screen=_new'screenGui'{
  559.         name=name;
  560. };
  561.  
  562. cross_f=_new'frame'{
  563.         size=UDim2.new(0,21,0,21);
  564.         backgroundTransparency=1;
  565.         screen;
  566. };
  567.  
  568. for i=0,1 do
  569.         _new'frame'{
  570.                 position=UDim2.new(0,13*i,0,11);
  571.                 size=UDim2.new(0,10,0,1);
  572.                 cross_f;
  573.         };
  574. end;
  575.  
  576. for i=0,1 do
  577.         _new'frame'{
  578.                 position=UDim2.new(0,11,0,13*i);
  579.                 size=UDim2.new(0,1,0,10);
  580.                 cross_f;
  581.         };
  582. end;
  583.  
  584. ----------------------------------------------------------------------------------------
  585.  
  586. shot_sound=_new(head:findFirstChild'2920959'or'sound'){
  587.         soundId=url:format(2920959);
  588.         pitch=1.4;
  589.         head;
  590. };
  591. if(shot_sound.Name~='2920959')then
  592.         shot_sound.Name='2920959';
  593.         shot_sound:play();
  594. end;
  595.  
  596. bin=_new'hopperBin'{
  597.         deselected=_cf_deselect;
  598.         selected=_cf_select;
  599.         name=name;
  600.         bag;
  601. };
  602.  
  603. inv=_new'model'{
  604.         name=name;
  605.         char;
  606. };
  607.  
  608. handle=_new'part'{
  609.         size=Vector3.new(0.3,1.3,0.4);
  610.         color=_RGB(140,140,140);
  611.         name='handle';
  612.         formFactor=3;
  613.         inv;
  614.         touched=function(hit)
  615.                 if(hit.Parent.className=='Model')then
  616.                         local hum=_hum(hit.Parent);
  617.                         if(hum~=nil)then
  618.                                 _hum_dam(hum,handle.Velocity.magnitude);
  619.                         end;
  620.                 end;
  621.         end;
  622. };
  623.         h_weld=_new'weld'{
  624.                 c1=h_weld_cf_inactive;
  625.                 part1=handle;
  626.                 part0=torso;
  627.                 handle;
  628.         };
  629.                 _make_hue();
  630.                
  631.                 h_part=_new'part'{
  632.                         size=Vector3.new(0.4,0.4,1.4);
  633.                         color=_RGB(140,140,140);
  634.                         name='handle';
  635.                         formFactor=3;
  636.                         handle;
  637.                 };
  638.                 hp_weld=_new'weld'{
  639.                         c1=_cframe(0,-1.3/2,-0.3,
  640.                                                 20,0,0);
  641.                         part0=handle;
  642.                         part1=h_part;
  643.                         handle;
  644.                 };
  645.                
  646.                 drag=_new'part'{
  647.                         size=Vector3.new(0.5,0.45,1.5);
  648.                         color=_RGB(100,100,100);
  649.                         name='handle';
  650.                         formFactor=3;
  651.                         handle;
  652.                 };
  653.                 d_weld=_new'weld'{
  654.                         c1=_cframe(0,-0.25,0);
  655.                         part0=h_part;
  656.                         part1=drag;
  657.                         handle;
  658.                 };
  659.                
  660.                 tube=_new'part'{
  661.                         size=Vector3.new(0.2,0.2,1.5);
  662.                         color=_RGB(0,0,0);
  663.                         name='handle';
  664.                         formFactor=3;
  665.                         handle;
  666.                 };
  667.                 t_weld=_new'weld'{
  668.                         c1=_cframe(0,-0.3,-0.1);
  669.                         part0=h_part;
  670.                         part1=tube;
  671.                         handle;
  672.                 };
  673.  
  674. bullets_label=_new'textLabel'{
  675.         textStrokeColor3=_RGB(0,0,0);
  676.         textColor3=_RGB(200,200,200);
  677.         textStrokeTransparency=0;
  678.         backgroundTransparency=1;
  679.         fontSize=5;
  680.         screen;
  681. };
  682.  
  683. lightstuff=_new'frame'{
  684.         backgroundColor3=_RGB(255,255,255);
  685.         position=UDim2.new(0,0,0,-1);
  686.         backgroundTransparency=0.5;
  687.         size=UDim2.new(1,0,1,1);
  688.         borderSizePixel=0;
  689.         visible=false;
  690.         screen;
  691. };
  692.  
  693. coroutine.wrap(function()
  694.         local red,white,green;
  695.         repeat
  696.                 if(screen.Parent)then
  697.                         if(not green and bullets.current==bullets.maximum)then
  698.                                 green=true;
  699.                                 bullets_label.TextColor3=_RGB(0,200,0);
  700.                         elseif(not red and bullets.current==0)then
  701.                                 red=true;
  702.                                 bullets_label.TextColor3=_RGB(200,0,0);
  703.                         elseif((red or green)and bullets.current~=0 and bullets.current~=bullets.maximum)then
  704.                                 bullets_label.TextColor3=_RGB(200,200,200);
  705.                                 green=false;
  706.                                 red=false;
  707.                         end;
  708.                         bullets_label.Text=('Bullets: %d/%d'):format(bullets.current,bullets.clip);
  709.                         bullets_label.Size=UDim2.new(0,bullets_label.TextBounds.X,0,bullets_label.TextBounds.Y);
  710.                         bullets_label.Position=UDim2.new(1,-bullets_label.TextBounds.X-6,1,-bullets_label.TextBounds.Y-6);
  711.                 end;
  712.                 wait(0.001);
  713.         until nil;
  714. end)();
  715.  
  716. ----------------------------------------------------------------------------------------
  717.  
  718. _G.dev_pistol_version=(_G.dev_pistol_version or 0)+1;
  719. local vers=_G.dev_pistol_version;
  720. repeat _update();wait(0.001);until _G.dev_pistol_version~=vers or hum.Health==0;
  721. if(hum.Health==0)then
  722.         _clear();
  723. end;
  724. script.Disabled=true;
  725.  
  726. --mediafire-----------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment