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

Whats the purpose of printing?? Explain O_o?

Whats the purpose of printing in roblox?? Why do we do it and why does it matter in games??

3 answers

Print() is used for Debugging. Debugging is when you try to find error in your code. Consider this line:

local Number = 5

if Number == 5 then
	print("Number is 5!")
else
	print("Number is not 5!")
end

So as you can see, we can check if the Number is 5 or not via print() statements. The prints statements will print in your output. The same rule can be applied when trying to debug your code.

Hope it helps

1 comment

0

this is good, i say yes.

Printing is used to say a phrase in a certain segment of a script so you can see if it didn't work and when. The phrase is always found in the output, Warn is the same thing but it can be used to print in yellow text and it can print error messages

The purpose of printing is to check errors in your script.

1 comment

0

Check if values are changing with brackets, or text to see if your script has gone to that line

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