Here is my script:
for i = 1,10,1 do
Status.Value = "Please Stand on a plate"
wait(RoundDelay)
Status.Value = "Choosing Plates"
wait(3)
if Round == 1 then
BadPlatesAmount = math.random(1, 3)
for i = 1,BadPlatesAmount,1 do
local Plate = Plates[math.random(1, #Plates)]
for i = 1,BadPlatesAmount,1 do
local Plate = Plates[math.random(1, #Plates)]
if not table.find(GoodPlates, Plate) and not table.find(BadPlates, Plate) then
local Highlight = Instance.new("Highlight")
Highlight.OutlineTransparency = 1
Highlight.FillTransparency = .2
Highlight.FillColor = Color3.new(1, 0, 0)
Highlight.Parent = Plate
table.insert(BadPlates, Plate)
end
end
end
end
if Round == 2 then
BadPlatesAmount = math.random(1, 5)
for i = 1,BadPlatesAmount,1 do
local Plate = Plates[math.random(1, #Plates)]
for i = 1,BadPlatesAmount,1 do
local Plate = Plates[math.random(1, #Plates)]
if not table.find(GoodPlates, Plate) and not table.find(BadPlates, Plate) then
local Highlight = Instance.new("Highlight")
Highlight.OutlineTransparency = 1
Highlight.FillTransparency = .2
Highlight.FillColor = Color3.new(1, 0, 0)
Highlight.Parent = Plate
table.insert(BadPlates, Plate)
end
end
end
end
if Round == 3 then
GoodPlatesAmount = math.random(1, 10)
for i = 1,GoodPlatesAmount,1 do
local Plate = Plates[math.random(1, #Plates)]
if not table.find(GoodPlates, Plate) and not table.find(BadPlates, Plate) then
local Highlight = Instance.new("Highlight")
Highlight.OutlineTransparency = 1
Highlight.FillTransparency = .2
Highlight.FillColor = Color3.new(0, 1, 0)
Highlight.Parent = Plate
table.insert(GoodPlates, Plate)
end
end
end
if Round == 4 then
BadPlatesAmount = math.random(1, 10)
for i = 1,BadPlatesAmount,1 do
local Plate = Plates[math.random(1, #Plates)]
for i = 1,BadPlatesAmount,1 do
local Plate = Plates[math.random(1, #Plates)]
if not table.find(GoodPlates, Plate) and not table.find(BadPlates, Plate) then
local Highlight = Instance.new("Highlight")
Highlight.OutlineTransparency = 1
Highlight.FillTransparency = .2
Highlight.FillColor = Color3.new(1, 0, 0)
Highlight.Parent = Plate
table.insert(BadPlates, Plate)
end
end
end
GoodPlatesAmount = math.random(1, 5)
for i = 1,GoodPlatesAmount,1 do
local Plate = Plates[math.random(1, #Plates)]
if not table.find(GoodPlates, Plate) and not table.find(BadPlates, Plate) then
local Highlight = Instance.new("Highlight")
Highlight.OutlineTransparency = 1
Highlight.FillTransparency = .2
Highlight.FillColor = Color3.new(0, 1, 0)
Highlight.Parent = Plate
table.insert(GoodPlates, Plate)
end
end
end
if Round == 5 then
BadPlatesAmount = math.random(1, 15)
for i = 1,BadPlatesAmount,1 do
local Plate = Plates[math.random(1, #Plates)]
for i = 1,BadPlatesAmount,1 do
local Plate = Plates[math.random(1, #Plates)]
if not table.find(GoodPlates, Plate) and not table.find(BadPlates, Plate) then
local Highlight = Instance.new("Highlight")
Highlight.OutlineTransparency = 1
Highlight.FillTransparency = .2
Highlight.FillColor = Color3.new(1, 0, 0)
Highlight.Parent = Plate
table.insert(BadPlates, Plate)
end
end
end
GoodPlatesAmount = math.random(1, 8)
for i = 1,GoodPlatesAmount,1 do
local Plate = Plates[math.random(1, #Plates)]
if not table.find(GoodPlates, Plate) and not table.find(BadPlates, Plate) then
local Highlight = Instance.new("Highlight")
Highlight.OutlineTransparency = 1
Highlight.FillTransparency = .2
Highlight.FillColor = Color3.new(0, 1, 0)
Highlight.Parent = Plate
table.insert(GoodPlates, Plate)
end
end
end
if Round == 6 then
BadPlatesAmount = math.random(1, 15)
for i = 1,BadPlatesAmount,1 do
local Plate = Plates[math.random(1, #Plates)]
for i = 1,BadPlatesAmount,1 do
local Plate = Plates[math.random(1, #Plates)]
if not table.find(GoodPlates, Plate) and not table.find(BadPlates, Plate) then
local Highlight = Instance.new("Highlight")
Highlight.OutlineTransparency = 1
Highlight.FillTransparency = .2
Highlight.FillColor = Color3.new(1, 0, 0)
Highlight.Parent = Plate
table.insert(BadPlates, Plate)
end
end
end
GoodPlatesAmount = math.random(1, 10)
for i = 1,GoodPlatesAmount,1 do
local Plate = Plates[math.random(1, #Plates)]
if not table.find(GoodPlates, Plate) and not table.find(BadPlates, Plate) then
local Highlight = Instance.new("Highlight")
Highlight.OutlineTransparency = 1
Highlight.FillTransparency = .2
Highlight.FillColor = Color3.new(0, 1, 0)
Highlight.Parent = Plate
table.insert(GoodPlates, Plate)
end
end
end
if Round == 7 then
GoodPlatesAmount = math.random(1, 20)
for i = 1,GoodPlatesAmount,1 do
local Plate = Plates[math.random(1, #Plates)]
if not table.find(GoodPlates, Plate) and not table.find(BadPlates, Plate) then
local Highlight = Instance.new("Highlight")
Highlight.OutlineTransparency = 1
Highlight.FillTransparency = .2
Highlight.FillColor = Color3.new(0, 1, 0)
Highlight.Parent = Plate
table.insert(GoodPlates, Plate)
end
end
end
if Round == 8 then
BadPlatesAmount = math.random(1, 50)
for i = 1,BadPlatesAmount,1 do
local Plate = Plates[math.random(1, #Plates)]
if not table.find(GoodPlates, Plate) and not table.find(BadPlates, Plate) then
local Highlight = Instance.new("Highlight")
Highlight.OutlineTransparency = 1
Highlight.FillTransparency = .2
Highlight.FillColor = Color3.new(1, 0, 0)
Highlight.Parent = Plate
table.insert(BadPlates, Plate)
end
end
end
if Round == 9 then
BadPlatesAmount = math.random(1, 35)
for i = 1,BadPlatesAmount,1 do
local Plate = Plates[math.random(1, #Plates)]
if not table.find(GoodPlates, Plate) and not table.find(BadPlates, Plate) then
local Highlight = Instance.new("Highlight")
Highlight.OutlineTransparency = 1
Highlight.FillTransparency = .2
Highlight.FillColor = Color3.new(1, 0, 0)
Highlight.Parent = Plate
table.insert(BadPlates, Plate)
end
end
GoodPlatesAmount = math.random(1, 15)
for i = 1,GoodPlatesAmount,1 do
local Plate = Plates[math.random(1, #Plates)]
if not table.find(GoodPlates, Plate) and not table.find(BadPlates, Plate) then
local Highlight = Instance.new("Highlight")
Highlight.OutlineTransparency = 1
Highlight.FillTransparency = .2
Highlight.FillColor = Color3.new(0, 1, 0)
Highlight.Parent = Plate
table.insert(GoodPlates, Plate)
end
end
end
if Round == 10 then
BadPlatesAmount = math.random(1, 75)
for i = 1,BadPlatesAmount,1 do
local Plate = Plates[math.random(1, #Plates)]
if not table.find(GoodPlates, Plate) and not table.find(BadPlates, Plate) then
local Highlight = Instance.new("Highlight")
Highlight.OutlineTransparency = 1
Highlight.FillTransparency = .2
Highlight.FillColor = Color3.new(1, 0, 0)
Highlight.Parent = Plate
table.insert(BadPlates, Plate)
end
end
GoodPlatesAmount = math.random(1, 25)
for i = 1,GoodPlatesAmount,1 do
local Plate = Plates[math.random(1, #Plates)]
if not table.find(GoodPlates, Plate) and not table.find(BadPlates, Plate) then
local Highlight = Instance.new("Highlight")
Highlight.OutlineTransparency = 1
Highlight.FillTransparency = .2
Highlight.FillColor = Color3.new(0, 1, 0)
Highlight.Parent = Plate
table.insert(GoodPlates, Plate)
end
end
end
GoodPlatesAmount += 1
Status.Value = ""
wait(5)
if #GoodPlates > 0 then
for i,Plate in pairs(GoodPlates) do
Plate.Highlight:Remove()
table.remove(GoodPlates, table.find(GoodPlates, Plate))
end
end
if #BadPlates > 0 then
for i,Plate in pairs(BadPlates) do
Plate.Transparency = 1
Plate.CanCollide = false
Plate.Highlight:Remove()
end
wait(3)
for i,Plate in pairs(BadPlates) do
Plate.Transparency = 0
Plate.CanCollide = true
end
BadPlates = {}
end
Round += 1
end
end