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

Answer this question