Monday, November 26, 2012

Zakky's Scripting Tutorials #1 - Printing

BASICS #1

Printing is a simple thing... You have something called an "output" in ROBLOX Studio, which will display your prints. Printing is often used just to narrow down a diagnostic of a paragraph of code or so. You use prints to organize your scripts too. So if I had a cake generator script....

print("CAKE GENERATORZ LOADED")

That would print a line on the output saying "CAKE GENERATORZ LOADED").
But what if my Cake Generatorz script wasn't working and OUTPUT wasn't helping me fix it? Well... This line could help you diagnose it. Because, if you see the line printed, then there's something wrong with after it. Whereas if it didn't print something would be stopping it.

Examples:
print("zakary99 model loaded")

You can also continuously print my name...

while true do 
print("Zakary99!!")
wait()
end

That would carry on printing my name forever.

This is a very short tutorial.

We will get more advanced as time goes by...

No comments:

Post a Comment

Write your comment here... OR Flingi will eat you