How to make a disco floor in roblox

Roblox Studio Tutorials - June 6, 2022

How to Make a Dance/Disco Floor

What’s up everyone, BuzzyBeth here – In this tutorial we’ll be learning how to make a dance/disco floor!

  • Inside of our workspace we’re gonna go ahead and create our dance floor out of multiple parts. Now i’m just gonna go ahead and duplicate a bunch of parts! Did you know you can duplicate by pressing ctrl+d if you’re using windows, or if you’re using mac it’s going to be cmd+d.
  • So I have all of my parts here, what I want to do is actually go ahead and create a folder and place all of my parts inside of this folder. Drag all of our parts into this folder and then we’re going to go ahead and add a script.
  • Delete our print statement, we don’t need that! We’re going to create a while true do loop and we’re going to set it so that our parts are going to change to a different color every one second. If you wanted to change every five seconds or so on go ahead and change the one to whatever number you want it to be.
  • Now we’re gonna do for i, v in pairs if it is a “Part” then the part is going to change to a random color! As you guys can see I did math.random (0,255) for the r,g, and b values but if you wanted to set it to a set color you can do that too.