This wont work
Brick = game.Workspace.Brick
function onTouch() Brick.BrickColor = Dark green wait(3) Brick.BrickColor = Baby Blue end script.Parent.Touched:connect(onTouch)
Can you guys help me, I don't know how to solve this.
This wont work
Brick = game.Workspace.Brick
function onTouch() Brick.BrickColor = Dark green wait(3) Brick.BrickColor = Baby Blue end script.Parent.Touched:connect(onTouch)
Can you guys help me, I don't know how to solve this.
To do this, all you have to do is use BrickColor.new(), like so,
local brick = game.Workspace.Brick
function onTouch()
Brick.BrickColor = BrickColor.new("Dark green")
wait(3)
Brick.BrickColor = BrickColor.new("Cyan")
end
script.Parent.Touched:connect(onTouch)
Here's a link to some Color Codes.
Here's also a link to the wiki on BrickColor.
You could use a Color3 value as well, if you wanted to. To do this all you would have to do it use a color3 inside of the BrickColor, like so,
local brick = game.Workspace.Brick
function onTouch()
Brick.BrickColor = BrickColor.new(Color3.new(1,1,1))--White
wait(3)
Brick.BrickColor = BrickColor.new(Color3.new(255,0,0))--red
end
script.Parent.Touched:connect(onTouch)
I hope I helped!
Good Luck!
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
It still doesn't work, I copy your work from first to end checking over all details and it still doesn't work. I even try doing local script and regular script pasting in my brick in workspace over and over.