local WindUI = loadstring(game:HttpGet("https://raw.githubusercontent.com/Footagesus/WindUI/main/dist/main.lua"))()
local Window = WindUI:CreateWindow({
Title = "Purity",
Author = "Purity",
Icon = "terminal",
Theme = "Dark",
ToggleKey = Enum.KeyCode.F
})
local Main = Window:Tab({
Title = "Main",
Icon = "home"
})
local addedConn
local function isAnomaly(npc)
local attr = npc:GetAttributes()
return attr.Skinwalker
or attr.SkinwalkerEasy
or attr.PenaltyWhenLettingIn
or attr.PhotoEffect == "CursedPhoto"
or attr.PhotoEffect2 == "CursedPhoto"
end
local function removeEsp(npc)
local highlight = npc:FindFirstChild("PurityHighlight")
if highlight then
highlight:Destroy()
end
local billboard = npc:FindFirstChild("PurityESP")
if billboard then
billboard:Destroy()
end
end
local function addEsp(npc)
if npc:FindFirstChild("PurityHighlight") then
return
end
local root = npc.PrimaryPart
or npc:FindFirstChild("HumanoidRootPart")
or npc:FindFirstChildWhichIsA("BasePart")
if not root then
return
end
local highlight = Instance.new("Highlight")
highlight.Name = "PurityHighlight"
highlight.FillTransparency = 1
highlight.OutlineTransparency = 0
highlight.OutlineColor = Color3.fromRGB(255, 70, 70)
highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
highlight.Parent = npc
local billboard = Instance.new("BillboardGui")
billboard.Name = "PurityESP"
billboard.Adornee = root
billboard.AlwaysOnTop = true
billboard.Size = UDim2.fromOffset(120, 22)
billboard.StudsOffset = Vector3.new(0, 3.5, 0)
billboard.MaxDistance = math.huge
billboard.Parent = npc
local label = Instance.new("TextLabel")
label.BackgroundTransparency = 1
label.Size = UDim2.fromScale(1, 1)
label.Font = Enum.Font.GothamBold
label.Text = "Anomaly"
label.TextColor3 = Color3.fromRGB(255, 70, 70)
label.TextStrokeTransparency = 0
label.TextScaled = false
label.TextSize = 16
label.Parent = billboard
end
local function updateNpc(npc)
if not npc:IsA("Model") then
return
end
if npc.Name:lower() == "doctor" then
return
end
removeEsp(npc)
if isAnomaly(npc) then
addEsp(npc)
end
end
Main:Toggle({
Title = "Anomaly ESP",
Default = false,
Callback = function(state)
if addedConn then
addedConn:Disconnect()
addedConn = nil
end
for _, npc in ipairs(workspace.NPCs:GetChildren()) do
removeEsp(npc)
end
if not state then
return
end
for _, npc in ipairs(workspace.NPCs:GetChildren()) do
updateNpc(npc)
end
addedConn = workspace.NPCs.ChildAdded:Connect(function(npc)
task.defer(updateNpc, npc)
end)
end
})
Comments
nice simple one
what should i do i m new