-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathESP
More file actions
52 lines (51 loc) · 2.18 KB
/
ESP
File metadata and controls
52 lines (51 loc) · 2.18 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
50
51
52
ESPPlayer = true
function isnil(thing)
return (thing == nil)
end
local function round(n)
return math.floor(tonumber(n) + 0.5)
end
Number = math.random(1, 1000000)
function UpdatePlayerChams()
for i,v in pairs(game:GetService'Workspace'.Enemies:GetChildren()) do
pcall(function()
if ESPPlayer then
if not isnil(v.Head) and not v.Head:FindFirstChild('NameEsp'..Number) then
local bill = Instance.new('BillboardGui',v.Head)
bill.Name = 'NameEsp'..Number
bill.ExtentsOffset = Vector3.new(0, 1, 0)
bill.Size = UDim2.new(1,200,1,50)
bill.Adornee = v.Head
bill.AlwaysOnTop = true
local name = Instance.new('TextLabel',bill)
name.FontFace = Font.fromName("Merriweather")
name.FontSize = "Size14"
name.TextWrapped = true
name.Text = (v.Name ..' \n'.. round((game:GetService('Players').LocalPlayer.Character.Head.Position - v.Head.Position).Magnitude/3) ..' m')
name.Size = UDim2.new(1,0,1,0)
name.TextYAlignment = 'Top'
name.BackgroundTransparency = 1
name.TextStrokeTransparency = 0.5
name.TextColor3 = Color3.fromRGB(0, 255, 127)
else
v.Head['NameEsp'..Number].TextLabel.Text = (v.Name ..' \n'.. round((game:GetService('Players').LocalPlayer.Character.Head.Position - v.Head.Position).Magnitude/3) ..' m')
end
end
end)
end
end
spawn(function()
while wait() do
pcall(function()
repeat wait()
UpdatePlayerChams()
until not ESPPlayer
wait()
for i,v in pairs(game:GetService'Workspace'.Enemies:GetChildren()) do
if v.Head:FindFirstChild('NameEsp'..Number) then
v.Head:FindFirstChild('NameEsp'..Number):Destroy()
end
end
end)
end
end)