Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Can you explain what print does because I don't understand it?

Can someone explain to me what print does? Because I was watching a youtube tutorial and I don't understand what it does? Could you also provide a example?

2 answers

It simply prints a message in the Output/ Developer Console; you can open the console by typing "/console" in chat or pressing F9 in game.

6 comments

0

Well like I don't understand how I could use it.

0

How or why? to use it you just type in a script: print("message here"), and for the why; it's normally useful for debugging and error finding

0

but in alvin blox's tutorial he used print but why couldn't he just use something else instead of print?

0

Because there's no other method to print console/ output messages besides error() and warn()

1

print() can help you see what parts of your code is functioning correclty

0

oh okay

Print is is basically a function that lets you print something in the output bar but print can't be used as a function that makes you write in a textbox or what ever . you can also put an variable in print like:

s = "Hello World!"

print(s)

this is for text change Script:

local TextBox = script.Parent.Parent.TextBox

TextBox.text = "Hello"

1 comment

0

If this helped please approve it

This discussion is preserved as it was. New answers, comments, and votes are closed.