if not game:IsLoaded() then game.Loaded:Wait() end disabled = false if disabled then print("[ETDFarm] disabled.") return end local expectedID = 95095409824456 local lobbyID = 109792243252518 local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local player = Players.LocalPlayer if game.PlaceId == lobbyID then print("[ETDFarm] Lobby detected.") local playerGui = player:WaitForChild("PlayerGui") local PVEMapSelectionHUD = playerGui:WaitForChild("PVEMapSelectionHUD") local TeleporterHUD = PVEMapSelectionHUD:WaitForChild("Main") local target = CFrame.new(270, 79, -18) if TeleporterHUD.Visible then print("[ETDFarm] Teleporter HUD is already visible.") else print("[ETDFarm] Teleporter HUD is not visible.") end while not TeleporterHUD.Visible do local character = player.Character or player.CharacterAdded:Wait() print("[ETDFarm] Teleporter HUD not detected, moving to teleporter...") character:PivotTo(target) task.wait(1) end print("[ETDFarm] Teleporter HUD detected. Teleporter entered successfully.") print("[ETDFarm] Now creating lobby through remote.") wait(0.25) local LobbyQueueRemotes = ReplicatedStorage:WaitForChild("LobbyQueueRemotes") local CreateLobby = LobbyQueueRemotes:WaitForChild("Action") CreateLobby:FireServer( "CreateLobby", { EntryKey = "PVEEndless", Difficulty = "Easy" } ) return elseif game.PlaceId ~= expectedID then print("[ETDFarm] Neither supported PlaceId matched.") return end print("[ETDFarm] PVE dungeon detected.") -- PVE farming code continues here local playerGui = player:WaitForChild("PlayerGui") local DefeatHUD = playerGui:WaitForChild("DefeatHUD") local DefeatPanel = DefeatHUD:WaitForChild("DefeatPanel") local PlaceTurret = ReplicatedStorage:WaitForChild("PlaceTurret") print("[ETDFarm] Placing first turret...") PlaceTurret:FireServer( 30, Vector3.new( 30.053581237792969, -1.8477439880371094e-06, 73.795402526855469 ) ) task.wait(0.25) print("[ETDFarm] Placing second turret...") PlaceTurret:FireServer( 30, Vector3.new( 29.953615188598633, 5.9604644775390625e-08, 2.1082391738891602 ) ) print("[ETDFarm] Setting gamespeed to 2.") local SetGameSpeed = ReplicatedStorage:WaitForChild("SetGameSpeed") SetGameSpeed:FireServer(2) print("[ETDFarm] Turrets placed & GameSpeed set. Monitoring DefeatPanel...") local playtries = 0 while true do local TeleportService = game:GetService("TeleportService") local lobbyID = 109792243252518 if DefeatPanel.Visible then print("[ETDFarm] DefeatPanel detected. Attempting PlayAgain in 3 seconds...") task.wait(3) if DefeatPanel.Visible then print("[ETDFarm] Firing PlayAgain...") local GameOverAction = ReplicatedStorage:WaitForChild("GameOverAction") GameOverAction:FireServer("PlayAgain") playtries += 1 end end if playtries >= 5 then TeleportService:Teleport(lobbyID, player) return end task.wait(0.25) end