Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _G.TELEPORT = "Volcano"
- local Wood = {
- "Cherry",
- "Palm",
- "FirBranch",
- "CaveCrawler",
- "Generic",
- "Spooky",
- "Fir",
- "GreenSwampy",
- "Oak",
- "Birch",
- "Volcano",
- "LoneCave"
- }
- --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
- 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[12] then
- l.Name = Wood[12]
- warn("TreeRegion #12 Has Been Changed To: "..Wood[12])
- 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
- --LoneCave
- if _G.TELEPORT == Wood[12] then
- for i, v in pairs(game:GetService("Workspace")[Wood[12]]:GetChildren()) do
- if v:FindFirstChild("TreeClass") ~= nil and v.TreeClass.Value == Wood[12] 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
Add Comment
Please, Sign In to add comment