-- [[ Rscripts Risk Notice ]] -- This script is not verified by rscripts.net. Deal with caution. -- -- Stay safe: -- • Never log in on unofficial Roblox sites or lookalike domains. -- • Real Roblox links use roblox.com (check the .com ending). -- • Treat fake Roblox login / "claim reward" pages as phishing. -- [[ End Rscripts Risk Notice ]] local Players = game:GetService("Players") local RunService = game:GetService("RunService") local LocalPlayer = Players.LocalPlayer local MAX_DISTANCE = 700 local roleColors = { ["Slapper"] = Color3.fromRGB(255, 230, 110), ["Detective"] = Color3.fromRGB(0, 100, 255), ["Chemist"] = Color3.fromRGB(0, 230, 180), ["Murderer"] = Color3.fromRGB(255, 0, 0), ["Sheriff"] = Color3.fromRGB(255, 150, 0), ["Medic"] = Color3.fromRGB(255, 130, 220), ["Wizard"] = Color3.fromRGB(160, 160, 255), ["Clown"] = Color3.fromRGB(255, 100, 100), ["Thug"] = Color3.fromRGB(180, 0, 255), ["Cop"] = Color3.fromRGB(100, 180, 255), ["Agent"] = Color3.fromRGB(255, 230, 0), ["Hacker"] = Color3.fromRGB(100, 255, 50), ["Barber"] = Color3.fromRGB(0, 195, 255), ["Party Pooper"] = Color3.fromRGB(255, 75, 0) } local defaultColor = Color3.fromRGB(255, 255, 255) -- Получение только информации о роли игрока local function getRoleInfo(character) local humanoid = character:FindFirstChildOfClass("Humanoid") if not humanoid then return nil, defaultColor end local roleValue = humanoid:FindFirstChild("Role") or character:FindFirstChild("Role") if roleValue and roleValue.Value ~= "" then local roleName = tostring(roleValue.Value) local roleColor = roleColors[roleName] or defaultColor return roleName, roleColor end return nil, defaultColor end -- Применение подсветки только к персонажу local function updateHighlight(character, color, enabled) local highlight = character:FindFirstChild("ESPHighlight") if not highlight then highlight = Instance.new("Highlight") highlight.Name = "ESPHighlight" highlight.FillTransparency = 0.4 highlight.OutlineTransparency = 0.2 highlight.OutlineColor = Color3.fromRGB(255, 255, 255) highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop highlight.Parent = character end highlight.Enabled = enabled highlight.FillColor = color end -- Создание только имени и роли над головой local function updateNameTag(character, playerName, roleName, color, enabled) local gui = character:FindFirstChild("ESPNameTag") if not gui then gui = Instance.new("BillboardGui") gui.Name = "ESPNameTag" gui.Size = UDim2.new(0, 200, 0, 50) gui.StudsOffset = Vector3.new(0, 3, 0) gui.AlwaysOnTop = true gui.MaxDistance = MAX_DISTANCE gui.Parent = character local label = Instance.new("TextLabel") label.Name = "TagLabel" label.Size = UDim2.new(1, 0, 1, 0) label.BackgroundTransparency = 1 label.TextStrokeTransparency = 0 label.TextStrokeColor3 = Color3.fromRGB(0, 0, 0) label.TextScaled = true label.Font = Enum.Font.SourceSansBold label.Parent = gui end gui.Enabled = enabled local label = gui:FindFirstChild("TagLabel") if label then label.Text = playerName .. "\n[" .. (roleName or "Unknown") .. "]" label.TextColor3 = color end end -- MY TG YHYZO RunService.RenderStepped:Connect(function() local myChar = LocalPlayer.Character local myRoot = myChar and myChar:FindFirstChild("HumanoidRootPart") for _, player in ipairs(Players:GetPlayers()) do if player ~= LocalPlayer then local char = player.Character local targetRoot = char and char:FindFirstChild("HumanoidRootPart") local humanoid = char and char:FindFirstChildOfClass("Humanoid") if char and targetRoot and humanoid and humanoid.Health > 0 then local inRange = true if myRoot then local distance = (myRoot.Position - targetRoot.Position).Magnitude inRange = distance <= MAX_DISTANCE end local roleName, roleColor = getRoleInfo(char) updateHighlight(char, roleColor, inRange) updateNameTag(char, player.Name, roleName, roleColor, inRange) end end end end)