Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

CL0NED

Coder
Print is one of the the most basic functions in roblox scripting and it have many useful functions. It is a fairly easy method of tuple of parameters. The method is shown in the ROBLOX Studio's output box of whatever string is entered or if it's a polynomial within the parameters. For example:

print("Hello, world!")

In the output it would show

Hello, world!


Also,

print("Hello"," world!")

Would make

Hello world!

If you want to use the print function for maths you would do

print(1+1)

In the output it would show

2

You should not do this if you want to do maths.

print("1+1")

This would just output

1+1

You can also input variables into the parameters

a = "Hey guys"

print(a)

This would output

Hey guys

You can also do this,

a = 1+1

print(a)

This would output

2

in addition you can also do this

a = 1

print(5+a)

This would output

6


Usage
The print function does not interact with the workspace service at all, developers use
the print function for debugging and to check if a certain action has been performed in a script.
 
Nice Tutorial. I'm sure this would be great for People interested in learning Lua(Maybe even Python, as Lua does kind of have a similar Syntax to Python). Not only does this Benefit People wanting to learn Lua in general(Like me), it will also Benefit the new ROBLOX Developers that are coming to CodeForum.org

Again, great Tutorial.
 

New Threads

Buy us a coffee!

Back
Top Bottom