Pages

Saturday, 18 February 2012

Tutorial: How to make a dancefloor.

Hello everyone and welcome to my 3rd tutorial. In this tutorial, I will be showing you how to make a dancefloor using some bricks and a simple script. Although it may sound hard, trust me, its not.

To start, we're going to need ROBLOX studio, like we did in my previous tutorial. I will not go over how to do it again because it would be a waste of time. To see how, check out my previous tutorial.
Once we're in ROBLOX Studio, we need to open a place. Go to your places and choose one to build the dancefloor in then click on "Edit".
Once we're in the place, we now need to get everything ready. For this tutorial, I will be using 17 5x5 bricks for the dancefloor. It doesn't matter about the color as they will be changing all the time with the script we will add later.
Right now, it should be like this:









Next, we need to add the script to make them flash. To do this, we will need to create a script in one of the bricks. Once we have got a script inside a brick, we need to copy this inside it:

while true do
script.Parent.BrickColor = BrickColor.random()

wait(1)
end

Once we have this script in one brick, we need to copy it into all the other bricks.
Just exit out of the script editor and select the script. Next, just press CTRL+C on your keyboard to copy it onto your clipboard.
Once we have the script copied, we need to paste it into the other bricks. Just right-click on each of the bricks individually and click the "Paste into" option to paste the script into the brick.

Once we have all the bricks with the script inside, we now need to test! If the script works, every brick should change a different color each second.
If the end result doesn't work like this, repeat all the steps again to see if that works.




I hope you guys have enjoyed this tutorial. Be sure to look out for more in the coming days! =)
Until next time, happy BLOXing!

No comments:

Post a Comment