Sevakot

Untitled

Mar 27th, 2018
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.29 KB | None | 0 0
  1. function clear_t(t)
  2.  
  3. local i=next(t);
  4.  
  5. while(i)do
  6.  
  7. rawset(t,i,nil);
  8.  
  9. i=next(t);
  10.  
  11. end;
  12.  
  13. end;
  14.  
  15.  
  16. function _rem(o,i)
  17.  
  18. i=i or 0;
  19.  
  20. debris:addItem(o,i);
  21.  
  22. end;
  23.  
  24.  
  25. function _gtime()
  26.  
  27. return workspace.DistributedGameTime;
  28.  
  29. end;
  30.  
  31.  
  32. function _wait(n)
  33.  
  34. return select(1,wait(n));
  35.  
  36. end;
  37.  
  38.  
  39. function RGB(r,g,b)
  40.  
  41. return Color3.new(r/255,g/255,b/255);
  42.  
  43. end;
  44.  
  45.  
  46. function GBC(vobject,vclass,vfirst)
  47.  
  48. local t=vobject:children();
  49.  
  50. local res;
  51.  
  52. if(not vfirst)then
  53.  
  54. res={};
  55.  
  56. for i,v in ipairs(t)do
  57.  
  58. if(v.className==vclass)then
  59.  
  60. table.insert(res,v);
  61.  
  62. end;
  63.  
  64. end;
  65.  
  66. else
  67.  
  68. for i,v in ipairs(t)do
  69.  
  70. if(v.className==vclass)then
  71.  
  72. res=v;
  73.  
  74. break;
  75.  
  76. end;
  77.  
  78. end;
  79.  
  80. end;
  81.  
  82. clear_t(t);
  83.  
  84. return res;
  85.  
  86. end;
  87.  
  88.  
  89. function cam()
  90.  
  91. return workspace.CurrentCamera;
  92.  
  93. end;
  94.  
  95.  
  96. function camCoord()
  97.  
  98. return cam().CoordinateFrame;
  99.  
  100. end;
  101.  
  102.  
  103. function GBN(vobject,vname,vfirst)
  104.  
  105. local t=vobject:children();
  106.  
  107. local res;
  108.  
  109. if(not vfirst)then
  110.  
  111. res={};
  112.  
  113. for i,v in ipairs(t)do
  114.  
  115. if(v.Name==vname)then
  116.  
  117. table.insert(res,v);
  118.  
  119. end;
  120.  
  121. end;
  122.  
  123. else
  124.  
  125. for i,v in ipairs(t)do
  126.  
  127. if(v.Name==vname)then
  128.  
  129. res=v;
  130.  
  131. break;
  132.  
  133. end;
  134.  
  135. end;
  136.  
  137. end;
  138.  
  139. clear_t(t);
  140.  
  141. return res;
  142.  
  143. end;
  144.  
  145.  
  146. function tagHum(vhum)
  147.  
  148. NEW(GBN(vhum,'creator',true)or'ObjectValue'){
  149.  
  150. name='creator';
  151.  
  152. parent=vhum;
  153.  
  154. value=user;
  155.  
  156. };
  157.  
  158. end;
  159.  
  160.  
  161. function demHum(vhum,vvalue)
  162.  
  163. if(vhum.Health>0)then
  164.  
  165. vhum.Health=vhum.Health-vvalue;
  166.  
  167. if(vhum.Health<=0)then
  168.  
  169. tagHum(vhum);
  170.  
  171. end;
  172.  
  173. end;
  174.  
  175. end;
  176.  
  177.  
  178. function NEW(vclass)
  179.  
  180. return function(vprops)
  181.  
  182. local object=type(vclass)=='string'and Instance.new(vclass:sub(1,1):upper()..vclass:sub(2))or vclass;
  183.  
  184. local parent;
  185.  
  186. if(baseProps)then
  187.  
  188. for i,v in next,baseProps do
  189.  
  190. if(rawget(vprops,i)==nil)then
  191.  
  192. rawset(vprops,i,v);
  193.  
  194. end;
  195.  
  196. end;
  197.  
  198. end;
  199.  
  200. for i,v in next,vprops do
  201.  
  202. if(i:lower()=='parent')then
  203.  
  204. parent=v;
  205.  
  206. else
  207.  
  208. pcall(function()
  209.  
  210. local d;
  211.  
  212. local oldi=i;
  213.  
  214. i=i:sub(1,1):upper()..i:sub(2);
  215.  
  216. if(not pcall(function()
  217.  
  218. return object[i];
  219.  
  220. end))then
  221.  
  222. i=oldi;
  223.  
  224. end;
  225.  
  226. d=object[i];
  227.  
  228. if(tostring(d)=='Signal '..i)then
  229.  
  230. d:connect(v);
  231.  
  232. else
  233.  
  234. object[i]=v;
  235.  
  236. end;
  237.  
  238. end);
  239.  
  240. end;
  241.  
  242. end;
  243.  
  244. clear_t(vprops);
  245.  
  246. if(type(parent)=='userdata')then
  247.  
  248. object.Parent=parent;
  249.  
  250. end;
  251.  
  252. return object;
  253.  
  254. end;
  255.  
  256. end;
  257.  
  258.  
  259. function tobyte(vfoo)
  260.  
  261. return tonumber(vfoo)or string.byte(vfoo);
  262.  
  263. end;
  264.  
  265.  
  266. function rpcall(vfun,...)
  267.  
  268. local l,r=ypcall(vfun,...);
  269.  
  270. if(not l)then
  271.  
  272. print('['..name..']','ERROR:',r);
  273.  
  274. end;
  275.  
  276. end;
  277.  
  278.  
  279. function key(vkey)
  280.  
  281. return rawget(keys,tobyte(vkey));
  282.  
  283. end;
  284.  
  285.  
  286. function setkey(vkey,vbool)
  287.  
  288. rawset(keys,tobyte(vkey),vbool);
  289.  
  290. end;
  291.  
  292.  
  293. function keyf(vkey)
  294.  
  295. local fun=rawget(keysf,tobyte(vkey));
  296.  
  297.  
  298. if(fun)then
  299.  
  300. rpcall(fun);
  301.  
  302. end;
  303.  
  304. end;
  305.  
  306.  
  307. function setkeyf(vkey,vfun)
  308.  
  309. rawset(keysf,tobyte(vkey),vfun);
  310.  
  311. end;
  312.  
  313.  
  314. function _beginthread(vfun,...)
  315.  
  316. coroutine.wrap(rpcall)(vfun,...);
  317.  
  318. end;
  319.  
  320.  
  321. function moveOut(n)
  322.  
  323. local t,pos=0;
  324.  
  325. while(t<0.2)do
  326.  
  327. t=t+_wait(0.01);
  328.  
  329. pos=torso.CFrame;
  330.  
  331. torso.CFrame=pos*CFrame.new((t>0.2 and 0.2 or t)*66*n,0,0);
  332.  
  333. _beginthread(function()
  334.  
  335. local b=NEW'part'{
  336.  
  337. size=Vector3.new(1,1,1);
  338.  
  339. color=RGB(0,0,0);
  340.  
  341. canCollide=false;
  342.  
  343. bottomSurface=0;
  344.  
  345. name='bubble';
  346.  
  347. anchored=true;
  348.  
  349. topSurface=0;
  350.  
  351. formFactor=0;
  352.  
  353. cFrame=pos;
  354.  
  355. };
  356.  
  357. local mesh=NEW'specialMesh'{
  358.  
  359. scale=Vector3.new(1,1,1)*torso.Size.magnitude;
  360.  
  361. meshType=3;
  362.  
  363. parent=b;
  364.  
  365. };
  366.  
  367.  
  368. _rem(b,1.1);
  369.  
  370.  
  371. b.Parent=inv;
  372.  
  373.  
  374. local i=0;
  375.  
  376.  
  377. while(i<1)do
  378.  
  379. i=i+_wait(0.01);
  380.  
  381. mesh.Scale=mesh.Scale+Vector3.new(i,i,i);
  382.  
  383. b.Transparency=i;
  384.  
  385. end;
  386.  
  387. end);
  388.  
  389. end;
  390.  
  391. end;
  392.  
  393.  
  394. function START_cylinderStream(vtarget,vwidth,vcolor,v_time,vfun)
  395.  
  396. if(not vtarget:isA'BasePart')then
  397.  
  398. return nil;
  399.  
  400. end;
  401.  
  402.  
  403. if(not LIST_cylinderStream)then
  404.  
  405. LIST_cylinderStream={
  406.  
  407. types={};
  408.  
  409. items={};
  410.  
  411. };
  412.  
  413. end;
  414.  
  415.  
  416. table.insert(LIST_cylinderStream.types,{
  417.  
  418. color=vcolor or Color3.new(0,0,0);
  419.  
  420. _time=v_time or 0.2;
  421.  
  422. width=vwidth or 1;
  423.  
  424. target=vtarget;
  425.  
  426. fun=vfun;
  427.  
  428. });
  429.  
  430.  
  431. if(not LOOP_cylinderStream)then
  432.  
  433. LOOP_cylinderStream=true;
  434.  
  435.  
  436. coroutine.wrap(function()
  437.  
  438. local step=game:service'RunService'.Stepped;
  439.  
  440. local debris=game:service'Debris';
  441.  
  442. local list=LIST_cylinderStream;
  443.  
  444. local items=list.items;
  445.  
  446. local types=list.types;
  447.  
  448. local pos,mag;
  449.  
  450.  
  451. repeat
  452.  
  453. if(#types>0)then
  454.  
  455. for i,v in ipairs(types)do
  456.  
  457. v.first=v.target.Position;
  458.  
  459. if(v.last and v.last~=v.first)then
  460.  
  461. local part=Instance.new'Part';
  462.  
  463. part.formFactor=0;
  464.  
  465. part.TopSurface=0;
  466.  
  467. part.Anchored=true;
  468.  
  469. part.Color=v.color;
  470.  
  471. part.BottomSurface=0;
  472.  
  473. part.CanCollide=false;
  474.  
  475. part.Size=Vector3.new(1,1,1);
  476.  
  477. local b=part:clone();
  478.  
  479. b.Parent=part;
  480.  
  481. local bmesh=Instance.new('SpecialMesh',b);
  482.  
  483. bmesh.MeshType=3;
  484.  
  485. local mesh=Instance.new('CylinderMesh',part);
  486.  
  487.  
  488. table.insert(list.items,{
  489.  
  490. first=v.target.Position;
  491.  
  492. target=v.target;
  493.  
  494. _timeb=v._time;
  495.  
  496. _time=v._time;
  497.  
  498. width=v.width;
  499.  
  500. bmesh=bmesh;
  501.  
  502. part=part;
  503.  
  504. mesh=mesh;
  505.  
  506. bpart=b;
  507.  
  508. });
  509.  
  510. end;
  511.  
  512. v.last=v.first;
  513.  
  514. end;
  515.  
  516. end;
  517.  
  518.  
  519. local fps=select(2,step:wait());
  520.  
  521. local count=#items;
  522.  
  523.  
  524. if(count>0)then
  525.  
  526. for i=-count,-1 do
  527.  
  528. i=math.abs(i);
  529.  
  530. v=rawget(items,i);
  531.  
  532.  
  533. if(v._time<=0)then
  534.  
  535. v.part.Parent=nil;
  536.  
  537. while(next(v))do
  538.  
  539. local i=next(v);
  540.  
  541. rawset(v,i,nil);
  542.  
  543. end;
  544.  
  545. table.remove(items,i);
  546.  
  547. else
  548.  
  549. v._time=v._time-fps;
  550.  
  551.  
  552. if(not v.changed)then
  553.  
  554. v.changed=true;
  555.  
  556.  
  557. pos=CFrame.new(v.first,v.target.Position);
  558.  
  559. mag=(v.first-v.target.Position).magnitude;
  560.  
  561.  
  562. v.part.CFrame=pos*CFrame.Angles(math.pi*0.5,0,0);
  563.  
  564. v.mesh.Scale=Vector3.new(v.width,mag,v.width);
  565.  
  566. v.mesh.Offset=Vector3.new(0,-mag/2,0);
  567.  
  568. v.bpart.CFrame=v.part.CFrame;
  569.  
  570. v.bmesh.Scale=Vector3.new(v.width,v.width,v.width);
  571.  
  572.  
  573. v.part.Parent=v.target;
  574.  
  575. end;
  576.  
  577.  
  578. if(v.fun)then
  579.  
  580. pcall(v.fun,v);
  581.  
  582. end;
  583.  
  584. end;
  585.  
  586. end;
  587.  
  588. end;
  589.  
  590. until not LOOP_cylinderStream;
  591.  
  592. end)();
  593.  
  594. end;
  595.  
  596. end;
  597.  
  598.  
  599. function END_cylinderStream()
  600.  
  601. if(LIST_cylinderStream)then
  602.  
  603. local types=LIST_cylinderStream.types;
  604.  
  605. local item=rawget(types,1);
  606.  
  607. local i;
  608.  
  609. if(item)then
  610.  
  611. repeat
  612.  
  613. while(next(item))do
  614.  
  615. i=next(item);
  616.  
  617. rawset(item,i,nil);
  618.  
  619. end;
  620.  
  621. table.remove(types,1);
  622.  
  623. item=rawget(types,1);
  624.  
  625. until not item;
  626.  
  627. end;
  628.  
  629. end;
  630.  
  631. end;
  632.  
  633.  
  634. function region3(vstart,vend,vi,vlimit)
  635.  
  636. local reg=Region3.new(
  637.  
  638. Vector3.new(math.min(vstart.X,vend.X),math.min(vstart.Y,vend.Y),math.min(vstart.Z,vend.Z)),
  639.  
  640. Vector3.new(math.max(vstart.X,vend.X),math.max(vstart.Y,vend.Y),math.max(vstart.Z,vend.Z))
  641.  
  642. );
  643.  
  644. if(type(vi)=='table')then
  645.  
  646. return workspace:findPartsInRegion3WithIgnoreList(reg,vi or nil,vlimit or nil);
  647.  
  648. else
  649.  
  650. return workspace:findPartsInRegion3(reg,vi or nil,vlimit or nil);
  651.  
  652. end;
  653.  
  654. end;
  655.  
  656.  
  657. function region3p(vpart,vi,vlimit)
  658.  
  659. local vend=(vpart.CFrame*CFrame.new(vpart.Size/2)).p;
  660.  
  661. local vstart=(vpart.CFrame*CFrame.new(-vpart.Size/2)).p;
  662.  
  663. local reg=Region3.new(
  664.  
  665. Vector3.new(math.min(vstart.X,vend.X),math.min(vstart.Y,vend.Y),math.min(vstart.Z,vend.Z)),
  666.  
  667. Vector3.new(math.max(vstart.X,vend.X),math.max(vstart.Y,vend.Y),math.max(vstart.Z,vend.Z))
  668.  
  669. );
  670.  
  671. if(type(vi)=='table')then
  672.  
  673. return workspace:findPartsInRegion3WithIgnoreList(reg,vi or nil,vlimit or nil);
  674.  
  675. else
  676.  
  677. return workspace:findPartsInRegion3(reg,vi or nil,vlimit or nil);
  678.  
  679. end;
  680.  
  681. end;
  682.  
  683.  
  684. function region3sop(vstart,vsize,vi,vlimit)
  685.  
  686. local vend=(vstart*CFrame.new(vsize/2)).p;
  687.  
  688. local vstart=(vstart*CFrame.new(-vsize/2)).p;
  689.  
  690. local reg=Region3.new(
  691.  
  692. Vector3.new(math.min(vstart.X,vend.X),math.min(vstart.Y,vend.Y),math.min(vstart.Z,vend.Z)),
  693.  
  694. Vector3.new(math.max(vstart.X,vend.X),math.max(vstart.Y,vend.Y),math.max(vstart.Z,vend.Z))
  695.  
  696. );
  697.  
  698. if(type(vi)=='table')then
  699.  
  700. return workspace:findPartsInRegion3WithIgnoreList(reg,vi or nil,vlimit or nil);
  701.  
  702. else
  703.  
  704. return workspace:findPartsInRegion3(reg,vi or nil,vlimit or nil);
  705.  
  706. end;
  707.  
  708. end;
  709.  
  710.  
  711. function bigHeal(char)
  712.  
  713. local torso=char:findFirstChild'Torso';
  714.  
  715. local hum;
  716.  
  717.  
  718. local c=char:children();
  719.  
  720. for i,v in ipairs(c)do
  721.  
  722. if(v.className=='Humanoid')then
  723.  
  724. hum=v;
  725.  
  726. end;
  727.  
  728. end;
  729.  
  730. while(c[1])do
  731.  
  732. table.remove(c,1);
  733.  
  734. end;
  735.  
  736.  
  737. if(not torso or not hum)then
  738.  
  739. return false;
  740.  
  741. end;
  742.  
  743.  
  744. hum.Health=hum.MaxHealth;
  745.  
  746.  
  747. if(not limbsData)then
  748.  
  749. limbsData={
  750.  
  751. {
  752.  
  753. weld={name='Right Shoulder';C0=CFrame.new(1,0.5,0,0,0,1,0,1,0,-1,-0,-0);C1=CFrame.new(-0.5,0.5,0,0,0,1,0,1,0,-1,-0,-0);};
  754.  
  755. part={name='Right Arm';size=Vector3.new(1,2,1);};
  756.  
  757. };
  758.  
  759. {
  760.  
  761. weld={name='Left Shoulder';C0=CFrame.new(-1,0.5,0,-0,-0,-1,0,1,0,1,0,0);C1=CFrame.new(0.5,0.5,0,-0,-0,-1,0,1,0,1,0,0);};
  762.  
  763. part={name='Left Arm';size=Vector3.new(1,2,1);};
  764.  
  765. };
  766.  
  767. {
  768.  
  769. weld={name='Right Hip';C0=CFrame.new(1,-1,0,0,0,1,0,1,0,-1,-0,-0);C1=CFrame.new(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0);};
  770.  
  771. part={name='Right Leg';size=Vector3.new(1,2,1);};
  772.  
  773. };
  774.  
  775. {
  776.  
  777. weld={name='Left Hip';C0=CFrame.new(-1,-1,0,-0,-0,-1,0,1,0,1,0,0);C1=CFrame.new(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0);};
  778.  
  779. part={name='Left Leg';size=Vector3.new(1,2,1);};
  780.  
  781. };
  782.  
  783. };
  784.  
  785. end;
  786.  
  787.  
  788. local limbRefresh=false;
  789.  
  790.  
  791. for i,v in next,limbsData do
  792.  
  793. if(not torso:findFirstChild(v.weld.name)or not char:findFirstChild(v.part.name))then
  794.  
  795. local part=Instance.new'Part';
  796.  
  797. part.formFactor=0;
  798.  
  799. part.Size=v.part.Size;
  800.  
  801. part.Name=v.part.name;
  802.  
  803. part.CFrame=torso.CFrame;
  804.  
  805. part.Parent=char;
  806.  
  807. part:breakJoints();
  808.  
  809. local weld=Instance.new'Motor6D';
  810.  
  811. weld.Name=v.weld.name;
  812.  
  813. weld.MaxVelocity=0.1;
  814.  
  815. weld.C0=v.weld.C0;
  816.  
  817. weld.C1=v.weld.C1;
  818.  
  819. weld.Parent=torso;
  820.  
  821. weld.Part0=torso;
  822.  
  823. weld.Part1=part;
  824.  
  825. limbRefresh=true;
  826.  
  827. end;
  828.  
  829. end;
  830.  
  831.  
  832. if(limbRefresh)then
  833.  
  834. pcall(function()
  835.  
  836. local c=char.Animate:clone();
  837.  
  838. char.Animate.Parent=nil;
  839.  
  840. c.Parent=char;
  841.  
  842. end);
  843.  
  844.  
  845. pcall(function()
  846.  
  847. local c=char['Body Colors']:clone();
  848.  
  849. char['Body Colors'].Parent=nil;
  850.  
  851. c.Parent=char;
  852.  
  853. end);
  854.  
  855. end;
  856.  
  857.  
  858. return true;
  859.  
  860. end;
  861.  
  862.  
  863. ---------------------------------------------------------------------------------------------------------------------
  864.  
  865.  
  866. do
  867.  
  868. local t=game:children();
  869.  
  870. for i,v in ipairs(t)do
  871.  
  872. pcall(function()
  873.  
  874. rawset(getfenv(),v.className:sub(1,1):lower()..v.className:sub(2),v);
  875.  
  876. end);
  877.  
  878. end;
  879.  
  880. clear_t(t);
  881.  
  882. end;
  883.  
  884.  
  885. ---------------------------------------------------------------------------------------------------------------------
  886.  
  887.  
  888. user=players.localPlayer;
  889.  
  890. char=user.Character;
  891.  
  892. torso=char.Torso;
  893.  
  894. head=char.Head;
  895.  
  896.  
  897. playerGui=GBC(user,'PlayerGui',true);
  898.  
  899. backpack=GBC(user,'Backpack',true);
  900.  
  901. hum=GBC(char,'Humanoid',true);
  902.  
  903.  
  904. assert(hum,'Humanoid is not found!');
  905.  
  906.  
  907. name='Dresmor - Vanvidd';
  908.  
  909. url='rbxassetid://%d';
  910.  
  911.  
  912. logo=url:format(104753195);
  913.  
  914. bathimg=url:format(101372613);
  915.  
  916.  
  917. _done=true;
  918.  
  919.  
  920. keys={};
  921.  
  922. keysf={};
  923.  
  924.  
  925. baseProps={
  926.  
  927. size=Vector3.new(1,1,1);
  928.  
  929. canCollide=false;
  930.  
  931. color=RGB(0,0,0);
  932.  
  933. bottomSurface=0;
  934.  
  935. topSurface=0;
  936.  
  937. formFactor=0;
  938.  
  939. };
  940.  
  941.  
  942. ---------------------------------------------------------------------------------------------------------------------
  943.  
  944.  
  945. do
  946.  
  947. local t={playerGui;backpack;char;};
  948.  
  949. for i,v in ipairs(t)do
  950.  
  951. local t=GBN(v,name);
  952.  
  953. for i,v in ipairs(t)do
  954.  
  955. v.Parent=nil;
  956.  
  957. end;
  958.  
  959. clear_t(t);
  960.  
  961. end;
  962.  
  963. clear_t(t);
  964.  
  965. end;
  966.  
  967.  
  968. ---------------------------------------------------------------------------------------------------------------------
  969.  
  970.  
  971. function keyDown(vkey)
  972.  
  973. setkey(vkey,true);
  974.  
  975. repeat
  976.  
  977. if(_done)then
  978.  
  979. _done=false;
  980.  
  981. keyf(vkey);
  982.  
  983. _done=true;
  984.  
  985. end;
  986.  
  987. until not _wait(0.01)or not key(vkey);
  988.  
  989. end;
  990.  
  991.  
  992. function keyUp(vkey)
  993.  
  994. setkey(vkey,false);
  995.  
  996. end;
  997.  
  998.  
  999. function selected(vmouse)
  1000.  
  1001. mouse=vmouse;
  1002.  
  1003.  
  1004. mouse.KeyDown:connect(keyDown);
  1005.  
  1006. mouse.KeyUp:connect(keyUp);
  1007.  
  1008. end;
  1009.  
  1010.  
  1011. function deselected()
  1012.  
  1013. mouse=nil;
  1014.  
  1015. clear_t(keys);
  1016.  
  1017. end;
  1018.  
  1019.  
  1020. ---------------------------------------------------------------------------------------------------------------------
  1021.  
  1022.  
  1023. _beginthread(function()
  1024.  
  1025. repeat _wait(0.1);until bin.Parent~=backpack or hum.Health<=0;
  1026.  
  1027. debris:addItem(script,0);
  1028.  
  1029. local script=script;
  1030.  
  1031. clear_t(getfenv(0));
  1032.  
  1033. clear_t(getfenv(1));
  1034.  
  1035. script.Disabled=true;
  1036.  
  1037. end);
  1038.  
  1039.  
  1040. ---------------------------------------------------------------------------------------------------------------------
  1041.  
  1042.  
  1043. setkeyf('b',function()
  1044.  
  1045. repeat until not pcall(function()
  1046.  
  1047. char.bath.Parent=nil;
  1048.  
  1049. end);
  1050.  
  1051.  
  1052. local mdl=NEW'model'{
  1053.  
  1054. parent=char;
  1055.  
  1056. name='bath';
  1057.  
  1058. };
  1059.  
  1060. local btm=NEW'part'{
  1061.  
  1062. cFrame=torso.CFrame*CFrame.new(0,-torso.Size.Y*1.45,0);
  1063.  
  1064. size=Vector3.new(8,1,8);
  1065.  
  1066. canCollide=true;
  1067.  
  1068. transparency=1;
  1069.  
  1070. parent=mdl;
  1071.  
  1072. };
  1073.  
  1074. btm:breakJoints();
  1075.  
  1076. for i=0,5 do
  1077.  
  1078. NEW'decal'{
  1079.  
  1080. texture=bathimg;
  1081.  
  1082. parent=btm;
  1083.  
  1084. face=i;
  1085.  
  1086. };
  1087.  
  1088. end;
  1089.  
  1090. for i=0,3 do
  1091.  
  1092. local p=btm:clone();
  1093.  
  1094. p.Parent=mdl;
  1095.  
  1096. p.Size=Vector3.new(1,6,8);
  1097.  
  1098. p.CFrame=torso.CFrame*CFrame.new(0,torso.Size.Y*1.45,0);
  1099.  
  1100. p:breakJoints();
  1101.  
  1102. local w=Instance.new('Weld',p);
  1103.  
  1104. w.Part0=btm;
  1105.  
  1106. w.Part1=p;
  1107.  
  1108. w.C1=CFrame.new(3.5,-3,0)*CFrame.Angles(0,math.rad(90)*i,0);
  1109.  
  1110. end;
  1111.  
  1112.  
  1113. _wait(0.25);
  1114.  
  1115. end);
  1116.  
  1117.  
  1118. setkeyf(' ',function()
  1119.  
  1120. _beginthread(function()
  1121.  
  1122. local b=NEW'part'{
  1123.  
  1124. size=Vector3.new(1,1,1);
  1125.  
  1126. color=RGB(0,0,0);
  1127.  
  1128. canCollide=false;
  1129.  
  1130. bottomSurface=0;
  1131.  
  1132. name='bubble';
  1133.  
  1134. anchored=true;
  1135.  
  1136. topSurface=0;
  1137.  
  1138. formFactor=0;
  1139.  
  1140. cFrame=torso.CFrame;
  1141.  
  1142. };
  1143.  
  1144. local mesh=NEW'specialMesh'{
  1145.  
  1146. scale=Vector3.new(1,1,1)*torso.Size.magnitude;
  1147.  
  1148. meshType=3;
  1149.  
  1150. parent=b;
  1151.  
  1152. };
  1153.  
  1154.  
  1155. _rem(b,1.1);
  1156.  
  1157.  
  1158. b.Parent=inv;
  1159.  
  1160.  
  1161. local i=0;
  1162.  
  1163.  
  1164. while(i<1)do
  1165.  
  1166. i=i+_wait(0.01);
  1167.  
  1168. mesh.Scale=mesh.Scale+Vector3.new(i,i,i);
  1169.  
  1170. b.Transparency=i;
  1171.  
  1172. end;
  1173.  
  1174. end);
  1175.  
  1176. torso.RotVelocity=Vector3.new();
  1177.  
  1178. torso.CFrame=torso.CFrame*CFrame.new(0,1,0);
  1179.  
  1180. torso.Velocity=Vector3.new(0,80,0);
  1181.  
  1182. _wait(0.03);
  1183.  
  1184. end);
  1185.  
  1186.  
  1187. setkeyf('r',function()
  1188.  
  1189. local r='r';
  1190.  
  1191. local speed=40;
  1192.  
  1193. END_cylinderStream();
  1194.  
  1195. START_cylinderStream(torso,2,nil,1);
  1196.  
  1197. repeat
  1198.  
  1199. if(speed<100)then
  1200.  
  1201. speed=speed+2.25;
  1202.  
  1203. end;
  1204.  
  1205. hum.WalkSpeed=speed;
  1206.  
  1207. until not runService.Stepped:wait()or not key(r);
  1208.  
  1209. END_cylinderStream();
  1210.  
  1211. hum.WalkSpeed=16;
  1212.  
  1213. end);
  1214.  
  1215.  
  1216. setkeyf('e',function()
  1217.  
  1218. moveOut(1);
  1219.  
  1220. end);
  1221.  
  1222.  
  1223. setkeyf('q',function()
  1224.  
  1225. moveOut(-1);
  1226.  
  1227. end);
  1228.  
  1229.  
  1230. setkeyf('h',function()
  1231.  
  1232. bigHeal(char);
  1233.  
  1234.  
  1235. _beginthread(function()
  1236.  
  1237. local b=NEW'part'{
  1238.  
  1239. size=Vector3.new(1,1,1);
  1240.  
  1241. color=RGB(255,255,255);
  1242.  
  1243. canCollide=false;
  1244.  
  1245. bottomSurface=0;
  1246.  
  1247. name='bubble';
  1248.  
  1249. anchored=true;
  1250.  
  1251. topSurface=0;
  1252.  
  1253. formFactor=0;
  1254.  
  1255. };
  1256.  
  1257. local mesh=NEW'specialMesh'{
  1258.  
  1259. scale=Vector3.new(4,4,4)*torso.Size.magnitude;
  1260.  
  1261. meshType=3;
  1262.  
  1263. parent=b;
  1264.  
  1265. };
  1266.  
  1267.  
  1268. _rem(b,1.1);
  1269.  
  1270.  
  1271. b.Parent=inv;
  1272.  
  1273.  
  1274. local i=0;
  1275.  
  1276.  
  1277. while(i<1)do
  1278.  
  1279. mesh.Scale=mesh.Scale-Vector3.new(i,i,i);
  1280.  
  1281. b.CFrame=torso.CFrame;
  1282.  
  1283. b.Transparency=i;
  1284.  
  1285. i=i+_wait(0.01);
  1286.  
  1287. end;
  1288.  
  1289. end);
  1290.  
  1291.  
  1292. local b=NEW'part'{
  1293.  
  1294. size=Vector3.new(1,1,1);
  1295.  
  1296. color=RGB(0,0,0);
  1297.  
  1298. canCollide=false;
  1299.  
  1300. bottomSurface=0;
  1301.  
  1302. name='bubble';
  1303.  
  1304. anchored=true;
  1305.  
  1306. topSurface=0;
  1307.  
  1308. formFactor=0;
  1309.  
  1310. };
  1311.  
  1312. local mesh=NEW'specialMesh'{
  1313.  
  1314. scale=Vector3.new(4,4,4)*torso.Size.magnitude;
  1315.  
  1316. meshType=3;
  1317.  
  1318. parent=b;
  1319.  
  1320. };
  1321.  
  1322.  
  1323. _rem(b,1.1);
  1324.  
  1325.  
  1326. b.Parent=inv;
  1327.  
  1328.  
  1329. local i=0;
  1330.  
  1331.  
  1332. while(i<1)do
  1333.  
  1334. mesh.Scale=mesh.Scale+Vector3.new(i,i,i);
  1335.  
  1336. b.CFrame=torso.CFrame;
  1337.  
  1338. b.Transparency=i;
  1339.  
  1340. local t=region3sop(b.CFrame,mesh.Scale,char,20);
  1341.  
  1342. for i,v in ipairs(t)do
  1343.  
  1344. if(v.Parent~=workspace)then
  1345.  
  1346. v=v.Parent;
  1347.  
  1348. if(v.className=='Model')then
  1349.  
  1350. local hum=GBC(v,'Humanoid',true);
  1351.  
  1352. if(hum)then
  1353.  
  1354. demHum(hum,math.random(1,10)/10);
  1355.  
  1356. end;
  1357.  
  1358. end;
  1359.  
  1360. end;
  1361.  
  1362. end;
  1363.  
  1364. clear_t(t);
  1365.  
  1366. i=i+_wait(0.01);
  1367.  
  1368. end;
  1369.  
  1370. end);
  1371.  
  1372.  
  1373. inv=NEW'model'{
  1374.  
  1375. parent=char;
  1376.  
  1377. name=name;
  1378.  
  1379. };
  1380.  
  1381.  
  1382. bin=NEW'hopperBin'{
  1383.  
  1384. parent=backpack;
  1385.  
  1386. textureId=logo;
  1387.  
  1388. name=name;
  1389.  
  1390. selected=selected;
  1391.  
  1392. deselected=deselected;
  1393.  
  1394. };
  1395.  
  1396.  
  1397. if(game.PlaceId~=0)then
  1398.  
  1399. script.Parent=bin;
  1400.  
  1401. end;
Add Comment
Please, Sign In to add comment