Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- made by penggrin
- -- github.com/penggrin12
- -- t.me/penggrin
- -- do not re-distribute without my consent
- local function highlight(chr)
- wait(0.1)
- notify("Highlighting "..chr.Name)
- local plr = game.Players:GetPlayerFromCharacter(chr)
- if chr:FindFirstChild("hig") then chr:FindFirstChild("hig"):Destroy() end
- if not chr:FindFirstChild("higv2") then
- local hig = Instance.new("Highlight", chr)
- hig.Name = "higv2"
- hig.FillTransparency = 1
- if plr and plr.Team then
- hig.OutlineColor = plr.TeamColor.Color
- hig.FillColor = plr.TeamColor.Color
- end
- end
- end
- local function highlightall()
- notify("Highlighting everyone")
- for i,v in pairs(game.Players:GetPlayers()) do
- if v.Character then
- highlight(v.Character)
- end
- v.CharacterAdded:Connect(function(chr)
- highlight(chr)
- end)
- end
- end
- game.Players.LocalPlayer.KeyUp:Connect(function(key)
- if key == "-" then
- highlightall()
- end
- end)
- print("(-) to highlight again")
- highlightall()
Advertisement
Add Comment
Please, Sign In to add comment