Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i,v in pairs(game.Players:GetChildren()) do
- if v:IsA("Player") then
- MainScreen = Instance.new("ScreenGui", v.PlayerGui)
- pop = Instance.new("Frame", MainScreen)
- pop.Size = UDim2.new(0,500,0,20)
- pop.BackgroundColor3 = Color3.fromRGB(212,94,9)
- pop.Position = UDim2.new(0,400,0,125)
- pop.Draggable = true
- pop.Active = true
- lawl = Instance.new("TextLabel", pop)
- lawl.Size = UDim2.new(0, 200, 0, 50)
- lawl.Position = UDim2.new(0, 100, 0, -15)
- lawl.Font = Enum.Font.SciFi
- lawl.TextSize = 14
- lawl.BackgroundTransparency = 1
- lawl.Text = "Drag Here!"
- lawl.TextColor3 = Color3.fromRGB(255, 255, 255)
- MainFrame = Instance.new("ScrollingFrame", pop)
- MainFrame.BackgroundColor3 = Color3.fromRGB(255, 192, 44)
- MainFrame.Position = UDim2.new(0, 0, 0, 25)
- MainFrame.Size = UDim2.new(0, 500, 0, 500)
- MainFrame.CanvasSize = UDim2.new(0,0,2,0)
- MainFrame.ScrollBarThickness = 12
- MainLabel = Instance.new("TextLabel", MainFrame)
- MainLabel.Size = UDim2.new(0, 200, 0, 50)
- MainLabel.Position = UDim2.new(0, 150, 0, 0)
- MainLabel.Font = Enum.Font.Code
- MainLabel.TextSize = 45
- MainLabel.BackgroundTransparency = 1
- MainLabel.Text = "Player GUI By Rafael"
- MainLabel.TextColor3 = Color3.fromRGB(27, 42, 53)
- getplrs = function()
- angle1 = 100
- players = game.Players:GetChildren()
- for _,v in pairs(MainFrame:GetChildren()) do
- if v.ClassName == "TextButton" then
- v:Destroy()
- end
- end
- for i = 1, #players do
- local frame = Instance.new("ScrollingFrame", pop)
- frame.BackgroundColor3 = Color3.fromRGB(255, 192, 44)
- frame.Position = UDim2.new(0, 0, 0, 25)
- frame.Size = UDim2.new(0, 500, 0, 500)
- frame.Visible = false
- local player = Instance.new("TextButton", MainFrame)
- player.Position = UDim2.new(0, 20, 0, angle1)
- player.Size = UDim2.new(0, 450, 0, 25)
- player.BackgroundColor3 = Color3.fromRGB(15, 255, 11)
- player.Text = players[i].Name
- player.Name = players[i].Name
- player.Font = Enum.Font.SciFi
- player.TextSize = 20
- player.MouseButton1Click:connect(function()
- frame.Visible = true
- MainFrame.Visible = false
- end)
- local back = Instance.new("TextButton", frame)
- back.Position = UDim2.new(0, 300, 0, 20)
- back.Size = UDim2.new(0, 150, 0, 30)
- back.BackgroundColor3 = Color3.fromRGB(15, 255, 11)
- back.Text = "Back"
- back.Font = Enum.Font.Arcade
- back.TextSize = 20
- local image = Instance.new("ImageLabel", frame)
- image.Position = UDim2.new(0, 0, 0, 50)
- image.Size = UDim2.new(0, 250,0, 255)
- image.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username="..players[i].Name
- image.BackgroundTransparency = 1
- angle1 = angle1 + 50
- local name = Instance.new("TextLabel", frame)
- name.BackgroundTransparency = 1
- name.Size = UDim2.new(0, 275, 0, 50)
- name.Position = UDim2.new(0, 220, 0, 130)
- name.Text = "Name: "..players[i].Name
- name.Font = Enum.Font.Cartoon
- name.TextSize = 20
- name.TextXAlignment = Enum.TextXAlignment.Left
- local age = Instance.new("TextLabel", frame)
- age.BackgroundTransparency = 1
- age.Size = UDim2.new(0, 275, 0, 50)
- age.Position = UDim2.new(0, 220, 0, 190)
- age.Text = "Age: "..players[i].AccountAge
- age.Font = Enum.Font.Cartoon
- age.TextSize = 20
- age.TextXAlignment = Enum.TextXAlignment.Left
- local id = Instance.new("TextLabel", frame)
- id.BackgroundTransparency = 1
- id.Size = UDim2.new(0, 275, 0, 50)
- id.Position = UDim2.new(0, 220, 0, 160)
- id.Text = "Id: "..players[i].userId
- id.Font = Enum.Font.Cartoon
- id.TextSize = 20
- id.TextXAlignment = Enum.TextXAlignment.Left
- local freb = Instance.new("TextLabel", frame)
- freb.BackgroundTransparency = 1
- freb.Size = UDim2.new(0, 275, 0, 50)
- freb.Position = UDim2.new(0, 220, 0, 220)
- local omgwhy = players[i]:IsFriendsWith(plr.userId)
- if omgwhy == true then
- freb.Text = "Friends: Yes"
- else
- freb.Text = "Friends: No"
- end
- freb.Font = Enum.Font.Cartoon
- freb.TextSize = 20
- freb.TextXAlignment = Enum.TextXAlignment.Left
- back.MouseButton1Click:connect(function()
- frame.Visible = false
- MainFrame.Visible = true
- end)
- end
- end
- getplrs()
- game.Players.PlayerAdded:connect(function(plrgg)
- print("PlayerGui: Player "..plrgg.Name.." Has Joined!")
- getplrs()
- end)
- game.Players.PlayerRemoving:connect(function(plrhg)
- print("PlayerGui: Player "..plrhg.Name.." Has Left!")
- wait()
- getplrs()
- end)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment