Escolar Documentos
Profissional Documentos
Cultura Documentos
--Created By Unlisting
--[[
INFO:
This Script Renames All TreeRegions To The Regions For Its Main Wood And Making It
Easier For You To Teleport All The Wood To You Which Comes With It If You
Enter The Wood's Name In The Global "TELEPORT" Variable Below.
Once You Cut The Wood Down Press The Key B Or Make It Automatically Bring It To You
By Turning The _G.BRING To true.
--Settings
_G.TELEPORT = "CaveCrawler" --The Name Of The Wood You Want. The List Of Wood Names
Are Listed Below.
_G.CREDITS = false
_G.BRING = false
There May Be More Kinds Of Wood That I Haven't Put In Here But This Will Do For
Now.
------------------
Cherry
Palm
FirBranch
CaveCrawler
Generic
Spooky
Fir
GreenSwampy
Oak
Birch
Volcano
--]]
--SCRIPTING
local Wood = {
"Cherry",
"Palm",
"FirBranch",
"CaveCrawler",
"Generic",
"Spooky",
"Fir",
"GreenSwampy",
"Oak",
"Birch",
"Volcano"
}
local NewRegionNames = {}
for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
if l.Name == "TreeRegion" then
if l ~= nil then
for i, b in pairs(l:GetChildren()) do
if b:IsA("Model") then
if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == Wood[1] then
l.Name = Wood[1]
warn("TreeRegion #1 Has Been Changed To: "..Wood[1])
table.insert(NewRegionNames, l.Name)
end
end
end
end
end
end
for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
if l.Name == "TreeRegion" then
if l ~= nil then
for i, b in pairs(l:GetChildren()) do
if b:IsA("Model") then
if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == Wood[2] then
l.Name = Wood[2]
warn("TreeRegion #2 Has Been Changed To: "..Wood[2])
table.insert(NewRegionNames, l.Name)
end
end
end
end
end
end
for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
if l.Name == "TreeRegion" then
if l ~= nil then
for i, b in pairs(l:GetChildren()) do
if b:IsA("Model") then
if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == Wood[3] then
l.Name = Wood[3]
warn("TreeRegion #3 Has Been Changed To: "..Wood[3])
table.insert(NewRegionNames, l.Name)
end
end
end
end
end
end
for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
if l.Name == "TreeRegion" then
if l ~= nil then
for i, b in pairs(l:GetChildren()) do
if b:IsA("Model") then
if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == Wood[4] then
l.Name = Wood[4]
warn("TreeRegion #4 Has Been Changed To: "..Wood[4])
table.insert(NewRegionNames, l.Name)
end
end
end
end
end
end
for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
if l.Name == "TreeRegion" then
if l ~= nil then
for i, b in pairs(l:GetChildren()) do
if b:IsA("Model") then
if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == Wood[5] then
l.Name = Wood[5]
warn("TreeRegion #5 Has Been Changed To: "..Wood[5])
table.insert(NewRegionNames, l.Name)
end
end
end
end
end
end
for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
if l.Name == "TreeRegion" then
if l ~= nil then
for i, b in pairs(l:GetChildren()) do
if b:IsA("Model") then
if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == Wood[6] then
l.Name = Wood[6]
warn("TreeRegion #6 Has Been Changed To: "..Wood[6])
table.insert(NewRegionNames, l.Name)
end
end
end
end
end
end
for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
if l.Name == "TreeRegion" then
if l ~= nil then
for i, b in pairs(l:GetChildren()) do
if b:IsA("Model") then
if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == Wood[7] then
l.Name = Wood[7]
warn("TreeRegion #7 Has Been Changed To: "..Wood[7])
table.insert(NewRegionNames, l.Name)
end
end
end
end
end
end
for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
if l.Name == "TreeRegion" then
if l ~= nil then
for i, b in pairs(l:GetChildren()) do
if b:IsA("Model") then
if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == Wood[8] then
l.Name = Wood[8]
warn("TreeRegion #8 Has Been Changed To: "..Wood[8])
table.insert(NewRegionNames, l.Name)
end
end
end
end
end
end
for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
if l.Name == "TreeRegion" then
if l ~= nil then
for i, b in pairs(l:GetChildren()) do
if b:IsA("Model") then
if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == Wood[9] then
l.Name = Wood[9]
warn("TreeRegion #9 Has Been Changed To: "..Wood[9])
table.insert(NewRegionNames, l.Name)
end
end
end
end
end
end
for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
if l.Name == "TreeRegion" then
if l ~= nil then
for i, b in pairs(l:GetChildren()) do
if b:IsA("Model") then
if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == Wood[10] then
l.Name = Wood[10]
warn("TreeRegion #10 Has Been Changed To: "..Wood[10])
table.insert(NewRegionNames, l.Name)
end
end
end
end
end
end
for i, l in pairs(game:GetService("Workspace"):GetChildren()) do
if l.Name == "TreeRegion" then
if l ~= nil then
for i, b in pairs(l:GetChildren()) do
if b:IsA("Model") then
if b:FindFirstChild("TreeClass") ~= nil and b.TreeClass.Value == Wood[11] then
l.Name = Wood[11]
warn("TreeRegion #11 Has Been Changed To: "..Wood[11])
table.insert(NewRegionNames, l.Name)
end
end
end
end
end
end
--Names Checker
for i, v in pairs(game:GetService("Workspace"):GetChildren()) do
print(v.Name)
end
--Teleporter
--CherryWood
for i, v in pairs(game:GetService("Workspace")[Wood[1]]:GetChildren()) do
if _G.TELEPORT == Wood[1] then
if v:FindFirstChild("TreeClass") ~= nil and v.TreeClass.Value == Wood[1] then
v:MoveTo(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position
+ Vector3.new(math.random(1,60), math.random(1,1), math.random(1,60)))
end
end
end
--PalmWood
for i, v in pairs(game:GetService("Workspace")[Wood[2]]:GetChildren()) do
if _G.TELEPORT == Wood[2] then
if v:FindFirstChild("TreeClass") ~= nil and v.TreeClass.Value == Wood[2] then
v:MoveTo(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position
+ Vector3.new(math.random(1,60), math.random(1,1), math.random(1,60)))
end
end
end
--FirBranchWood
--CaveCrawlerWood
--SpookyWood
--FirWood
--GreenSwampyWood
--Oak
--Birch
--Volcano
--Bring
--KeyBind
--Auto
while true do
wait(5)
if _G.BRING == true then
for i, v in pairs(game.Workspace.LogModels:GetChildren()) do
if v.Name:sub(1, 6) == "Loose_" and v:findFirstChild("Owner") and v.Owner.Value ==
game.Players.LocalPlayer then
v:MoveTo(game.Players.LocalPlayer.Character.Torso.Position + Vector3.new(0, 5, 0))
end
end
end
end
--Credits
--End Of Scripting