Sign in
Home
Online Classes
Instructors
Tutorials
☰
Register
Sign in
Online Classes
Instructors
Tutorials
1. Open Roblox Studio and Setup a New Project
2. Set Up Coin
3. Add a Script to ServerScriptService
4. Make CreateCoin Function
5. Closer Look at CreateCoin( ) (c)
6. Add a loop to create multiple coins
7. Test Out Your Code
8. Update CreateCoin( )
9. Test Out Your Code
10. Make the Coins 'Collectable'
11. Test Out Your Game
12. Add Sound Effect (Optional)
Project 369: Collecting Coins
8. Update CreateCoin( )
Add code to your CreateCoin() function to make the coins look like coins instead of blocks.
Starting point file for this challenge
Hint: show steps
Steps
1. Name each coin
Hint: show details
Give each new coin a new name, for consistency name it "Coin".
Make this the second line of code inside your CreateCoin( ) function.
coin.Name = "Coin"
Hint: show image
Hint: show code
2. Copy the shape of 'Coin'
Hint: show details
Make each new coin the same shape as the 'Coin' block you manually created in Challenge 2. This will only work if you renamed the part 'Coin'.
coin.Shape = game.workspace.Coin.Shape
Hint: show image
Hint: show code
3. Copy the color of 'Coin'
Hint: show details
Set the color of each new coin to be the same as the 'Coin' block created in Challenge 2.
coin.Color = game.workspace.Coin.Color
Hint: show image
Hint: show code
4. Copy the size of 'Coin'
Hint: show details
Set the size of each new coin to the same size as your "Coin".
coin.Size = game.workspace.Coin.Size
Hint: show image
Hint: show code
5. Make the coins shiny
Hint: show details
Give the coins a consistent reflectance value of 0.4.
coin.Reflectance = 0.4
Hint: show image
Hint: show code
6. Make the coins metal
Hint: show details
Make the material of each coin Metal.
coin.Material = "Metal"
Hint: show image
Hint: show code
7. Anchor the coins
Hint: show details
Anchor each coin so it does not fall to the ground.
You can change this to false if you want the coins to be affected by gravity.
coin.Anchored = true
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