PARKOUR Legacy Script: Esp
- Batuhan Gülşen
- May 12
- 2 min read

local Players = game:GetService("Players")local Workspace = game:GetService("Workspace")local player = Players.LocalPlayerlocal mouse = player:GetMouse()-- GUI setuplocal gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))gui.Name = "ItemHighlighterGUI"gui.ResetOnSpawn = falselocal frame = Instance.new("Frame")frame.Size = UDim2.new(0, 270, 0.7, 0)frame.Position = UDim2.new(0, 10, 0.15, 0)frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)frame.BorderSizePixel = 0frame.Parent = guiInstance.new("UICorner", frame).CornerRadius = UDim.new(0, 8)-- Search barlocal searchBar = Instance.new("TextBox")searchBar.Size = UDim2.new(1, -12, 0, 30)searchBar.Position = UDim2.new(0, 6, 0, 6)searchBar.PlaceholderText = "Search..."searchBar.Text = ""searchBar.TextColor3 = Color3.new(1, 1, 1)searchBar.BackgroundColor3 = Color3.fromRGB(50, 50, 50)searchBar.Font = Enum.Font.SourceSanssearchBar.TextSize = 18searchBar.ClearTextOnFocus = falsesearchBar.Parent = frameInstance.new("UICorner", searchBar).CornerRadius = UDim.new(0, 6)-- Toggle Buttonlocal toggleButton = Instance.new("TextButton")toggleButton.Size = UDim2.new(1, -12, 0, 30)toggleButton.Position = UDim2.new(0, 6, 0, 42)toggleButton.BackgroundColor3 = Color3.fromRGB(70, 70, 70)toggleButton.Text = "Click-to-Highlight Similar: OFF"toggleButton.TextColor3 = Color3.new(1, 1, 1)toggleButton.Font = Enum.Font.SourceSansBoldtoggleButton.TextSize = 16toggleButton.Parent = frameInstance.new("UICorner", toggleButton).CornerRadius = UDim.new(0, 6)local clickModeEnabled = falsetoggleButton.MouseButton1Click:Connect(function() clickModeEnabled = not clickModeEnabled toggleButton.Text = "Click-to-Highlight Similar: " .. (clickModeEnabled and "ON" or "OFF") toggleButton.BackgroundColor3 = clickModeEnabled and Color3.fromRGB(0, 170, 0) or Color3.fromRGB(70, 70, 70)end)-- Scroll Frame for item listlocal scroll = Instance.new("ScrollingFrame", frame)scroll.Size = UDim2.new(1, -12, 1, -84)scroll.Position = UDim2.new(0, 6, 0, 78)scroll.BackgroundTransparency = 1scroll.ScrollBarThickness = 6scroll.AutomaticCanvasSize = Enum.AutomaticSize.Yscroll.CanvasSize = UDim2.new(0, 0, 0, 0)local scrollLayout = Instance.new("UIListLayout", scroll)scrollLayout.SortOrder = Enum.SortOrder.LayoutOrderscrollLayout.Padding = UDim.new(0, 4)-- Label for the highlighted object namelocal highlightedLabel = Instance.new("TextLabel")highlightedLabel.Size = UDim2.new(1, -12, 0, 30)highlightedLabel.Position = UDim2.new(0, 6, 0, -32)highlightedLabel.TextColor3 = Color3.new(1, 1, 1)highlightedLabel.Text = "Highlighted: None"highlightedLabel.BackgroundTransparency = 1highlightedLabel.Font = Enum.Font.SourceSansBoldhighlightedLabel.TextSize = 16highlightedLabel.Parent = frame-- Highlight logiclocal function clearHighlights() for _, h in Workspace:GetDescendants() do if h:IsA("Highlight") and h.Name == "ESP_Highlight" then h:Destroy() end endendlocal function highlightObjectsWithShape(reference) if not reference:IsA("BasePart") then return end local refClass = reference.ClassName local refSize = reference.Size clearHighlights() for _, obj in Workspace:GetDescendants() do if obj:IsA("BasePart") and obj.ClassName == refClass and obj.Size == refSize then local highlight = Instance.new("Highlight") highlight.Name = "ESP_Highlight" highlight.FillColor = Color3.fromRGB(255, 0, 0) -- Bright Red for better visibility highlight.FillTransparency = 0.1 highlight.OutlineColor = Color3.fromRGB(255, 255, 255) highlight.OutlineTransparency = 0 highlight.Adornee = obj highlight.Parent = obj end end -- Update the name label highlightedLabel.Text = "Highlighted: " .. reference.Nameend-- 3D click detectionmouse.Button1Down:Connect(function() if not clickModeEnabled then return end local target = mouse.Target if target then highlightObjectsWithShape(target) endend)-- GUI List Creationlocal function isItem(obj) return obj:IsA("Model") or obj:IsA("BasePart")endlocal itemButtons = {}local function addButtonForItem(item) local button = Instance.new("TextButton") button.Size = UDim2.new(1, -4, 0, 24) button.BackgroundColor3 = Color3.fromRGB(50, 50, 50) button.TextColor3 = Color3.new(1, 1, 1) button.Font = Enum.Font.SourceSansBold button.TextSize = 16 button.Text = item.Name button.Parent = scroll Instance.new("UICorner", button).CornerRadius = UDim.new(0, 6) button.MouseButton1Click:Connect(function() if item:IsA("BasePart") then highlightObjectsWithShape(item) end end) itemButtons[item] = buttonendlocal function listAllItems() for _, obj in Workspace:GetDescendants() do if isItem(obj) then addButtonForItem(obj) end endend-- Search bar filteringlocal function updateSearchResults() local query = searchBar.Text:lower() for item, button in pairs(itemButtons) do button.Visible = item.Name:lower():find(query) ~= nil endendsearchBar:GetPropertyChangedSignal("Text"):Connect(updateSearchResults)-- Initial populatelistAllItems()




Comments