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

How do i repair my color loop changing script?

--I've tried this script :

B = game.Workspace.Part

while true do

B.BrickColor = BrickColor.new("Really red")

wait(2)

B.BrickColor = BrickColor.new("Really black")

wait(2)

end

1 comment

0

i see no problem, You could make the script better by making B a local variable...

1 answer

I think you should user Color3 instead of BrickColor. I usually use Color3 instead of BrickColor

Color3 uses Red/Green/Blue values instead of color names.

Use the script with Color3:

B = game.Workspace.Part

while true do

B.BrickColor = Color3.new(255, 0, 0) -- makes the brick "Really red"

wait(2)

B.BrickColor = Color3.new(0, 0, 0) -- makes the brick "Really black"

wait(2)
 
end

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