I'm trying to make a random number script, that when it hits 100, it moves a part upward. It's hit 100 multiple times but it never moves the part.
part = script.Parent
for number = 1, 180 do
math.randomseed(tick())
print(math.random(100))
wait(1)
if number == 100 then
part.CFrame = part.CFrame * CFrame.new(0,0,10)
script.Disabled = true
end
end
what am I doing wrong? (I'm not a great scripter so I could use some advice)

4 comments
try to do >=
Use "math.random(1, 100)".
this script isn't random, it hits 100 after 100 iterations every time. you need to check if math.random(100) is equal to 100, not number.
@youtubemasterWOW math.random(1, 100) and math.random(100) does the same thing.