Getting Started
Welcome to the tutorial section of Class++ !
Here, you will learn what you need to install Class++, how to install it, and how to create a basic testing script.
Requirements
To use Class++, you don't need to be an expert developer, all you need is:
- Basic understanding on the concept of OOP (Object Oriented Programming), and Classes.
- Basic understanding on how metatables work in Roblox.
Basically, if you're already experienced with OOP, you're good to go!
Especially, if you already have knowledge in languages like C++ and Java, your job will be pretty easy.
Installation
Installing Class++ is pretty easy! Just head over to this link to download the .rbxm
file that contains the source code.
After the download, open Roblox Studio, go into the place that you want to import Class++ to, and right click on the ReplicatedStorage
(or the location that you want to insert into), and select "Insert from File".
Select the ClassPP.rbxm
file that you just downloaded, and if the ClassPP
module script has appeared, congratulations, the installation is complete!
Creating A Testing Script
Now that you've installed Class++, we can create a script to test if it has been successfully installed:
- 1: Create a
Script
or aLocalScript
instance, and parent it toworkspace
orStarterPlayer > StarterPlayerScripts
. - 2: Remove the
print("Hello World")
line, and paste the following code in:
local ReplicatedStorage = game:GetService("ReplicatedStorage") -- If you've inserted it to somewhere else, you can change this line.
local ClassPP = require(ReplicatedStorage.ClassPP)
local class = ClassPP.class
- 3: Press "Play" or "Run". If everything is working properly and there are no errors, you're good to go!