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.
4 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.
5 Likes
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.