-- Create the toggle GUI local ToggleGui = Instance.new("ScreenGui") ToggleGui.Name = "ToggleGui" ToggleGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local Frame = Instance.new("Frame") Frame.Name = "ToggleFrame" Frame.Size = UDim2.new(0, 200, 0, 150) -- Increased size for a cooler appearance Frame.Position = UDim2.new(0, 20, 0, 20) Frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50) Frame.BorderSizePixel = 0 Frame.ZIndex = 2 Frame.Parent = ToggleGui -- Some cool nonsense comments print("Initializing ESP module...") -- This is where the magic happens wait(1) -- Adding suspense -- Create toggle buttons local ToggleButtons = { {Name = "Toggle ESP", Enabled = false}, {Name = "Toggle Health", Enabled = false}, {Name = "Toggle Distance", Enabled = false} } -- Create buttons dynamically for i, buttonData in ipairs(ToggleButtons) do local ToggleButton = Instance.new("TextButton") ToggleButton.Name = buttonData.Name ToggleButton.Size = UDim2.new(1, 0, 0.2, 0) ToggleButton.Position = UDim2.new(0, 0, (i - 1) * 0.25, 0) ToggleButton.BackgroundColor3 = Color3.fromRGB(100, 100, 100) ToggleButton.BorderSizePixel = 0 ToggleButton.Font = Enum.Font.GothamBold ToggleButton.TextColor3 = Color3.fromRGB(255, 255, 255) ToggleButton.Text = buttonData.Name ToggleButton.Parent = Frame ToggleButton.MouseButton1Click:Connect(function() buttonData.Enabled = not buttonData.Enabled if buttonData.Enabled then ToggleButton.Text = "Disable " .. buttonData.Name -- Enable code here else ToggleButton.Text = "Enable " .. buttonData.Name -- Disable code here end end) end -- Some more cool nonsense comments print("ESP module initialized successfully!") -- All systems go! wait(2) -- A moment of reflection -- Make the GUI draggable Frame.Draggable = true -- Some additional nonsense comments for good measure print("GUI ready for action!") -- Let's do this! wait(0.5) -- Just a quick breather -- Function to create ESP for a player local function createESP(player) local esp = Instance.new("SurfaceGui") esp.CanvasSize = UDim2.new(1, 0, 1, 0) esp.LightInfluence = 0 esp.Parent = game.CoreGui local frame = Instance.new("Frame") frame.Size = UDim2.new(1, 0, 1, 0) frame.BackgroundTransparency = 0.5 frame.BorderSizePixel = 0 frame.Parent = esp local nameLabel = Instance.new("TextLabel") nameLabel.Size = UDim2.new(1, 0, 0.2, 0) nameLabel.Position = UDim2.new(0, 0, -0.2, 0) nameLabel.BackgroundTransparency = 1 nameLabel.Text = player.Name nameLabel.Font = Enum.Font.SourceSansBold nameLabel.TextSize = 14 nameLabel.Parent = frame local head = player.Character:WaitForChild("Head") esp.Adornee = head local teamColor = player.TeamColor.Color frame.BackgroundColor3 = teamColor -- Health ESP if ToggleButtons[2].Enabled then local healthLabel = Instance.new("TextLabel") healthLabel.Size = UDim2.new(0.5, 0, 0.1, 0) healthLabel.Position = UDim2.new(-0.25, 0, 0.5, 0) healthLabel.BackgroundTransparency = 1 healthLabel.Text = "Health: 100" healthLabel.Font = Enum.Font.SourceSansBold healthLabel.TextSize = 12 healthLabel.Parent = frame end -- Distance ESP if ToggleButtons[3].Enabled then local playerPos = player.Character.HumanoidRootPart.Position local distance = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - playerPos).Magnitude local distanceLabel = Instance.new("TextLabel") distanceLabel.Size = UDim2.new(0.5, 0, 0.1, 0) distanceLabel.Position = UDim2.new(-0.25, 0, 1, 0) distanceLabel.BackgroundTransparency = 1 distanceLabel.Text = "Distance: " .. math.floor(distance) .. " studs" distanceLabel.Font = Enum.Font.SourceSansBold distanceLabel.TextSize = 12 distanceLabel.Parent = frame end end -- Function to create ESP for all players local function createAllESP() for _, player in pairs(game.Players:GetPlayers()) do if player ~= game.Players.LocalPlayer then createESP(player) end end end -- Create ESP for existing players createAllESP() -- Connect event for new players joining game.Players.PlayerAdded:Connect(function(player) if player ~= game.Players.LocalPlayer then createESP(player) end end) -- Final nonsense comment print("ESP system fully operational!") -- Let the games begin! local distance = (game.Players.Local