Advertisement
TryHarderNoob

ROBLOX UZI Script (Change nothing!)

Jun 4th, 2016
497
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.24 KB | None | 0 0
  1. --Enjoy little skids :)
  2. Instance.new("Shirt",c).ShirtTemplate="rbxassetid://278316781"
  3. Instance.new("Pants",c).PantsTemplate="rbxassetid://187135174"
  4. dot = false
  5. des = false
  6. local ChatService = game:GetService("Chat")
  7. local player = game.Players.LocalPlayer
  8. char = player.Character
  9. hum = char.Humanoid
  10. torso = hum.Torso
  11. lig = Instance.new("PointLight",player.Character.Torso)
  12. lig.Color=Color3.new(0,255,255)
  13. m=player:GetMouse()
  14. bb = Instance.new("BillboardGui",player.Character.Head)
  15. bb.Enabled = true
  16. bb.AlwaysOnTop = true
  17. bb.Size = UDim2.new(0,200,00,50)
  18. bb.StudsOffset = Vector3.new(0,1,0)
  19. gui=Instance.new("TextBox",bb)
  20. gui.Text = "Seth: "
  21. gui.Size = UDim2.new(0,400,0,100)
  22. gui.Position=UDim2.new(0,-95,0,-85)
  23. gui.TextColor3 = Color3.new(255,255,255)
  24. gui.BackgroundColor3=Color3.new(0,0,0) --another
  25. gui.TextWrapped = true
  26. gui.TextScaled = true
  27. gui.FontSize = "Size14"
  28. gui.TextXAlignment = "Left"
  29. gui.TextYAlignment = "Top"
  30. gui.Visible = false
  31. gui.BorderColor3 = Color3.new(255,255,255)
  32. gui.BorderSizePixel = 5
  33.  
  34. gui1=Instance.new("TextButton",bb)
  35. gui1.Position=UDim2.new(0,5,0,-43)
  36. gui1.Size = UDim2.new(0,190,0,51)
  37. gui1.Text = ""
  38.  
  39. gui1.TextColor3 = Color3.new(255,255,255)
  40. gui1.BackgroundColor3=Color3.new(0,0,0) --shotCUT
  41. gui1.BackgroundTransparency = 1
  42.  
  43. gui1.Visible = false
  44. img = Instance.new("ImageLabel",bb)
  45. img.Size = UDim2.new(0,0,0,0)
  46. img.Position = UDim2.new(0,10,0,-41)
  47. img.BackgroundTransparency = 1
  48. img.BorderColor3 = Color3.new(0,0,0)
  49. img.Visible = false
  50. asd = Instance.new("Sound",player.Character.Torso)
  51. asd.SoundId = "http://www.roblox.com/asset/?id = 434571966"
  52. asd.Pitch=0.85
  53.  
  54. asd1 = Instance.new("Sound",player.Character.Torso)
  55. asd1.SoundId = "http://www.roblox.com/asset/?id = 0"
  56.  
  57. asd2 = Instance.new("Sound",player.Character.Torso)
  58. asd2.SoundId = "http://www.roblox.com/asset/?id = 0"
  59. asd2.Looped = true
  60. asd3 = Instance.new("Sound",player.Character.Torso)
  61. asd3.SoundId = "http://www.roblox.com/asset/?id = 154200304"
  62. asd3.Looped = true
  63. asd4 = Instance.new("Sound",player.Character.Torso)
  64. asd4.SoundId = "http://www.roblox.com/asset/?id = 149168123"
  65. asd4.Looped = false
  66. asd5 = Instance.new("Sound",player.Character.Torso)
  67. asd5.SoundId = "http://www.roblox.com/asset/?id = 318625250"
  68. asd5.Looped = true
  69. dunkd = Instance.new("Sound",player.Character.Torso)
  70. dunkd.SoundId = "http://www.roblox.com/asset/?id = 261303790"
  71. dunkd.Pitch=7
  72. dunkd.Looped = false
  73. function play(play)
  74. asd:Play()
  75. asd1:Play()
  76. end
  77. eye = Instance.new("Part",player.Character)
  78. eye.BrickColor = BrickColor.new("Toothpaste")
  79. eye.Material = "Neon"
  80. eye.FormFactor = 3
  81. eye.Shape = "Ball"
  82. eye.Size = Vector3.new(0.37,0.37,0.1)
  83. weld = Instance.new("Weld",eye)
  84. weld.Part0 = eye
  85. weld.Part1 = player.Character.Head
  86. weld.C0 = CFrame.new(0.1,-0.2,0.45)
  87. eye.Transparency = 1
  88. -- listen for their chatting
  89. player.Chatted:connect(function(message)
  90. a = string.len(message)
  91. gui.Text = "Seth: "
  92. gui.Visible = true
  93. gui1.Visible = true
  94. des = false
  95. img.Visible = false
  96. print(a)
  97. if dot == false then
  98. for i = 1,string.len(message) do wait(0.07)
  99. gui.Text =gui.Text..message:sub(i,i)
  100.  
  101. play()
  102. end
  103. end
  104.  
  105. des = true
  106. end)
  107. m.KeyDown:connect(function(k)
  108. if k == "g" then
  109. asd2:Play()
  110. eye.Transparency = 1
  111.  
  112. end
  113. end)
  114. m.KeyDown:connect(function(k)
  115. if k == "p" then
  116. eye.Transparency = 1
  117. asd3:Play()
  118. end
  119. end)
  120. m.KeyDown:connect(function(k)
  121. if k == "r" then
  122. eye.Transparency = 1
  123. asd4:Play()
  124. end
  125. end)
  126. m.KeyDown:connect(function(k)
  127. if k == "q" then
  128. eye.Transparency = 1
  129. asd5:Play()
  130. end
  131. end)
  132. m.KeyDown:connect(function(k)
  133. if k == "z" then
  134.  
  135. img.Image = "rbxassetid://"
  136. end
  137. end)
  138. m.KeyDown:connect(function(k)
  139. if k == "c" then
  140. cool = Instance.new("Sound",player.Character.Torso)
  141. cool.SoundId = "http://www.roblox.com/asset/?id = 392201535"
  142. wait()
  143. cool:Play()
  144. human.Health = human.Health - math.random(150,300) --cool short
  145. end
  146. end)
  147. m.KeyDown:connect(function(k)
  148. if k == "n" then
  149. healy = Instance.new("Sound",player.Character.Torso)
  150. healy.SoundId = "http://www.roblox.com/asset/?id = 435185931"
  151. wait()
  152. healy:Play()
  153. human.Health = human.Health + 300 --cool short
  154. gui.Visible = true
  155. wait()
  156. gui.Text = "* You ate the PopCorn. * Pop secret! * You recovered 300 HP!"
  157. wait(5)
  158. gui.Visible = false
  159. end
  160. end)
  161. m.KeyDown:connect(function(k)
  162. if k == "b" then
  163. healy = Instance.new("Sound",player.Character.Torso)
  164. healy.SoundId = "http://www.roblox.com/asset/?id = 435185931"
  165. wait()
  166. healy:Play()
  167. human.Health = human.Health + 600 --cool short
  168. gui.Visible = true
  169. wait()
  170. gui.Text = "* You ate the FaceSteak. * You like it alot... * You recovered 600 HP!"
  171. wait(5)
  172. gui.Visible = false
  173. end
  174. end)
  175. m.KeyDown:connect(function(k)
  176. if k == "m" then
  177. healy = Instance.new("Sound",player.Character.Torso)
  178. healy.SoundId = "http://www.roblox.com/asset/?id = 435185931"
  179. wait()
  180. healy:Play()
  181. human.Health = 7500 --cool short
  182. gui.Visible = true
  183. wait()
  184. gui.Text = "* You ate the Spaghetti. Slurp! * Your HP was maxed out."
  185. wait(5)
  186. gui.Visible = false
  187. end
  188. end)
  189. m.KeyDown:connect(function(k)
  190. if k == "v" then
  191. healy = Instance.new("Sound",player.Character.Torso)
  192. healy.SoundId = "http://www.roblox.com/asset/?id = 435185931"
  193. wait()
  194. healy:Play()
  195. human.Health = human.Health + 750 --cool short
  196. gui.Visible = true
  197. wait()
  198. gui.Text = "* You drank a MrPibb. Ahhh... * You recovered 750 HP!"
  199. wait(5)
  200. gui.Visible = false
  201. end
  202. end)
  203. m.KeyDown:connect(function(k)
  204. if k == "h" then
  205. img.Image = "rbxassetid://"
  206. end
  207. end)
  208. m.KeyDown:connect(function(k)
  209. if k == "j" then
  210. img.Image = "rbxassetid://"
  211. end
  212. end)
  213. m.KeyDown:connect(function(k)
  214. if k == "l" then
  215. img.Image = "rbxassetid://"
  216. print("You take your very last breath...")
  217. asdd = Instance.new("Sound",player.Character.Torso)
  218. asdd.SoundId = "http://www.roblox.com/asset/?id = 392201535"
  219. asdd.Looped = false
  220. spawn(function()
  221. wait()
  222. asdd:Play()
  223. human.Health = 1
  224. human.Parent["Right Arm"].BrickColor = BrickColor.new("Really red")
  225. end)
  226. wait(0.1)
  227. asddd = Instance.new("Sound",player.Character.Torso)
  228. asddd.SoundId = "http://www.roblox.com/asset/?id = 186311262"
  229. asddd.Looped = false
  230. spawn(function()
  231. wait()
  232. asddd:Play()
  233. end)
  234. wait(30)
  235. asdded = Instance.new("Sound",player.Character.Torso)
  236. asdded.SoundId = "http://www.roblox.com/asset/?id = 387187707"
  237. asdded.Looped = false
  238. spawn(function()
  239. wait()
  240. asdded:Play()
  241. end)
  242. char:BreakJoints()
  243. end
  244. end)
  245. m.KeyDown:connect(function(k)
  246. if k == "x" then
  247. if des == true then
  248. gui.Visible = false
  249. gui.Text = "Seth: "
  250. gui1.Visible = false
  251. img.Visible = false
  252. end
  253. end
  254. end)
  255. m.KeyDown:connect(function(k)
  256. if k == "f" then
  257. asd1:Stop()
  258. asd3:Stop()
  259. asd2:Stop()
  260. asd4:Stop()
  261. dunkd:Stop()
  262. eye.Transparency = 1
  263. asd5:Stop()
  264. end
  265. end)
  266. m.KeyDown:connect(function(k)
  267. if k == "u" then
  268. dunkd = Instance.new("Sound",player.Character.Torso)
  269. dunkd.SoundId = "http://www.roblox.com/asset/?id = 261303790"
  270. dunkd.Pitch=7
  271. dunkd.Looped = false
  272. dunkd:Play()
  273. gui.Text = "SHUT THE FUCK UP YOU CUNT"
  274. end
  275. end)
  276. m.KeyDown:connect(function(k)
  277. if k == "y" then
  278. img.Image = "rbxassetid://"
  279. end
  280. end)
  281. --------------------------------------------------------------------------
  282. wait(0.001);
  283.  
  284. --------------------------------------------------------------------------------------
  285.  
  286. _clear=function()
  287. local c={char;bag;gui;};
  288. for i=1,#c do
  289. local c=c[i]:children();
  290. for i=1,#c do
  291. if(c[i].Name==name)then
  292. c[i].Parent=nil;
  293. end;
  294. end;
  295. end;
  296. local n=name..user.Name;
  297. local c=workspace:children();
  298. for i=1,#c do
  299. if(c[i].Name==n)then
  300. c[i].Parent=nil;
  301. end;
  302. end;
  303. end;
  304.  
  305. _valid_key=function(object,key)
  306. return object[key],key;
  307. end;
  308.  
  309. _new=function(class)
  310. return function(props)
  311. if(type(list_base_props)=='table')then
  312. for i,v in next,list_base_props do
  313. if(props[i]==nil)then
  314. props[i]=v;
  315. end;
  316. end;
  317. end;
  318.  
  319. local object=class;
  320.  
  321. if(type(class)=='string')then
  322. object=Instance.new(class:sub(1,1):upper()..class:sub(2));
  323. end;
  324.  
  325. local parent=props[1];
  326. props[1]=nil;
  327.  
  328. for i,v in next,props do
  329. local load,res,key=pcall(_valid_key,object,i:sub(1,1):upper()..i:sub(2));
  330. if(not load)then
  331. load,res,key=pcall(_valid_key,object,i);
  332. end;
  333.  
  334. if(key)then
  335. t=type(res);
  336. s=tostring(res);
  337. if(t=='userdata'and s=='Signal '..key)then
  338. if(type(v)=='table')then
  339. for i=1,#v do
  340. res:connect(v[i]);
  341. end;
  342. else
  343. res:connect(v);
  344. end;
  345. else
  346. object[key]=v;
  347. end;
  348. end;
  349. end;
  350.  
  351. if(parent)then
  352. object.Parent=parent;
  353. end;
  354.  
  355. return object;
  356. end;
  357. end;
  358.  
  359. _RGB=function(r,g,b)
  360. return Color3.new(r/255,g/255,b/255);
  361. end;
  362.  
  363. _copy=function(o)
  364. local def=o.archivable;
  365. o.archivable=true;
  366. local c=o:clone();
  367. o.archivable=def;
  368. return c;
  369. end;
  370.  
  371. _hum=function(char)
  372. local hum=char:findFirstChild'Humanoid';
  373. if(not hum or hum.className~='Humanoid')then
  374. local c=char:children();
  375. for i=1,#c do
  376. if(c[i].className=='Humanoid')then
  377. return c[i];
  378. end;
  379. end;
  380. else
  381. return hum;
  382. end;
  383. end;
  384.  
  385. _hum_tag=function(hum)
  386. local c=hum:findFirstChild'creator'or Instance.new('ObjectValue',hum);
  387. c.Name='creator';
  388. c.Value=user;
  389. if(hum.Health==0 and not hum:findFirstChild'killed')then
  390. Instance.new('BoolValue',hum).Name='killed';
  391. bullets.clip=bullets.clip+10;
  392. end;
  393. end;
  394.  
  395. _hum_dam=function(hum,dam,percent)
  396. hum.Health=hum.Health-(percent and hum.MaxHealth*(dam*0.01)or dam);
  397. if(hum.Health<=hum.MaxHealth*0.1)then
  398. _hum_tag(hum);
  399. end;
  400. end;
  401.  
  402. _ray=function(v0,v1,i)
  403. local mag=(v0-v1).magnitude;
  404. local ray=Ray.new(v0,(v1-v0).unit*(mag>999 and 999 or mag));
  405.  
  406. return(type(i)=='table'and workspace.FindPartOnRayWithIgnoreList or workspace.FindPartOnRay)(workspace,ray,i);
  407. end;
  408.  
  409. _must=function(v0,v1,i)
  410. local hit,pos=_ray(v0,v1,i);
  411. return not hit and mouse.target or hit,pos;
  412. end;
  413.  
  414. _cframe=function(x,y,z,r0,r1,r2)
  415. return CFrame.Angles(
  416. math.rad(r0 or 0),
  417. math.rad(r1 or 0),
  418. math.rad(r2 or 0)
  419. )*CFrame.new(x,y,z);
  420. end;
  421.  
  422. _update=function()
  423. if(bool_active and not screen.Parent)then
  424. screen.Parent=gui;
  425. elseif(not bool_active and screen.Parent)then
  426. screen.Parent=nil;
  427. end;
  428. end;
  429.  
  430. _light=function(v0,v1)
  431. local mag=(v0-v1).magnitude;
  432. local len=math.random(2,7);
  433. len=len>mag/2 and mag/2 or len;
  434.  
  435. local light=_new'part'{
  436. cFrame=CFrame.new(v0,v1);
  437. size=Vector3.new(1,1,1);
  438. color=_RGB(255,255,0);
  439. anchored=true;
  440. inv;
  441. };
  442. _new'blockMesh'{
  443. scale=Vector3.new(0.2,0.2,len);
  444. offset=Vector3.new(0,0,-len/2);
  445. light;
  446. };
  447.  
  448. local bb=_new'billboardGui'{
  449. size=UDim2.new(2,0,2,0);
  450. adornee=light;
  451. light;
  452. };
  453. _new'imageLabel'{
  454. image=url:format(109101526);
  455. backgroundTransparency=1;
  456. size=UDim2.new(1,0,1,0);
  457. bb;
  458. };
  459.  
  460. _rem(light,0.15);
  461. end;
  462.  
  463. _rem=function(object,del)
  464. if(del)then
  465. delay(del,function()
  466. if(object.Parent)then
  467. object.Parent=nil;
  468. end;
  469. end);
  470. else
  471. pcall(function()
  472. if(object.Parent)then
  473. object.Parent=nil;
  474. end;
  475. end);
  476. end;
  477. end;
  478.  
  479. _blood=function(pos,count)
  480. for i=1,count do
  481. local p=_new'part'{
  482. rotVelocity=Vector3.new(math.random(),math.random(),math.random())*50;
  483. position=pos+Vector3.new(math.random(),math.random(),math.random());
  484. velocity=Vector3.new(math.random(),math.random(),math.random())*50;
  485. size=Vector3.new(math.random(),math.random(),math.random())/3;
  486. color=_RGB(255,0,0);
  487. transparency=0.5;
  488. canCollide=true;
  489. bottomSurface=0;
  490. topSurface=0;
  491. formFactor=3;
  492. locked=true;
  493. inv;
  494. };
  495. delay(5,function()
  496. p.Parent=nil;
  497. end);
  498. end;
  499. end;
  500.  
  501. _make_hue=function()
  502. h_hue=_new'part'{
  503. size=Vector3.new(0.25,1.8,0.35);
  504. color=_RGB(100,100,100);
  505. formFactor=3;
  506. name='hue';
  507. handle;
  508. };
  509. hh_weld=_new'weld'{
  510. c1=_cframe(0,0.5,0);
  511. part0=handle;
  512. part1=h_hue;
  513. handle;
  514. };
  515. end;
  516.  
  517. _shot=function(v0,v1)
  518. if(not time_left)then
  519. time_left=0;
  520. end;
  521. if(time_left>time())then
  522. return nil;
  523. else
  524. time_left=time()+math.random(1,10)/100;
  525. end;
  526.  
  527. if(bullets.current<1)then
  528. local tick_sound=head:findFirstChild'tick_sound'or _new'sound'{
  529. soundId='rbxasset://sounds/SWITCH3.wav';
  530. name='tick_sound';
  531. volume=0.2;
  532. pitch=2;
  533. head;
  534. };
  535. tick_sound:play();
  536. if(bullets.clip>0)then
  537. time_left=time()+2;
  538. h_hue:breakJoints();
  539. h_hue.CanCollide=true;
  540. h_hue.Velocity=(h_hue.CFrame*CFrame.new(0,5,0)).lookVector*10;
  541. _rem(h_hue,10);
  542. delay(1.9,function()
  543. _make_hue();
  544. local got=(bullets.clip>bullets.maximum and
  545. bullets.maximum or
  546. bullets.clip)-bullets.current;
  547.  
  548. bullets.clip=bullets.clip-got;
  549. bullets.current=bullets.current+got;
  550. end);
  551. end;
  552. return nil;
  553. else
  554. bullets.current=bullets.current-1;
  555.  
  556. h_weld.C1=_cframe(0,0.75,0,
  557. -math.random(1000,1100)/10,180,0);
  558. d_weld.C1=_cframe(0,-0.25,0.3);
  559.  
  560. lightstuff.Visible=true;
  561. delay(0.1,function()
  562. lightstuff.Visible=false;
  563. end);
  564.  
  565. _rem(_new'part'{
  566. velocity=CFrame.new(drag.Position,(drag.CFrame*CFrame.new(-4,-5,0)).p).lookVector*10;
  567. cFrame=drag.CFrame*CFrame.new(-0.5,0,0);
  568. size=Vector3.new(0.1,0.1,0.4);
  569. color=_RGB(200,200,0);
  570. material='Slate';
  571. canCollide=true;
  572. formFactor=3;
  573. inv;
  574. },5);
  575. delay(0.1,function()
  576. d_weld.C1=_cframe(0,-0.25,0);
  577. if(bool_active)then
  578. h_weld.C1=h_weld_cf_active;
  579. end;
  580. end)
  581. end;
  582.  
  583. local hit,pos=_must(v0,v1,char);
  584.  
  585. shot_sound:play();
  586.  
  587. _light(v0,v1);
  588.  
  589. if(not hit)then return nil;end;
  590.  
  591. if(hit.Parent.className=='Hat')then
  592. hit:breakJoints();
  593. hit.CanCollide=true;
  594. hit.Velocity=CFrame.new(v0,pos).lookVector*math.random(30,50);
  595. hit.RotVelocity=Vector3.new(math.random(1,90),math.random(1,90),math.random(1,90));
  596. else
  597. local hum=_hum(hit.Parent);
  598. if(not hum)then
  599. if(hit.Anchored==false and hit.Size.magnitude<4)then
  600. hit:breakJoints();
  601. hit.CanCollide=true;
  602. end;
  603. else
  604. _hum_dam(hum,math.random(4,6));
  605. _blood(pos,math.random(3,6));
  606. hit.RotVelocity=Vector3.new(math.random(1,90),math.random(1,90),math.random(1,90))/6;
  607. if(hit.Name=='Head')then
  608. hum.Health=0;
  609. _blood(pos,math.random(3,6));
  610. delay(0.001,function()
  611. _new(workspace:FindFirstChild'head_shot'or'sound'){
  612. pitch=math.random(70,100)*0.01;
  613. soundId=url:format(1876552);
  614. name='head_shot';
  615. workspace;
  616. }:play();
  617. end);
  618. _hum_tag(hum);
  619. _rem(_new'part'{
  620. cFrame=CFrame.new(v0,pos)*CFrame.new(0,0,-(v0-pos).magnitude*0.5);
  621. size=Vector3.new(0.1,0.1,(v0-pos).magnitude);
  622. color=torso.Color;
  623. transparency=0.5;
  624. canCollide=false;
  625. bottomSurface=0;
  626. anchored=true;
  627. formFactor=3;
  628. topSurface=0;
  629. inv;
  630. },30);
  631. hit.Parent=nil;
  632. for b=0,1 do
  633. for a=0,1 do
  634. for i=0,1 do
  635. _rem(_new'part'{
  636. velocity=CFrame.new(v0,pos).lookVector*20;
  637. cFrame=hit.CFrame*CFrame.new(i,-b,a);
  638. size=Vector3.new(0.5,0.5,0.5);
  639. color=_RGB(255,255,255);
  640. bottomSurface=0;
  641. canCollide=true;
  642. transparency=0;
  643. formFactor=3;
  644. topSurface=0;
  645. hum;
  646. },30);
  647. end;
  648. end;
  649. end;
  650. end;
  651. end;
  652. end;
  653. end;
  654.  
  655. ----------------------------------------------------------------------------------------
  656.  
  657. _cf_select=function(mouse)
  658. mouse.Icon=url:format(109111387);--108999296
  659. bool_active=true;
  660.  
  661. local arm=char:findFirstChild'Right Arm';
  662. local weld=torso:findFirstChild'Right Shoulder';
  663. if(arm and weld)then
  664. h_weld.Part0=arm;
  665. h_weld.C1=h_weld_cf_active;
  666.  
  667. weld.Part1=nil;
  668. weld.Part0=nil;
  669.  
  670. weld=_new(torso:findFirstChild'right_arml'or'weld'){
  671. name='right_arml';
  672. part0=torso;
  673. part1=arm;
  674. torso;
  675. };
  676.  
  677. arml=(arml or 0)+1;
  678. local alv=arml;
  679. local gyro=torso:findFirstChild'p_gyro'or Instance.new('BodyGyro',torso);
  680. gyro.maxTorque=Vector3.new(5e5,5e5,5e5);
  681. gyro.P=30000;
  682. gyro.D=1000;
  683. gyro.Name='p_gyro';
  684. repeat
  685. local pos=mouse.hit.p;
  686. local val,valp,p0,p1,p2,hitpos,cj,c0,c1;
  687.  
  688. val=-math.pi*0.5;
  689. valp=val*-1;
  690. p0=torso.CFrame;
  691. p0=p0+((p0*CFrame.Angles(valp,0,0)).lookVector*0.5)+(p0*CFrame.Angles(0,val,0)).lookVector;
  692. p1=p0+((p0.p-pos).unit*-2);
  693. p2=CFrame.new((p0.p+p1.p)/2,p0.p)*CFrame.Angles(val,val,0);
  694. hitpos=torso.Position;
  695. cj=CFrame.new(hitpos);
  696. c0=torso.CFrame:inverse()*cj;
  697. c1=p2:inverse()*cj;
  698. weld.C0=c0;
  699. weld.C1=c1;
  700.  
  701. gyro.cframe=CFrame.new(torso.Position,Vector3.new(pos.X,torso.Position.Y,pos.Z));
  702.  
  703. wait(0.001);
  704. until arml~=alv;
  705. gyro.Parent=nil;
  706. end;
  707. end;
  708.  
  709. _cf_deselect=function()
  710. bool_active=false;
  711. arml=(arml or 0)+1;
  712. loop_shot=(loop_shot or 0)+1;
  713.  
  714. h_weld.Part0=torso;
  715. h_weld.C1=h_weld_cf_inactive;
  716.  
  717. local weld=torso:findFirstChild'right_arml';
  718. if(weld)then
  719. weld.Part1=nil;
  720. weld.Part0=nil;
  721. end;
  722. local arm=char:findFirstChild'Right Arm';
  723. local weld=torso:findFirstChild'Right Shoulder';
  724. if(arm and weld)then
  725. weld.Part0=torso;
  726. weld.Part1=arm;
  727. end;
  728. end;
  729.  
  730. _cf_mouse=function(event,fun)
  731. mouse[event:sub(1,1):upper()..event:sub(2)]:connect(function(...)
  732. if(bool_active)then
  733. fun(...);
  734. end;
  735. end);
  736. end;
  737.  
  738. ----------------------------------------------------------------------------------------
  739.  
  740. do
  741. local main=getfenv(0);
  742. local c=game:children();
  743. local check=function(v)
  744. if(v.className~=''and v.className~='Instance'and game:service(v.className))then
  745. main[v.className:sub(1,1):lower()..v.className:sub(2)]=v;
  746. end;
  747. end;
  748. for i=1,#c do
  749. pcall(check,c[i]);
  750. end;
  751. end;
  752.  
  753. ----------------------------------------------------------------------------------------
  754.  
  755. bullets={
  756. maximum=51111111111111111111111111110;
  757. current=511111111111111111111111111111110;
  758. clip=501111111111111111111111111111111*4;
  759. };
  760.  
  761. list_base_props={
  762. backgroundColor3=_RGB(0,0,0);
  763. textColor3=_RGB(200,200,200);
  764. borderSizePixel=0;
  765. color=_RGB(0,0,0);
  766. archivable=false;
  767. canCollide=false;
  768. bottomSurface=0;
  769. topSurface=0;
  770. formFactor=0;
  771. locked=true;
  772. };
  773.  
  774. ----------------------------------------------------------------------------------------
  775.  
  776. user=players.localPlayer;
  777. mouse=user:getMouse();
  778. char=user.Character;
  779. gui=user.PlayerGui;
  780. bag=user.Backpack;
  781. torso=char.Torso;
  782. head=char.Head;
  783. hum=_hum(char);
  784.  
  785. url='rbxassetid://%d';
  786. name='dev-uzi';
  787.  
  788. h_weld_cf_inactive=_cframe(0.35,0.5,0.5,
  789. 0,90,-70);
  790. h_weld_cf_active=_cframe(0,0.75,0,
  791. -110,180,0);
  792.  
  793. assert(hum,'humanoid is not found');
  794.  
  795. ----------------------------------------------------------------------------------------
  796.  
  797. _clear();
  798.  
  799. ----------------------------------------------------------------------------------------
  800.  
  801. _cf_mouse('button1Down',function()
  802. loop_shot=(loop_shot or 0)+1;
  803. local vers=loop_shot;
  804. local step=runService.Stepped;
  805. repeat
  806. _shot((tube.CFrame*CFrame.new(0,0,tube.Size.Z*0.5)).p,mouse.hit.p);
  807. step:wait();--wait(0.001);
  808. until vers~=loop_shot;
  809. end);
  810.  
  811. _cf_mouse('button1Up',function()
  812. loop_shot=(loop_shot or 0)+1;
  813. end);
  814.  
  815. _cf_mouse('move',function()
  816. cross_f.Position=UDim2.new(0,mouse.X-11,0,mouse.Y-11);
  817. end);
  818.  
  819. _cf_mouse('keyDown',function(k)
  820. if(k=='r')then
  821. if(bullets.clip>0 and time_left<=time())then
  822. local got=(bullets.clip>bullets.maximum and
  823. bullets.maximum or
  824. bullets.clip)-bullets.current;
  825.  
  826. bullets.clip=bullets.clip-got;
  827. bullets.current=bullets.current+got;
  828. if(got~=0)then
  829. time_left=time()+2;
  830. end;
  831. end;
  832. end;
  833. end);
  834.  
  835. ----------------------------------------------------------------------------------------
  836.  
  837. screen=_new'screenGui'{
  838. name=name;
  839. };
  840.  
  841. cross_f=_new'frame'{
  842. size=UDim2.new(0,21,0,21);
  843. backgroundTransparency=1;
  844. screen;
  845. };
  846.  
  847. for i=0,1 do
  848. _new'frame'{
  849. position=UDim2.new(0,13*i,0,11);
  850. size=UDim2.new(0,10,0,1);
  851. cross_f;
  852. };
  853. end;
  854.  
  855. for i=0,1 do
  856. _new'frame'{
  857. position=UDim2.new(0,11,0,13*i);
  858. size=UDim2.new(0,1,0,10);
  859. cross_f;
  860. };
  861. end;
  862.  
  863. ----------------------------------------------------------------------------------------
  864.  
  865. shot_sound=_new(head:findFirstChild'282719743'or'sound'){
  866. soundId=url:format(282719743);
  867. pitch=1;
  868. head;
  869. };
  870. if(shot_sound.Name~='282719743')then
  871. shot_sound.Name='282719743';
  872. shot_sound:play();
  873. end;
  874.  
  875. bin=_new'hopperBin'{
  876. deselected=_cf_deselect;
  877. selected=_cf_select;
  878. name=name;
  879. bag;
  880. };
  881.  
  882. inv=_new'model'{
  883. name=name;
  884. char;
  885. };
  886.  
  887. handle=_new'part'{
  888. size=Vector3.new(0.3,1.3,0.4);
  889. color=_RGB(140,140,140);
  890. name='handle';
  891. formFactor=3;
  892. inv;
  893. touched=function(hit)
  894. if(hit.Parent.className=='Model')then
  895. local hum=_hum(hit.Parent);
  896. if(hum~=nil)then
  897. _hum_dam(hum,handle.Velocity.magnitude);
  898. end;
  899. end;
  900. end;
  901. };
  902. h_weld=_new'weld'{
  903. c1=h_weld_cf_inactive;
  904. part1=handle;
  905. part0=torso;
  906. handle;
  907. };
  908. _make_hue();
  909.  
  910. h_part=_new'part'{
  911. size=Vector3.new(0.4,0.4,1.4);
  912. color=_RGB(140,140,140);
  913. name='handle';
  914. formFactor=3;
  915. handle;
  916. };
  917. hp_weld=_new'weld'{
  918. c1=_cframe(0,-1.3/2,-0.3,
  919. 20,0,0);
  920. part0=handle;
  921. part1=h_part;
  922. handle;
  923. };
  924.  
  925. drag=_new'part'{
  926. size=Vector3.new(0.5,0.45,1.5);
  927. color=_RGB(100,100,100);
  928. name='handle';
  929. formFactor=3;
  930. handle;
  931. };
  932. d_weld=_new'weld'{
  933. c1=_cframe(0,-0.25,0);
  934. part0=h_part;
  935. part1=drag;
  936. handle;
  937. };
  938.  
  939. tube=_new'part'{
  940. size=Vector3.new(0.2,0.2,1.5);
  941. color=_RGB(0,0,0);
  942. name='handle';
  943. formFactor=3;
  944. handle;
  945. };
  946. t_weld=_new'weld'{
  947. c1=_cframe(0,-0.3,-0.1);
  948. part0=h_part;
  949. part1=tube;
  950. handle;
  951. };
  952.  
  953. bullets_label=_new'textLabel'{
  954. textStrokeColor3=_RGB(0,0,0);
  955. textColor3=_RGB(200,200,200);
  956. textStrokeTransparency=0;
  957. backgroundTransparency=1;
  958. fontSize=5;
  959. screen;
  960. };
  961.  
  962. lightstuff=_new'frame'{
  963. backgroundColor3=_RGB(255,255,255);
  964. position=UDim2.new(0,0,0,-1);
  965. backgroundTransparency=0.5;
  966. size=UDim2.new(1,0,1,1);
  967. borderSizePixel=0;
  968. visible=false;
  969. screen;
  970. };
  971.  
  972. coroutine.wrap(function()
  973. local red,white,green;
  974. repeat
  975. if(screen.Parent)then
  976. if(not green and bullets.current==bullets.maximum)then
  977. green=true;
  978. bullets_label.TextColor3=_RGB(0,200,0);
  979. elseif(not red and bullets.current==0)then
  980. red=true;
  981. bullets_label.TextColor3=_RGB(200,0,0);
  982. elseif((red or green)and bullets.current~=0 and bullets.current~=bullets.maximum)then
  983. bullets_label.TextColor3=_RGB(200,200,200);
  984. green=false;
  985. red=false;
  986. end;
  987. bullets_label.Text=('Bullets: %d/%d'):format(bullets.current,bullets.clip);
  988. bullets_label.Size=UDim2.new(0,bullets_label.TextBounds.X,0,bullets_label.TextBounds.Y);
  989. bullets_label.Position=UDim2.new(1,-bullets_label.TextBounds.X-6,1,-bullets_label.TextBounds.Y-6);
  990. end;
  991. wait(0.001);
  992. until nil;
  993. end)();
  994.  
  995. ----------------------------------------------------------------------------------------
  996.  
  997. _G.dev_pistol_version=(_G.dev_pistol_version or 0)+1;
  998. local vers=_G.dev_pistol_version;
  999. repeat _update();wait(0.001);until _G.dev_pistol_version~=vers or hum.Health==0;
  1000. if(hum.Health==0)then
  1001. _clear();
  1002. end;
  1003. script.Disabled=true;
  1004.  
  1005. --mediafire-----------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement