Penggrin

Highlighter

Aug 17th, 2022
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.11 KB | Cybersecurity | 0 0
  1. -- made by penggrin
  2. -- github.com/penggrin12
  3. -- t.me/penggrin
  4. -- do not re-distribute without my consent
  5.  
  6. local function highlight(chr)
  7.     wait(0.1)
  8.     notify("Highlighting "..chr.Name)
  9.  
  10.     local plr = game.Players:GetPlayerFromCharacter(chr)
  11.  
  12.     if chr:FindFirstChild("hig") then chr:FindFirstChild("hig"):Destroy() end
  13.  
  14.     if not chr:FindFirstChild("higv2") then
  15.         local hig = Instance.new("Highlight", chr)
  16.         hig.Name = "higv2"
  17.         hig.FillTransparency = 1
  18.  
  19.         if plr and plr.Team then
  20.             hig.OutlineColor = plr.TeamColor.Color
  21.             hig.FillColor = plr.TeamColor.Color
  22.         end
  23.     end
  24. end
  25.  
  26. local function highlightall()
  27.     notify("Highlighting everyone")
  28.     for i,v in pairs(game.Players:GetPlayers()) do
  29.         if v.Character then
  30.             highlight(v.Character)
  31.         end
  32.  
  33.         v.CharacterAdded:Connect(function(chr)
  34.             highlight(chr)
  35.         end)
  36.     end
  37. end
  38.  
  39. game.Players.LocalPlayer.KeyUp:Connect(function(key)
  40.     if key == "-" then
  41.         highlightall()
  42.     end
  43. end)
  44.  
  45. print("(-) to highlight again")
  46. highlightall()
Advertisement
Add Comment
Please, Sign In to add comment