Whats the purpose of printing in roblox?? Why do we do it and why does it matter in games??
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
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