local Players = game:GetService("Players") local RunService = game:GetService("RunService") -- Configurações local ESP_TRANSPARENCY = 0.5 -- entre 0 e 1 local NAME_TAG_HEIGHT = 2 -- altura acima da cabeça local RGB_SPEED = 2 -- quão rápido o arco-íris vai mudar -- Função para criar o highlight e o nome local function setupESP(player) local highlight = Instance.new("Highlight") highlight.FillTransparency = ESP_TRANSPARENCY highlight.OutlineTransparency = ESP_TRANSPARENCY / 2 highlight.Parent = player local function onCharacter(char) highlight.Adornee = char -- BillboardGui para o nome local head = char:WaitForChild("Head", 5) if head then local billboard = Instance.new("BillboardGui") billboard.Size = UDim2.new(0, 200, 0, 50) billboard.StudsOffset = Vector3.new(0, NAME_TAG_HEIGHT, 0) billboard.AlwaysOnTop = true billboard.Parent = head local label = Instance.new("TextLabel") label.Size = UDim2.new(1, 0, 1, 0) label.BackgroundTransparency = 1 label.TextStrokeTransparency = 0.5 label.TextColor3 = Color3.fromRGB(255, 255, 255) label.Text = player.Name label.Parent = billboard end end player.CharacterAdded:Connect(onCharacter) if player.Character then onCharacter(player.Character) end end -- Atualizar cor arco-íris RunService.RenderStepped:Connect(function(deltaTime) local t = tick() * RGB_SPEED local color = Color3.fromHSV((t % 1), 1, 1) for _,plr in pairs(Players:GetPlayers()) do local highlight = plr:FindFirstChildOfClass("Highlight") if highlight then highlight.FillColor = color highlight.OutlineColor = color end end end) -- Conectar novos players Players.PlayerAdded:Connect(setupESP) -- Players que já estão no jogo for _,player in pairs(Players:GetPlayers()) do setupESP(player) end