Advertisement
ProScripter29

Tracker

Apr 5th, 2023 (edited)
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.20 KB | None | 0 0
  1. local LocalPlayer = game.Players.LocalPlayer
  2. local PlayersList = game.Players
  3.  
  4. function HighlightPlayer(Player)
  5.     local Highlighter = Instance.new("Highlight", Player.Character)
  6.     Highlighter.FillTransparency = 0.2
  7.     Highlighter.FillColor = Color3.new(1, 1, 1)
  8.     local Tag = Instance.new("BillboardGui", Player.Character.Head)
  9.     Tag.Name = "tag"
  10.     Tag.ResetOnSpawn = false
  11.     Tag.Size = UDim2.new(0, 200, 0, 19)
  12.     Tag.StudsOffset = Vector3.new(0, 1.9, 0)
  13.     Tag.AlwaysOnTop = true
  14.     local Text = Instance.new("TextLabel", Tag)
  15.     Text.Name = "Text"
  16.     Text.BackgroundColor3 = Color3.new(1, 1, 1)
  17.     Text.BackgroundTransparency = 1
  18.     Text.BorderSizePixel = 0
  19.     Text.Size = UDim2.new(0, 200, 0, 19)
  20.     Text.Font = Enum.Font.SourceSansBold
  21.     Text.Text = Player.DisplayName.." | "..Player.Name
  22.     Text.TextColor3 = Color3.new(1, 1, 1)
  23.     Text.TextScaled = true
  24.     Text.TextStrokeTransparency = 0.4
  25. end
  26.  
  27. function TrackAll()
  28.     task.spawn(function()
  29.         while wait(1) do
  30.             for _, Player in pairs(game.Players:GetPlayers()) do
  31.                 if Player ~= LocalPlayer then
  32.                     if Player.Character and (not Player.Character:FindFirstChild("Highlight")) then
  33.                         HighlightPlayer(Player)
  34.                     end
  35.                 end
  36.             end
  37.         end
  38.     end)
  39. end
  40.  
  41. TrackAll()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement