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

Steps

1. Name each coin

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"

2. Copy the shape of 'Coin'

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

3. Copy the color of 'Coin'

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

4. Copy the size of 'Coin'

Set the size of each new coin to the same size as your "Coin".
coin.Size = game.workspace.Coin.Size

5. Make the coins shiny

Give the coins a consistent reflectance value of 0.4.
coin.Reflectance = 0.4

6. Make the coins metal

Make the material of each coin Metal.
coin.Material = "Metal"

7. Anchor the coins

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