Spook Finder
Spook Finder
function CreateESPPart(BodyPart,color)
local ESPPartparent = BodyPart
local Box = Instance.new("BoxHandleAdornment")
Box.Size = BodyPart.Size + Vector3.new(0.1, 0.1, 0.1)
Box.Name = "ESPPart"
Box.Adornee = ESPPartparent
Box.Color3 = color
Box.AlwaysOnTop = true
Box.ZIndex = 5
Box.Transparency = 0.2
Box.Parent = BodyPart
end
wait(0.5)
local tree = false
for i, v in ipairs(game.Workspace:GetChildren()) do
if v.Name == "TreeRegion" then
for j, k in ipairs(v:GetChildren()) do
if k:FindFirstChild("TreeClass") ~= nil and k.TreeClass.Value ==
"Spooky" then
print("spook")
tree = true
break
end
end
end
end
for i, v in ipairs(game.Workspace:GetChildren()) do
if v.Name == "TreeRegion" then
for j, k in ipairs(v:GetChildren()) do
if k:FindFirstChild("TreeClass") ~= nil and k.TreeClass.Value ==
"SpookyNeon" then
print("SINISTER!!!")
tree = true
break
end
end
end
end
if tree == false then
print("no sook :(")
elseif tree == true then
end
mouse.KeyDown:Connect(function(key)
if key == "g" and on == false then
on = true
print("Button Pressed, On = true")
for i, v in ipairs(game.Workspace:GetChildren()) do
if v.Name == "TreeRegion" then
for j, k in ipairs(v:GetChildren()) do
if k:FindFirstChild("TreeClass") ~= nil and k.TreeClass.Value
== "Spooky" then
local children = k:GetChildren()
for i, p in ipairs(children) do
if p.Name == "WoodSection" then
CreateESPPart(p, Color3.fromRGB(255,255,255))
end
end
end
end
end
end
for i, v in ipairs(game.Workspace:GetChildren()) do
if v.Name == "TreeRegion" then
for j, k in ipairs(v:GetChildren()) do
if k:FindFirstChild("TreeClass") ~= nil and k.TreeClass.Value ==
"SpookyNeon" then
local children = k:GetChildren()
for i, p in ipairs(children) do
if p.Name == "WoodSection" then
CreateESPPart(p, Color3.fromRGB(255,100,0))
end
end
end
end
end
end
else if key == "g" and on == true then
on = false
print("Button Pressed, On = false")
for i, v in ipairs(game.Workspace:GetChildren()) do
if v.Name == "TreeRegion" then
for j, k in ipairs(v:GetChildren()) do
if k:FindFirstChild("TreeClass") ~= nil then
local children = k:GetChildren()
for i, p in ipairs(children) do
if p.Name == "WoodSection" then
local esp = p:GetChildren()
for x, y in ipairs(esp) do
if y.Name == "ESPPart" then
y:Destroy()
end
end
end
end
end
end
end
end
end
end
end)