local P=game:GetService"Players" local L=P.LocalPlayer local N="Knife" local RC=Color3.fromRGB(255,0,0) local WC=Color3.fromRGB(255,255,255) local T=0.5 local H={} local B={} local function U(p) if p==L then return end local c=p.Character if not c or not c:FindFirstChildOfClass"Humanoid"or c.Humanoid.Health<=0 then if H[p]then H[p]:Destroy()H[p]=nil end if B[p]then B[p]:Destroy()B[p]=nil end return end task.wait(0.1) local k=p:FindFirstChild"Backpack"and p.Backpack:FindFirstChild(N) if not k then k=c:FindFirstChildOfClass"Tool"end local hasKnife=k and k.Name==N if H[p]then H[p]:Destroy()H[p]=nil end local h=Instance.new"Highlight" h.FillColor=hasKnife and RC or WC h.FillTransparency=T h.OutlineColor=hasKnife and RC or WC h.DepthMode=Enum.HighlightDepthMode.AlwaysOnTop h.Adornee=c h.Parent=c H[p]=h if B[p]then B[p]:Destroy()B[p]=nil end local b=Instance.new"BillboardGui" b.Name="NameDisplay" b.Size=UDim2.new(0,100,0,30) b.StudsOffset=Vector3.new(0,3,0) b.AlwaysOnTop=true local t=Instance.new"TextLabel" t.Size=UDim2.new(1,0,1,0) t.BackgroundTransparency=1 t.TextColor3=Color3.new(1,1,1) t.TextStrokeColor3=Color3.new(0,0,0) t.TextStrokeTransparency=0.3 t.Font=Enum.Font.GothamBold t.TextSize=16 t.Text=p.DisplayName t.Parent=b b.Parent=c B[p]=b end local function onCharacterAdded(character) local p=P:GetPlayerFromCharacter(character) if p then task.wait(0.5)U(p)end end for _,v in pairs(P:GetPlayers())do U(v) if v.Character then v.Character:WaitForChild"Humanoid".Died:Connect(function()task.wait(0.5)U(v)end) end v.CharacterAdded:Connect(onCharacterAdded) end P.PlayerAdded:Connect(function(p) U(p) p.CharacterAdded:Connect(onCharacterAdded) end) P.PlayerRemoving:Connect(function(p) if H[p]then H[p]:Destroy()H[p]=nil end if B[p]then B[p]:Destroy()B[p]=nil end end) while task.wait(0.5)do for _,v in pairs(P:GetPlayers())do if v.Character and v.Character:FindFirstChildOfClass"Humanoid"and v.Character.Humanoid.Health>0 then U(v) end end end