DontBlinkDrWho

Untitled

May 10th, 2017
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.32 KB | None | 0 0
  1. for i,v in pairs(game.Players:GetChildren()) do
  2.     if v:IsA("Player") then
  3. MainScreen = Instance.new("ScreenGui", v.PlayerGui)
  4. pop = Instance.new("Frame", MainScreen)
  5. pop.Size = UDim2.new(0,500,0,20)
  6. pop.BackgroundColor3 = Color3.fromRGB(212,94,9)
  7. pop.Position = UDim2.new(0,400,0,125)
  8. pop.Draggable = true
  9. pop.Active = true
  10. lawl = Instance.new("TextLabel", pop)
  11. lawl.Size = UDim2.new(0, 200, 0, 50)
  12. lawl.Position = UDim2.new(0, 100, 0, -15)
  13. lawl.Font = Enum.Font.SciFi
  14. lawl.TextSize = 14
  15. lawl.BackgroundTransparency = 1
  16. lawl.Text = "Drag Here!"
  17. lawl.TextColor3 = Color3.fromRGB(255, 255, 255)
  18. MainFrame = Instance.new("ScrollingFrame", pop)
  19. MainFrame.BackgroundColor3 = Color3.fromRGB(255, 192, 44)
  20. MainFrame.Position = UDim2.new(0, 0, 0, 25)
  21. MainFrame.Size = UDim2.new(0, 500, 0, 500)
  22. MainFrame.CanvasSize = UDim2.new(0,0,2,0)
  23. MainFrame.ScrollBarThickness = 12
  24. MainLabel = Instance.new("TextLabel", MainFrame)
  25. MainLabel.Size = UDim2.new(0, 200, 0, 50)
  26. MainLabel.Position = UDim2.new(0, 150, 0, 0)
  27. MainLabel.Font = Enum.Font.Code
  28. MainLabel.TextSize = 45
  29. MainLabel.BackgroundTransparency = 1
  30. MainLabel.Text = "Player GUI By Rafael"
  31. MainLabel.TextColor3 = Color3.fromRGB(27, 42, 53)
  32.  
  33. getplrs = function()
  34. angle1 = 100
  35. players = game.Players:GetChildren()
  36. for _,v in pairs(MainFrame:GetChildren()) do
  37. if v.ClassName == "TextButton" then
  38. v:Destroy()
  39. end
  40. end
  41.  
  42. for i = 1, #players do
  43.    local frame = Instance.new("ScrollingFrame", pop)
  44.    frame.BackgroundColor3 = Color3.fromRGB(255, 192, 44)
  45.    frame.Position = UDim2.new(0, 0, 0, 25)
  46.    frame.Size = UDim2.new(0, 500, 0, 500)
  47.    frame.Visible = false
  48. local player = Instance.new("TextButton", MainFrame)
  49. player.Position = UDim2.new(0, 20, 0, angle1)
  50. player.Size = UDim2.new(0, 450, 0, 25)
  51. player.BackgroundColor3 = Color3.fromRGB(15, 255, 11)
  52. player.Text = players[i].Name
  53.        player.Name = players[i].Name
  54.        player.Font = Enum.Font.SciFi
  55.        player.TextSize = 20
  56. player.MouseButton1Click:connect(function()
  57. frame.Visible = true
  58. MainFrame.Visible = false
  59. end)
  60.    local back = Instance.new("TextButton", frame)
  61. back.Position = UDim2.new(0, 300, 0, 20)
  62. back.Size = UDim2.new(0, 150, 0, 30)
  63. back.BackgroundColor3 = Color3.fromRGB(15, 255, 11)
  64. back.Text = "Back"
  65.        back.Font = Enum.Font.Arcade
  66.        back.TextSize = 20
  67. local image = Instance.new("ImageLabel", frame)
  68. image.Position = UDim2.new(0, 0, 0, 50)
  69. image.Size = UDim2.new(0, 250,0, 255)
  70. image.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username="..players[i].Name
  71. image.BackgroundTransparency = 1
  72. angle1 = angle1 + 50
  73. local name = Instance.new("TextLabel", frame)
  74. name.BackgroundTransparency = 1
  75. name.Size = UDim2.new(0, 275, 0, 50)
  76. name.Position = UDim2.new(0, 220, 0, 130)
  77. name.Text = "Name: "..players[i].Name
  78. name.Font = Enum.Font.Cartoon
  79.        name.TextSize = 20
  80.        name.TextXAlignment = Enum.TextXAlignment.Left
  81. local age = Instance.new("TextLabel", frame)
  82.        age.BackgroundTransparency = 1
  83. age.Size = UDim2.new(0, 275, 0, 50)
  84. age.Position = UDim2.new(0, 220, 0, 190)
  85. age.Text = "Age: "..players[i].AccountAge
  86. age.Font = Enum.Font.Cartoon
  87.        age.TextSize = 20
  88.        age.TextXAlignment = Enum.TextXAlignment.Left
  89. local id = Instance.new("TextLabel", frame)
  90. id.BackgroundTransparency = 1
  91. id.Size = UDim2.new(0, 275, 0, 50)
  92. id.Position = UDim2.new(0, 220, 0, 160)
  93. id.Text = "Id: "..players[i].userId
  94. id.Font = Enum.Font.Cartoon
  95.        id.TextSize = 20
  96.        id.TextXAlignment = Enum.TextXAlignment.Left
  97. local freb = Instance.new("TextLabel", frame)
  98. freb.BackgroundTransparency = 1
  99. freb.Size = UDim2.new(0, 275, 0, 50)
  100. freb.Position = UDim2.new(0, 220, 0, 220)
  101. local omgwhy = players[i]:IsFriendsWith(plr.userId)
  102.        if omgwhy == true then
  103.        freb.Text = "Friends: Yes"
  104.        else
  105.        freb.Text = "Friends: No"
  106.        end
  107. freb.Font = Enum.Font.Cartoon
  108.        freb.TextSize = 20
  109.        freb.TextXAlignment = Enum.TextXAlignment.Left
  110. back.MouseButton1Click:connect(function()
  111. frame.Visible = false
  112. MainFrame.Visible = true
  113. end)
  114. end
  115. end
  116.  
  117. getplrs()
  118.  
  119. game.Players.PlayerAdded:connect(function(plrgg)
  120.     print("PlayerGui: Player "..plrgg.Name.." Has Joined!")
  121.     getplrs()
  122. end)
  123.  
  124. game.Players.PlayerRemoving:connect(function(plrhg)
  125.     print("PlayerGui: Player "..plrhg.Name.." Has Left!")
  126.     wait()
  127.     getplrs()
  128. end)
  129.     end
  130.     end
Advertisement
Add Comment
Please, Sign In to add comment