Having one issue with the rojo plugin

  1. What do you want to achieve?
    I want it so when you save in rojo it does not always save it as a module script.

  2. What is the issue?
    When I use the rojo plugin and make a lua file it always saves it as a module script.

  3. What solutions have you tried so far?
    I have asked some people and they did not help me.

I saved the file at a lua file, for example test.lua.

1 Like

For a server script the extension needs to be .server.lua, for a local script the extension is .client.lua. The .lua extension is for module scripts.

3 Likes

The server script located where?

Right now I am using rojo with vs code.

What do you mean? I have only used Rojo a few times. But to make it a server script named test for example you would do test.server.lua. If you need a local script do test.client.lua.

So right now I am trying to make it so when you save a test.lua file in vs code and using rojo to save it to the game instead of saving it as a module it saves it as a script just a normal server script. Edit: “This is my first time using rojo, sorry I am dumb”

Then don’t save it as a .lua file. Save it as a .server.lua. This makes it a server script

Oh that is it? (Char 3000000000000000)

Oh yea it works, thx so much. :slight_smile:

Just for future reference, the Rojo website has a list of extensions and what instance it converts to.
https://rojo.space/docs/0.5.x/reference/sync-details/#overview

2 Likes

Thank you for the tip, next time I will check this link.

1 Like