Trying to Parent a LocalScript to a ScreenGui using Rojo (VS code)

So I’m trying to set up rojo for a new project, and I’ve kinda just watched a video on the basics. I’m trying to parent a LocalScript to a ScreenGui in StarterGui, but everytime I do, Rojo crashes with not a very helpful error message. Haven’t used Rojo much before, so I have no idea how to do this. Here is my roblox hierarchy:

image

Here’s my VS code hierarchy:

image

and here is the default.project.json, no idea if I’m doing this right lmao.

First Create a class or a JSON if you wanna call it that, Well your wondering what that does.

First create a file in the StarterGui In VSC called
init.meta.json

Then inside it do

{
    "className": "ScreenGui",
    "ignoreUnknownInstances": true
}

You can read about this more here https://rojo.space/docs/6.x/sync-details/#meta-files

1 Like

Pretty sure this isn’t what you mean, but create it in here? Where do I make the file, I’m confused lol

image

Ye

What it looks like in VSC
Ye2

Then after you should be good just dont do a innit.client.lua, innit.server.lua or a innit.lua

1 Like

Alright done that, do I have to do anything with the default.project.json? How would I put a script inside of a ScreenGui?

Just do a Name.client.lua in the Folder not the Json (P.s. you dont need to have Name in there, Just name it something you want.)

1 Like