"for i do" script is not working as intended

I’m creating an intermission script thing, and it’s supposed to do a countdown of 3 seconds, the problem is that it’s not working as intended! Everything is printed instantly instead of one number per second. I don’t know what I did wrong:

for i = 3, 1, -1 do
    print(i)
end

I just wrote that, there is no more code. Thanks for reading

What type of script is this? This should work. I do not understand what you expected it to do.

Its a normal script, set in Workspace.

add a wait(1) after the print statement.

Ok but what did you expect it to do. Server scripts run in workspace.

Add wait(1) after the print in order for it to not print everything instantaneously

1 Like

I’m in a way very dumb, I forgot to add a wait(1)


@incapaxx

1 Like

As stated by @NeonNikilis, adding a wait(1) will halt the script for 1 second.

for i = 3, 1, -1 do
    print(i);
    wait(1);
end

However, print only post to output, so if you want the average Joe to see this consider using a ScreenGui

Wiki page: