I keep on getting a warning from studio, about the runcontext of a local script, however I don’t know what causes it as I don’t even see such property in a local script.
A LocalScript inherits the properties of a BaseScript which acts like some sort of a building block for scripts. However, the RunContext property is only meant to be changed in a Script.
Do you maybe have some scripts in your game that tries to change the .RunContext property of any scripts? The issue could be you thinking you’re changing the .RunContext of a Script while you’re actually accidentally trying to change that property within a LocalScript.
Well, I can’t remember trying to change the RunContext of any script, and I can’t find any line in all scripts in my game which tries to change it.
I also don’t have any plugins enabled.
When you hover your mouse over the warning, does it let you click it and shows a script where the property change is being attempted? Or does it say “Source is not available” or something similar to that? If it’s the second option, it most likely is caused by Roblox’s internal scripts like a CoreScript which you can do nothing about other than just reinstalling Studio (?) or just ignore the warning.
It doesn’t let me click it, nor does it show “Source is not available”
Just tried to remove a model (Adonis), and it removed the warning, it didn’t happen before though
The reason this is happening is because a script is attempting to modify the RunContext property of a LocalScript.
However this feature is only available for server-scripts and cannot be used for LocalScripts.
The message can be reproduced by executing the following code:
Instance.new("LocalScript").RunContext = "Client" -- or "Server", "Legacy"