'then' In an if statement not auto-finishing

Just opened a script and started typing today, when suddenly I wrote ‘task’ instead of then.
Never happened before, as normally it shows ‘then’ so it’s a click tap on the Enter key and done.

image


It seems like ‘then’ isn’t even in the list anymore. Anyone knows how to fix this, or is this a bug?

We need to see more of the script in order to help. This could be related to incorrect syntax or formatting/indentation.

Not much else to see :grimacing:

If you simply do if [condition] and then hit enter after it will auto-complete the entire block.

This also works for

for (iterator) -- Press enter here it will autocomplete

As well as

while [condition] -- press Enter here

it works for literally any block requiring a “then” or “do” keyword.

2 Likes

Oh, that’s nice - thanks for the tip!
Never knowingly used that, as ‘then’ always showed up after writing down the ‘t’. Really wonder why suddenly it’s gone

Roblox has been having some issues with their autocomplete. It gets really annoying. Also please remember to mark your solutions!

I had a similar issue and it had to do with the incremental typechecking and autocompletion beta feature, could be worth checking if it’s enabled and turn it off if it is.

3 Likes

Just checked and yes, it was on!

Turned it off and it works as normal again :smiley:
image

Then turned it back on and eh… yea

Seems like that’s been the issue. Time to find an update post and address this. Thanks!

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