Basically I want this door to randomly chose a BoolValue (true or false)
Right now I have it changing by an if statement.
while true do
wait(Config.Wait.Value)
if Config.RandomKill.Value then
if Config.Kill.Value then
--Door.BrickColor = BrickColor.Random()
Config.Kill.Value = false
else
--Door.BrickColor = BrickColor.Random()
Config.Kill.Value = true -- I want this to randomly change it not by if statement
end
end
end

3 comments
You could also evaluate it with a relational operation: local b = math.random(2) == 1
BTW, add math.randomseed(tick()). Or else it wont be random
I would recommend putting it in tables, it makes things easier