What are these modes?

so I have seen some say:
use --!strict to activate script mode and non-strict to activate

and also on roblox studio i saw:

Script analysis uses non-strict mode for all scripts by default. Use --!strict, --!nonstrict or --!nocheck to override mode on a per script basis

what is strict mode and nocheck?

1 Like

Here is the tutorial:

i did not really understand even when i opened the link

This feature probably isn’t for you right now then. That website contains the full rundown and documentation for typechecking and linting but you aren’t required to use them for Luau code. Take some time whenever you can to learn it from here; you likely won’t get it on your first read especially if you’re a newer programmer without experience in typed languages.

2 Likes

do you mean new or actually just more new?

ok, i found out what strict is.
but i dont know what is nocheck

oh i found out what nocheck is

–!strict : throws errors if the number of parameters passed to a function is inappropriate, i.e., if it’s not the amount the function is expected to receive. It also classifies a variable as a type, i.e number or string based on what it is assigned to.

–!non-strict : if the number of parameters a function is expected to receive is more or less, it is ok and the system wouldn’t throw error. And if variables aren’t declared a type initially, it will revert to being any.

–!no-check : doesn’t even start the type checking engine.

19 Likes