I am trying to make the script print “We reached the end!” when a == 5, but for some reason it isn’t working. It just keep printing “We are not there yet.” even after it passes 5 times. Can someone please help?
while true do
wait(2)
local a = 1
local b = 1
if a == 5 then
print("We reached the end!")
else
print("We are not there yet.")
end
end
I also want it to stop after it reaches 5 but I’m not sure how it works.