Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function Set_Up_Function(player)
- local fly_fx = true;
- print'https://pastebin.com/pX2YGV6P'print'q to equip';
- local Set_Up_2={Name='Felipe_Gun';Motor6d_Enabled={Left_Arm=true;Right_Arm=false;
- Left_Leg=true;Right_Leg=true;}};
- local Players,cwrap,Wait_For_Child_2,Storage,RE,RF,clerp=
- 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;
- 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')();
- script.Parent=player.Character;
- 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);
- 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,Container=
- (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)(),pchar:FindFirstChild'Storage'or
- Instance_2('Folder',{Name='Storage';Parent=pchar});
- 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,
- Felipe_Gun =
- (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);f();end;elseif c then
- Remove(c);else pcall(function()a:BreakJoints();end);end;end,
- (function()local Object_0=Instance_2("Model",{Parent=Container;});
- local Object_1=Instance_2("Part",{Color=Color3.new(.929412,.917647,.917647);CFrame=CFrame.new(
- .5,4.20000029,16.2999954,-4.37113883e-08,0,1,3.87430191e-07,.99999994,1.69351109e-14,
- -1,3.87430163e-07,-4.37113883e-08);Massless=true;Parent=Object_0;Anchored=true;Material=
- 'SmoothPlastic';Size=Vector3.new(2.20000005,.224999994,.224999994);});
- local Object_5=Instance_2("Part",{CFrame=CFrame.new(.5,4.0999999,16.1999969,-4.37113883e-08,
- 0,1,3.87430191e-07,.99999994,1.69351109e-14,-1,3.87430163e-07,-4.37113883e-08);Massless=true;
- Parent=Object_0;Anchored=true;Material='SmoothPlastic';Size=Vector3.new(2.20000005,.124999993,
- .124999993);Name='b'});Instance_2("SpecialMesh",{MeshType='Cylinder';Parent=Object_1;});
- Instance_2("Part",{Color=Color3.new(.0666667,.0666667,.0666667);CFrame=CFrame.new(
- .600000024,4.19999981,15.3500013,1,0,0,0,1,0,0,0,1);Massless=true;Parent=Object_0;Anchored=true;
- Shape='Ball';Material='SmoothPlastic';Size=Vector3.new(.149999619,.149999619,.149999619);});
- Instance_2("Part",{Color=Color3.new(.929412,.917647,.917647);CFrame=CFrame.new(.5,
- 3.80184603,16.4788933,1,0,0,0,1,0,0,0,1);Massless=true;Parent=Object_0;Anchored=true;
- Material='SmoothPlastic';Size=Vector3.new(.150000006,.600000143,.199999899);});
- Instance_2("Part",{Color=Color3.new(.388235,.372549,.384314);CFrame=CFrame.new(.5,
- 3.94880772,16.7441597,1,0,0,0,.984808028,.173647001,0,-.173647001,.984808028);Massless=true;
- Parent=Object_0;Anchored=true;Material='SmoothPlastic';Size=Vector3.new(.0500000045,
- .300000131,.0999998972);});Instance_2("SpecialMesh",{MeshType='Cylinder';Parent=Object_5;});
- Instance_2("Part",{Color=Color3.new(1,.34902,.34902);CFrame=CFrame.new(.5,3.5999999,
- 16.4499989,1,0,0,0,1,-3.87430191e-07,0,3.87430191e-07,1);Massless=true;Parent=Object_0;
- Anchored=true;Material='SmoothPlastic';Size=Vector3.new(.174999997,.0500000007,.150000006);});
- Instance_2("Part",{Color=Color3.new(.972549,.972549,.972549);CFrame=CFrame.new(.5,
- 4.21500015,17.3999996,1,0,0,0,1,0,0,0,1);Massless=true;Parent=Object_0;Anchored=true;
- Shape='Ball';Material='SmoothPlastic';Size=Vector3.new(.230000004,.230000004,.230000004);});
- Instance_2("Part",{Color=Color3.new(.8,.556863,.411765);CFrame=CFrame.new(.5,4.0999999,
- 17.3999996,0,0,1,1,0,0,0,1,0);Massless=true;Parent=Object_0;Anchored=true;Shape='Cylinder';
- Material='SmoothPlastic';Size=Vector3.new(.199999422,.230000004,.230000004);});
- Instance_2("Part",{Color=Color3.new(.0666667,.0666667,.0666667);CFrame=CFrame.new(.400000006,
- 4.19999981,15.3500013,1,0,0,0,1,0,0,0,1);Massless=true;Parent=Object_0;Anchored=true;
- Shape='Ball';Material='SmoothPlastic';Size=Vector3.new(.149999619,.149999619,.149999619);});
- Instance_2("Part",{Color=Color3.new(.8,.556863,.411765);CFrame=CFrame.new(.5,4.10000038,
- 17.0999851,1,0,0,0,1,-3.87430191e-07,0,3.87430191e-07,1);Massless=true;Parent=Object_0;
- Anchored=true;Material='SmoothPlastic';Size=Vector3.new(.230000004,.200000018,.599999905);});
- Instance_2("Part",{Color=Color3.new(.929412,.917647,.917647);CFrame=CFrame.new(.5,4.10000038,
- 16.2999954,1,0,0,0,1,-3.87430191e-07,0,3.87430191e-07,1);Massless=true;Parent=Object_0;
- Anchored=true;Material='SmoothPlastic';Size=Vector3.new(.224999994,.200000018,2.20000005);});
- Instance_2("Part",{Color=Color3.new(.929412,.917647,.917647);CFrame=CFrame.new(.5,3.5999999,
- 16.7000008,1,0,0,0,1,-3.87430191e-07,0,3.87430191e-07,1);Massless=true;Parent=Object_0;
- Anchored=true;Material='SmoothPlastic';Size=Vector3.new(.150000006,.199999988,.600000024);});
- local handle=Instance_2("Part",{Color=Color3.new(.929412,.917647,.917647);CFrame=CFrame.new(
- .5,3.54924035,17.0413151,1,0,0,0,.984807849,.173647806,0,-.173647806,.984807849);
- Massless=true;Parent=Object_0;Anchored=true;Material='SmoothPlastic';Size=Vector3.new(
- .150000006,1.10000002,.299999923);});Object_0.PrimaryPart=handle;
- for _,v in pairs(Object_0:GetChildren())do local _,a=pcall(function()
- Instance_2('WeldConstraint',{Parent=Object_0;Part0=v;Part1=Object_0.PrimaryPart});
- v.Anchored=false;end);end;return Object_0;end)();
- local Left_Hip,Left_Shoulder,Neck,Right_Hip,Right_Shoulder,RootJoint,Gun_Weld,Gun_Point =
- (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',Instance_2('Weld',{Parent=Container;Part0=
- Felipe_Gun.PrimaryPart;Part1=Right_Arm;C0=CFrame.new(-.00085234642,-.215278387,
- .934501648,.999997854,8.94069032e-08,1.69351227e-14,-2.07004156e-08,-.173647717,
- -.984802902,1.17398145e-07,.984808505,-.173646748);C1=CFrame.new(0,0,0,1,0,0,0,1,
- 0,0,0,1)}),(function()for _,a in pairs(Felipe_Gun:GetChildren())do local b=(function()
- if a.Name~='b'then return;end;return a;end)();if b then return b;end;end;end)();
- 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={
- ['Right Arm']={Idle={C0=CFrame.new(1,.5,0,-4.37113883e-08,0,1,0,.99999994,0,-1,0,
- -4.37113883e-08);C1=CFrame.new(-.5,.5,0,-4.37113883e-08,0,1,0,.99999994,0,-1,0,
- -4.37113883e-08);};Equipped={C0=CFrame.new(1,.5,0,-4.37113883e-08,0,1,0,
- .99999994,0,-1,0,-4.37113883e-08);C1=CFrame.new(-.5,.49999997,0,-4.37113847e-08,
- 0,.99999994,-1,-4.37113812e-08,-4.37113883e-08,4.37113883e-08,-.999999821,
- 1.91068547e-15);};};
- },
- {['Right Arm']='Idle';};
- local function Server_Handler(pl,...)local args={...};if pl~=player then return;end;
- if args[1]=='KD'then if args[2]=='q'then
- CFrame_Mode["Right Arm"]=(CFrame_Mode["Right Arm"]=='Idle'and'Equipped')or'Idle';
- end;elseif args[1]=='MB_Down'then
- if CFrame_Mode["Right Arm"]=='Equipped'then
- local Target_CF,Target_Part=RF:InvokeClient(player,'Get_Mouse_CF'),
- RF:InvokeClient(player,'Get_Mouse_Target');
- if not Target_CF or not Target_Part then return;end;
- local Bullet_Length=math.abs((Target_CF.Position-(Gun_Point.CFrame*CFrame.new(
- Gun_Point.Size.X/2,0,0)).Position).Magnitude);
- Damage(Target_Part,25,function()local a=Target_Part:FindFirstAncestorWhichIsA'Model';
- if not a then return;end;local b=a:FindFirstChildWhichIsA'Humanoid';
- if not b or a:FindFirstChild('f_dead',true)then return;end;if b.Health>0 then return;end;
- Instance_2('Sound',{Name='f_dead';
- SoundId='rbxassetid://1433658125';Volume=1;Parent=Target_Part;}):Play();end);
- local Beam=Instance_2('Part',{Material='SmoothPlastic';Anchored=true;CanCollide
- =false;Massless=true;BrickColor=BrickColor.new("Medium stone grey");
- Shape='Cylinder';Size=Vector3.new(Bullet_Length,.1,.1);CFrame=CFrame.new(
- (Gun_Point.CFrame*CFrame.new(Gun_Point.Size.X/2,0,0)).Position,Target_CF.Position)*
- CFrame.Angles(0,math.rad(-90),0)*CFrame.new(Bullet_Length/-2,0,0);Transparency=0;
- Parent=Container;});local Pew=Instance_2('Sound',{SoundId=
- 'rbxassetid://2220756150';TimePosition=.6;Volume=2.5;Parent=Container});Pew:Play();
- local bullet_hole=Instance_2('Part',{Anchored=false;CanCollide=false;
- Massless=true;Size=Vector3.new(.4,.8,.6);Position=Target_CF.Position;
- Orientation=Beam.Orientation+Vector3.new(0,90,0);Parent=Target_Part;});
- Instance_2('SpecialMesh',{MeshId='rbxassetid://4125549274';Scale=Vector3.new(
- .25,.25,.25);TextureId='rbxassetid://4125544592';Parent=bullet_hole});
- Instance_2('WeldConstraint',{Part0=bullet_hole;Part1=Target_Part;Parent=
- bullet_hole;});
- local a=Instance.new('BodyVelocity',bullet_hole);a.MaxForce=Vector3.new(0,4000,0);a.Velocity=Vector3.new(0,4,0)
- wait(.25);if Beam then Remove(Beam);end;if Pew then Remove(Pew);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.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 e[1]or.5),clerp(c.C1,e.C1,e[3]or e[1]or.5);end;
- end;end;end;end;end;
- Humanoid.MaxHealth=math.huge;Humanoid.Health=Humanoid.MaxHealth;
- RE.OnServerEvent:Connect(Server_Handler);RF.OnServerInvoke=Server_Handler;
- cwrap(function()while true do Animation(CFrames,CFrame_Mode);wait();end;end);
- end;
- Set_Up_Function'FindPlayer';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement