Picking a license for script repository

Hey everyone, I'm finally setting up a public GitHub repository to share my scripts (mostly the ones I've made and updated in various threads and my TBS), however I have trouble choosing a license for the repository, I'm actually unsure if the license and the term of use are supposed to be the same?

All my shared scripts are following these rules:
-free to use for non-commercial and commercial games
-credit the author.s (unless I state for the given script that crediting is not mandatory)
-free to modify and share modifications if you credit or cite the original version (unclear how I would feel about selling modifications)
-no AI to train on/read/modify the scripts (is this doable?)

How would you deal with this?

I could also simply put no license and state to follow the term of use instead?
I don't know much, but just make it clear in the scripts/plugins you made,
so they MUST follow those terms.

for the update scrips, than check those terms, if it must include the
author's credit, than state that they also MUST state them.

if the author's script/plugin doesn't allow you share, than don't.
so read carefully their terms of use.
if the author's script/plugin doesn't allow you share, than don't.
so read carefully their terms of use.
Sorry for the confusion I meant the scripts that I wrote and then updated, for scripts not made by me I tend to write addons and patches to them (so distinct scripts to add after the original).
than it should applied to your terms.

if you update your own scripts, than the same rules applied you made for
the original.

updated scripts only add new features or compability you make to your scripts
or easier to use, so your terms or update the terms you had before.

nothing change though, but you can change terms if you update them,
so use the license you see fit for your scripts 🙂
Basically Licence is a more formal way of writing the TOS (especially if you use an existing licence document as a guideline or adaption), but practically they mean the same.
I use MIT and it seems to fit your requirements except for the last one. Apparently permissive licenses is treated as fair use by Copilot. You can probably solve it to some extent by not hosting it on Github, but I'm pretty sure there are a lot of other AI companies that will use your code for training, with or without license.
Thank you all for your answers, I decided to use Gitlab since in theory they don't use your code for their ais (unlike Github which has the right to train copilot on your repos). I will migrate to another server if gitlab turns out to be unsatisfying.
I also found a non-ai license project so I use the MIT version, hopefully this will at least help a bit.

Original thread: https://forums.rpgmakerweb.com/threads/picking-a-license-for-script-repository.181035/