-- Made by test_acont01 local Players = game:GetService("Players") local TweenService = game:GetService("TweenService") local RunService = game:GetService("RunService") local StarterGui = game:GetService("StarterGui") local scriptEnabled = false local searchInterval = 0.25 -- Search time in ms local lastSearchTime = 0 local foundFruits = {} local teleporting = false local function createGui(fruitTool) if not fruitTool:FindFirstChild("BillboardGui") then local billboardGui = Instance.new("BillboardGui") billboardGui.Name = "BillboardGui" billboardGui.Size = UDim2.new(0, 100, 0, 50) billboardGui.StudsOffset = Vector3.new(0, 2, 0) billboardGui.Adornee = fruitTool.Handle billboardGui.Parent = fruitTool local textLabel = Instance.new("TextLabel") textLabel.Size = UDim2.new(1, 0, 1, 0) textLabel.BackgroundTransparency = 1 textLabel.Text = fruitTool.Name textLabel.TextColor3 = Color3.new(1, 1, 1) textLabel.TextStrokeTransparency = 0 textLabel.Parent = billboardGui end end local function removeGui(fruitTool) local gui = fruitTool:FindFirstChild("BillboardGui") if gui then gui:Destroy() end end local function teleportTo(fruitModel) if teleporting then return end teleporting = true local fruitPosition = fruitModel:GetModelCFrame().Position local character = Players.LocalPlayer.Character if character and character:FindFirstChild("HumanoidRootPart") then local rootPart = character.HumanoidRootPart local distance = (rootPart.Position - fruitPosition).Magnitude local tweenTime = distance / 500 -- Tween Speed local tweenInfo = TweenInfo.new(tweenTime, Enum.EasingStyle.Linear) local tween = TweenService:Create(rootPart, tweenInfo, { CFrame = CFrame.new(fruitPosition) }) rootPart.Anchored = true tween:Play() tween.Completed:Connect(function() rootPart.Anchored = false teleporting = false for i, fruit in ipairs(foundFruits) do if fruit == fruitModel then removeGui(fruitModel) table.remove(foundFruits, i) break end end StarterGui:SetCore("SendNotification", { Title = "Teleporting to fruit", Text = fruitModel.Name, Duration = 5 }) end) else teleporting = false end end local function detectFruit() local currentTime = tick() local timeElapsed = currentTime - lastSearchTime if timeElapsed >= searchInterval then lastSearchTime = currentTime print("Searching for a fruit") local workspace = game.Workspace for _, object in ipairs(workspace:GetChildren()) do if object:IsA("Tool") then local objectName = object.Name if objectName:match("%w+[%s%d]*Fruit$") then if not table.find(foundFruits, object) then table.insert(foundFruits, object) createGui(object) end end end end end end local function toggleScript() scriptEnabled = not scriptEnabled if scriptEnabled then print("Script enabled!") StarterGui:SetCore("SendNotification", { Title = "Script activated", Text = "Made by test_acont01", Duration = 5 }) else print("Script disabled!") for _, fruit in ipairs(foundFruits) do removeGui(fruit) end foundFruits = {} end end toggleScript() local function mainLoop() if scriptEnabled then detectFruit() if not teleporting and #foundFruits > 0 then print("Teleporting to fruit...") teleportTo(foundFruits[1]) end end end RunService.Heartbeat:Connect(mainLoop)