Advertisement
SyntaxIsHere

Untitled

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