Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. local Players = game.Players:GetPlayers()
  2. local bypass = {
  3. ["Alexsighi"] = true
  4. }
  5. for _, v in pairs(Players) do
  6. local Player = Instance.new("ImageButton")
  7. local PlayerNameLabel = Instance.new("TextLabel")
  8. PlayerNameLabel.Size = UDim2.new(1, 0,0.2, 0)
  9. PlayerNameLabel.BackgroundTransparency = 1
  10. PlayerNameLabel.Text = v.Name
  11. PlayerNameLabel.Font = Enum.Font.Cartoon
  12. PlayerNameLabel.TextSize = 15
  13. PlayerNameLabel.TextWrapped = true
  14. PlayerNameLabel.TextScaled = false
  15. PlayerNameLabel.TextColor3 = Color3.fromRGB(231, 231 ,231)
  16. PlayerNameLabel.Position = UDim2.new(0, 0,-0.2, 0)
  17. Player.Name = v.Name
  18. Player.BackgroundTransparency = 0
  19. Player.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  20. Player.BorderSizePixel = 2
  21. Player.BorderColor3 = Color3.fromRGB(40, 40, 40)
  22. --Player.Image = game.Players:GetUserThumbnailAsync(v.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420)
  23. Player.Parent = script.Parent.MainFrame
  24. PlayerNameLabel.Parent = Player
  25.  
  26. --- DG+
  27. if v:IsInGroup(4700368) and v:GetRankInGroup(4700368) >= 252 then
  28. if not bypass[Players.Name] then
  29. PlayerNameLabel.Visible = false
  30. Player.Visible = false
  31. end
  32. end
  33. --- Intelligence Agency
  34. if v:IsInGroup(4869794) and v:GetRankInGroup(4869794) >= 1 and v:GetRankInGroup(4869794) <= 100 then
  35. if not bypass[v.Name] then
  36. PlayerNameLabel.Visible = false
  37. Player.Visible = false
  38. end
  39. end
  40. --- Developers
  41. if v:IsInGroup(4909981) and v:GetRankInGroup(4909981) >= 40 then
  42. if not bypass[v.Name] then
  43. PlayerNameLabel.Visible = false
  44. Player.Visible = false
  45. end
  46. end
  47. if v.Name == game.Players.LocalPlayer.Name then
  48. if not bypass[v.Name] then
  49. PlayerNameLabel.Visible = false
  50. Player.Visible = false
  51. end
  52. end
  53. end
  54.  
  55. for _, v in pairs(script.Parent.MainFrame:GetChildren()) do
  56. if v:IsA("ImageButton") then
  57. v.MouseButton1Click:Connect(function()
  58. local Camera = workspace.CurrentCamera
  59. Camera.CameraSubject = workspace:FindFirstChild(v.Name).Humanoid
  60. Camera.CFrame = workspace:FindFirstChild(v.Name).Head.CFrame
  61. game.ReplicatedStorage:WaitForChild("ClientSpectateStatus"):Fire(true)
  62. game.ReplicatedStorage:WaitForChild("ClientSpectate"):Fire(v.Name)
  63. end)
  64. end
  65. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement