Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game.Players:GetPlayers()
- local bypass = {
- ["Alexsighi"] = true
- }
- for _, v in pairs(Players) do
- local Player = Instance.new("ImageButton")
- local PlayerNameLabel = Instance.new("TextLabel")
- PlayerNameLabel.Size = UDim2.new(1, 0,0.2, 0)
- PlayerNameLabel.BackgroundTransparency = 1
- PlayerNameLabel.Text = v.Name
- PlayerNameLabel.Font = Enum.Font.Cartoon
- PlayerNameLabel.TextSize = 15
- PlayerNameLabel.TextWrapped = true
- PlayerNameLabel.TextScaled = false
- PlayerNameLabel.TextColor3 = Color3.fromRGB(231, 231 ,231)
- PlayerNameLabel.Position = UDim2.new(0, 0,-0.2, 0)
- Player.Name = v.Name
- Player.BackgroundTransparency = 0
- Player.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
- Player.BorderSizePixel = 2
- Player.BorderColor3 = Color3.fromRGB(40, 40, 40)
- --Player.Image = game.Players:GetUserThumbnailAsync(v.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420)
- Player.Parent = script.Parent.MainFrame
- PlayerNameLabel.Parent = Player
- --- DG+
- if v:IsInGroup(4700368) and v:GetRankInGroup(4700368) >= 252 then
- if not bypass[Players.Name] then
- PlayerNameLabel.Visible = false
- Player.Visible = false
- end
- end
- --- Intelligence Agency
- if v:IsInGroup(4869794) and v:GetRankInGroup(4869794) >= 1 and v:GetRankInGroup(4869794) <= 100 then
- if not bypass[v.Name] then
- PlayerNameLabel.Visible = false
- Player.Visible = false
- end
- end
- --- Developers
- if v:IsInGroup(4909981) and v:GetRankInGroup(4909981) >= 40 then
- if not bypass[v.Name] then
- PlayerNameLabel.Visible = false
- Player.Visible = false
- end
- end
- if v.Name == game.Players.LocalPlayer.Name then
- if not bypass[v.Name] then
- PlayerNameLabel.Visible = false
- Player.Visible = false
- end
- end
- end
- for _, v in pairs(script.Parent.MainFrame:GetChildren()) do
- if v:IsA("ImageButton") then
- v.MouseButton1Click:Connect(function()
- local Camera = workspace.CurrentCamera
- Camera.CameraSubject = workspace:FindFirstChild(v.Name).Humanoid
- Camera.CFrame = workspace:FindFirstChild(v.Name).Head.CFrame
- game.ReplicatedStorage:WaitForChild("ClientSpectateStatus"):Fire(true)
- game.ReplicatedStorage:WaitForChild("ClientSpectate"):Fire(v.Name)
- end)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement