list = {
"Medium Iron Deposit",
"Barren Iron Deposit",
"Rich Iron Deposit",
"Small Rare Ore Deposit",
"Rich Rare Ore Deposit",
"Persian Walnut S"
}
local fold = Instance.new("Folder", workspace)
fold.Name = "Tracers"
function esp(thing)
local cham = Instance.new("BoxHandleAdornment", thing)
cham.Size = Vector3.new(5, 5, 5)
cham.Transparency = 0.7
cham.Color3 = thing.Color
cham.AlwaysOnTop = true
cham.ZIndex = 1
cham.Adornee = thing
local cham2 = Instance.new("BoxHandleAdornment", thing)
cham2.Size = Vector3.new(1, 1, 1)
cham2.Transparency = 0
cham2.Color3 = Color3.new(255, 0, 0)
cham2.AlwaysOnTop = true
cham2.ZIndex = 1
cham2.Adornee = thing
local at0 = Instance.new("Attachment")
at0.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
local at1 = Instance.new("Attachment")
at1.Parent = thing
local beam0 = Instance.new("Beam")
beam0.Attachment0 = at0
beam0.Attachment1 = at1
beam0.Width0 = 0.25
beam0.Width1 = 0.25
beam0.Color = ColorSequence.new(thing.Color, thing.Color)
beam0.Parent = workspace.Tracers
end
for i, v in pairs(game:GetService("Workspace").Resources.Spawned:GetChildren()) do
for _, name in pairs(list) do
if v.Name == name then
rootpart = v:FindFirstChild("RootPart")
esp(rootpart)
end
end
end
game:GetService("Workspace").Resources.Spawned.ChildAdded:connect(
function(gamer)
for _, name in pairs(list) do
if gamer.Name == name then
rootpart = gamer:FindFirstChild("RootPart")
esp(rootpart)
end
end
end
)