Sign in
Home
Online Classes
Instructors
Tutorials
☰
Register
Sign in
Online Classes
Instructors
Tutorials
1. Open Roblox Studio and load the starter kit
2. Make some more Exploder Parts
3. (Concept Exercise) Hierarchies
4. Add a script to the ServerScriptService
5. Tell the script to find all your exploder parts
6. Create a new instance of an explosion
7. Create an explode function
8. Test it out
9. Randomize the explosion
10. Give players a warning before exploding
11. Create your exploder course
Project 327: Exploder Course
10. Give players a warning before exploding
You probably noticed that there's no warning before bricks explode, which can make the game feel unfair. What if the bricks turned red right before they explode? After they're done exploding, they turn back to white.
Starting point file for this challenge
Your goal
Hint: show steps
Steps
1. Instead of making ready = true at random times, set the brick color to red
Hint: show details
You'll be setting the part's BrickColor to red. Now, there's a 1 in 6 chance your brick will turn red ... meaning danger!
part.BrickColor = BrickColor.Red()
Hint: show image
Hint: show code
2. Instead of checking if ready is true, check if the brick is red before exploding
Hint: show details
Now, whenever your brick randomly turns red, it also means it will be ready to explode!
part.BrickColor == BrickColor.Red()
Hint: show image
Hint: show code
3. Set the brick color back to white after its done exploding
Hint: show details
Instead of setting "ready" back to false, set the brick color back to white after exploding.
part.BrickColor = BrickColor.White()
Hint: show image
Hint: show code
×
×
Provide your email address for immediate project access
Email
Check your email for instructions on how to create a full DA account