There was a game that I played on ROBLOX a few months ago that I thought we could look back at. I'm not sure on the original creator of the game because now there are many copies of the game floating around. The one I played can be found here.
The game starts with the ability to read and answer many question. While that's not what I'll be going over, it is pretty fun and if you can beat my score, which was 388, let me know. I think the highest score you can get is 400.
Before reading the rest of these, feel free to try these challenges yourself.
The first few challenges are rather simple. This one is to create a fading ball.
My script did manage to get under 16 lines. I tried doing it in a single for loop, but because I'm not very good at math, I sadly had to give up that idea.
I also did a division trick to get around floating point errors.
I did manage to do the single for loop using
math.abs, which is a simple function that returns the absolute value of a number. So, for example,
math.abs(-50) is just 50.
There are even smaller solutions, but this uses more math so is technically more intensive on the computer, but not by much.
This one was also simple.
This one says check for humanoid, but it only wants it to kill players? I didn't check for humanoid, and instead only killed players.
I was a bit torn on this one. I was thinking about using a
BodyGyro so that you moved with the part, but I went with the easy solution.
I think that's good enough.
My solution used the random brick color function, and the
.Color property of
This is a bit boring because I couldn't much think of anything to make this cool. I did decide to use a
Humanoid instead of a
SurfaceGui or something because it's easier.
This one is actual something I see a lot of people struggle with. My solutions does follow the rules. I used a generic for loop to loop through all parts in the model. If there were multiple models in the one model, I would have used recursion. But I just went bare-bones and assumed there were only parts in the model. Because my script was also inside the model, I used
IsA to make sure I had a part inside the loop.
That's the end of Level One! I'm excited to do Level Two! Thanks for reading, and I hope I inspire you to take on more challenges!
Here's a link to the place with all my examples if you're stuck or want to see my solutions more closely.
I you're ready, you can read part two of this tutorial here.