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

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

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

✓ Accepted answer

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. :)

2 comments

0

@alanzol2345 Thank you it worked! :D

0

Great, now accept the answer lol

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