Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Is this the right script?

Asked by 10 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

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

Log in to vote
2
Answered by
aalok 20
10 years ago

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

0
;O Thanks, IT WORKED :) Roboy5857 20 — 10y
Ad
Log in to vote
-2
Answered by 10 years ago

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

Log in to vote
-2
Answered by
jcmand 0
10 years ago

y u math

Log in to vote
-3
Answered by 10 years ago

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

Answer this question