How to use RoSync

Here we are going to learn how to use RoSync.

Creating Scripts

RoSync supports creating any type of Script. For example to create a (Server) Script you just add the .lua extension and it will automatically make it a (Server) Script. Example:

This would make a (Server) Script called Example Script.

How do I add code to my script?

To add code to this script just open up that file put what you want the script to do. For Example you can put this

It's basically the same as Roblox but you can choose how you write your code.

What about Local Scripts?

It is pretty much the same thing as creating a (Server) Script however you have to add a .c before the .lua, Here is a Example

This would create a Local Script called Example Local Script.

And Module Scripts?

It is the same thing as a LocalScript but instead of .c it is .m, Here is a Example

This would create a Module Script called Example Module Script.

Creating Items

RoSync supports creating any item, It is not just limited to scripts.

Any file that has the .json extension is considered by RoSync as a Item. Inside of this file you can specify custom Objects. For Example if you wanted a RemoteEvent the following JSON will do that

What about properties?

Don't worry you can add properties to a item as well. If you were using a item file to create a part you can define the properties like so

Basically just add the property name and then add the value.

How do I add property values?

Don't worry about that I will explain this later on.

How do I add children to items and scripts?

Good question, I am just about to talk about that.

Creating Items with children

RoSync also can add children for items or scripts. To do this you need to make a folder, Then for example if you wanted to parent a bunch of scripts together you can put them inside of this folder you just made, However what if you wanted to show UI to the player? This is where Config.ini comes into play.

Why would I need a Config.ini file?

This is a configuration file. This is a important file to RoSync since it will allow you to modify what the folder becomes, This way you can show UI to the player and do a bunch of other stuff.

What can I put inside of this Config.ini file?

The Config.ini file allows you to make a folder become a custom Item this is useful for making UI that you will show to the player. The following code will make the Folder become a ScreenGui (You can do this for any item inside of Roblox)

Much easier to create UI now. Basically anything that you can put inside of a .JSON file a Config.ini file can do.

Tip: If you want the folder to become any type of Script and you want that script to do stuff, You will need to add a "Source" property to the Config.ini file like so

How do I make a folder to organise items / scripts?

Make sure that you Read here.

How to add property Values

You may be wondering how do I add special Values like Vector3 and UDim2, Don't worry RoSync wont make your life that hard. Here are the list of Special Values Roblox use and how to write them in JSON

See how easy it is? It is basically just writing whatever you want to write but inside of Quotation marks. Tip: If you are trying to write a Quotation mark inside of a pair of Quotation marks add a backslash before it.

Adding attributes

You may be wondering how do I add/remove Attributes using RoSync, RoSync has a cool feature where you can add attributes. Adding this JSON

You are pretty much ready to use attributes. To add a attribute use this format to put it into JSON

You may be wondering how do I add special Values like Vector3 and UDim2, Don't worry RoSync wont make your life that hard. Here are the list of Special Values Roblox use and how to write them in JSON

And to remove a Attribute just delete it from the Attributes table.