Advertisement
ZeeDerp

a

Oct 13th, 2014
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.92 KB | None | 0 0
  1. local script;do
  2. script=getfenv(error).script;
  3. repeat wait(); pcall(game.Destroy,script);until not script.Parent;
  4. end;
  5. game:service'StarterGui':setCoreGuiEnabled(0,false);--Playerlist
  6. local player=game:service'Players'.localPlayer;
  7. local create=function(class)
  8. return function(data)
  9. d=Instance.new(class);
  10. for i,v in pairs(data)do
  11. if(type(v)=='function')then
  12. d[i]:connect(function(...)
  13. ypcall(v,...);
  14. end);
  15. else
  16. d[i]=v;
  17. end;
  18. end;
  19. return d;
  20. end;
  21. end;
  22. local CurrentlySelectedObject=0;
  23. local NameColors={
  24. BrickColor.new('Bright red'),
  25. BrickColor.new('Bright blue'),
  26. BrickColor.new('Earth green'),
  27. BrickColor.new('Bright violet'),
  28. BrickColor.new('Bright orange'),
  29. BrickColor.new('Bright yellow'),
  30. BrickColor.new('Light reddish violet'),
  31. BrickColor.new('Brick yellow'),
  32. };
  33. local List=create'ScreenGui'{
  34. Name='Playerlist';
  35. Parent=player.PlayerGui;
  36. };
  37. local PlayerListFrame=create'Frame'{
  38. Parent=List;
  39. Size=UDim2.new(0.2,0,0.05,0);
  40. Position=UDim2.new(0,0,0,0);
  41. BackgroundTransparency=0.9;
  42. BackgroundColor=BrickColor.new'Black';
  43. };
  44. local PlayerListLabel=create'TextLabel'{
  45. Parent=PlayerListFrame;
  46. Size=UDim2.new(1,0,1,0);
  47. TextColor=BrickColor.new'Really red';
  48. Text='tusKOr661\'s Player List';
  49. FontSize='Size9';
  50. BackgroundTransparency=0.7;
  51. BackgroundColor=BrickColor.new'Grey';
  52. };
  53. local InfoFrame=create'Frame'{
  54. BackgroundTransparency=0.9;
  55. BackgroundColor=BrickColor.new'Black';
  56. Position=UDim2.new(1,0,0,0);
  57. Size=UDim2.new(0.2,0,0.2,0);
  58. Parent=List;
  59. };
  60. Info=create'TextLabel'{
  61. BackgroundTransparency=0.9;
  62. BackgroundColor=BrickColor.new'Black';
  63. Position=UDim2.new(0,0,0,0);
  64. TextXAlignment='Center';
  65. Size=UDim2.new(1,0,1/7,0);
  66. Parent=InfoFrame;
  67. TextColor=BrickColor.new'Really red';
  68. FontSize='Size11';
  69. Text='Information';
  70. TextWrapped=true;
  71. };
  72. local Bestfriend=Info:clone'';
  73. Bestfriend.Position=UDim2.new(0,0,1/7*1,0);
  74. Bestfriend.Size=UDim2.new(1,0,1/7,0);
  75. local Friend=Bestfriend:clone'';
  76. Friend.Position=UDim2.new(0,0,(1/7)*2,0);
  77. local ID=Bestfriend:clone'';
  78. ID.Position=UDim2.new(0,0,(1/7)*3,0);
  79. local Character=Bestfriend:clone'';
  80. Character.Position=UDim2.new(0,0,(1/7)*4,0);
  81. local TeamColor=Bestfriend:clone'';
  82. TeamColor.Position=UDim2.new(0,0,(1/7)*5,0);
  83. local Creator=Bestfriend:clone'';
  84. Creator.Position=UDim2.new(0,0,(1/7)*6,0);
  85. Bestfriend.Parent,TeamColor.Parent,Character.Parent,ID.Parent,Friend.Parent,Crea​tor.Parent,Info.Parent=InfoFrame,InfoFrame,InfoFrame,InfoFrame,InfoFrame,InfoFra​me,InfoFrame,InfoFrame;
  86. local Frame=create'Frame'{
  87. BackgroundTransparency=0.9;
  88. BackgroundColor=BrickColor.new'Black';
  89. Position=UDim2.new(0,0,0,0);
  90. Size=UDim2.new(0.2,0,0.25,0);
  91. Parent=List;
  92. Visible=true;
  93. };
  94. local Up=create'ImageButton'{
  95. Parent=Frame;
  96. Name='ScrollObject';
  97. BackgroundTransparency=0.9;
  98. BackgroundColor=BrickColor.new'Black';
  99. Image='rbxasset://textures/ui/scrollbuttonUp_ds.png';
  100. Size=UDim2.new(0.1,0,0.1,0);
  101. Position=UDim2.new(0.9,0,0,0);
  102. };
  103. local Bar=create'ImageButton'{
  104. Parent=Frame;
  105. Name='ScrollObject';
  106. Image='rbxasset://textures/ui/scrollbar.png';
  107. Size=UDim2.new(0.1,0,0.8,0);
  108. Position=UDim2.new(0.9,0,0.1,0);
  109. BackgroundColor=BrickColor.new'Grey';
  110. BackgroundTransparency=0.3;
  111. };
  112. local Down=Up:clone'';
  113. Down.Position=UDim2.new(0.9,0,0.9,0);
  114. Down.Image='rbxasset://textures/ui/scrollbuttonDown_ds.png';
  115. Down.Parent=Frame;
  116. Up.mouseButton1Click:connect(function()
  117. if(CurrentlySelectedObject~=0)then
  118. local CurrentSel=0;
  119. for i,v in pairs(FrameObjects(false))do
  120. CurrentSel=CurrentSel+1;
  121. if(CurrentSel==CurrentlySelectedObject+10)then
  122. break;
  123. end;
  124. v.Visible=(CurrentSel==1 and false) or true;
  125. v:TweenPosition( (CurrentSel==1 and UDim2.new(0,0,-0.1,0) )or UDim2.new(0,0,(0.1*(CurrentSel-1))),'Out','Quad',0.15,true);
  126. end;
  127. end;
  128. end);
  129. Down.mouseButton1Click:connect(function()
  130. if(CurrentlySelectedObject~=0)then
  131. local CurrentSel=0;
  132. for i,v in pairs(FrameObjects(false))do
  133. CurrentSel=CurrentSel+1;
  134. if(CurrentSel==CurrentlySelectedObject+10)then
  135. break;
  136. end;
  137. v.Visible=(CurrentSel==11 and false) or true;
  138. v:TweenPosition( (CurrentSel==11 and UDim2.new(0,0,1,0) )or UDim2.new(0,0,0.1*(CurrentSel+1)),'Out','Quad',0.15,true);
  139. end;
  140. end;
  141. end);
  142. Frame:TweenPosition(UDim2.new(0.8,0,0.05,0),'Out','Quad',0.5,true);
  143. PlayerListFrame:TweenPosition(UDim2.new(0.8,0,0,0),'Out','Quad',0.5,true);
  144. local NameToBrickColor=function(Name)
  145. local BrickColorCode=0;
  146. for i=1,#Name do
  147. Byte=Name:sub(i,i):byte();
  148. BrickColorCode=BrickColorCode+Byte;
  149. end;
  150. return BrickColor.new(BrickColorCode);
  151. end;
  152. local FrameObjects=function(v)
  153. Objs={};
  154. for _,Obj in pairs(Frame:children'')do
  155. if(Obj.Name~='ScrollObject')then
  156. Objs[#Objs+1]=Obj;
  157. end;
  158. end;
  159. return(Objs);
  160. end;
  161. local ClearFrame=function()
  162. for _,v in pairs(FrameObjects(false))do
  163. v:Remove'';
  164. end
  165. end;
  166. local Update=function()
  167. local Fix=false;
  168. for i,v in pairs(Frame:children'')do
  169. if(v.Name~='ScrollObject' and game.Players:findFirstChild(v.Text)==nil)then
  170. v:Remove'';
  171. Fix=true;
  172. end;
  173. end;
  174. if(#FrameObjects''~=#game.Players:players'')then
  175. Fix=true;
  176. end;
  177. if(Fix==true)then
  178. ClearFrame();
  179. local Current=0;
  180. for i,v in pairs(game.Players:players'')do
  181. coroutine.resume(coroutine.create(function()
  182. local Size=0;
  183. local NumberOfPlayers=#game.Players:players'';
  184. if(NumberOfPlayers>=10)then
  185. Size=0.1;
  186. else
  187. Size=(1/NumberOfPlayers);
  188. end;
  189. local NameValue=0;
  190. for i=1,#v.Name do
  191. val=string.byte(v.Name:sub(i,i));
  192. rev=#v.Name-i+1;
  193. if(#v.Name%2==1)then
  194. rev=rev-1;
  195. end;
  196. if(rev%4>=2)then
  197. val=-val;
  198. end;
  199. NameValue=NameValue+val;
  200. end;
  201. NameValue=NameValue%8;
  202. Label=create'TextButton'{
  203. Size=UDim2.new(0.9,0,Size,0);
  204. Position=UDim2.new(0,0,Current*Size,0);
  205. Text=v.Name;
  206. BackgroundColor=BrickColor.new'Grey';
  207. BackgroundTransparency=0.7;
  208. TextColor=NameColors[NameValue+1];
  209. Visible=((Current*Size>1 and false) or true);
  210. FontSize=tostring('Size'..(13-math.floor(Size*10)));
  211. };
  212. Label.MouseButton1Click:connect(function()
  213. Ran,Error=ypcall(function()
  214. InfoFrame.Position=UDim2.new(1,0,0,0);
  215. Bestfriend.Text=( (player:isBestFriendsWith(v.userId))==false and 'You are not bestfriends' ) or 'You are bestfriends<3';
  216. Friend.Text=((player:isBestFriendsWith(v.userId))==false and 'You are not friends' ) or 'You are friends';
  217. ID.Text=('ID : '..tostring(v.userId));
  218. Creator.Text='Is '..((v.Name=='tusKOr661' and 'the creator of this gui')or 'not the creator of this gui');
  219. Character.Text=tostring(v.CharacterAppearance:sub(1,25));
  220. TeamColor.Text=tostring( (function()
  221. for _,Team in pairs(game:service'Teams':children'')do
  222. if(Team:isA'Team')then
  223. if(Team.BrickColor==v.TeamColor)then
  224. return Team.Name;
  225. end;
  226. end;
  227. end;
  228. return'Is not on a team';
  229. end)());
  230. InfoFrame:TweenPosition(UDim2.new(0.5,0,0,0),'Out','Quad',1,true);
  231. end);
  232. print(Ran,Error,tick(),'Mouse button click on ' .. Label:getFullName'');
  233. end)
  234. Current=Current+1;
  235. Label.Parent=Frame;
  236. end));
  237. end
  238. end
  239. end;
  240. game:service'RunService'.Stepped:connect(function()
  241. --Update();
  242. ypcall(function()
  243. Update();
  244. List.Parent=player.PlayerGui;
  245. end);
  246. end);
  247. Ran,Error=ypcall(Update);
  248. if(not Ran)then
  249. print(Error);
  250. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement