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

Properties (changing the color of a block) doesnt work?

Asked by 7 years ago

When i try to change a colour of a block it doesnt work. Here is the code

game.workspace.Part.BrickColor = BrickColor.new("Really red")

wait (5)

game.workspace.Part.BrickColor = BrickColor.new("Electric blue")

wait (5)

game.workspace.Part.BrickColor = BrickColor.new ("Sea green")

wait (5)

game.workspace.Part.BrickColor = BrickColor.new ("New Yeller") wait (5)

repeat

1 answer

Log in to vote
0
Answered by 7 years ago

workspace is "Workspace" and if you want this to loop, then use while true do

while true do -- this loops your script while true = true. And true will always = true lol
    game.Workspace.Part.BrickColor = BrickColor.new("Really red") -- Capitalization is key :)
        wait (5)
    game.Workspace.Part.BrickColor = BrickColor.new("Electric blue")
        wait (5)
    game.Workspace.Part.BrickColor = BrickColor.new ("Sea green")
        wait (5)
    game.Workspace.Part.BrickColor = BrickColor.new ("New Yeller") 
        wait (5)
end

Hope this helped. Accept if it did. :)

0
@alanzol2345 Thank you it worked! :D SuperAladdin 2 — 7y
0
Great, now accept the answer lol alonzo12345 60 — 7y
Ad

Answer this question