
Key Required

local charactersFolder = workspace:WaitForChild("Characters")
local bodyPartsToHighlight = {
"Head",
"Left Arm",
"Right Arm",
"Left Leg",
"Right Leg",
"Torso"
}
local function isBodyPartToHighlight(partName)
for _, bodyPart in ipairs(bodyPartsToHighlight) do
if partName == bodyPart then
return true
end
end
return false
end
while true do
for _, model in pairs(charactersFolder:GetChildren()) do
if model:IsA("Model") then
local humanoidRootPart = model:FindFirstChild("HumanoidRootPart")
local isOtherPlayer = humanoidRootPart and humanoidRootPart.Parent == model
if not model:FindFirstChild("ESP_Highlight") then
local highlight = Instance.new("Highlight")
highlight.Name = "ESP_Highlight"
highlight.FillTransparency = 0.5
highlight.OutlineTransparency = 0
highlight.Enabled = true
if isOtherPlayer then
highlight.FillColor = Color3.fromRGB(0, 255, 0)
highlight.OutlineColor = Color3.fromRGB(0, 255, 0)
else
highlight.FillColor = Color3.fromRGB(255, 0, 0)
highlight.OutlineColor = Color3.fromRGB(255, 0, 0)
end
local children = model:GetChildren()
for _, child in ipairs(children) do
if child:IsA("BasePart") and isBodyPartToHighlight(child.Name) then
highlight.Parent = child
break
end
end
if highlight.Parent then
highlight.Parent = model
end
end
end
end
wait(1)
endNo comments yet for this script.



