While (variable) > (number) does not work

Hello. Im using a loop that would change the brickcolor every second for 5 seconds, but the problem is that the loop doesn’t even run at all. Any help is appreciated, thanks

Op is a part

LOOP:

while countdown > 6 do
op.BrickColor = Color3.fromRGB(255, 0, 0)
op.Material = Enum.Material.Neon
task.wait(1)
op.BrickColor = Color3.fromRGB(0, 0, 0)
countdown = countdown + 1
print(countdown) end 

not enough information

Hi could you send the script please

while countdown > 6 do
op.BrickColor = Color3.fromRGB(255, 0, 0)
op.Material = Enum.Material.Neon
task.wait(1)
op.BrickColor = Color3.fromRGB(0, 0, 0)
countdown = countdown + 1
print(countdown) end

Did you mean
while countdown < 6 do
I’m assuming countdown is 1, so it just never runs because countdown is greater than 6.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.