-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHightLight-esp.lua
More file actions
49 lines (42 loc) · 1.31 KB
/
Copy pathHightLight-esp.lua
File metadata and controls
49 lines (42 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
local FillColor = Color3.fromRGB(175,25,255)
local DepthMode = "AlwaysOnTop"
local FillTransparency = 0.5
local OutlineColor = Color3.fromRGB(255,255,255)
local OutlineTransparency = 0
local CoreGui = game.CoreGui
local Players = game:FindService("Players")
local lp = Players.LocalPlayer
local connections = {}
local Storage = Instance.new("Folder")
Storage.Parent = CoreGui
Storage.Name = "Highlight_Storage"
local function Highlight(plr)
local Highlight = Instance.new("Highlight")
Highlight.Name = plr.Name
Highlight.FillColor = FillColor
Highlight.DepthMode = DepthMode
Highlight.FillTransparency = FillTransparency
Highlight.OutlineColor = OutlineColor
Highlight.OutlineTransparency = 0
Highlight.Parent = Storage
local plrchar = plr.Character
if plrchar then
Highlight.Adornee = plrchar
end
connections[plr] = plr.CharacterAdded:Connect(function(char)
Highlight.Adornee = char
end)
end
Players.PlayerAdded:Connect(Highlight)
for i,v in next, Players:GetPlayers() do
Highlight(v)
end
Players.PlayerRemoving:Connect(function(plr)
local plrname = plr.Name
if Storage[plrname] then
Storage[plrname]:Destroy()
end
if connections[plr] then
connections[plr]:Disconnect()
end
end)