Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Is this the right script?

I am making a Club, downstairs is the dance floor. The dance floor goes to random colors every 1.1 second. Is this the right script?

while true do
game.Workspace.DanceFloorBrick.BrickColor:Random()
wait(1.1)
game.Workspace.DanceFloorBrick.BrickColor:Random()
wait(1.1)
end

4 answers

✓ Accepted answer

Hi. I'm TheEliteDonphan and I will answer your question.

You almost got it, but you made one little error. BrickColor:Random()isn't a function! It's Brickcolor.Random(). You also have to create an equals sign since it is a function.

while true do
game.Workspace.DanceFloorBrick.BrickColor = BrickColor.Random()
wait()
game.Workspace.DanceFloorBrick.BrickColor = BrickColor.Random()
wait()
end

Source: myself

1 comment

0

;O Thanks, IT WORKED :)

Its close. It should be

while true do
game.Workspace.DanceFloorBrick.BrickColor.Random()
wait(1.1)
game.Workspace.DanceFloorBrick.BrickColor.Random()
wait(1.1)
end

No you have to put math.random in front of BrickColor

This discussion is preserved as it was. New answers, comments, and votes are closed.