So I have some dialogue and I want two options: one you can press, and one that has a timer. I need to fit both in only one script, so I tried to use a coroutine to make the timer go while you're able to press the first button, but it won't work at all (proven with prints). does anyone know why? here is my code:
coroutine.wrap(function()
print("coroutine")
for i=5, 1, -1 do
wait(1)
print(i)
rightoption.Text = i
end
end)
Just for clarification,, the console outputs nothing.

1 comment
It worked! Thank you!