NOTICE: GUI CONTROLS ARE COMING SOON, PLEASE BE PATIENT
Latest Update - Removed Cout
Cout has been replaced by Console.log
Hey, ShadowX Here.
I’ve made a simple C++ Lua Language, named CPP or L+
This is inspired by the popular language ‘C++’. Some notes here, console commands are the hardest. Support for sound, and GUI’s are coming soon. The support for the GUIs will be similar to Roact. I hope you enjoy!
L+ only has 4 Commands So Far.
NOTICES - READ ME
🛈: The Strings Can Be Found Inside The ‘
🛈:Don’t critize me unless you have read all the comments
GET IT HERE: L+ (C++) - Roblox
Anyways, I’ve left an example script but here is a quick tutorial.
First Insert The Model Into WORKSPACE
Now Make A Script Wherever. I recommend A LocalScript
New: Using The Command:
local CPP = require(game.Workspace.CPP.Core.Scripts.Modules.CoreModules.UsingCPP), we can now instantly call CPP Libraries, etc
**The Console.log Command is a command that prints a variable or a string in the CONSOLE
A better alternative to this is to using the default
To Get the
Console.log command, we need to require it.
It can Be Required Like This:
local C = require(game.Workspace.CPP.Core.Scripts.Modules.Commands.Cout)
Okay, so now we have our command, But How do we call it?
C.Log(Nom Nom Nom)
VALUES (STRING, INT, AND CHAR)
Okay. Before we do that, we need to get 2 things, require a script, and get the path that saves the values.
local IntCommand = require(game.Workspace.CPP.Core.Scripts.Modules.Commands.Int) local IntLib = game.Workspace.CPP.Core.Values.int -- Gets The Int Library
Okay, so how do we create a variable?
As mentioned before the String is mixed in with the Int command.
IntCommand.Int("String", "X", "Hello")
“String” Is Saying We are Making a String, “X” is the name Of The Variable, and “Hello” Is The Value
The Value Of X Is Now “Hello”
And For Numbers…
IntCommand.Int("Number", "X", "4")
X can have as many values as you like. X could have a Number Value Of 4, And String values of 4,8,3,6 and 3.
To call this depends on how many You Have Created.
C.Log(IntLib.X_S1.Value) -- Prints Our Variable 'X'
Here we are printing ‘IntLib.X_S1.Value’. The ‘X’ in X_S1 is the name of our Variable. ‘S’ tells us it’s a string, (N means number) and the number at the end tells us which one it is. So you could have 5 X’s and you can choose which one you want.
A Char value is similar to the above but can only hold 1 character.
It can also be used to convert numbers to letters.
Example Of The Command Char:
-- Example local C = require(game.Workspace.CPP.Core.Scripts.Modules.Commands.Cout) -- Gets The Console.log Command local CharCommand = require(game.Workspace.CPP.Core.Scripts.Modules.Commands.Char) local CharLib = game.Workspace.CPP.Core.Values.char CharCommand.Char("x","w") Console.log(CharLib.x.Value) -- Prints Our Variable 'X'
This calls The
Console.log And The
We can make a char value like the following:
‘x’ is the name, and ‘w’ is our value. Attempts to change this will result in an error:
"CPP ERROR: CHAR CAN ONLY HAVE ONE LETTER"
• ‘Char’ Command DONE
• Adding GUI Control [NEXT BIG UPDATE]
• Adding Sound Control
24 /02 / 23
24/02/23 - Created And Published
24/02/23 - Char Command
24/02/23 - Bug Fixes
24/02/23 - Removed EULA
Let me know your ideas and recommendations on this is the comments.
WHAT WOULD YOU LIKE NEXT?
The Poll Has Ended! We’re officially adding an ‘inc’ command to quickly create GUIs