local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local LocalPlayer = Players.LocalPlayer -- =================================================================== -- LOAD LIBRARY -- =================================================================== local ok, Lib = pcall(function() return loadstring(game:HttpGet("https://raw.githubusercontent.com/itay299/RobloxScripts/refs/heads/main/Scripts/!MyLibrary"))() end) if not ok then warn("Failed to load library: " .. tostring(Lib)) return end -- Clean up any previous instance of this GUI (re-paste safety). for _, parent in ipairs({ game:GetService("CoreGui"), LocalPlayer:FindFirstChild("PlayerGui") }) do if parent then local old = parent:FindFirstChild("XenoPremium_EnterVerity") if old then pcall(function() old:Destroy() end) end end end local UI = Lib:Create("Enter Verity", "EnterVerity") -- Tabs (always added per your rules) local Main = UI:Category("Main") local Teleports = UI:Category("Teleports") local Crates = UI:Category("Crates") local SettingsTab = UI:Category("Settings") -- =================================================================== -- REMOTES / REFERENCES -- =================================================================== local Remotes = ReplicatedStorage:WaitForChild("Remotes") local Functions = Remotes:WaitForChild("Functions") local Events = Remotes:WaitForChild("Events") local BuyCrateRF = Functions:WaitForChild("BuyCrate") local MoveToStageRE = Events:WaitForChild("MoveToStage") local SpawnPlayerInFunZoneRE = Events:WaitForChild("SpawnPlayerInFunZone") local ClaimFunZoneRewardRE = Events:WaitForChild("ClaimFunZoneReward") local StagesFolder = workspace:WaitForChild("Stages") local ZonesFolder = workspace:WaitForChild("Zones") -- Crate list discovered from the game's own shop UI (order = purchase order). local CRATE_LIST = { "Basic", "Ice", "Candy" } -- Galactic costs Robux, excluded on purpose local FUNZONES = {} for _, zone in ipairs(ZonesFolder.FunZone:GetChildren()) do if zone:IsA("Folder") and zone:FindFirstChild("Spawn") then table.insert(FUNZONES, zone.Name) end end -- =================================================================== -- HELPERS -- =================================================================== local function getHRP() local char = LocalPlayer.Character if not char then return nil end return char:FindFirstChild("HumanoidRootPart") end local function getHumanoid() local char = LocalPlayer.Character if not char then return nil end return char:FindFirstChildOfClass("Humanoid") end local function getStageLabel() local gui = LocalPlayer:FindFirstChild("PlayerGui") local main = gui and gui:FindFirstChild("Main") local display = main and main:FindFirstChild("Display") if not display then return nil end for _, d in ipairs(display:GetDescendants()) do if d.Name == "Stage" and d:IsA("TextLabel") then return d end end return nil end local function getCurrentStage() local label = getStageLabel() return label and tonumber(label.Text) or nil end local function getCashLabel() local gui = LocalPlayer:FindFirstChild("PlayerGui") local main = gui and gui:FindFirstChild("Main") local display = main and main:FindFirstChild("Display") if not display then return nil end for _, d in ipairs(display:GetDescendants()) do if d.Name == "Amount" and d:IsA("TextLabel") and d.Parent and d.Parent.Name == "Cash" then return d end end return nil end local function getCash() local label = getCashLabel() if not label then return nil end local clean = label.Text:gsub("[^%d]", "") return tonumber(clean) end local function notify(msg) print("[EnterVerity AutoFarm] " .. msg) end -- =================================================================== -- CONFIG -- =================================================================== local Config = { AutoFarm = false, FarmSpeed = 0.05, -- delay between stage hops; 0 or lower = every frame (instant) EndDelay = 5, -- seconds to wait at the end before the next run AutoBuyCrates = false, CrateChoice = "Basic", KeepCash = 0, -- stop buying if cash would drop below this TouchFunZone = false, -- teleport straight into each FunZone reward (server may or may not credit) } -- =================================================================== -- CORE: STAGE FARM -- =================================================================== -- The obby's checkpoints are the "Platform" parts inside workspace.Stages. -- Touching the NEXT stage's platform advances your checkpoint (server -- validates it, so we teleport physically to each stage in order). local function getStagePlatform(n) local model = StagesFolder:FindFirstChild(tostring(n)) if not model then return nil end local platform = model:FindFirstChild("Platform") if platform and platform:IsA("BasePart") then return platform end return model:FindFirstChildWhichIsA("BasePart") end local function getTotalStages() local n = 0 while StagesFolder:FindFirstChild(tostring(n)) do n = n + 1 end return n - 1 -- highest valid stage index end local totalStages = getTotalStages() local farming = false -- declared before runToEnd so its loop reads the real state local autoFarmBtn = nil -- set below so the farm loop can update the label on stop local lastStageTouched = 0 local function hopDelay() if Config.FarmSpeed > 0 then task.wait(Config.FarmSpeed) else task.wait() -- one frame: as instant as touches allow end end -- One full run: burst-hop from our current checkpoint to the last stage, then -- touch the WinZone. Returns true when the end was reached. local function runToEnd() local total = totalStages while farming and Config.AutoFarm do -- our position = whatever the game's label confirms, or our own tracking -- if the label lags behind the burst (never regress below either) local current = math.max(getCurrentStage() or 0, lastStageTouched) if current >= total then break end local platform = getStagePlatform(current + 1) if not platform then break end local hrp = getHRP() if not hrp then return false end lastStageTouched = current + 1 hrp.CFrame = platform.CFrame * CFrame.new(0, 4, 0) hopDelay() end -- touch the WinZone to bank the finish local winZone = ZonesFolder:FindFirstChild("WinZone") local zonePart = winZone and winZone:FindFirstChild("Zone") local hrp = getHRP() if zonePart and hrp then hrp.CFrame = zonePart.CFrame * CFrame.new(0, 5, 0) end return true end local function startAutoFarm() if farming then return end farming = true notify("AutoFarm started (endless: run to end, wait " .. Config.EndDelay .. "s, repeat)") task.spawn(function() while farming and Config.AutoFarm do local okRun, err = pcall(function() -- each run starts from wherever the game says we are lastStageTouched = getCurrentStage() or 0 if runToEnd() then notify("At the end - waiting " .. Config.EndDelay .. "s, then going again") local resumeAt = os.clock() + Config.EndDelay while farming and Config.AutoFarm and os.clock() < resumeAt do task.wait(0.25) end end end) if not okRun then notify("farm error: " .. tostring(err)) task.wait(1) end end farming = false notify("AutoFarm stopped") -- Sync the toggle label so it doesn't show [ON] after stopping. if autoFarmBtn then autoFarmBtn.Text = "Auto Farm (Endless) [OFF]" autoFarmBtn.BackgroundColor3 = Color3.fromRGB(45, 45, 52) end end) end local function stopAutoFarm() Config.AutoFarm = false -- farming loop exits itself end -- =================================================================== -- CORE: AUTO BUY CRATES -- =================================================================== local buying = false local function startAutoBuyCrates() if buying then return end buying = true notify("Auto Buy Crates started: " .. Config.CrateChoice) task.spawn(function() while buying and Config.AutoBuyCrates do local cash = getCash() or 0 if cash > Config.KeepCash then local okBuy, res = pcall(function() return BuyCrateRF:InvokeServer(Config.CrateChoice) end) if not okBuy then notify("BuyCrate error: " .. tostring(res)) task.wait(1) end else task.wait(1) -- save up end task.wait(0.1) end buying = false notify("Auto Buy Crates stopped") end) end local function stopAutoBuyCrates() Config.AutoBuyCrates = false end -- =================================================================== -- CORE: FUN ZONE FARM (cheapy: teleport to each zone's reward) -- =================================================================== local function touchFunZoneReward(zoneName) local zone = ZonesFolder.FunZone:FindFirstChild(zoneName) if not zone then return end local reward = zone:FindFirstChild("Reward") if not reward then return end local zonePart = reward:FindFirstChild("Zone") or reward:FindFirstChild("RegionPart") if not zonePart then return end local hrp = getHRP() if not hrp then return end hrp.CFrame = zonePart.CFrame * CFrame.new(0, 5, 0) end -- =================================================================== -- TELEPORT LIST -- =================================================================== local TELEPORTS = { { name = "Spawn / Lobby", get = function() return CFrame.new(-28, 8, 0) -- stage 0 platform end }, { name = "Top Stage (WinZone)", get = function() local wz = ZonesFolder:FindFirstChild("WinZone") local z = wz and wz:FindFirstChild("Zone") if z then return z.CFrame * CFrame.new(0, 5, 0) end return CFrame.new(-1223, 805, 0) end }, { name = "Crates Shop", get = function() local z = ZonesFolder.CratesShop:FindFirstChild("Zone") return z and z.CFrame * CFrame.new(0, 5, 0) or CFrame.new(14, 8, 15) end }, { name = "Gears Shop", get = function() local z = ZonesFolder.GearsShop:FindFirstChild("Zone") return z and z.CFrame * CFrame.new(0, 5, 0) or CFrame.new(14, 8, -15) end }, { name = "Choppa (Helipad)", get = function() local z = ZonesFolder.Choppa:FindFirstChild("Zone") return z and z.CFrame * CFrame.new(0, 5, 0) or CFrame.new(40, 8, -26) end }, } for _, zoneName in ipairs(FUNZONES) do table.insert(TELEPORTS, { name = "FunZone: " .. zoneName, get = function() local zone = ZonesFolder.FunZone:FindFirstChild(zoneName) local z = zone and zone:FindFirstChild("Zone") return z and z.CFrame * CFrame.new(0, 5, 0) or CFrame.new(314, 8, 0) end }) end -- =================================================================== -- UI: MAIN TAB -- =================================================================== autoFarmBtn = Main:Toggle("Auto Farm (Endless)", false, function(state) Config.AutoFarm = state if state then startAutoFarm() else stopAutoFarm() end end, "autofarm") Main:Toggle("Auto Touch FunZone Rewards", false, function(state) Config.TouchFunZone = state end, "autotouchfunzone") Main:Textbox("Farm Speed (seconds between stages, 0 = instant)", "0.05", function(text) local n = tonumber(text) if n and n >= 0 then Config.FarmSpeed = n end end) Main:Textbox("Wait at end before next run (seconds)", "5", function(text) local n = tonumber(text) if n and n >= 0 then Config.EndDelay = n end end) local cashButton = Main:Button("Show Current Cash", function() notify("Cash: $" .. tostring(getCash() or "?")) end) local function tryTouchFunZones() task.spawn(function() for _, zoneName in ipairs(FUNZONES) do if Config.TouchFunZone then pcall(touchFunZoneReward, zoneName) task.wait(1) end end end) end Main:Button("Touch All FunZone Rewards Now", function() Config.TouchFunZone = true tryTouchFunZones() task.delay(#FUNZONES + 2, function() Config.TouchFunZone = false end) end) -- =================================================================== -- UI: TELEPORTS TAB -- =================================================================== Teleports:Button("Teleport to Last Checkpoint", function() local stage = getCurrentStage() or 0 local platform = getStagePlatform(stage) local hrp = getHRP() if platform and hrp then hrp.CFrame = platform.CFrame * CFrame.new(0, 4, 0) notify("Teleported to checkpoint stage " .. stage) else notify("Couldn't find checkpoint (stage: " .. tostring(stage) .. ")") end end) for _, tp in ipairs(TELEPORTS) do Teleports:Button("TP: " .. tp.name, function() local hrp = getHRP() if hrp then hrp.CFrame = tp.get() end end) end -- =================================================================== -- UI: CRATES TAB -- =================================================================== Crates:Dropdown("Crate", CRATE_LIST, Config.CrateChoice, function(choice) Config.CrateChoice = choice end, "cratechoice") Crates:Toggle("Auto Buy Crates", false, function(state) Config.AutoBuyCrates = state if state then startAutoBuyCrates() else stopAutoBuyCrates() end end, "autobuycrates") Crates:Textbox("Keep this much cash (stop below)", "0", function(text) local n = tonumber(text) or 0 Config.KeepCash = n end) Crates:Button("Buy 1 " .. Config.CrateChoice .. " Now", function() task.spawn(function() local okBuy, res = pcall(function() return BuyCrateRF:InvokeServer(Config.CrateChoice) end) notify("Buy result: " .. tostring(okBuy) .. " / " .. tostring(res)) end) end) Crates:Button("Show Cash", function() notify("Cash: $" .. tostring(getCash() or "?")) end) -- =================================================================== -- UI: SETTINGS TAB -- =================================================================== SettingsTab:Button("Obby Info (Stages: " .. totalStages .. ")", function() notify("Total stages: " .. totalStages .. " | You are on stage: " .. tostring(getCurrentStage() or "?")) end) SettingsTab:Button("Destroy GUI", function() local gui = (game:GetService("CoreGui"):FindFirstChild("XenoPremium_EnterVerity") or LocalPlayer:FindFirstChild("PlayerGui"):FindFirstChild("XenoPremium_EnterVerity")) if gui then gui:Destroy() end stopAutoFarm() stopAutoBuyCrates() end) notify("Loaded! Enter Verity AutoFarm ready.")