SpyGui
Key RequiredUniversal

SpyGui

Universal ScriptScriptsMakerScriptsMaker 2.1K views 6.7K executesUpdated Jun 26, 2026
Unrated
00
Lua Script•155 lines (5308 chars)
-- Spy GUI Advanced by AI Collaborator
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local Camera = game:GetService("Workspace").CurrentCamera

local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "SpyGUI"
ScreenGui.Parent = game.CoreGui

local MainFrame = Instance.new("Frame")
MainFrame.Name = "MainFrame"
MainFrame.Parent = ScreenGui
MainFrame.Size = UDim2.new(0, 200, 0, 100) -- Начальный размер
MainFrame.Position = UDim2.new(0.5, -100, 0.5, -150)
MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
MainFrame.BorderSizePixel = 0
MainFrame.Active = true
MainFrame.Draggable = true

local MainCorner = Instance.new("UICorner")
MainCorner.CornerRadius = UDim.new(0, 8)
MainCorner.Parent = MainFrame

-- Заголовок
local TitleBar = Instance.new("Frame")
TitleBar.Size = UDim2.new(1, 0, 0, 30)
TitleBar.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
TitleBar.Parent = MainFrame

local TitleCorner = Instance.new("UICorner")
TitleCorner.CornerRadius = UDim.new(0, 8)
TitleCorner.Parent = TitleBar

local TitleLabel = Instance.new("TextLabel")
TitleLabel.Text = "Spy GUI"
TitleLabel.Size = UDim2.new(1, -40, 1, 0)
TitleLabel.BackgroundTransparency = 1
TitleLabel.TextColor3 = Color3.new(1, 1, 1)
TitleLabel.Font = Enum.Font.GothamBold
TitleLabel.TextSize = 14
TitleLabel.Parent = TitleBar

-- Кнопка сворачивания (минимизация)
local MinButton = Instance.new("TextButton")
MinButton.Text = "-"
MinButton.Size = UDim2.new(0, 30, 1, 0)
MinButton.Position = UDim2.new(1, -30, 0, 0)
MinButton.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
MinButton.TextColor3 = Color3.new(1, 1, 1)
MinButton.Font = Enum.Font.GothamBold
MinButton.Parent = TitleBar
Instance.new("UICorner", MinButton).CornerRadius = UDim.new(0, 8)

-- Кнопка управления списком
local ToggleListBtn = Instance.new("TextButton")
ToggleListBtn.Text = "Список игроков"
ToggleListBtn.Size = UDim2.new(1, -10, 0, 30)
ToggleListBtn.Position = UDim2.new(0, 5, 0, 35)
ToggleListBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
ToggleListBtn.TextColor3 = Color3.new(1, 1, 1)
ToggleListBtn.Font = Enum.Font.GothamBold
ToggleListBtn.Parent = MainFrame
Instance.new("UICorner", ToggleListBtn).CornerRadius = UDim.new(0, 5)

-- Кнопка Стоп (изначально скрыта)
local StopBtn = Instance.new("TextButton")
StopBtn.Text = "Стоп Спектатор"
StopBtn.Size = UDim2.new(1, -10, 0, 30)
StopBtn.Position = UDim2.new(0, 5, 0, 70)
StopBtn.BackgroundColor3 = Color3.fromRGB(150, 50, 50)
StopBtn.TextColor3 = Color3.new(1, 1, 1)
StopBtn.Font = Enum.Font.GothamBold
StopBtn.Parent = MainFrame
StopBtn.Visible = false
Instance.new("UICorner", StopBtn).CornerRadius = UDim.new(0, 5)

-- Контейнер списка
local ListContainer = Instance.new("ScrollingFrame")
ListContainer.Size = UDim2.new(1, -10, 0, 150)
ListContainer.Position = UDim2.new(0, 5, 0, 105)
ListContainer.BackgroundTransparency = 1
ListContainer.ScrollBarThickness = 2
ListContainer.Visible = false -- Скрыт по умолчанию
ListContainer.Parent = MainFrame

local UIListLayout = Instance.new("UIListLayout")
UIListLayout.Padding = UDim.new(0, 5)
UIListLayout.Parent = ListContainer

-- ЛОГИКА
local isMinimized = false

-- Сворачивание всего окна
MinButton.MouseButton1Click:Connect(function()
    isMinimized = not isMinimized
    if isMinimized then
        MainFrame.Size = UDim2.new(0, 200, 0, 30)
        ToggleListBtn.Visible = false
        StopBtn.Visible = false
        ListContainer.Visible = false
    else
        MainFrame.Size = UDim2.new(0, 200, 0, 100) -- Базовый размер
        ToggleListBtn.Visible = true
        if StopBtn.Active then StopBtn.Visible = true end
    end
end)

-- Переключатель списка
ToggleListBtn.MouseButton1Click:Connect(function()
    ListContainer.Visible = not ListContainer.Visible
    if ListContainer.Visible then
        MainFrame.Size = UDim2.new(0, 200, 0, 260)
    else
        MainFrame.Size = UDim2.new(0, 200, 0, 100)
    end
end)

-- Остановка слежки
StopBtn.MouseButton1Click:Connect(function()
    Camera.CameraSubject = LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid")
    StopBtn.Visible = false
    StopBtn.Active = false
end)

-- Обновление игроков
local function refreshPlayers()
    for _, child in pairs(ListContainer:GetChildren()) do
        if child:IsA("TextButton") then child:Destroy() end
    end
    
    for _, player in pairs(Players:GetPlayers()) do
        if player ~= LocalPlayer then
            local pBtn = Instance.new("TextButton")
            pBtn.Text = player.Name
            pBtn.Size = UDim2.new(1, -5, 0, 25)
            pBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
            pBtn.TextColor3 = Color3.new(1, 1, 1)
            pBtn.Font = Enum.Font.GothamBold
            pBtn.Parent = ListContainer
            Instance.new("UICorner", pBtn).CornerRadius = UDim.new(0, 4)
            
            pBtn.MouseButton1Click:Connect(function()
                if player.Character and player.Character:FindFirstChild("Humanoid") then
                    Camera.CameraSubject = player.Character.Humanoid
                    StopBtn.Visible = true
                    StopBtn.Active = true
                end
            end)
        end
    end
end

refreshPlayers()
Players.PlayerAdded:Connect(refreshPlayers)
Players.PlayerRemoving:Connect(refreshPlayers)

Features & Information

minimalist russian spy gui to ee a Players POV, click on "список игроков", red button is stop spectating button

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts