![](https://blog.haydz6.com/wp-content/uploads/2019/07/2600x688.jpg)
Blog
-
Introducing: The Riddling Skull
A mysterious skull has appeared in the ROBLOX Catalog… No one has yet figured out how to obtain this rare item, however, serious investigation is under way. Very obtuse clues are all the community has to go on right now. However, more clues wil...
| October 10, 2008 -
Introducing: The Riddling Skull
a A No one has yet figured out how to obtain this rare item, however, serious investigation is under way. Very obtuse clues are all the community has to go on right now. However, more clues will be forthcoming over the next several days - so keep a look out! - Telamon a
| October 10, 2008 -
[email protected]
Maybe you’ve been coding video games since you were 8. Maybe you’re a battle-hardened veteran of the games industry. Or perhaps you’ve spent the past 10 years of your life writing office software and now it is time for a change. This is yo...
| September 3, 2008 -
[email protected]
a Maybe you’ve been coding video games since you were 8. Maybe you’re a battle-hardened veteran of the games industry. Or perhaps you’ve spent the past 10 years of your life writing office software and now it is time for a change. This is your opportunity to get in on a great project, with an awesome team, on the ground floor. Check out our new - Telamon a
| September 3, 2008 -
Scripting With Telamon: Debugging
Howdy! Today’s article is for Roblox power users who want to learn how to develop scripts in Roblox. This is not a programming language tutorial - I will assume you know enough about Lua to look at a piece of code and guess at what it does. Rather I am going to teach you how to deal with buggy scripts and show how to debug them. Debugging in general is a mystical art - I use the word "art", which is the product of innate creative forces, in contrast to "science", which can be dissected, reduced, and taught. We’ve built some tools into Roblox Studio to help you though. strong We’re going to build a secret door. An easy way to make a secret door is to make a brick and set its CanCollide property to false. Anyone can them walk through such a brick. No. Our secret door is going to be special. It’s eventually going to guard the treasure room in my castle and it’s only going to let approved members of the Pirate Army through (Arrrrr!). Clearly we need some scripting here, me hearties. strong When I’m making a complicated script, I try to test it as I go along. I’ve seen a lot of people in intro programming classes try to write all their code at once and then test it. This is about the most painful way to write code. Don’t do it. Instead, write the shortest bit of code that you can test. Test it. If it works, add some more stuff. Then test it. If something broke, you know where to start looking. A more simple version of the door we want to make is a door that just turns transparent whenever anything touches it. a strong Ok, time to break out the power tools. If you have been scripting without these, I feel sorry for you. There are two that I will talk about today: the Output window and the Command toolbar. The first is by far the most useful, so I will focus on it. To bring up the Output window, use the View -> Output menu option. This is add a window pane to the bottom of your screen. This window will show the output from your scripts while they are running. If your script has an error in it, the error will be printed here along with the line number telling you where the script broke. Let’s look at both of these right now. In your new script, paste the following code: p As you can probably tell, this script prints "Hello world!", spits out the numbers 1 to 10 and then crashes on an error. If you press the Run button in Studio, you can see this. The output will look like this: p This is telling us that line 7 of our script is bad, which is something we already knew. However, in a more complicated script, it can be very helpful to print out stuff as the script is running so that you can see where things are going wrong. It may seem obvious once I’ve said it, but if something is broken with your script, start printing stuff out - rare is the bug that will not succumb to this level of scrutiny. I once wrote an entire operating system, using only printf to debug it. a p And if you have a part named "Door" in your level, it will be immediately teleported to (0, 100 ,0) while the game is running. This is kindof arcane, but I mention it because I have found the Command Toolbar useful on occasion. strong Here it is: p If you have ever seriously tried to learn lua scripting for Roblox, you have looked at some Roblox scripts. The code for listening to a Touch event should look familiar. Basically I have wired up the Part.Touched event to call the onTouched function whenever the part is touched by another part. When this happens, the door will turn semi-transparent for 5 seconds. Add this to your Door script, save your map, and try it. If you touch or shoot the door, you will see a nice effect. If you have the Output Window up, you will also see a "Door Hit" message printed whenever the door is touched. If you did not see this message, you would know that the onTouch function was not being called and that you had not wired up the event handler correctly. strong Like I said, this is not a tutorial on actually writing code, only debugging it. So here is the finished script: p It has one bug in it. Without using the Output Window, the only thing you will be able to tell is that the script is not working. With the Output Window, the problem becomes obvious: p Since the script prints out "Door Hit", but not "Human touched door", we know the problem is somewhere in line 18 or 19 of the code. The Output window tells us that there is a problem on line 18 - FindFirstChild is failing. Ah! That is because in Lua methods are invoked using a colon (:) instead of a dot (.) (all other languages of consequence use dots for this - curse the inventors of Lua!) Change the line 18 to be: p a - Telamon a
| June 30, 2008 -
The Survey Is Win!
We received almost 4600 responses to the Getting To Know You survey. That’s great! Now we will be better able to understand the users. Thanks guys! We learned some interesting things from the survey, like that most users really like chatting and playing games but not so much scripting. We will try to keep it all in mind for future updates. We also got some great suggestions… p The following 50 users received $R 50 each. They were randomly chosen from the list of survey takers. -ReeseMcBlox a
| May 18, 2008 -
The Survey Is Win!
We received almost 4600 responses to the Getting To Know You survey. That’s great! Now we will be better able to understand the users. Thanks guys! We learned some interesting things from the survey, like that most users really like chatting and...
| May 18, 2008 -
Spring Block Party Parade 3
The party is in full swing for Spring! You can check out all the fun stuff going on over at the event site Gallery . There is a lot of great stuff there! All the users who entered will receive the Party Hat. The voting is closed at the event site ...
| April 28, 2008 -
Spring Block Party Parade 2
The party is in full swing for Spring! You can check out all the fun stuff going on over at the Be sure to go to the event site and VOTE on your favorite entries. The top entries of each category will receive a special hat. The categories are p These are just a few of the things we noticed at the Spring Block Party. There will be more parades. Each of these users will receive 200 Robux! Entries Videos News and Articles a a Special thanks to Wirodeu for managing the carrot project, which caused many people to dress up as carrots, create carrot models, and make carrot places for Spring! -ReeseMcBlox a
| April 23, 2008 -
Spring Block Party Parade 1
The party is in full swing for Spring! You can check out all the fun stuff going on over at the Be sure to go to the event site and VOTE on your favorite entries. The top entries of each category will receive a special hat. The categories are These are just a few of the things we noticed at the Spring Block Party. There will be more parades. Each of these users will receive 200 Robux! Entries Videos a p -ReeseMcBlox a
| April 20, 2008 -
Keep Your Password Safe
It’s super important that your password is a secret. It’s like the keys to your house, or in this case the keys to all your special ROBLOX stuff. What is a password scam? A password scam is when someone tries to get your password in a sneaky way. Usually try to be your friend and offer you help of some kind. Or maybe they threaten or bully you. People can also change your password if you stay logged in at your computer when you are not there. The person who gets your password may not be nice! They might… A password scammer is not a scary hacker. It doesn’t take any computer skills to do this crime. Most scammers look just like the other users so it’s best to be careful and not tell anyone your password, no matter what. em What can you do? Your password should not be one of the following things… your first name, last name, username, birthday, zip code, sisters name, brothers name, or just asdfg or 123456. It should be more like one of the following things… Then you memorize the password. If you need to write it down, give the paper to your parent to keep safe. -ReeseMcBlox a
| April 16, 2008 -
User Twenty-two
You can send him ideas - but don’t make demands! He’s already just as busy as the rest of the team. Keith was formerly an Aeronautics and Astronautics engineer. He has a family and lives locally to ROBLOX. He also likes Batman the original TV show! We hope you’ll make him feel welcome! -ReeseMcBlox a
| March 24, 2008 -
Builderman’s Places Parade
Thanks so much to the designers and builders who have helped make this event a success. They received fabulous prizes and fame and also helped Builderman get some awesome looking places. Hooray! Design: Briguy9876 Try to take out your enemy�...
| March 10, 2008 -
All About the Bluesteel Gift of Long Years
Those of you who were around for the Christmas gift-giving extravaganza in December will recognize that Telamon has a predilection for giving out cryptic prizes, then cackling madly as people try to figure them out. But this time, I’m going to ...
| March 2, 2008 -
All About the Bluesteel Gift of Long Years
a Everyone who logged into ROLBOX on February 29th was awarded the Here’s what you do want to know: embed - Telamon a
| March 2, 2008 -
ROBLOX is Fun and Educational
embed a As game developers, we find it very exciting to see people using ROBLOX to create things that we would never of imagined. It’s definitely one of the best parts about working at ROBLOX. If anyone else has used ROBLOX in a school project, we’d love to hear about it. - Telamon a
| February 23, 2008 -
It’s All in the Wiki
a The I’ve rifled through Builderman’s inbox and determined that roughly 80% of the questions that people ask Builderman are already very well answered in the wiki. Here are answers to five of the questions Builderman is most frequently asked: a a a a a So if someone asks you for help and you don’t know the answer, point them towards the wiki! It’s full of - Telamon a
| February 20, 2008