24 Hours Overnight script – (Godmode)

24 hours overnight script - aetheria hub

More 24 Hours Overnight Scripts code icon


Build your base and survive the night in 24 Hours Overnight as dangerous employees and scary monsters roam the store. With god mode, flight, enhanced speed, and full bright, you can fortify your shelter, navigate the dark, and outlast every threat until dawn.

Game link: 24 Hours Overnight

Table of Contents

    Сontent continues after AD

    Lua
    
    local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/Turtle-Brand/Turtle-Lib/main/source.lua"))()
    
    local window = library:Window("24 Hours Overnight")
    
    -- ==========================================
    -- SERVICES
    -- ==========================================
    local TweenService = game:GetService("TweenService")
    local RunService = game:GetService("RunService")
    local Players = game:GetService("Players")
    local Lighting = game:GetService("Lighting")
    local VirtualInputManager = game:GetService("VirtualInputManager")
    
    -- ==========================================
    -- PLAYER VARIABLES
    -- ==========================================
    local Player = Players.LocalPlayer
    local Character = Player.Character or Player.CharacterAdded:Wait()
    local Humanoid = Character:WaitForChild("Humanoid")
    local RootPart = Character:WaitForChild("HumanoidRootPart")
    local PlayerGui = Player:WaitForChild("PlayerGui")
    
    -- ==========================================
    -- FULLBRIGHT SETUP (Save Original Settings)
    -- ==========================================
    local originalFogEnd = Lighting.FogEnd
    local originalBrightness = Lighting.Brightness
    local originalShadows = Lighting.GlobalShadows
    local originalOutdoorAmbient = Lighting.OutdoorAmbient
    
    -- ==========================================
    -- 1. GOD MODE (Allows Health Bar, No Death, No Red)
    -- ==========================================
    local godModeConnection = nil
    
    window:Toggle("God Mode [BROKEN]", false, function(bool)
        local Char = Player.Character or Player.CharacterAdded:Wait()
        local Hum = Char:FindFirstChild("Humanoid")
        if not Hum then return end
    
        if bool then
            Hum.BreakJointsOnDeath = false
            Hum.HealthDisplayType = Enum.HumanoidHealthDisplayType.DisplayWhenDamaged
            Hum.NameDisplayDistance = 100
    
            godModeConnection = RunService.Heartbeat:Connect(function()
                if Hum.MaxHealth < 100 then Hum.MaxHealth = 100 end
                if Hum.Health < Hum.MaxHealth then Hum.Health = Hum.MaxHealth end
    
                -- Remove Red Overlay
                for _, gui in pairs(PlayerGui:GetDescendants()) do
                    if gui:IsA("Frame") or gui:IsA("ImageLabel") or gui:IsA("ImageButton") then
                        if gui.BackgroundColor3 == Color3.new(1, 0, 0) or gui.Name:lower() == "damage" or gui.Name:lower() == "hurt" then
                            gui.Visible = false
                        end
                    end
                end
            end)
        else
            if godModeConnection then godModeConnection:Disconnect() end
            Hum.BreakJointsOnDeath = true
            Hum.HealthDisplayType = Enum.HumanoidHealthDisplayType.DisplayWhenDamaged
        end
    end)
    
    -- ==========================================
    -- 2. WALKSPEED
    -- ==========================================
    window:Box("Walkspeed", function(text, focuslost)
        if focuslost then
            local speedValue = tonumber(text)
            if speedValue then
                local char = Player.Character or Player.CharacterAdded:Wait()
                local hum = char:FindFirstChild("Humanoid")
                if hum then
                    hum.WalkSpeed = speedValue
                end
            end
        end
    end)
    
    -- ==========================================
    -- 3. FOOD COLLECTOR (Fixed to Click and Store)
    -- ==========================================
    
    window:Button("Bring Food", function()
        local TweenService = game:GetService("TweenService")
        local Players = game:GetService("Players")
        local Player = Players.LocalPlayer
    
        local Char = Player.Character or Player.CharacterAdded:Wait()
        local RP = Char:WaitForChild("HumanoidRootPart")
    
        -- Settings
        local foodNames = {"burger", "apple", "banana", "bloxy cola", "hotdog", "pizza", "beans"}
        local speed = 200 -- Magnet speed
    
        task.wait(1)
    
        for _, object in pairs(game:GetDescendants()) do
            if object:IsA("BasePart") then
                local itemName = string.lower(object.Name)
    
                for _, food in pairs(foodNames) do
                    if string.find(itemName, food) then
                        -- === NOCLIP SETUP ===
                        -- We anchor the part so it ignores physics and flies through walls/bases
                        local wasAnchored = object.Anchored
                        object.Anchored = true
    
                        local distance = (object.Position - RP.Position).Magnitude
                        local timeToGetThere = distance / speed
    
                        -- Target: Right in front of you (3 studs)
                        local targetCFrame = RP.CFrame * CFrame.new(0, 0, 3)
    
                        -- 1. MAGNET TWEEN: Fly food to player
                        local tween = TweenService:Create(object, TweenInfo.new(timeToGetThere, Enum.EasingStyle.Linear), {
                            CFrame = targetCFrame
                        })
    
                        tween:Play()
                        tween.Completed:Wait()
    
                        -- === INTERACTION (Pick up ONLY, No Store) ===
    
                        -- Find ClickDetector
                        local clickDet = object:FindFirstChildOfClass("ClickDetector")
                        if not clickDet then
                            local parentObj = object.Parent
                            if parentObj then clickDet = parentObj:FindFirstChildOfClass("ClickDetector") end
                        end
    
                        if clickDet then
                            fireclickdetector(clickDet)
                        end
    
                        -- 2. RESET PHYSICS (Optional, drops it on floor if it didn't disappear)
                        object.Anchored = wasAnchored
    
                        task.wait(0.2)
                        break 
                    end
                end
            end
        end
    end)
    
    window:Button("Bring Food (Fast)", function()
        local TweenService = game:GetService("TweenService")
        local Players = game:GetService("Players")
        local Player = Players.LocalPlayer
    
        local Char = Player.Character or Player.CharacterAdded:Wait()
        local RP = Char:WaitForChild("HumanoidRootPart")
    
        -- Settings
        local foodNames = {"burger", "apple", "banana", "bloxy cola", "hotdog", "pizza", "beans"}
        local flyTime = 0.1 -- This is the "Really Fast" setting (0.1 seconds)
    
        task.wait(1)
    
        for _, object in pairs(game:GetDescendants()) do
            if object:IsA("BasePart") then
                local itemName = string.lower(object.Name)
    
                for _, food in pairs(foodNames) do
                    if string.find(itemName, food) then
    
                        -- === 1. NOCLIP THROUGH BASE ===
                        -- Save original setting to be polite
                        local originalCollide = object.CanCollide
    
                        -- Turn off collision so it doesn't get stuck on your walls
                        object.CanCollide = false
                        -- Anchor it so physics don't fight the movement
                        object.Anchored = true
    
                        -- === 2. FLY REALLY FAST ===
                        -- Target: Directly in front of player
                        local targetCFrame = RP.CFrame + Vector3.new(0, 0, 3)
    
                        local tween = TweenService:Create(object, TweenInfo.new(flyTime, Enum.EasingStyle.Linear), {
                            CFrame = targetCFrame
                        })
    
                        tween:Play()
                        tween.Completed:Wait()
    
                        -- === 3. PICK UP ===
                        local clickDet = object:FindFirstChildOfClass("ClickDetector")
                        if not clickDet then
                            local parentObj = object.Parent
                            if parentObj then clickDet = parentObj:FindFirstChildOfClass("ClickDetector") end
                        end
    
                        if clickDet then
                            fireclickdetector(clickDet)
                        end
    
                        -- === 4. CLEANUP ===
                        -- Restore collision (optional, but good practice) and unanchor
                        object.CanCollide = originalCollide
                        object.Anchored = false
    
                        task.wait(0.1) -- Tiny pause between items
                        break 
                    end
                end
            end
        end
    end)
    
    -- ==========================================
    -- 4. FULLBRIGHT (With Fog Restore)
    -- ==========================================
    window:Toggle("FullBright", false, function(bool)
        if bool then
            Lighting.Brightness = 2
            Lighting.GlobalShadows = false
            Lighting.FogEnd = 100000
            Lighting.OutdoorAmbient = Color3.new(1,1,1)
        else
            Lighting.Brightness = originalBrightness
            Lighting.GlobalShadows = originalShadows
            Lighting.FogEnd = originalFogEnd
            Lighting.OutdoorAmbient = Color3.fromRGB(128,128,128)
        end
    end)
    
    -- Name of button, callback
    window:Button("Fly Gui (Not Mine!)", function()
            loadstring(game:HttpGet("https://raw.githubusercontent.com/XNEOFF/FlyGuiV3/main/FlyGuiV3.txt"))()
       print("Fly Gui Loader Started!")
    end)
    
    -- Text, color: setting color to true will give it a rainbow effect!
    
    window:Label("Made by YepImYoshiki", Color3.fromRGB(255, 255, 255))
      

    Script Features:

    • God Mode – Makes you invincible to all damage from enemies and hazards.
    • Walkspeed Modifier – Adjusts your character\'s movement speed.
    • Bring Foot – Teleports or attracts the \"Foot\" item/enemy to your location.
    • Full Bright – Removes all darkness and shadows for maximum visibility.
    • FLY – Enables free-flight movement to bypass obstacles and navigate the map.
    • Script developer: YelpmYoshiki

    Сontent continues after AD


    How to use 24 Hours Overnight script?


    Important information:

    • All scripts are free.
    • All scripts are safe to use.
    • We do not have viruses or malware.

    Комментарии

    No comments yet. Be the first.

    Leave a comment