--BROUGHT TO YOU BY RobloxScripter.com!--
MobEsp = false
MobLocations = {game:GetService("Workspace")} --add locations of the mobs in the workspace
MobNames = {""} --add the names of the mobs
PlayerESP = true
plr = game.Players.LocalPlayer
_G.on = true --set to false if you want to turn it off
names = {}
function isin(obj,tbl)
for a = 1,#tbl do
if obj == tbl[a] then
return true
end
end
return false
end
function test1(D)
local d = tonumber(string.sub(D,1,string.find(D,".",1,true) + 1))
return d
end
function Label(Part,Distance)
local MainName = Part.Parent.Name
local check = Part:FindFirstChild(MainName .. " Tracker")
if check then
destroyed = false
while not destroyed do
for i = 1,#names do
if names[i] == MainName then
table.remove(names,i)
destroyed = true
break
end
end
destroyed = true
end
check:Destroy()
end
local Gui = Instance.new("BillboardGui")
local Text = Instance.new("TextLabel")
if Distance ~= nil then
local assa,D = pcall(test1,Distance)
if D ~= nil and D then
D = tonumber(D)
table.insert(names,MainName)
Gui.Name = MainName.." Tracker"
Gui.Parent = Part
Gui.Adornee = Part
Gui.ExtentsOffsetWorldSpace = Vector3.new(0,3,0)
Gui.MaxDistance = 2500
Gui.Size = UDim2.new(0,200,0,50)
Gui.AlwaysOnTop = true
Text.Parent = Gui
Text.TextWrapped = true
Text.BackgroundTransparency = 1
Text.TextSize = 8
Text.Size = UDim2.new(0, 200, 0, 50)
Text.Font = Enum.Font.Legacy
if D ~= nil and D < 30 then
Text.TextColor3 = Color3.fromRGB(33, 231, 40)
Text.Text = Part.Parent.Name .. "\n Dist: " .. D
elseif D ~= nil and D < 100 then
Text.TextColor3 = Color3.fromRGB(228, 231, 34)
Text.Text = Part.Parent.Name .. "\n Dist: " .. D
elseif D ~= nil and D < 500 then
Text.TextColor3 = Color3.fromRGB(255, 140, 46)
Text.Text = Part.Parent.Name .. "\n Dist: " .. D
elseif D ~= nil and D 0 do
game:GetService('RunService').Stepped:wait()
for i = 1,#names do
local check = game.Workspace:FindFirstChild(names[i] .. " Tracker",true)
if check then
table.remove(names,i)
check:Destroy()
break
end
end
end