local ScreenGui = Instance.new("ScreenGui") local ToggleButton = Instance.new("TextButton") local UICorner = Instance.new("UICorner") local TPButton = Instance.new("TextButton") -- New Teleport Button local TPCorner = Instance.new("UICorner") ScreenGui.Name = "FruitESPGui" ScreenGui.Parent = game:GetService("CoreGui") ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling -- Original ESP Button Configurations ToggleButton.Name = "ToggleButton" ToggleButton.Parent = ScreenGui ToggleButton.BackgroundColor3 = Color3.fromRGB(170, 0, 0) -- Defaulted to red match state ToggleButton.Position = UDim2.new(0.05, 0, 0.4, 0) ToggleButton.Size = UDim2.new(0, 120, 0, 45) -- Resized slightly for mobile alignment ToggleButton.Font = Enum.Font.SourceSansBold ToggleButton.Text = "Fruit ESP: OFF" ToggleButton.TextColor3 = Color3.fromRGB(255, 255, 255) ToggleButton.TextSize = 14.0 ToggleButton.Active = true ToggleButton.Draggable = true UICorner.Parent = ToggleButton -- 🚀 New Teleport Button (Anchored directly under the draggable toggle button) TPButton.Name = "TPButton" TPButton.Parent = ToggleButton -- Parenting to ToggleButton ensures it moves with it when dragged TPButton.BackgroundColor3 = Color3.fromRGB(30, 30, 30) TPButton.Position = UDim2.new(0, 0, 1, 5) -- Aligned perfectly underneath with a 5px gap TPButton.Size = UDim2.new(1, 0, 0, 40) TPButton.Font = Enum.Font.SourceSansBold TPButton.Text = "⚡ Teleport to Fruit" TPButton.TextColor3 = Color3.fromRGB(255, 255, 255) TPButton.TextSize = 14.0 TPCorner.Parent = TPButton local espEnabled = false local espObjects = {} local function createEsp(fruit) if not fruit:FindFirstChild("FruitESP") then local billboard = Instance.new("BillboardGui") billboard.Name = "FruitESP" billboard.AlwaysOnTop = true billboard.Size = UDim2.new(0, 100, 0, 50) billboard.Adornee = fruit billboard.Parent = fruit local textLabel = Instance.new("TextLabel") textLabel.Parent = billboard textLabel.BackgroundTransparency = 1 textLabel.Size = UDim2.new(1, 0, 1, 0) textLabel.Text = fruit.Name textLabel.TextColor3 = Color3.fromRGB(0, 255, 0) textLabel.TextStrokeTransparency = 0 textLabel.Font = Enum.Font.SourceSansBold textLabel.TextSize = 16 table.insert(espObjects, billboard) end end local function removeEsp() for _, obj in pairs(espObjects) do if obj then obj:Destroy() end end espObjects = {} end local function updateEsp() removeEsp() if espEnabled then for _, v in pairs(game.Workspace:GetChildren()) do if v.Name:find("Fruit") or (v:IsA("Tool") and v.Name:find("Fruit")) then createEsp(v) end end end end -- Teleport Logic Function local function teleportToClosestFruit() local player = game.Players.LocalPlayer local character = player.Character if not character or not character:FindFirstChild("HumanoidRootPart") then return end local rootPart = character.HumanoidRootPart local targetFruit = nil local shortestDistance = math.huge -- Scan for valid active map fruits for _, v in pairs(game.Workspace:GetChildren()) do if v.Name:find("Fruit") or (v:IsA("Tool") and v.Name:find("Fruit")) then -- Find physical part/handle to track coordinates local targetPart = v:FindFirstChild("Handle") or v:FindFirstChildOfClass("Part") or v:FindFirstChildOfClass("MeshPart") if targetPart then local distance = (targetPart.Position - rootPart.Position).Magnitude if distance < shortestDistance then shortestDistance = distance targetFruit = targetPart end end end end -- Process Teleportation Vector if targetFruit then TPButton.Text = "Teleporting..." TPButton.TextColor3 = Color3.fromRGB(255, 255, 0) -- Safe Teleport: Moves your character 3 studs directly above the fruit to prevent clipping rootPart.CFrame = targetFruit.CFrame * CFrame.new(0, 3, 0) task.wait(0.5) TPButton.Text = "⚡ Teleport to Fruit" TPButton.TextColor3 = Color3.fromRGB(255, 255, 255) else -- Feedback UI if no real fruits exist in the workspace cache TPButton.Text = "❌ No Fruits Found!" TPButton.TextColor3 = Color3.fromRGB(255, 100, 100) task.wait(1.5) TPButton.Text = "⚡ Teleport to Fruit" TPButton.TextColor3 = Color3.fromRGB(255, 255, 255) end end -- Button Listeners ToggleButton.MouseButton1Click:Connect(function() espEnabled = not espEnabled if espEnabled then ToggleButton.Text = "Fruit ESP: ON" ToggleButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0) updateEsp() else ToggleButton.Text = "Fruit ESP: OFF" ToggleButton.BackgroundColor3 = Color3.fromRGB(170, 0, 0) removeEsp() end end) TPButton.MouseButton1Click:Connect(function() teleportToClosestFruit() end) game.Workspace.ChildAdded:Connect(function(child) if espEnabled and (child.Name:find("Fruit") or (child:IsA("Tool") and child.Name:find("Fruit"))) then task.wait(0.5) createEsp(child) end end) task.spawn(function() while task.wait(5) do if espEnabled then updateEsp() end end end)