0% found this document useful (0 votes)
8 views2 pages

Spook Finder

The document contains a Lua script for a game that creates visual ESP (Extra Sensory Perception) parts for specific tree objects in a game environment. It checks for 'Spooky' and 'SpookyNeon' tree classes and allows the player to toggle the visibility of these ESP parts with the 'g' key. The script also includes functions to create and destroy these ESP parts based on player interactions.

Uploaded by

1741dogdoin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views2 pages

Spook Finder

The document contains a Lua script for a game that creates visual ESP (Extra Sensory Perception) parts for specific tree objects in a game environment. It checks for 'Spooky' and 'SpookyNeon' tree classes and allows the player to toggle the visibility of these ESP parts with the 'g' key. The script also includes functions to create and destroy these ESP parts based on player interactions.

Uploaded by

1741dogdoin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Wait(15)

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

local plr = game:GetService("Players").LocalPlayer


local mouse = plr:GetMouse()
local on = false

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)

You might also like