How to create a Script (RunContext Client) in vscode using an extension Rojo?
Let’s say you have a file named hello.server.luau
. Add another file in the same directory named hello.meta.json
with the following contents:
{
"properties": {
"RunContext": "Client"
}
}
See meta files documentation for more info on this format.
2 Likes
I’d also like to mention, in your default.project.json
, if you add "emitLegacyScripts": false
to the top-level all scripts created by Rojo will have the RunContext set to either Client or Server.
2 Likes