local text = Instance.new("TextLabel"); text.Name = "NameLabel"
text.Size = UDim2.new(1, 0, 0.6, 0); text.Position = UDim2.new(0, 0, 0, 0)
text.BackgroundTransparency = 1; text.Text = p.Name
text.TextStrokeTransparency = 0; text.Font = Enum.Font.SourceSansBold
text.TextSize = 14; text.Parent = tag
local hpBg = Instance.new("Frame"); hpBg.Name = "HpBg"
hpBg.Size = UDim2.new(0.6, 0, 0, 4); hpBg.Position = UDim2.new(0.2, 0, 0.6, 2)
hpBg.BackgroundColor3 = Color3.fromRGB(0, 0, 0); hpBg.BorderSizePixel = 1; hpBg.Parent = tag
local hpFill = Instance.new("Frame"); hpFill.Name = "HpFill"
hpFill.Size = UDim2.new(1, 0, 1, 0); hpFill.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
hpFill.BorderSizePixel = 0; hpFill.Parent = hpBg
end
if Config.espColor == Color3.fromRGB(0, 0, 0) then
tag.NameLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
else
tag.NameLabel.TextColor3 = Config.espColor
end
-- Обновление Health ESP (Зеленый -> Красный)
local hpPct = math.clamp(pHum.Health / pHum.MaxHealth, 0, 1)
tag.HpBg.HpFill.Size = UDim2.new(hpPct, 0, 1, 0)
tag.HpBg.HpFill.BackgroundColor3 = Color3.fromRGB(255 - (hpPct * 255), hpPct * 255, 0)
elseif (not Config.nametagsEnabled or (pHum and pHum.Health <= 0)) and pChar:FindFirstChild("Head") then
local tag = pChar.Head:FindFirstChild("CheatNametag")
if tag then tag:Destroy() end
end
end
end
end)
-- 5. NOCLIP
RunService.Stepped:Connect(function()
if Config.noclipEnabled then
local char = localPlayer.Character
if char then
for _, part in pairs(char:GetDescendants()) do
if part:IsA("BasePart") and part.CanCollide then
part.CanCollide = false
end
end
end
end
end)
Post #9
24