--[[ HP TEAM PRO V1 Client-side utility GUI for Roblox Studio / your own experience. Place as a LocalScript in StarterPlayerScripts or StarterGui. Features: - Purple mobile-friendly draggable GUI, minimize and close - Main: scan nearby Workspace objects, select an object, copy its details, local teleport to selected object - ESP: player boxes, names and distance (client-side) - Other: WalkSpeed, JumpPower, Fly (with mobile buttons), NoClip, FPS counter - Cleanup on close / respawn Important: - This is client-side only. It does not grant server permissions, damage players, collect items, open chests, or bypass game systems. - Clipboard copy uses setclipboard when available; otherwise a selectable text box is shown so you can copy manually. ]] local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local TweenService = game:GetService("TweenService") local Workspace = game:GetService("Workspace") local LocalPlayer = Players.LocalPlayer local PlayerGui = LocalPlayer:WaitForChild("PlayerGui") -- Avoid duplicate copies local old = PlayerGui:FindFirstChild("HP_TEAM_PRO_V1") if old then old:Destroy() end local Config = { ScanRadius = 150, ESP = false, ESPBoxes = true, ESPNames = true, ESPDistance = true, Speed = 16, Jump = 50, FlySpeed = 55, Fly = false, NoClip = false, FPS = false, } local Connections = {} local ESPObjects = {} local SelectedObject = nil local IsMinimized = false local IsClosed = false local FlyVelocity = nil local FlyGyro = nil local FlyAttachment = nil local BodyPartsOriginal = {} local function track(connection) table.insert(Connections, connection) return connection end local function getCharacter() return LocalPlayer.Character end local function getHumanoid() local character = getCharacter() return character and character:FindFirstChildOfClass("Humanoid") end local function getRoot() local character = getCharacter() return character and character:FindFirstChild("HumanoidRootPart") end local function make(className, props, parent) local obj = Instance.new(className) for key, value in pairs(props or {}) do obj[key] = value end obj.Parent = parent return obj end local function round(instance, radius) make("UICorner", {CornerRadius = UDim.new(0, radius or 8)}, instance) end local function stroke(instance, color, thickness, transparency) make("UIStroke", { Color = color or Color3.fromRGB(145, 90, 255), Thickness = thickness or 1, Transparency = transparency or 0, }, instance) end local function addConnection(signal, callback) return track(signal:Connect(callback)) end local Purple = Color3.fromRGB(145, 85, 255) local Dark = Color3.fromRGB(18, 15, 27) local Panel = Color3.fromRGB(29, 24, 42) local Panel2 = Color3.fromRGB(40, 32, 58) local White = Color3.fromRGB(245, 240, 255) local Muted = Color3.fromRGB(180, 168, 200) local Gui = make("ScreenGui", { Name = "HP_TEAM_PRO_V1", ResetOnSpawn = false, ZIndexBehavior = Enum.ZIndexBehavior.Sibling, }, PlayerGui) local Main = make("Frame", { Name = "Main", Size = UDim2.fromOffset(350, 430), Position = UDim2.new(0.5, -175, 0.5, -215), BackgroundColor3 = Dark, BorderSizePixel = 0, ClipsDescendants = true, }, Gui) round(Main, 12) stroke(Main, Purple, 1.5) local Header = make("Frame", { Size = UDim2.new(1, 0, 0, 42), BackgroundColor3 = Panel, BorderSizePixel = 0, }, Main) round(Header, 12) local HeaderCover = make("Frame", { Position = UDim2.new(0, 0, 1, -12), Size = UDim2.new(1, 0, 0, 12), BackgroundColor3 = Panel, BorderSizePixel = 0, }, Header) make("TextLabel", { Position = UDim2.fromOffset(12, 0), Size = UDim2.new(1, -105, 1, 0), BackgroundTransparency = 1, Text = "HP TEAM PRO V1", TextColor3 = White, Font = Enum.Font.GothamBold, TextSize = 15, TextXAlignment = Enum.TextXAlignment.Left, }, Header) local MinButton = make("TextButton", { Position = UDim2.new(1, -72, 0, 7), Size = UDim2.fromOffset(28, 28), Text = "—", TextColor3 = White, BackgroundColor3 = Panel2, Font = Enum.Font.GothamBold, TextSize = 18, BorderSizePixel = 0, }, Header) round(MinButton, 7) local CloseButton = make("TextButton", { Position = UDim2.new(1, -38, 0, 7), Size = UDim2.fromOffset(28, 28), Text = "×", TextColor3 = White, BackgroundColor3 = Color3.fromRGB(125, 45, 70), Font = Enum.Font.GothamBold, TextSize = 20, BorderSizePixel = 0, }, Header) round(CloseButton, 7) local TabBar = make("Frame", { Position = UDim2.fromOffset(10, 52), Size = UDim2.new(1, -20, 0, 34), BackgroundTransparency = 1, }, Main) local TabLayout = make("UIListLayout", { FillDirection = Enum.FillDirection.Horizontal, Padding = UDim.new(0, 6), SortOrder = Enum.SortOrder.LayoutOrder, }, TabBar) local Pages = make("Frame", { Position = UDim2.fromOffset(10, 94), Size = UDim2.new(1, -20, 1, -104), BackgroundTransparency = 1, }, Main) local PageFrames = {} local TabButtons = {} local CurrentTab = "Main" local function createPage(name) local page = make("ScrollingFrame", { Name = name, Size = UDim2.fromScale(1, 1), BackgroundTransparency = 1, BorderSizePixel = 0, ScrollBarThickness = 3, ScrollBarImageColor3 = Purple, CanvasSize = UDim2.new(), AutomaticCanvasSize = Enum.AutomaticSize.Y, }, Pages) make("UIListLayout", { Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder, }, page) make("UIPadding", { PaddingBottom = UDim.new(0, 8), PaddingRight = UDim.new(0, 4), }, page) PageFrames[name] = page page.Visible = false return page end local MainPage = createPage("Main") local ESPPage = createPage("ESP") local OtherPage = createPage("Khac") local function selectTab(name) CurrentTab = name for pageName, page in pairs(PageFrames) do page.Visible = pageName == name end for tabName, button in pairs(TabButtons) do button.BackgroundColor3 = tabName == name and Purple or Panel2 end end local function createTab(name, text) local button = make("TextButton", { Name = name .. "Tab", Size = UDim2.new(1/3, -4, 1, 0), BackgroundColor3 = Panel2, Text = text, TextColor3 = White, Font = Enum.Font.GothamBold, TextSize = 12, BorderSizePixel = 0, }, TabBar) round(button, 8) TabButtons[name] = button addConnection(button.Activated, function() selectTab(name) end) end createTab("Main", "MAIN") createTab("ESP", "ESP") createTab("Khac", "KHÁC") selectTab("Main") local function section(parent, text) local label = make("TextLabel", { Size = UDim2.new(1, -2, 0, 25), BackgroundTransparency = 1, Text = text, TextColor3 = Purple, Font = Enum.Font.GothamBold, TextSize = 13, TextXAlignment = Enum.TextXAlignment.Left, }, parent) return label end local function makeButton(parent, text, callback, height) local button = make("TextButton", { Size = UDim2.new(1, -2, 0, height or 34), BackgroundColor3 = Panel2, Text = text, TextColor3 = White, Font = Enum.Font.GothamSemibold, TextSize = 12, TextWrapped = true, BorderSizePixel = 0, AutoButtonColor = true, }, parent) round(button, 8) addConnection(button.Activated, callback) return button end local function makeLabel(parent, text, height) return make("TextLabel", { Size = UDim2.new(1, -2, 0, height or 28), BackgroundColor3 = Panel, Text = text, TextColor3 = Muted, Font = Enum.Font.Gotham, TextSize = 11, TextWrapped = true, BorderSizePixel = 0, }, parent) end local function makeTextBox(parent, placeholder, defaultText) local box = make("TextBox", { Size = UDim2.new(1, -2, 0, 34), BackgroundColor3 = Panel, Text = defaultText or "", PlaceholderText = placeholder, PlaceholderColor3 = Muted, TextColor3 = White, Font = Enum.Font.Gotham, TextSize = 12, ClearTextOnFocus = false, BorderSizePixel = 0, }, parent) round(box, 7) return box end -- MAIN PAGE section(MainPage, "OBJECT SCANNER") makeLabel(MainPage, "Quét vật thể trong Workspace theo bán kính. Chọn vật để xem/copy thông tin.", 36) local RadiusBox = makeTextBox(MainPage, "Bán kính quét (mặc định 150)", "150") local ScanStatus = makeLabel(MainPage, "Chưa quét vật thể.", 26) local ObjectList = make("ScrollingFrame", { Size = UDim2.new(1, -2, 0, 130), BackgroundColor3 = Panel, BorderSizePixel = 0, ScrollBarThickness = 3, ScrollBarImageColor3 = Purple, CanvasSize = UDim2.new(), AutomaticCanvasSize = Enum.AutomaticSize.Y, }, MainPage) round(ObjectList, 8) make("UIListLayout", { Padding = UDim.new(0, 4), SortOrder = Enum.SortOrder.LayoutOrder, }, ObjectList) make("UIPadding", { PaddingTop = UDim.new(0, 5), PaddingLeft = UDim.new(0, 5), PaddingRight = UDim.new(0, 5), }, ObjectList) local function clearObjectList() for _, child in ipairs(ObjectList:GetChildren()) do if child:IsA("TextButton") or child:IsA("TextLabel") then child:Destroy() end end end local function getPath(instance) local names = {} local current = instance while current and current ~= game do table.insert(names, 1, current.Name) current = current.Parent end return table.concat(names, ".") end local function getObjectDetails(instance) local lines = { "Name: " .. instance.Name, "Class: " .. instance.ClassName, "Path: " .. getPath(instance), } if instance:IsA("BasePart") then table.insert(lines, "Position: " .. tostring(instance.Position)) table.insert(lines, "Size: " .. tostring(instance.Size)) end local ok, attributes = pcall(function() return instance:GetAttributes() end) if ok then for name, value in pairs(attributes) do table.insert(lines, "Attribute " .. tostring(name) .. ": " .. tostring(value)) end end local meshId, textureId if instance:IsA("MeshPart") then meshId = instance.MeshId textureId = instance.TextureID elseif instance:IsA("SpecialMesh") then meshId = instance.MeshId textureId = instance.TextureId end if meshId and meshId ~= "" then table.insert(lines, "MeshID: " .. meshId) end if textureId and textureId ~= "" then table.insert(lines, "TextureID: " .. textureId) end return table.concat(lines, "\n") end local function copyText(value) local copied = false if type(setclipboard) == "function" then copied = pcall(setclipboard, value) elseif type(toclipboard) == "function" then copied = pcall(toclipboard, value) end if copied then ScanStatus.Text = "Đã sao chép thông tin vật thể." return end local popup = make("Frame", { Size = UDim2.new(1, -18, 0, 150), Position = UDim2.new(0, 9, 0.5, -75), BackgroundColor3 = Panel, ZIndex = 20, }, Main) round(popup, 9) stroke(popup, Purple, 1) make("TextLabel", { Size = UDim2.new(1, -12, 0, 24), Position = UDim2.fromOffset(6, 3), BackgroundTransparency = 1, Text = "Chọn nội dung bên dưới rồi sao chép", TextColor3 = White, Font = Enum.Font.GothamBold, TextSize = 11, ZIndex = 21, }, popup) local textBox = make("TextBox", { Position = UDim2.fromOffset(7, 30), Size = UDim2.new(1, -14, 1, -66), BackgroundColor3 = Dark, Text = value, TextColor3 = White, TextSize = 10, Font = Enum.Font.Code, TextWrapped = false, TextXAlignment = Enum.TextXAlignment.Left, TextYAlignment = Enum.TextYAlignment.Top, ClearTextOnFocus = false, MultiLine = true, TextEditable = true, ZIndex = 21, }, popup) textBox:CaptureFocus() local close = make("TextButton", { Position = UDim2.new(1, -74, 1, -29), Size = UDim2.fromOffset(66, 23), BackgroundColor3 = Purple, Text = "ĐÓNG", TextColor3 = White, Font = Enum.Font.GothamBold, TextSize = 10, ZIndex = 21, }, popup) round(close, 6) addConnection(close.Activated, function() popup:Destroy() end) end local function selectObject(instance) SelectedObject = instance ScanStatus.Text = "Đã chọn: " .. instance.Name .. " (" .. instance.ClassName .. ")" end local function scanObjects() clearObjectList() SelectedObject = nil local radius = tonumber(RadiusBox.Text) or Config.ScanRadius radius = math.clamp(radius, 1, 2000) Config.ScanRadius = radius local root = getRoot() if not root then ScanStatus.Text = "Không tìm thấy nhân vật của bạn." return end local found = {} for _, instance in ipairs(Workspace:GetDescendants()) do if instance:IsA("BasePart") then local distance = (instance.Position - root.Position).Magnitude if distance <= radius and not instance:IsDescendantOf(getCharacter()) then table.insert(found, {Object = instance, Distance = distance}) end end end table.sort(found, function(a, b) return a.Distance < b.Distance end) local shown = math.min(#found, 120) for index = 1, shown do local entry = found[index] local object = entry.Object local button = make("TextButton", { Size = UDim2.new(1, -4, 0, 27), BackgroundColor3 = Panel2, Text = string.format("%s | %s | %.1fm", object.Name, object.ClassName, entry.Distance), TextColor3 = White, Font = Enum.Font.Gotham, TextSize = 10, TextXAlignment = Enum.TextXAlignment.Left, TextTruncate = Enum.TextTruncate.AtEnd, BorderSizePixel = 0, }, ObjectList) addConnection(button.Activated, function() if object and object.Parent then selectObject(object) copyText(getObjectDetails(object)) else ScanStatus.Text = "Vật thể không còn tồn tại." end end) end ScanStatus.Text = string.format("Tìm thấy %d BasePart trong %.0fm. Hiển thị tối đa %d.", #found, radius, shown) end makeButton(MainPage, "QUÉT VẬT THỂ", scanObjects) makeButton(MainPage, "COPY THÔNG TIN VẬT ĐANG CHỌN", function() if SelectedObject and SelectedObject.Parent then copyText(getObjectDetails(SelectedObject)) else ScanStatus.Text = "Hãy chọn một vật thể trong danh sách trước." end end) makeButton(MainPage, "DỊCH CHUYỂN ĐẾN VẬT ĐANG CHỌN", function() local root = getRoot() if not root or not SelectedObject or not SelectedObject.Parent then ScanStatus.Text = "Chưa chọn vật thể hợp lệ." return end local part = SelectedObject:IsA("BasePart") and SelectedObject or SelectedObject:FindFirstChildWhichIsA("BasePart", true) if not part then ScanStatus.Text = "Vật thể này không có BasePart." return end root.CFrame = part.CFrame + Vector3.new(0, 4, 0) ScanStatus.Text = "Đã dịch chuyển cục bộ đến vật thể." end) -- ESP PAGE section(ESPPage, "PLAYER ESP") makeLabel(ESPPage, "ESP chỉ hiển thị trên máy của bạn, không thay đổi dữ liệu người chơi khác.", 36) local function clearESP() for player, drawing in pairs(ESPObjects) do if drawing then for _, item in pairs(drawing) do if typeof(item) == "Instance" then item:Destroy() end end end ESPObjects[player] = nil end end local function makeESPFor(player) if player == LocalPlayer or ESPObjects[player] then return end local box = make("BillboardGui", { Name = "HP_ESP", Size = UDim2.fromOffset(150, 50), AlwaysOnTop = true, Enabled = false, StudsOffset = Vector3.new(0, 3, 0), MaxDistance = 2000, }, Gui) local label = make("TextLabel", { Size = UDim2.fromScale(1, 1), BackgroundTransparency = 1, Text = player.Name, TextColor3 = Color3.fromRGB(220, 180, 255), TextStrokeTransparency = 0.2, Font = Enum.Font.GothamBold, TextSize = 13, }, box) ESPObjects[player] = {Billboard = box, Label = label} end local function updateESP() for _, player in ipairs(Players:GetPlayers()) do if player ~= LocalPlayer then makeESPFor(player) local drawing = ESPObjects[player] local character = player.Character local head = character and character:FindFirstChild("Head") local humanoid = character and character:FindFirstChildOfClass("Humanoid") local myRoot = getRoot() local theirRoot = character and character:FindFirstChild("HumanoidRootPart") if drawing and head and humanoid and humanoid.Health > 0 and myRoot and theirRoot then drawing.Billboard.Adornee = head drawing.Billboard.Enabled = Config.ESP local distance = (theirRoot.Position - myRoot.Position).Magnitude local text = "" if Config.ESPNames then text = player.Name end if Config.ESPDistance then text = text .. (text ~= "" and "\n" or "") .. string.format("%.0f studs", distance) end drawing.Label.Text = text drawing.Label.Visible = Config.ESPNames or Config.ESPDistance elseif drawing then drawing.Billboard.Enabled = false end end end end makeButton(ESPPage, "BẬT / TẮT ESP", function() Config.ESP = not Config.ESP ScanStatus.Text = "ESP: " .. (Config.ESP and "ON" or "OFF") updateESP() end) makeButton(ESPPage, "BẬT / TẮT TÊN NGƯỜI CHƠI", function() Config.ESPNames = not Config.ESPNames updateESP() end) makeButton(ESPPage, "BẬT / TẮT KHOẢNG CÁCH", function() Config.ESPDistance = not Config.ESPDistance updateESP() end) makeButton(ESPPage, "XÓA ESP", function() Config.ESP = false clearESP() end) -- OTHER PAGE section(OtherPage, "MOVEMENT") local SpeedBox = makeTextBox(OtherPage, "WalkSpeed", tostring(Config.Speed)) makeButton(OtherPage, "ÁP DỤNG WALK SPEED", function() local value = tonumber(SpeedBox.Text) local humanoid = getHumanoid() if value and humanoid then Config.Speed = math.clamp(value, 0, 250) humanoid.WalkSpeed = Config.Speed end end) local JumpBox = makeTextBox(OtherPage, "JumpPower", tostring(Config.Jump)) makeButton(OtherPage, "ÁP DỤNG JUMP POWER", function() local value = tonumber(JumpBox.Text) local humanoid = getHumanoid() if value and humanoid then Config.Jump = math.clamp(value, 0, 250) humanoid.UseJumpPower = true humanoid.JumpPower = Config.Jump end end) makeButton(OtherPage, "BẬT / TẮT NOCLIP", function() Config.NoClip = not Config.NoClip end) makeButton(OtherPage, "BẬT / TẮT FLY", function() Config.Fly = not Config.Fly local root = getRoot() if not root then Config.Fly = false return end if Config.Fly then FlyAttachment = Instance.new("Attachment") FlyAttachment.Name = "HPFlyAttachment" FlyAttachment.Parent = root FlyVelocity = Instance.new("LinearVelocity") FlyVelocity.Name = "HPFlyVelocity" FlyVelocity.Attachment0 = FlyAttachment FlyVelocity.RelativeTo = Enum.ActuatorRelativeTo.World FlyVelocity.MaxForce = math.huge FlyVelocity.VectorVelocity = Vector3.zero FlyVelocity.Parent = root FlyGyro = Instance.new("AlignOrientation") FlyGyro.Name = "HPFlyOrientation" FlyGyro.Attachment0 = FlyAttachment FlyGyro.Mode = Enum.OrientationAlignmentMode.OneAttachment FlyGyro.MaxTorque = math.huge FlyGyro.Responsiveness = 20 FlyGyro.Parent = root else if FlyVelocity then FlyVelocity:Destroy() FlyVelocity = nil end if FlyGyro then FlyGyro:Destroy() FlyGyro = nil end if FlyAttachment then FlyAttachment:Destroy() FlyAttachment = nil end end end) local FlySpeedBox = makeTextBox(OtherPage, "Fly speed", tostring(Config.FlySpeed)) makeButton(OtherPage, "ÁP DỤNG FLY SPEED", function() local value = tonumber(FlySpeedBox.Text) if value then Config.FlySpeed = math.clamp(value, 1, 250) end end) local FPSLabel = makeLabel(OtherPage, "FPS: --", 26) makeButton(OtherPage, "BẬT / TẮT FPS", function() Config.FPS = not Config.FPS FPSLabel.Visible = Config.FPS end) -- Mobile fly controls local FlyControls = make("Frame", { Name = "FlyMobileControls", Size = UDim2.fromOffset(126, 100), Position = UDim2.new(1, -140, 1, -130), BackgroundColor3 = Panel, BackgroundTransparency = 0.15, Visible = false, }, Gui) round(FlyControls, 10) stroke(FlyControls, Purple, 1) local UpButton = make("TextButton", { Position = UDim2.fromOffset(43, 5), Size = UDim2.fromOffset(40, 38), Text = "▲", TextColor3 = White, BackgroundColor3 = Panel2, Font = Enum.Font.GothamBold, TextSize = 18, }, FlyControls) round(UpButton, 7) local DownButton = make("TextButton", { Position = UDim2.fromOffset(43, 55), Size = UDim2.fromOffset(40, 38), Text = "▼", TextColor3 = White, BackgroundColor3 = Panel2, Font = Enum.Font.GothamBold, TextSize = 18, }, FlyControls) round(DownButton, 7) local VerticalInput = 0 addConnection(UpButton.InputBegan, function(input) if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then VerticalInput = 1 end end) addConnection(UpButton.InputEnded, function(input) if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then if VerticalInput == 1 then VerticalInput = 0 end end end) addConnection(DownButton.InputBegan, function(input) if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then VerticalInput = -1 end end) addConnection(DownButton.InputEnded, function(input) if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then if VerticalInput == -1 then VerticalInput = 0 end end end) -- Drag window on mouse/touch local dragging = false local dragInput, dragStart, startPosition addConnection(Header.InputBegan, function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPosition = Main.Position dragInput = input end end) addConnection(Header.InputEnded, function(input) if input == dragInput then dragging = false end end) addConnection(UserInputService.InputChanged, function(input) if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then local delta = input.Position - dragStart Main.Position = UDim2.new( startPosition.X.Scale, startPosition.X.Offset + delta.X, startPosition.Y.Scale, startPosition.Y.Offset + delta.Y ) end end) addConnection(MinButton.Activated, function() IsMinimized = not IsMinimized TabBar.Visible = not IsMinimized Pages.Visible = not IsMinimized Main.Size = IsMinimized and UDim2.fromOffset(350, 42) or UDim2.fromOffset(350, 430) MinButton.Text = IsMinimized and "+" or "—" end) local function cleanup() if IsClosed then return end IsClosed = true Config.Fly = false Config.NoClip = false if FlyVelocity then FlyVelocity:Destroy() end if FlyGyro then FlyGyro:Destroy() end if FlyAttachment then FlyAttachment:Destroy() end clearESP() for _, connection in ipairs(Connections) do pcall(function() connection:Disconnect() end) end table.clear(Connections) local humanoid = getHumanoid() if humanoid then humanoid.WalkSpeed = 16 humanoid.JumpPower = 50 end if Gui then Gui:Destroy() end end addConnection(CloseButton.Activated, cleanup) -- Runtime update local frameCount = 0 local lastFpsTime = os.clock() addConnection(RunService.Stepped, function() if IsClosed then return end if Config.NoClip then local character = getCharacter() if character then for _, part in ipairs(character:GetDescendants()) do if part:IsA("BasePart") then if BodyPartsOriginal[part] == nil then BodyPartsOriginal[part] = part.CanCollide end part.CanCollide = false end end else table.clear(BodyPartsOriginal) end elseif next(BodyPartsOriginal) then for part, oldValue in pairs(BodyPartsOriginal) do if part and part.Parent then part.CanCollide = oldValue end end table.clear(BodyPartsOriginal) end end) addConnection(RunService.RenderStepped, function(deltaTime) if IsClosed then return end FlyControls.Visible = Config.Fly and UserInputService.TouchEnabled if Config.Fly and FlyVelocity and FlyGyro then local camera = Workspace.CurrentCamera local root = getRoot() if not root or not camera then Config.Fly = false else local direction = Vector3.zero if UserInputService:IsKeyDown(Enum.KeyCode.W) then direction += camera.CFrame.LookVector end if UserInputService:IsKeyDown(Enum.KeyCode.S) then direction -= camera.CFrame.LookVector end if UserInputService:IsKeyDown(Enum.KeyCode.D) then direction += camera.CFrame.RightVector end if UserInputService:IsKeyDown(Enum.KeyCode.A) then direction -= camera.CFrame.RightVector end local vertical = VerticalInput if UserInputService:IsKeyDown(Enum.KeyCode.Space) then vertical += 1 end if UserInputService:IsKeyDown(Enum.KeyCode.LeftControl) then vertical -= 1 end if direction.Magnitude > 0 then direction = direction.Unit end FlyVelocity.VectorVelocity = direction * Config.FlySpeed + Vector3.new(0, vertical * Config.FlySpeed, 0) FlyGyro.CFrame = camera.CFrame end end if Config.FPS then frameCount += 1 if os.clock() - lastFpsTime >= 1 then FPSLabel.Text = "FPS: " .. tostring(frameCount) frameCount = 0 lastFpsTime = os.clock() end end end) addConnection(RunService.Heartbeat, function() if not IsClosed and Config.ESP then updateESP() end end) addConnection(Players.PlayerRemoving, function(player) local drawing = ESPObjects[player] if drawing then for _, item in pairs(drawing) do if typeof(item) == "Instance" then item:Destroy() end end ESPObjects[player] = nil end end) addConnection(LocalPlayer.CharacterAdded, function() task.wait(0.5) local humanoid = getHumanoid() if humanoid then humanoid.WalkSpeed = Config.Speed humanoid.UseJumpPower = true humanoid.JumpPower = Config.Jump end if Config.Fly then Config.Fly = false if FlyVelocity then FlyVelocity:Destroy() FlyVelocity = nil end if FlyGyro then FlyGyro:Destroy() FlyGyro = nil end if FlyAttachment then FlyAttachment:Destroy() FlyAttachment = nil end end table.clear(BodyPartsOriginal) end) -- Initial defaults and ready state FPSLabel.Visible = false makeLabel(MainPage, "Mẹo: chạm vào một dòng vật thể để chọn và sao chép Name / Class / Path / ID nếu có.", 38) print("HP TEAM PRO V1 loaded.")