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 -- ========================================== -- 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", "chocolate bar", "bread"} 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) -- Collect Gems window:Label("keep clicking to collect all gems", Color3.fromRGB(127, 143, 166)) window:Button("Collect Gems", function() local TweenService = game:GetService("TweenService") local Char = Player.Character or Player.CharacterAdded:Wait() local HRP = Char:WaitForChild("HumanoidRootPart") -- 1. Setup Names and Table local gemNames = {"1 gem", "gem", "gems", "diamond", "diamonds"} local targets = {} -- 2. Scan Workspace for all valid gems for _, obj in pairs(workspace:GetDescendants()) do if obj:IsA("BasePart") then local lowerName = string.lower(obj.Name) local isGem = false for _, name in pairs(gemNames) do if string.find(lowerName, name) then isGem = true break end end if isGem then table.insert(targets, obj) end end end -- 3. Sort targets by distance (Closest to Farthest) table.sort(targets, function(a, b) local distA = (a.Position - HRP.Position).Magnitude local distB = (b.Position - HRP.Position).Magnitude return distA < distB end) -- 4. Loop through and Tween to each one for _, target in pairs(targets) do if target and target.Parent then local distance = (target.Position - HRP.Position).Magnitude local duration = distance / 200 local tween = TweenService:Create(HRP, TweenInfo.new(duration, Enum.EasingStyle.Linear), { CFrame = target.CFrame * CFrame.new(0, 2, 0) -- Stand near/on the gem to touch it }) tween:Play() tween.Completed:Wait() task.wait(0.1) -- Tiny pause for stability end end end) -- ========================================== -- 5. AUTO MINE (Crystal & Scrap Loop) - Updated Safety -- ========================================== -- Variable to track if the toggle is on local isAutoMining = false -- Function that runs the background loop local function startAutoMineLoop() task.spawn(function() while isAutoMining do local Char = Player.Character or Player.CharacterAdded:Wait() local HRP = Char:WaitForChild("HumanoidRootPart") local resourceNames = {"crystal", "scrap"} local closestTarget = nil local shortestDistance = math.huge -- 1. SCAN: Find closest crystal/scrap for _, obj in pairs(workspace:GetDescendants()) do if obj:IsA("BasePart") and obj.Parent then local lowerName = string.lower(obj.Name) for _, name in pairs(resourceNames) do if string.find(lowerName, name) then local dist = (obj.Position - HRP.Position).Magnitude if dist < shortestDistance then shortestDistance = dist closestTarget = obj end break end end end end -- 2. MOVE: If we found a target, go to it if closestTarget then local distance = (closestTarget.Position - HRP.Position).Magnitude local speed = 250 -- Speed of the tween local duration = distance / speed -- Calculate destination (Stand slightly on top) local targetCFrame = closestTarget.CFrame * CFrame.new(0, 2, 0) -- Tween to the rock local tween = TweenService:Create(HRP, TweenInfo.new(duration, Enum.EasingStyle.Linear), { CFrame = targetCFrame }) tween:Play() -- 3. MINE: Wait until we arrive, then click until it's gone OR 20s pass tween.Completed:Wait() -- Safety check: Ensure the target didn't disappear while we were walking if closestTarget and closestTarget.Parent then local clickDet = closestTarget:FindFirstChildOfClass("ClickDetector") -- TIMEOUT SET TO 20 SECONDS HERE: local mineTimeout = tick() + 20 -- Loop while the rock exists and we are still mining and time hasn't run out while closestTarget and closestTarget.Parent and isAutoMining and tick() < mineTimeout do if clickDet then fireclickdetector(clickDet) -- Click to mine end task.wait(0.2) -- Click speed end end else -- If no rocks found, wait a bit before checking again task.wait(1) end -- Small cooldown between rocks task.wait(0.5) end end) end -- ========================================== -- THE TOGGLE BUTTON -- ========================================== window:Toggle("Farm crystals", false, function(bool) isAutoMining = bool if bool then print("Auto Mine Started") startAutoMineLoop() else print("Auto Mine Stopped") end end) -- ========================================== -- GO TO CLOSEST ORE (Button Version) -- ========================================== window:Button("tween to nearest crystal", function() local Char = Player.Character or Player.CharacterAdded:Wait() local HRP = Char:WaitForChild("HumanoidRootPart") local resourceNames = {"crystal", "scrap"} local closestTarget = nil local shortestDistance = math.huge -- Scan for resources for _, obj in pairs(workspace:GetDescendants()) do if obj:IsA("BasePart") then local lowerName = string.lower(obj.Name) for _, name in pairs(resourceNames) do if string.find(lowerName, name) then local dist = (obj.Position - HRP.Position).Magnitude if dist < shortestDistance then shortestDistance = dist closestTarget = obj end break end end end end -- Tween to the closest target if found if closestTarget then local duration = shortestDistance / 200 local tween = TweenService:Create(HRP, TweenInfo.new(duration, Enum.EasingStyle.Linear), { CFrame = closestTarget.CFrame * CFrame.new(0, 2, 0) }) tween:Play() else warn("No ore or scrap found.") end end) -- Text, color: setting color to true will give it a rainbow effect! window:Label("Made by YepImYoshiki", Color3.fromRGB(255, 255, 255))