-- mxrtnttzflw GUI Final (LocalScript) -- Services local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local Workspace = game:GetService("Workspace") local LocalPlayer = Players.LocalPlayer local PlayerGui = LocalPlayer:WaitForChild("PlayerGui") -- Config local GUI_NAME = "mxrtnttzflw GUI" local CLICK_SOUND_ID = "rbxassetid://87047730068459" local ESP_COLOR = Color3.fromRGB(255,0,0) -- ESP local espEnabled = false local trackedBillboards = {} local trackedHighlights = {} -- Utilities local function playClick(parent) local s = Instance.new("Sound") s.SoundId = CLICK_SOUND_ID s.Volume = 1 s.PlayOnRemove = false s.Parent = parent s:Play() game:GetService("Debris"):AddItem(s, 3) end -- Create ESP text local function createESP(player) if not player.Character or not player.Character:FindFirstChild("Head") then return end local head = player.Character.Head -- Highlight local hl = Instance.new("Highlight") hl.Name = "mxrtnttzflw_HL" hl.Adornee = player.Character hl.FillColor = ESP_COLOR hl.OutlineColor = ESP_COLOR hl.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop hl.Parent = Workspace trackedHighlights[player] = hl -- BillboardGui local bb = Instance.new("BillboardGui") bb.Name = "mxrtnttzflw_ESP" bb.Adornee = head bb.Size = UDim2.new(0,100,0,50) bb.StudsOffset = Vector3.new(0,2.5,0) bb.AlwaysOnTop = true bb.Parent = PlayerGui local nameLabel = Instance.new("TextLabel", bb) nameLabel.Size = UDim2.new(1,0,0.5,0) nameLabel.Position = UDim2.new(0,0,0,0) nameLabel.BackgroundTransparency = 1 nameLabel.Text = player.Name nameLabel.Font = Enum.Font.GothamBold nameLabel.TextSize = 14 nameLabel.TextColor3 = ESP_COLOR nameLabel.TextStrokeTransparency = 0.5 nameLabel.TextWrapped = true local distLabel = Instance.new("TextLabel", bb) distLabel.Size = UDim2.new(1,0,0.5,0) distLabel.Position = UDim2.new(0,0,0.5,0) distLabel.BackgroundTransparency = 1 distLabel.Text = "" distLabel.Font = Enum.Font.GothamBold distLabel.TextSize = 14 distLabel.TextColor3 = ESP_COLOR distLabel.TextStrokeTransparency = 0.5 distLabel.TextWrapped = true trackedBillboards[player] = {bb = bb, nameLabel = nameLabel, distLabel = distLabel} end local function removeESP(player) local bbData = trackedBillboards[player] if bbData then if bbData.bb then bbData.bb:Destroy() end trackedBillboards[player] = nil end local hl = trackedHighlights[player] if hl then hl:Destroy() trackedHighlights[player] = nil end end local function toggleESP(state) espEnabled = state if espEnabled then for _,p in pairs(Players:GetPlayers()) do if p ~= LocalPlayer then createESP(p) end end else for p,_ in pairs(trackedBillboards) do removeESP(p) end end end -- Player events Players.PlayerAdded:Connect(function(p) p.CharacterAdded:Connect(function() if espEnabled and p ~= LocalPlayer then createESP(p) end end) end) Players.PlayerRemoving:Connect(function(p) removeESP(p) end) -- Update distances RunService.RenderStepped:Connect(function() for p,bbData in pairs(trackedBillboards) do if p and p.Character and p.Character:FindFirstChild("HumanoidRootPart") then local pos = p.Character.HumanoidRootPart.Position local myPos = LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") and LocalPlayer.Character.HumanoidRootPart.Position if myPos then local dist = (pos - myPos).Magnitude bbData.distLabel.Text = math.floor(dist).." studs" else bbData.distLabel.Text = "?" end end end end) -- ---------- GUI ---------- local screenGui = Instance.new("ScreenGui") screenGui.Name = "mxrtnttzflw_ScreenGui" screenGui.ResetOnSpawn = false screenGui.Parent = PlayerGui local mainFrame = Instance.new("Frame") mainFrame.Size = UDim2.new(0,200,0,100) mainFrame.Position = UDim2.new(0.5,-100,0.3,-50) mainFrame.BackgroundColor3 = Color3.fromRGB(18,18,18) mainFrame.BorderSizePixel = 0 mainFrame.Parent = screenGui local topBar = Instance.new("Frame", mainFrame) topBar.Size = UDim2.new(1,0,0,24) topBar.BackgroundColor3 = Color3.fromRGB(30,0,0) topBar.BorderSizePixel = 0 local title = Instance.new("TextLabel", topBar) title.Size = UDim2.new(1,-24,1,0) title.Position = UDim2.new(0,4,0,0) title.BackgroundTransparency = 1 title.Text = GUI_NAME title.Font = Enum.Font.GothamBold title.TextSize = 14 title.TextColor3 = Color3.fromRGB(255,255,255) title.TextXAlignment = Enum.TextXAlignment.Left local minimizeBtn = Instance.new("TextButton", topBar) minimizeBtn.Size = UDim2.new(0,20,1,0) minimizeBtn.Position = UDim2.new(1,-22,0,0) minimizeBtn.BackgroundColor3 = Color3.fromRGB(40,0,0) minimizeBtn.Text = "-" minimizeBtn.Font = Enum.Font.GothamBold minimizeBtn.TextSize = 14 minimizeBtn.TextColor3 = Color3.fromRGB(255,255,255) minimizeBtn.BorderSizePixel = 0 local body = Instance.new("Frame", mainFrame) body.Size = UDim2.new(1,0,1,-24) body.Position = UDim2.new(0,0,0,24) body.BackgroundTransparency = 1 local function createButton(parent,text,posY) local btn = Instance.new("TextButton", parent) btn.Size = UDim2.new(0,180,0,30) btn.Position = UDim2.new(0,10,0,posY) btn.BackgroundColor3 = Color3.fromRGB(18,18,18) btn.BorderSizePixel = 0 btn.Text = text btn.Font = Enum.Font.GothamBold btn.TextSize = 14 btn.TextColor3 = Color3.fromRGB(240,240,240) btn.AutoButtonColor = false local accent = Instance.new("Frame", btn) accent.Size = UDim2.new(0,4,1,0) accent.Position = UDim2.new(0,0,0,0) accent.BackgroundColor3 = ESP_COLOR accent.BorderSizePixel = 0 return btn end local espBtn = createButton(body,"ESP Toggle",10) -- ESP toggle event espBtn.MouseButton1Click:Connect(function() toggleESP(not espEnabled) playClick(espBtn) end) -- Minimize local minimized = false minimizeBtn.MouseButton1Click:Connect(function() minimized = not minimized body.Visible = not minimized mainFrame.Size = minimized and UDim2.new(0,200,0,24) or UDim2.new(0,200,0,100) end) -- ---------- Drag GUI ---------- local dragging = false local dragInput, mousePos, framePos local function update(input) local delta = input.Position - mousePos mainFrame.Position = UDim2.new(framePos.X.Scale, framePos.X.Offset + delta.X, framePos.Y.Scale, framePos.Y.Offset + delta.Y) end topBar.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true mousePos = input.Position framePos = mainFrame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) topBar.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement then dragInput = input end end) UserInputService.InputChanged:Connect(function(input) if input == dragInput and dragging then update(input) end end)