Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

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

Asked by 3 years ago
Edited 3 years ago

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

Log in to vote
0
Answered by 3 years ago

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.

0
Well like I don't understand how I could use it. Configuator 158 — 3y
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 NoahsRebels 99 — 3y
0
but in alvin blox's tutorial he used print but why couldn't he just use something else instead of print? Configuator 158 — 3y
0
Because there's no other method to print console/ output messages besides error() and warn() NoahsRebels 99 — 3y
View all comments (2 more)
1
print() can help you see what parts of your code is functioning correclty Omzure 94 — 3y
0
oh okay Configuator 158 — 3y
Ad
Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

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"

0
If this helped please approve it Retallack445 75 — 3y

Answer this question