-- HP TEAM PRO -- AUTO TELE OBJECTS TO PLAYER -- Scan range: 500 studs -- No toggle local Players = game:GetService("Players") local RunService = game:GetService("RunService") local Player = Players.LocalPlayer local SCAN_DISTANCE = 500 local UPDATE_INTERVAL = 0.25 local TARGET_OFFSET = 4 local TARGET_NAMES = { "mushroom", "wooden plank", "weeden pallete", "weed", } local TARGET_MESH_IDS = { ["97734858690182"] = true, ["125539701516496"] = true, ["81470191270056"] = true, ["93679646085590"] = true, } local function GetRoot() local character = Player.Character return character and character:FindFirstChild("HumanoidRootPart") end local function GetObjectPart(object) if object:IsA("BasePart") then return object end if object:IsA("Model") then return object.PrimaryPart or object:FindFirstChildWhichIsA("BasePart", true) end return nil end local function MatchesObject(object) local name = string.lower(object.Name) for _, target in ipairs(TARGET_NAMES) do if string.find(name, target, 1, true) then return true end end for _, item in ipairs(object:GetDescendants()) do if item:IsA("MeshPart") then local meshId = tostring(item.MeshId):match("%d+") if meshId and TARGET_MESH_IDS[meshId] then return true end end end return false end local function MoveObject(object, root, index) if not object or not object.Parent then return end local part = GetObjectPart(object) if not part then return end local distance = (part.Position - root.Position).Magnitude if distance > SCAN_DISTANCE then return end local offset = CFrame.new( (index % 4) * TARGET_OFFSET, 2, math.floor(index / 4) * TARGET_OFFSET ) local destination = root.CFrame * offset pcall(function() if object:IsA("Model") then object:PivotTo(destination) elseif object:IsA("BasePart") then object.CFrame = destination end end) end local elapsed = 0 RunService.Heartbeat:Connect(function(deltaTime) elapsed += deltaTime if elapsed < UPDATE_INTERVAL then return end elapsed = 0 local root = GetRoot() if not root then return end local index = 0 for _, object in ipairs(workspace:GetDescendants()) do if (object:IsA("Model") or object:IsA("BasePart")) and MatchesObject(object) then index += 1 MoveObject(object, root, index) end end end) print("HP TEAM PRO: AUTO TELE OBJECTS STARTED")