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?
COMMUNITY QUESTION
Can you explain what print does because I don't understand it?
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.
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.

6 comments
Well like I don't understand how I could use it.
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
but in alvin blox's tutorial he used print but why couldn't he just use something else instead of print?
Because there's no other method to print console/ output messages besides error() and warn()
print() can help you see what parts of your code is functioning correclty
oh okay