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

Whats the purpose of printing?? Explain O_o?

Asked by 3 years ago

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

3 answers

Log in to vote
1
Answered by
Soban06 410 Moderation Voter
3 years ago

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

0
this is good, i say yes. NarwhalAndMe 141 — 3y
Ad
Log in to vote
1
Answered by 3 years ago

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

Log in to vote
-1
Answered by 3 years ago

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

0
Check if values are changing with brackets, or text to see if your script has gone to that line A_Mp5 222 — 3y

Answer this question