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
6. Create a new instance of an explosion
Create an explosion in the script, and make sure the explosion is happening inside the Workspace.
Starting point file for this challenge
Hint: show steps
Steps
1. Create a new instance of "Explosion"
Hint: show details
An "instance" is an object. This line of code is going to tell the game to create a new "explosion" object out of thin air for us.
(This is very similar to cloning in Scratch - it's like we're telling Roblox to spawn an "explosion" clone for us.)
This line of code should go
before
the forever loop.
Instance.new("Explosion")
Hint: show image
Hint: show code
2. Label the instance
Hint: show details
We want to keep track of that explosion we're making! We'll name it "explosion."
explosion = Instance.new("Explosion")
Hint: show image
Hint: show code
3. Make the workspace the parent of the explosion
Hint: show details
In other words, this makes the explosion a child of the Workspace. Anything that's a child of your Workspace will show up in your game during play time.
explosion.Parent = game.workspace
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