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
Well what you can do is use math.Random() and if it is one number make it true and if it is another number make it false.
local bool=false local n = math.random(1,2) if n==1 then bool=true elseif n==2 then bool=false end