Hi, I asked a related question the other day and it got answered, so thanks to YellowTide.
My problem now is that the timer will not start when all the bool values are true.
timer=1
totaltimer=1
ValueA = game.Workspace.PartA.ValueA
ValueB = game.Workspace.PartB.ValueB
ValueC = game.Workspace.PartC.ValueC
if ValueA.Value == true and ValueB.Value == true and ValueC.Value == true then
repeat
print'cool'
wait(1)
timer = timer + 1
until
timer > 3
if timer > 3 then
timer=totaltimer
end
game.Lighting.RaidersWin:Clone().Parent = game.Players.LocalPlayer.PlayerGui
for i, player in ipairs(game.Players:GetPlayers()) do
if player.Character then
local hum = player.Character:FindFirstChild('Humanoid')
if hum then
hum.Health = 0
timer=totaltimer
ValueA.Value=false
ValueB.Value=false
ValueC.Value=false
game.Workspace.PartA.BrickColor.new=BrickColor.new"Earth green"
game.Workspace.PartB.BrickColor.new=BrickColor.new"Earth green"
game.Workspace.PartC.BrickColor.new=BrickColor.new"Earth green"
end
end
end
end
What this code should do is start a timer that counts to 3 when all the values are true, then after 3 seconds it clones a Gui into everyone's PlayerGui, then resets the timer and kills everyone. The timer would end if a value becomes false and reset to 0.
For some reason the above will not work. Thanks for reading!

2 comments
Wow, thank you so much! I learned something really important from this and it works now! Also sorry to do this but I think in this part - workspace.PartA.BrickColor.new=BrickColor.new"Earth green" you can't put .new in beside the first brickcolour, so it should be workspace.PartA.BrickColor=BrickColor.new"Earth green". Just for future reference. +1
Haha thanks. missed that(: