Description

By using this script in counter blox, you can spy all peoples in game.

Features

  • + spy all peoples

Script

Add Xeno Scripts as a preferred source
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UIS = game:GetService("UserInputService")
local LocalPlayer = Players.LocalPlayer

local ESP_ENABLED = true -- começa ligado


-------------------------------------------------------------
-- FUNÇÃO DE COR (ALIADO / INIMIGO)
-------------------------------------------------------------
local function GetColor(player)
	if LocalPlayer.Team and player.Team then
		if player.Team == LocalPlayer.Team then
			return Color3.fromRGB(0, 150, 255) -- azul aliado
		end
	end
	return Color3.fromRGB(255, 0, 0) -- vermelho inimigo
end


-------------------------------------------------------------
-- HEALTH BAR
-------------------------------------------------------------
local function CreateHealthBar(char)
	if char:FindFirstChild("HealthBar") then
		return char.HealthBar
	end

	local gui = Instance.new("BillboardGui")
	gui.Name = "HealthBar"
	gui.Size = UDim2.new(3, 0, 0.4, 0)
	gui.StudsOffset = Vector3.new(2, 2, 0)
	gui.AlwaysOnTop = true
	gui.Parent = char

	local green = Instance.new("Frame")
	green.Name = "Green"
	green.Size = UDim2.new(1, 0, 1, 0)
	green.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
	green.BorderSizePixel = 0
	green.Parent = gui

	return gui
end


-------------------------------------------------------------
-- HIGHLIGHT
-------------------------------------------------------------
local function CreateHighlight(char, player)
	if char:FindFirstChild("ESPHighlight") then
		char.ESPHighlight:Destroy()
	end

	local h = Instance.new("Highlight")
	h.Name = "ESPHighlight"
	h.FillTransparency = 0.5
	h.OutlineTransparency = 1
	h.FillColor = GetColor(player)
	h.Adornee = char
	h.Parent = char

	return h
end


-------------------------------------------------------------
-- APLICAR ESP COMPLETO NO PLAYER
-------------------------------------------------------------
local function ApplyESP(player)
	if player == LocalPlayer then return end

	local function Setup(char)
		char:WaitForChild("Humanoid")
		task.wait(0.3)

		local highlight = CreateHighlight(char, player)
		local bar = CreateHealthBar(char)

		-- Atualização contínua
		RunService.RenderStepped:Connect(function()
			if not char:FindFirstChild("Humanoid") then return end

			if ESP_ENABLED then
				-- highlight
				highlight.FillColor = GetColor(player)
				highlight.Enabled = true

				-- healthbar
				bar.Enabled = true
				local hp = char.Humanoid.Health / char.Humanoid.MaxHealth
				bar.Green.Size = UDim2.new(math.clamp(hp, 0, 1), 0, 1, 0)
			else
				highlight.Enabled = false
				bar.Enabled = false
			end
		end)
	end

	if player.Character then
		Setup(player.Character)
	end

	player.CharacterAdded:Connect(Setup)
end


-------------------------------------------------------------
-- APLICAR EM TODOS
-------------------------------------------------------------
for _, plr in ipairs(Players:GetPlayers()) do
	ApplyESP(plr)
end

Players.PlayerAdded:Connect(ApplyESP)


-------------------------------------------------------------
-- TOGGLE T
-------------------------------------------------------------
UIS.InputBegan:Connect(function(input, gpe)
	if gpe then return end

	if input.KeyCode == Enum.KeyCode.T then
		ESP_ENABLED = not ESP_ENABLED
		print("ESP:", ESP_ENABLED and "ON" or "OFF")
	end
end)
Script worked? 🚀 Boost it to #1 so others find it too.

Comments (0)

Log in to add a comment.