Script with RunContext=Client & Enabled=false under an Actor raises warning

This setup:

Raises this warning at runtime and also while creating it in the editor:
Warning: The script 'Script' with a non-legacy RunContext is parented to a container 'StarterGui', which will cause it to run multiple times. To avoid unintended behavior, consider setting the RunContext to 'Legacy', disabling the script, or moving it to a different location.

My script is already disabled, yet the warning is telling me to “consider disabling the script”.

In my actual use-case, I am cloning these actors out of StarterPlayerScripts into whereever they actually need to be.

repro:
actor-client-script-warning.rbxl (66.1 KB)

Expected behavior

Just don’t raise the warning. The script is disabled, so nothing unexpected will happen and no warning is needed. Honestly I just hate seeing warnings at runtime; I don’t mind the warning coming from the Editor/Properties window in Studio.

4 Likes