Advertisement
InTesting

Felipe Pistol

Nov 11th, 2019
3,313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 13.12 KB | None | 0 0
  1. local function Set_Up_Function(player)
  2.  
  3.     local fly_fx = true;
  4.  
  5.     print'https://pastebin.com/pX2YGV6P'print'q to equip';
  6.     local Set_Up_2={Name='Felipe_Gun';Motor6d_Enabled={Left_Arm=true;Right_Arm=false;
  7.     Left_Leg=true;Right_Leg=true;}};
  8.     local Players,cwrap,Wait_For_Child_2,Storage,RE,RF,clerp=
  9.         game:GetService("Players"),function(a)local b=coroutine.wrap(a);b();return b;end,
  10.         function(p,c,wt)wt=wt or 1/60;local a;if not p or not c then return;end;
  11.         if typeof(p)~='Instance'or typeof(c)~='string'then return;end;repeat
  12.         a=p:FindFirstChild(c);wait(wt);until a;return a;end,{},nil,nil,function(cf,goal,al)
  13.         return cf:Lerp(goal,al);end;
  14.     player=(player=='FindPlayer'and(loadstring('return owner')()or Players:
  15.         GetPlayerFromCharacter(script.Parent)))or player;
  16.     script.Name=Set_Up_2.Name;if not player or not Players then return;end;
  17.     if loadstring('return owner')()then pcall(function()local NLS;NLS=loadstring('return NLS')();
  18.     script.Parent=player.Character;
  19.     NLS([[
  20. local lp,re,rf =
  21.     game:GetService("Players").LocalPlayer,script:WaitForChild('RE_Client'),
  22.     script:WaitForChild('RF_Client');
  23. local mouse = lp:GetMouse();
  24.  
  25. mouse.KeyDown:Connect(function(k)
  26.     re:FireServer('KD',k,mouse.Hit,mouse.Target);
  27. end);
  28. mouse.Button1Down:Connect(function()
  29.     re:FireServer('MB_Down',mouse.Hit,mouse.Target);
  30. end);
  31.  
  32. rf.OnClientInvoke = function(...)
  33.     local args = {...}
  34.     if args[1]=='Get_Mouse_CF'then return mouse.Hit;
  35.     elseif args[1]=='Get_Mouse_Target'then return mouse.Target;
  36.     end
  37. end;
  38. ]],script);
  39. end);end;
  40.     local pchar,Instance_2,Remove =
  41.         player.Character or(function()repeat wait(1);player:LoadCharacter();until
  42.         player.Character;return player.Character;end)(),function(c,p)
  43.         local a=(function()for a,b in pairs(Storage)do if b.ClassName==c then
  44.         table.remove(Storage,a);return b;end;end;end)()or Instance.new(c);if not a then
  45.         print'No classname';return;end;
  46.         for b,c in pairs(p)do local _,d= pcall(function()a[b]=c;end);if d then print(d);end;
  47.         end;return a;end,function(a)a.Parent=nil;table.insert(Storage,a);end;
  48.     if not pchar then return;end;
  49.     local a,Container=
  50.         (function()if loadstring('return owner')()then return{
  51.         Instance_2('RemoteEvent',{Name='RE_Client';Parent=script:GetChildren()[1];});
  52.         Instance_2('RemoteFunction',{Name='RF_Client';Parent=script:GetChildren()[1];})};end;
  53.         wait(2);return{script:FindFirstChildWhichIsA('RemoteEvent',true);script:
  54.         FindFirstChildWhichIsA('RemoteFunction',true);}end)(),pchar:FindFirstChild'Storage'or
  55.         Instance_2('Folder',{Name='Storage';Parent=pchar});
  56.     RE,RF=unpack(a);if not RE or not RF then return;end;
  57.     local Head,HRootPart,Torso,Humanoid,Left_Arm,Right_Arm,Left_Leg,Right_Leg,Damage,
  58.         Felipe_Gun =
  59.         (function()local a;repeat a=pchar:FindFirstChild'Head';if a then break;end;wait(1);
  60.         until nil;return a;end)(),(function()local a;repeat
  61.         a=pchar:FindFirstChild'HumanoidRootPart';if a then break;end;wait(1);until nil;return a;
  62.         end)(),(function()local a;repeat a=pchar:FindFirstChild'Torso';if a then break;end;
  63.         wait(1);until nil;return a;end)(),(function()local a;repeat
  64.         a=pchar:FindFirstChildWhichIsA'Humanoid';if a then break;end;wait(1);until nil;
  65.         return a;end)(),(function()local a;repeat a=pchar:FindFirstChild'Left Arm';if a then
  66.         break;end;wait(1);until nil;return a;end)(),(function()local a;repeat
  67.         a=pchar:FindFirstChild'Right Arm';if a then break;end;wait(1);until nil;return a;
  68.         end)(),(function()local a;repeat a=pchar:FindFirstChild'Left Leg';if a then break;end;
  69.         wait(1);until nil;return a;end)(),(function()local a;repeat
  70.         a=pchar:FindFirstChild'Right Leg';if a then break;end;wait(1);until nil;return a;
  71.         end)(),function(h,d,f)if not h then return;end;d=d or 10;f=f or function()end;
  72.         local a=h:FindFirstAncestorWhichIsA'Model';if not a or a==workspace or a==pchar then
  73.         return;end;local b,c=a:FindFirstChildWhichIsA'Humanoid',a:FindFirstChild'Head'or a:
  74.         FindFirstChild'Torso'or a:FindFirstChild'UpperTorso'or a:
  75.         FindFirstChild'HumanoidRootPart';
  76.         if b then if b.Health>150 then b.Health=0;else b:TakeDamage(d);f();end;elseif c then
  77.         Remove(c);else pcall(function()a:BreakJoints();end);end;end,
  78.         (function()local Object_0=Instance_2("Model",{Parent=Container;});
  79. local Object_1=Instance_2("Part",{Color=Color3.new(.929412,.917647,.917647);CFrame=CFrame.new(
  80. .5,4.20000029,16.2999954,-4.37113883e-08,0,1,3.87430191e-07,.99999994,1.69351109e-14,
  81. -1,3.87430163e-07,-4.37113883e-08);Massless=true;Parent=Object_0;Anchored=true;Material=
  82. 'SmoothPlastic';Size=Vector3.new(2.20000005,.224999994,.224999994);});
  83. local Object_5=Instance_2("Part",{CFrame=CFrame.new(.5,4.0999999,16.1999969,-4.37113883e-08,
  84. 0,1,3.87430191e-07,.99999994,1.69351109e-14,-1,3.87430163e-07,-4.37113883e-08);Massless=true;
  85. Parent=Object_0;Anchored=true;Material='SmoothPlastic';Size=Vector3.new(2.20000005,.124999993,
  86. .124999993);Name='b'});Instance_2("SpecialMesh",{MeshType='Cylinder';Parent=Object_1;});
  87. Instance_2("Part",{Color=Color3.new(.0666667,.0666667,.0666667);CFrame=CFrame.new(
  88. .600000024,4.19999981,15.3500013,1,0,0,0,1,0,0,0,1);Massless=true;Parent=Object_0;Anchored=true;
  89. Shape='Ball';Material='SmoothPlastic';Size=Vector3.new(.149999619,.149999619,.149999619);});
  90. Instance_2("Part",{Color=Color3.new(.929412,.917647,.917647);CFrame=CFrame.new(.5,
  91. 3.80184603,16.4788933,1,0,0,0,1,0,0,0,1);Massless=true;Parent=Object_0;Anchored=true;
  92. Material='SmoothPlastic';Size=Vector3.new(.150000006,.600000143,.199999899);});
  93. Instance_2("Part",{Color=Color3.new(.388235,.372549,.384314);CFrame=CFrame.new(.5,
  94. 3.94880772,16.7441597,1,0,0,0,.984808028,.173647001,0,-.173647001,.984808028);Massless=true;
  95. Parent=Object_0;Anchored=true;Material='SmoothPlastic';Size=Vector3.new(.0500000045,
  96. .300000131,.0999998972);});Instance_2("SpecialMesh",{MeshType='Cylinder';Parent=Object_5;});
  97. Instance_2("Part",{Color=Color3.new(1,.34902,.34902);CFrame=CFrame.new(.5,3.5999999,
  98. 16.4499989,1,0,0,0,1,-3.87430191e-07,0,3.87430191e-07,1);Massless=true;Parent=Object_0;
  99. Anchored=true;Material='SmoothPlastic';Size=Vector3.new(.174999997,.0500000007,.150000006);});
  100. Instance_2("Part",{Color=Color3.new(.972549,.972549,.972549);CFrame=CFrame.new(.5,
  101. 4.21500015,17.3999996,1,0,0,0,1,0,0,0,1);Massless=true;Parent=Object_0;Anchored=true;
  102. Shape='Ball';Material='SmoothPlastic';Size=Vector3.new(.230000004,.230000004,.230000004);});
  103. Instance_2("Part",{Color=Color3.new(.8,.556863,.411765);CFrame=CFrame.new(.5,4.0999999,
  104. 17.3999996,0,0,1,1,0,0,0,1,0);Massless=true;Parent=Object_0;Anchored=true;Shape='Cylinder';
  105. Material='SmoothPlastic';Size=Vector3.new(.199999422,.230000004,.230000004);});
  106. Instance_2("Part",{Color=Color3.new(.0666667,.0666667,.0666667);CFrame=CFrame.new(.400000006,
  107. 4.19999981,15.3500013,1,0,0,0,1,0,0,0,1);Massless=true;Parent=Object_0;Anchored=true;
  108. Shape='Ball';Material='SmoothPlastic';Size=Vector3.new(.149999619,.149999619,.149999619);});
  109. Instance_2("Part",{Color=Color3.new(.8,.556863,.411765);CFrame=CFrame.new(.5,4.10000038,
  110. 17.0999851,1,0,0,0,1,-3.87430191e-07,0,3.87430191e-07,1);Massless=true;Parent=Object_0;
  111. Anchored=true;Material='SmoothPlastic';Size=Vector3.new(.230000004,.200000018,.599999905);});
  112. Instance_2("Part",{Color=Color3.new(.929412,.917647,.917647);CFrame=CFrame.new(.5,4.10000038,
  113. 16.2999954,1,0,0,0,1,-3.87430191e-07,0,3.87430191e-07,1);Massless=true;Parent=Object_0;
  114. Anchored=true;Material='SmoothPlastic';Size=Vector3.new(.224999994,.200000018,2.20000005);});
  115. Instance_2("Part",{Color=Color3.new(.929412,.917647,.917647);CFrame=CFrame.new(.5,3.5999999,
  116. 16.7000008,1,0,0,0,1,-3.87430191e-07,0,3.87430191e-07,1);Massless=true;Parent=Object_0;
  117. Anchored=true;Material='SmoothPlastic';Size=Vector3.new(.150000006,.199999988,.600000024);});
  118. local handle=Instance_2("Part",{Color=Color3.new(.929412,.917647,.917647);CFrame=CFrame.new(
  119. .5,3.54924035,17.0413151,1,0,0,0,.984807849,.173647806,0,-.173647806,.984807849);
  120. Massless=true;Parent=Object_0;Anchored=true;Material='SmoothPlastic';Size=Vector3.new(
  121. .150000006,1.10000002,.299999923);});Object_0.PrimaryPart=handle;
  122. for _,v in pairs(Object_0:GetChildren())do local _,a=pcall(function()
  123. Instance_2('WeldConstraint',{Parent=Object_0;Part0=v;Part1=Object_0.PrimaryPart});
  124. v.Anchored=false;end);end;return Object_0;end)();
  125.     local Left_Hip,Left_Shoulder,Neck,Right_Hip,Right_Shoulder,RootJoint,Gun_Weld,Gun_Point =
  126.         (not Set_Up_2.Motor6d_Enabled.Left_Leg and(function()
  127.         local a=Torso:FindFirstChild'Left Hip';if a then Remove(a)end;local b=Instance_2('Weld',
  128.         {Part0=Torso;Part1=Left_Leg;Parent=Torso;});return b;end)())or Torso:
  129.         FindFirstChild'Left Hip',(not Set_Up_2.Motor6d_Enabled.Left_Arm and(function()
  130.         local a=Torso:FindFirstChild'Left Shoulder';if a then Remove(a)end;
  131.         local b=Instance_2('Weld',{Part0=Torso;Part1=Left_Arm;Parent=Torso;});return b;end)())or
  132.         Torso:FindFirstChild'Left Shoulder',Torso:FindFirstChild'Neck',(not Set_Up_2.
  133.         Motor6d_Enabled.Right_Leg and(function()local a=Torso:FindFirstChild'Right Hip';
  134.         if a then Remove(a)end;local b=Instance_2('Weld',{Part0=Torso;Part1=Right_Leg;
  135.         Parent=Torso;});return b;end)())or Torso:FindFirstChild'Right Hip',(not Set_Up_2.
  136.         Motor6d_Enabled.Right_Arm and(function()local a=Torso:FindFirstChild'Right Shoulder';
  137.         if a then Remove(a)end;local b=Instance_2('Weld',{Part0=Torso;Part1=Right_Arm;
  138.         Parent=Torso;});return b;end)())or Torso:FindFirstChild'Right Shoulder',
  139.         HRootPart:FindFirstChild'RootJoint',Instance_2('Weld',{Parent=Container;Part0=
  140.         Felipe_Gun.PrimaryPart;Part1=Right_Arm;C0=CFrame.new(-.00085234642,-.215278387,
  141.         .934501648,.999997854,8.94069032e-08,1.69351227e-14,-2.07004156e-08,-.173647717,
  142.         -.984802902,1.17398145e-07,.984808505,-.173646748);C1=CFrame.new(0,0,0,1,0,0,0,1,
  143.         0,0,0,1)}),(function()for _,a in pairs(Felipe_Gun:GetChildren())do local b=(function()
  144.         if a.Name~='b'then return;end;return a;end)();if b then return b;end;end;end)();
  145.     if not Left_Hip or not Left_Shoulder or not Neck or not Right_Hip or not Right_Shoulder or
  146.         not RootJoint then return;end; 
  147.     local Joints={Left_Hip;Left_Shoulder;Neck;Right_Hip;Right_Shoulder};   
  148.     local CFrames,CFrame_Mode={
  149.         ['Right Arm']={Idle={C0=CFrame.new(1,.5,0,-4.37113883e-08,0,1,0,.99999994,0,-1,0,
  150.             -4.37113883e-08);C1=CFrame.new(-.5,.5,0,-4.37113883e-08,0,1,0,.99999994,0,-1,0,
  151.             -4.37113883e-08);};Equipped={C0=CFrame.new(1,.5,0,-4.37113883e-08,0,1,0,
  152.             .99999994,0,-1,0,-4.37113883e-08);C1=CFrame.new(-.5,.49999997,0,-4.37113847e-08,
  153.             0,.99999994,-1,-4.37113812e-08,-4.37113883e-08,4.37113883e-08,-.999999821,
  154.             1.91068547e-15);};};
  155.     },
  156.     {['Right Arm']='Idle';};
  157.     local function Server_Handler(pl,...)local args={...};if pl~=player then return;end;
  158.     if args[1]=='KD'then if args[2]=='q'then
  159.         CFrame_Mode["Right Arm"]=(CFrame_Mode["Right Arm"]=='Idle'and'Equipped')or'Idle';
  160.     end;elseif args[1]=='MB_Down'then
  161.         if CFrame_Mode["Right Arm"]=='Equipped'then
  162.             local Target_CF,Target_Part=RF:InvokeClient(player,'Get_Mouse_CF'),
  163.                 RF:InvokeClient(player,'Get_Mouse_Target');
  164.             if not Target_CF or not Target_Part then return;end;
  165.             local Bullet_Length=math.abs((Target_CF.Position-(Gun_Point.CFrame*CFrame.new(
  166.                 Gun_Point.Size.X/2,0,0)).Position).Magnitude);
  167.             Damage(Target_Part,25,function()local a=Target_Part:FindFirstAncestorWhichIsA'Model';
  168.                 if not a then return;end;local b=a:FindFirstChildWhichIsA'Humanoid';
  169.                 if not b or a:FindFirstChild('f_dead',true)then return;end;if b.Health>0 then return;end;
  170.                 Instance_2('Sound',{Name='f_dead';
  171.                 SoundId='rbxassetid://1433658125';Volume=1;Parent=Target_Part;}):Play();end);
  172.             local Beam=Instance_2('Part',{Material='SmoothPlastic';Anchored=true;CanCollide
  173.             =false;Massless=true;BrickColor=BrickColor.new("Medium stone grey");
  174.             Shape='Cylinder';Size=Vector3.new(Bullet_Length,.1,.1);CFrame=CFrame.new(
  175.             (Gun_Point.CFrame*CFrame.new(Gun_Point.Size.X/2,0,0)).Position,Target_CF.Position)*
  176.             CFrame.Angles(0,math.rad(-90),0)*CFrame.new(Bullet_Length/-2,0,0);Transparency=0;
  177.             Parent=Container;});local Pew=Instance_2('Sound',{SoundId=
  178.             'rbxassetid://2220756150';TimePosition=.6;Volume=2.5;Parent=Container});Pew:Play();
  179.             local bullet_hole=Instance_2('Part',{Anchored=false;CanCollide=false;
  180.             Massless=true;Size=Vector3.new(.4,.8,.6);Position=Target_CF.Position;
  181.             Orientation=Beam.Orientation+Vector3.new(0,90,0);Parent=Target_Part;});
  182.             Instance_2('SpecialMesh',{MeshId='rbxassetid://4125549274';Scale=Vector3.new(
  183.             .25,.25,.25);TextureId='rbxassetid://4125544592';Parent=bullet_hole});
  184.             Instance_2('WeldConstraint',{Part0=bullet_hole;Part1=Target_Part;Parent=
  185.             bullet_hole;});
  186.             local a=Instance.new('BodyVelocity',bullet_hole);a.MaxForce=Vector3.new(0,4000,0);a.Velocity=Vector3.new(0,4,0)
  187.         wait(.25);if Beam then Remove(Beam);end;if Pew then Remove(Pew);end;
  188.         end;end;end;
  189.     local function Animation(cfs,In_Action)for _,c in pairs(Joints)do for a,b in pairs(cfs)do
  190.         if c.Part1.Name==a then
  191.         for d,e in pairs(b)do if In_Action[a]==d then
  192.         c.C0,c.C1=clerp(c.C0,e.C0,e[3]or e[1]or.5),clerp(c.C1,e.C1,e[3]or e[1]or.5);end;
  193.     end;end;end;end;end;
  194.     Humanoid.MaxHealth=math.huge;Humanoid.Health=Humanoid.MaxHealth;
  195.     RE.OnServerEvent:Connect(Server_Handler);RF.OnServerInvoke=Server_Handler;
  196.     cwrap(function()while true do Animation(CFrames,CFrame_Mode);wait();end;end);
  197. end;
  198. Set_Up_Function'FindPlayer';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement