Skip to content

anonymous /gist:3886123

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
local deb = false
local rval = 0
local surval = 1
function removemap()
if game.Workspace:FindFirstChild("Map2") ~= nil then
game.Workspace.Map2:Remove()
end
if game.Workspace:FindFirstChild("Squares") ~= nil then
game.Workspace.Squares:Remove()
end
if game.Workspace:FindFirstChild("Winter") ~= nil then
game.Workspace.Winter:Remove()
end
if game.Workspace:FindFirstChild("Warehouse") ~= nil then
game.Workspace.Warehouse:Remove()
end
if game.Workspace:FindFirstChild("Stadium") ~= nil then
game.Workspace.Stadium:Remove()
end
if game.Workspace:FindFirstChild("WheatFarm") ~= nil then
game.Workspace.WheatFarm:Remove()
end
if game.Workspace:FindFirstChild("Creed") ~= nil then
game.Workspace.Creed:Remove()
end
if game.Workspace:FindFirstChild("AMap") ~= nil then
game.Workspace.AMap:Remove()
end
if game.Workspace:FindFirstChild("ForestTerrain") ~= nil then
game.Workspace.ForestTerrain:Remove()
end
if game.Workspace:FindFirstChild("LoadingDock") ~= nil then
game.Workspace.LoadingDock:Remove()
end
if game.Workspace:FindFirstChild("Maze") ~= nil then
game.Workspace.Maze:Remove()
end
if game.Workspace:FindFirstChild("Hills") ~= nil then
game.Workspace.Hills:Remove()
end
if game.Workspace:FindFirstChild("Plates") ~= nil then
game.Workspace.Plates:Remove()
end
if game.Workspace:FindFirstChild("Hill") ~= nil then
game.Workspace.Hill:Remove()
end
if game.Workspace:FindFirstChild("Hill2") ~= nil then
game.Workspace.Hill2:Remove()
end
if game.Workspace:FindFirstChild("Hill3") ~= nil then
game.Workspace.Hill3:Remove()
end
if game.Workspace:FindFirstChild("Hill4") ~= nil then
game.Workspace.Hill4:Remove()
end
if game.Workspace:FindFirstChild("Hill5") ~= nil then
game.Workspace.Hill5:Remove()
end
end
function getmap(mathran321)
if mathran321 <= 10 then
game.Lighting.HillVal.Value = 1
game.Lighting.Gen1:Clone().Parent = game.Workspace
m = Instance.new("Message")
m.Parent = game.Workspace
m.Text = "Generating terrain..."
for i=1, 12 do
game.Workspace.Checkr1.Value = 0
wait(0.5)
end
m:Remove()
elseif mathran321 == 11 then
game.Lighting.HillVal.Value = 1
game.Lighting.Gen2:Clone().Parent = game.Workspace
m = Instance.new("Message")
m.Parent = game.Workspace
m.Text = "Generating cluttered terrain..."
for i=1, 12 do
game.Workspace.Checkr1.Value = 0
wait(0.5)
end
m:Remove()
elseif mathran321 == 12 then
game.Lighting.HillVal.Value = 2
game.Lighting.Gen3:Clone().Parent = game.Workspace
m = Instance.new("Message")
m.Parent = game.Workspace
m.Text = "Generating ice terrain..."
for i=1, 12 do
game.Workspace.Checkr1.Value = 0
wait(0.5)
end
m:Remove()
elseif mathran321 == 13 then
surval = 0
game.Lighting.HillVal.Value = 0
game.Lighting.Plates:Clone().Parent = game.Workspace
game.Workspace.Map1.Bottum.CanCollide = false
game.Workspace.Map1.Bottum.Transparency = 1
m = Instance.new("Message")
m.Parent = game.Workspace
m.Text = "Inserting Dissapearing plates by chubbs21..."
for i=1, 12 do
game.Workspace.Checkr1.Value = 0
wait(0.5)
end
m:Remove()
elseif mathran321 == 14 then
game.Lighting.HillVal.Value = 1
game.Lighting.Gen4:Clone().Parent = game.Workspace
m = Instance.new("Message")
m.Parent = game.Workspace
m.Text = "Generating converyer terrain..."
for i=1, 12 do
game.Workspace.Checkr1.Value = 0
wait(0.5)
end
m:Remove()
elseif mathran321 == 15 then
surval = 0
game.Lighting.HillVal.Value = 0
game.Lighting.AMap:Clone().Parent = game.Workspace
game.Workspace.Map1.Bottum.CanCollide = false
game.Workspace.Map1.Bottum.Transparency = 1
m = Instance.new("Message")
m.Parent = game.Workspace
m.Text = "Inserting 'Narrows' by Unmoved..."
for i=1, 12 do
game.Workspace.Checkr1.Value = 0
wait(0.5)
end
m:Remove()
elseif mathran321 == 16 then
game.Lighting.HillVal.Value = 3
game.Workspace.Map1.Bottum.CanCollide = false
game.Workspace.Map1.Bottum.Transparency = 1
game.Lighting.ForestTerrain:Clone().Parent = game.Workspace
m = Instance.new("Message")
m.Parent = game.Workspace
m.Text = "Inserting 'Forest' by ryan135792468..."
for i=1, 12 do
game.Workspace.Checkr1.Value = 0
wait(0.5)
end
m:Remove()
elseif mathran321 == 18 then
game.Lighting.HillVal.Value = 1
game.Lighting.Hills:Clone().Parent = game.Workspace
m = Instance.new("Message")
m.Parent = game.Workspace
m.Text = "Inserting 'Hills' by RadioActiveNoob1..."
for i=1, 12 do
game.Workspace.Checkr1.Value = 0
wait(0.5)
end
m:Remove()
elseif mathran321 == 17 then
game.Lighting.HillVal.Value = 5
game.Workspace.Map1.Bottum.CanCollide = false
game.Workspace.Map1.Bottum.Transparency = 1
game.Lighting.Warehouse:Clone().Parent = game.Workspace
m = Instance.new("Message")
m.Parent = game.Workspace
m.Text = "Inserting 'Warehouse' by Scazzard1..."
for i=1, 12 do
game.Workspace.Checkr1.Value = 0
wait(0.5)
end
m:Remove()
elseif mathran321 == 19 then
game.Lighting.HillVal.Value = 6
game.Workspace.Map1.Bottum.CanCollide = false
game.Workspace.Map1.Bottum.Transparency = 1
game.Lighting.WheatFarm:Clone().Parent = game.Workspace
m = Instance.new("Message")
m.Parent = game.Workspace
m.Text = "Inserting 'Wheat Farm' by Scazzard1..."
for i=1, 12 do
game.Workspace.Checkr1.Value = 0
wait(0.5)
end
m:Remove()
elseif mathran321 == 20 then
game.Lighting.HillVal.Value = 5
game.Workspace.Map1.Bottum.CanCollide = false
game.Workspace.Map1.Bottum.Transparency = 1
game.Lighting.LoadingDock:Clone().Parent = game.Workspace
m = Instance.new("Message")
m.Parent = game.Workspace
m.Text = "Inserting 'Loading Dock' by Scazzard1..."
for i=1, 12 do
game.Workspace.Checkr1.Value = 0
wait(0.5)
end
m:Remove()
elseif mathran321 == 21 then
game.Lighting.HillVal.Value = 5
game.Workspace.Map1.Bottum.CanCollide = false
game.Workspace.Map1.Bottum.Transparency = 1
game.Lighting.Stadium:Clone().Parent = game.Workspace
m = Instance.new("Message")
m.Parent = game.Workspace
m.Text = "Inserting 'Stadium' by Scazzard1..."
for i=1, 12 do
game.Workspace.Checkr1.Value = 0
wait(0.5)
end
m:Remove()
elseif mathran321 == 22 then
game.Lighting.HillVal.Value = 7
game.Workspace.Map1.Bottum.CanCollide = false
game.Workspace.Map1.Bottum.Transparency = 1
game.Lighting.Creed:Clone().Parent = game.Workspace
m = Instance.new("Message")
m.Parent = game.Workspace
m.Text = "Inserting 'The Creed' by Unmoved..."
for i=1, 12 do
game.Workspace.Checkr1.Value = 0
wait(0.5)
end
m:Remove()
end
end
function getround(mathran)
if mathran == 12 then
if surval == 1 then
game.Lighting.Round2:Clone().Parent = game.Workspace
elseif surval ~= 1 then
game.Lighting.Round:Clone().Parent = game.Workspace
end
elseif mathran == 16 then
game.Lighting.Round6:Clone().Parent = game.Workspace
elseif mathran == 17 then
if surval == 1 then
game.Lighting.Round7:Clone().Parent = game.Workspace
elseif surval ~= 1 then
game.Lighting.Round:Clone().Parent = game.Workspace
end
elseif mathran == 21 then
if surval == 1 then
game.Lighting.Round11:Clone().Parent = game.Workspace
elseif surval ~= 1 then
game.Lighting.Round:Clone().Parent = game.Workspace
end
elseif mathran == 22 then
if surval == 1 then
game.Lighting.Round12:Clone().Parent = game.Workspace
elseif surval ~= 1 then
game.Lighting.Round:Clone().Parent = game.Workspace
end
elseif mathran == 14 then
game.Lighting.Round4:Clone().Parent = game.Workspace
elseif mathran == 15 then
if surval == 1 then
game.Lighting.Round5:Clone().Parent = game.Workspace
elseif surval ~= 1 then
game.Lighting.Round:Clone().Parent = game.Workspace
end
elseif mathran == 20 then
if game.Lighting.HillVal.Value ~= 0 then
game.Lighting.Round10:Clone().Parent = game.Workspace
elseif game.Lighting.HillVal.Value == 0 then
game.Lighting.Round:Clone().Parent = game.Workspace
end
elseif mathran == 13 then
p = game.Players:GetChildren()
num = 0
for i= 1, #p do
if p[i].Mode1.Value == 1 then
num = num + 1
end
end
if num >= 4 then
game.Lighting.Round3:Clone().Parent = game.Workspace
elseif num <= 3 then
game.Lighting.Round:Clone().Parent = game.Workspace
end
elseif mathran == 19 then
p = game.Players:GetChildren()
num = 0
for i= 1, #p do
if p[i].Mode1.Value == 1 then
num = num + 1
end
end
if num >= 4 then
game.Lighting.Round9:Clone().Parent = game.Workspace
elseif num <= 3 then
game.Lighting.Round:Clone().Parent = game.Workspace
end
elseif mathran == 18 then
p = game.Players:GetChildren()
num = 0
for i= 1, #p do
if p[i].Mode1.Value == 1 then
num = num + 1
end
end
if num >= 6 then
game.Lighting.Round8:Clone().Parent = game.Workspace
elseif num <= 5 then
game.Lighting.Round:Clone().Parent = game.Workspace
end
elseif mathran == 11 then
p = game.Players:GetChildren()
num = 0
for i= 1, #p do
if p[i].Mode1.Value == 1 then
num = num + 1
end
end
if num >= 4 then
game.Lighting.Round1:Clone().Parent = game.Workspace
elseif num <= 3 then
game.Lighting.Round:Clone().Parent = game.Workspace
end
elseif mathran == 23 then
p = game.Players:GetChildren()
num = 0
for i= 1, #p do
if p[i].Mode1.Value == 1 then
num = num + 1
end
end
if num >= 5 then
game.Lighting.Round13:Clone().Parent = game.Workspace
elseif num <= 4 then
game.Lighting.Round:Clone().Parent = game.Workspace
end
elseif mathran == 24 then
if surval == 1 then
p = game.Players:GetChildren()
num = 0
for i= 1, #p do
if p[i].Mode1.Value == 1 then
num = num + 1
end
end
if num >= 6 then
game.Lighting.Round14:Clone().Parent = game.Workspace
elseif num <= 5 then
game.Lighting.Round:Clone().Parent = game.Workspace
end
elseif surval ~= 1 then
game.Lighting.Round:Clone().Parent = game.Workspace
end
elseif mathran <= 10 then
game.Lighting.Round:Clone().Parent = game.Workspace
elseif mathran <= 29 then
p = game.Players:GetChildren()
num = 0
for i= 1, #p do
if p[i].Mode1.Value == 1 then
num = num + 1
end
end
if num >= 4 then
game.Lighting.Round15:Clone().Parent = game.Workspace
elseif num >= 2 then
game.Lighting.Round:Clone().Parent = game.Workspace
end
end
end
r = game.Workspace:FindFirstChild("Round")
if r ~= nil then
r.Disabled = true
r:Remove()
end
r = game.Workspace:FindFirstChild("Round1")
if r ~= nil then
r.Disabled = true
r:Remove()
end
r = game.Workspace:FindFirstChild("Round2")
if r ~= nil then
r.Disabled = true
r:Remove()
end
r = game.Workspace:FindFirstChild("Round3")
if r ~= nil then
r.Disabled = true
r:Remove()
end
r = game.Workspace:FindFirstChild("Round4")
if r ~= nil then
r.Disabled = true
r:Remove()
end
r = game.Workspace:FindFirstChild("Round5")
if r ~= nil then
r.Disabled = true
r:Remove()
end
r = game.Workspace:FindFirstChild("Round6")
if r ~= nil then
r.Disabled = true
r:Remove()
end
r = game.Workspace:FindFirstChild("Round7")
if r ~= nil then
r.Disabled = true
r:Remove()
end
r = game.Workspace:FindFirstChild("Round8")
if r ~= nil then
r.Disabled = true
r:Remove()
end
r = game.Workspace:FindFirstChild("Round9")
if r ~= nil then
r.Disabled = true
r:Remove()
end
r = game.Workspace:FindFirstChild("Round10")
if r ~= nil then
r.Disabled = true
r:Remove()
end
r = game.Workspace:FindFirstChild("Round11")
if r ~= nil then
r.Disabled = true
r:Remove()
end
r = game.Workspace:FindFirstChild("Round12")
if r ~= nil then
r.Disabled = true
r:Remove()
end
r = game.Workspace:FindFirstChild("Round13")
if r ~= nil then
r.Disabled = true
r:Remove()
end
r = game.Workspace:FindFirstChild("Round14")
if r ~= nil then
r.Disabled = true
r:Remove()
end
r = game.Workspace:FindFirstChild("Round15")
if r ~= nil then
r.Disabled = true
r:Remove()
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.