Advertisement
ttyyuu12345

TestAdminClient

Sep 27th, 2016
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.74 KB | None | 0 0
  1. script:destroy();
  2. user=game.Players.localPlayer;
  3. mouse=user:getMouse'';
  4. MAIN={ };
  5. arg1='';
  6. arg2='/';
  7. core=(function(T,F)
  8. p=Instance.new('Part',workspace);
  9. p.formFactor=3;
  10. p.Size=Vector3.new(2,2,2);--//2.5,3.5,0
  11. p.Anchored=true;
  12. p.BrickColor=BrickColor.new'Carnation pink';
  13. p.CanCollide=false;
  14. p.TopSurface=0;
  15. p.BottomSurface=0;
  16. p.Transparency=.2;
  17. c=Instance.new('ClickDetector',p);
  18. c.MaxActivationDistance=math.huge;
  19. c.MouseClick:connect(function(v)
  20. if(v.Name==user.Name)then
  21. F();
  22. end;
  23. end);
  24. b=Instance.new('SelectionBox',p);
  25. b.Transparency=.8;
  26. b.Color=BrickColor.new'Really black';
  27. b.Adornee=p;
  28. g=Instance.new('BillboardGui',p);
  29. g.Adornee=p;
  30. g.StudsOffset=Vector3.new(0,1,0);
  31. g.Size=UDim2.new(1,0,1,0);
  32. tl=Instance.new('TextLabel',g);
  33. tl.Text=T;
  34. tl.Position=UDim2.new(.5,0,.5,0);
  35. tl.Font='ArialBold';
  36. tl.FontSize='Size24';
  37. tl.TextColor3=BrickColor.White().Color;
  38. table.insert(MAIN,{core=p;t=tl;se=b;vs=p.Size;});
  39. return(p);
  40. end);
  41. function Match(tx1,tx2)
  42. if((string.sub(tx1,1,#tx2))==(string.sub(tx2,1,#tx2)))then
  43. return(true);else return(false);
  44. end;
  45. end;
  46. Cmds={
  47. Cmd={
  48. Cmd='cmds';
  49. Function=(function()
  50. for i,v in pairs(Cmds)do
  51. core(v.Cmd,function()close''end);
  52. end;
  53. end);
  54. };
  55. DISMISS={
  56. Cmd='dismiss';
  57. Function=(function()
  58. close();
  59. end);
  60. };
  61. KICK={
  62. Cmd='kick';
  63. Function=(function(NM)
  64. for i,v in next,game.Players:players''do
  65. if(Match(v.Name,NM))then
  66. ypcall(function()
  67. v:Destroy();
  68. end);
  69. if(not(game.Players:findFirstChild(v.Name)))then
  70. core('Kicked '..v.Name,function()close''end);
  71. end;
  72. end;
  73. end;
  74. end);
  75. };
  76. listPlayers={
  77. Cmd='players';
  78. Function=(function()
  79. for i,v in pairs(game:service'Players':players())do
  80. core(v.Name,function(a) close(); core('Dismiss',function()close()end);
  81. core('Kill',function(k)
  82. v.Character:BreakJoints()
  83. print('1',v.Parent);
  84. print('2',v.Parent.Parent);
  85. print('3',v);
  86. end);
  87. end);
  88. end;
  89. end);
  90. };
  91. KILL={
  92. Cmd='kill';
  93. Function=(function(NM)
  94. for i,v in next,game.Players:players''do
  95. if(Match(v.Name,NM))then
  96. ypcall(function()
  97. v.Character:breakJoints'l0l';
  98. core('Killed '..v.Name,function()close''end);
  99. end);
  100. end;
  101. end;
  102. end);
  103. };
  104. MOOSIC_2={
  105. Cmd='mplay';
  106. Function=(function(M)
  107. s=Instance.new('Sound',workspace);
  108. s.SoundId='rbxassetid://'..M;
  109. s.Looped=true;
  110. s:play'';
  111. m=game:service'MarketplaceService':getProductInfo(M);
  112. s.Name=m.Name;
  113. core('Now playing:\n'..m.Name..
  114. '\n'..m.Description..
  115. '\nCreated/uploaded by user: '..#m.Creator..
  116. '\ncreated on:'..m.Created,function()close''end);
  117. end);
  118. };
  119. INSERT1={
  120. Cmd='ins';
  121. Function=(function(H)
  122. m=game:service'MarketplaceService':getProductInfo(H);
  123. game:service'InsertService':LoadAsset(H):children''[1].Parent=user.Character;
  124. core('Inserted:\n'..m.Name,function()close''end);
  125. core('Created on: '..m.Created,function()close''end);
  126. core('Sales: '..m.Sales,function()close''end);
  127. -- core('Limited item[?]: '..m.IsLimited,function()close''end);
  128. core('Current price [RBX/ROBUX][?]: '..m.PriceInRobux,function()close''end);
  129. core('Alternate price [TIX/TICKETS][?]: '..m.PriceInTickets,function()close''end);
  130. core(m.Description,function()close''end);
  131. end);
  132. };
  133. MSTOP={
  134. Cmd='mstop';
  135. Function=(function()
  136. w=workspace:children'';
  137. for i=1,#w do
  138. if(w[i].className=='Sound')then
  139. core('Deleting sound...\n'..w[i].Name,function()close''end);
  140. w[i]:destroy();
  141. end;
  142. end;
  143. end);
  144. };
  145. };
  146. --[[Commands=(function()
  147. close'';
  148. for i,v in pairs(Cmds)do
  149. core((arg1..v.Cmd..arg2),function()
  150. close'';
  151. end);
  152. end;
  153. end);
  154. ]]
  155. user.Chatted:connect(function(chat)
  156. a,b=ypcall(function()
  157. for i,v in pairs(Cmds)do
  158. if(Match(chat,(arg1..v.Cmd..arg2)))then
  159. v.Function(chat:sub(tonumber((#(arg1..v.Cmd..arg2)))+1));
  160. end;
  161. end;
  162. end);
  163. if(not(a))then
  164. core('error[] '..b,function()close''end);
  165. end;
  166. end);
  167. close=function()
  168. for i=1,#MAIN do
  169. delay(0,function()
  170. for a=0,1,.1 do
  171. MAIN[i].core.Transparency=a;
  172. MAIN[i].core.BrickColor=BrickColor.new'Salmon';
  173. MAIN[i].t.Transparency=a;
  174. MAIN[i].t.Text='';
  175. MAIN[i].se.Transparency=a;
  176. MAIN[i].se.Color=BrickColor.new'Salmon';
  177. MAIN[i].vs=Vector3.new(a,a,a);
  178. wait'';
  179. end;
  180. end);
  181. end;
  182. while wait'.1'do
  183. if(MAIN[1].core.Transparency==1)then break; end; end;
  184. for i=1,#MAIN do
  185. MAIN[i].core:destroy'';
  186. MAIN[i]=nil;
  187. end;
  188. end;
  189. rotation=.5;
  190. while wait''do
  191. rotation=rotation+0.00035;
  192. pcall(function()
  193. for i=1,#MAIN do
  194. pcall(function()
  195. position=user.Character.torso.CFrame;
  196. end);
  197. local radius=5.2+((#MAIN)*.6);
  198. x=math.cos((i/#MAIN-(.5/#MAIN)+rotation*2)*math.pi*2)*radius;
  199. y=math.cos((i/#MAIN-(-3.5/#MAIN)+rotation*-14)*math.pi*-2);
  200. z=(math.sin((i/#MAIN-(.5/#MAIN)+rotation*2)*math.pi*2)*radius);
  201. pcall(function()
  202. tposition=position:toWorldSpace(CFrame.new(x,y,z):inverse'');
  203. end);
  204. pcall(function()
  205. MAIN[i].core.CFrame=CFrame.new(tposition.p,position.p)*CFrame.Angles(math.sin(tick())*7,math.sin(tick())*7,math.sin(tick())*7);
  206. end);
  207. end;
  208. end);
  209. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement