Advertisement
Guest User

BE NPC OR DIE SCRIPT

a guest
Feb 28th, 2025
530
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. local function highlightPlayers()
  2. for _, player in pairs(game:GetService("Players"):GetPlayers()) do
  3. if player.Character and not player.Character:FindFirstChild("HighlightESP") then
  4. local highlight = Instance.new("Highlight")
  5. highlight.Name = "HighlightESP"
  6. highlight.FillColor = Color3.fromRGB(255, 0, 0) -- Red highlight
  7. highlight.OutlineColor = Color3.fromRGB(255, 255, 255)
  8. highlight.Parent = player.Character
  9.  
  10. -- Billboard GUI for Name
  11. local billboard = Instance.new("BillboardGui")
  12. billboard.Name = "ESPName"
  13. billboard.Size = UDim2.new(0, 200, 0, 50) -- 2x larger than before
  14. billboard.StudsOffset = Vector3.new(0, 3, 0)
  15. billboard.Adornee = player.Character:FindFirstChild("Head")
  16. billboard.AlwaysOnTop = true
  17. billboard.Parent = player.Character
  18.  
  19. local textLabel = Instance.new("TextLabel")
  20. textLabel.Size = UDim2.new(1, 0, 1, 0)
  21. textLabel.BackgroundTransparency = 1
  22. textLabel.Text = player.Name
  23. textLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  24. textLabel.TextScaled = true
  25. textLabel.Font = Enum.Font.SourceSansBold
  26. textLabel.Parent = billboard
  27. end
  28. end
  29. end
  30.  
  31. -- Run ESP repeatedly every few seconds to ensure it reapplies
  32. while true do
  33. highlightPlayers()
  34. wait(5) -- Adjust the time if needed
  35. end
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement