Cool Script  Hub infinite nights survival (GameShutDown)
Key Required Patched

Cool Script Hub infinite nights survival (GameShutDown)

Survive the Night 2SkibidigionSpyMegaSkibidigionSpyMega 686 views 289 executesUpdated Jan 3, 2026
Unrated
00
Lua Script•122 lines (3928 chars)
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local Lighting = game:GetService("Lighting")

-- GUI Setup
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "STNHub"
ScreenGui.Parent = game:GetService("CoreGui") -- Hidden from capture

local MainFrame = Instance.new("Frame")
MainFrame.Name = "Main"
MainFrame.Size = UDim2.new(0, 200, 0, 250)
MainFrame.Position = UDim2.new(0.1, 0, 0.1, 0)
MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
MainFrame.BorderSizePixel = 2
MainFrame.Active = true
MainFrame.Draggable = true -- Simple drag
MainFrame.Parent = ScreenGui

local Title = Instance.new("TextLabel")
Title.Size = UDim2.new(1, 0, 0, 30)
Title.Text = "STN UTILITY"
Title.TextColor3 = Color3.fromRGB(255, 255, 255)
Title.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
Title.Parent = MainFrame

-- Helper to create buttons
local function createButton(name, pos, text)
    local btn = Instance.new("TextButton")
    btn.Name = name
    btn.Size = UDim2.new(0.8, 0, 0, 40)
    btn.Position = UDim2.new(0.1, 0, 0, pos)
    btn.Text = text
    btn.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
    btn.TextColor3 = Color3.fromRGB(255, 255, 255)
    btn.Parent = MainFrame
    return btn
end

local espBtn = createButton("ESPBtn", 50, "Toggle Player ESP")
local brightBtn = createButton("BrightBtn", 100, "Full Brightness")
local itemsBtn = createButton("ItemsBtn", 150, "Toggle Med/Bandage")

--- Logic ---

-- 1. Player ESP Logic
local espActive = false
local function updateESP()
    for _, player in pairs(Players:GetPlayers()) do
        if player ~= Players.LocalPlayer and player.Character then
            local highlight = player.Character:FindFirstChild("PlayerHighlight")
            if espActive then
                if not highlight then
                    highlight = Instance.new("Highlight")
                    highlight.Name = "PlayerHighlight"
                    highlight.FillColor = Color3.fromRGB(255, 255, 255)
                    highlight.OutlineColor = Color3.fromRGB(0, 0, 0)
                    highlight.Parent = player.Character
                end
            else
                if highlight then highlight:Destroy() end
            end
        end
    end
end

-- 2. Full Brightness Logic
local brightActive = false
local originalBrightness = Lighting.Brightness
local originalClock = Lighting.ClockTime

local function toggleBrightness()
    brightActive = not brightActive
    if brightActive then
        Lighting.Brightness = 2
        Lighting.ClockTime = 14
        Lighting.GlobalShadows = false
    else
        Lighting.Brightness = originalBrightness
        Lighting.ClockTime = originalClock
        Lighting.GlobalShadows = true
    end
end

-- 3. Medkit/Bandage Logic (Red/White as requested)
local itemsActive = false
local function toggleItems()
    itemsActive = not itemsActive
    for _, obj in pairs(workspace:GetDescendants()) do
        if itemsActive then
            if obj.Name == "Medkit" or obj.Name == "FirstAid" then
                local h = Instance.new("Highlight", obj)
                h.Name = "ItemESP"
                h.FillColor = Color3.fromRGB(255, 0, 0)
            elseif obj.Name == "Bandage" then
                local h = Instance.new("Highlight", obj)
                h.Name = "ItemESP"
                h.FillColor = Color3.fromRGB(255, 255, 255)
            end
        else
            if obj:FindFirstChild("ItemESP") then obj.ItemESP:Destroy() end
        end
    end
end

-- Button Connections
espBtn.MouseButton1Click:Connect(function()
    espActive = not espActive
    updateESP()
end)

brightBtn.MouseButton1Click:Connect(function()
    toggleBrightness()
end)

itemsBtn.MouseButton1Click:Connect(function()
    toggleItems()
end)

-- Loop to keep ESP updated as players spawn
RunService.RenderStepped:Connect(updateESP)

Features & Information

Highlights Healing items and players And adds full brightness nothing much:(
#Highlight Item#Fullbright#Highlights players#Gui draggable#Buttons

Community Comments (1)

No script for survive the night 1 here already someone made it here link https://scriptblox.com/script/Survive-the-Night-Deepstar-Hub-Keyless-36325