Você está na página 1de 7

--Unlumber Updated

--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.

Have Fun Using This Script!


--]]

--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

--[[ Wood Names:

Copy And Paste These Names In The "_G.TELEPORT" String Above.

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 = {}

--Name Changer For Seperating What Is What

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

if _G.TELEPORT == Wood[3] then


for i, v in pairs(game:GetService("Workspace")[Wood[3]]:GetChildren()) do
if v:FindFirstChild("TreeClass") ~= nil and v.TreeClass.Value == Wood[3] 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

--CaveCrawlerWood

if _G.TELEPORT == Wood[4] then


for i, v in pairs(game:GetService("Workspace")[Wood[4]]:GetChildren()) do
if v:FindFirstChild("TreeClass") ~= nil and v.TreeClass.Value == Wood[4] 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
--GenericWood

if _G.TELEPORT == Wood[5] then


for i, v in pairs(game:GetService("Workspace")[Wood[5]]:GetChildren()) do
if v:FindFirstChild("TreeClass") ~= nil and v.TreeClass.Value == Wood[5] 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

--SpookyWood

if _G.TELEPORT == Wood[6] then


for i, v in pairs(game:GetService("Workspace")[Wood[6]]:GetChildren()) do
if v:FindFirstChild("TreeClass") ~= nil and v.TreeClass.Value == Wood[6] 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

--FirWood

if _G.TELEPORT == Wood[7] then


for i, v in pairs(game:GetService("Workspace")[Wood[7]]:GetChildren()) do
if v:FindFirstChild("TreeClass") ~= nil and v.TreeClass.Value == Wood[7] 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

--GreenSwampyWood

if _G.TELEPORT == Wood[8] then


for i, v in pairs(game:GetService("Workspace")[Wood[8]]:GetChildren()) do
if v:FindFirstChild("TreeClass") ~= nil and v.TreeClass.Value == Wood[8] 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

--Oak

if _G.TELEPORT == Wood[9] then


for i, v in pairs(game:GetService("Workspace")[Wood[9]]:GetChildren()) do
if v:FindFirstChild("TreeClass") ~= nil and v.TreeClass.Value == Wood[9] 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

--Birch

if _G.TELEPORT == Wood[10] then


for i, v in pairs(game:GetService("Workspace")[Wood[10]]:GetChildren()) do
if v:FindFirstChild("TreeClass") ~= nil and v.TreeClass.Value == Wood[10] 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

--Volcano

if _G.TELEPORT == Wood[11] then


for i, v in pairs(game:GetService("Workspace")[Wood[11]]:GetChildren()) do
if v:FindFirstChild("TreeClass") ~= nil and v.TreeClass.Value == Wood[11] 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

--Bring

--KeyBind

local mouse1 = game.Players.LocalPlayer:GetMouse()


mouse1.KeyDown:connect(function(key)
if key == "r" 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)

--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

if _G.CREDITS == true then


warn("[Unlumber] Created By Unlisting")
end

--End Of Scripting

Você também pode gostar