Colour changing part script not working

I am coming back to scripting after a while and just looking at some random creations in the toolbox and trying to create whatever comes to my head.

local colours = {"Really Red", "Royal Purple", "Dark Blue", "Lime Green"}
local colour = script.Parent
print("variables")

while true do
	for i,v in pairs(colours) do
		print("working")
		colour.BrickColor = BrickColor.new(v)
		print("colour changed")
		wait(5)
	end
end


Both of the print statements, working and colour changed print but the brickcolor of the part doesn’t change.

If anyone can help me, thank you!

1 Like

Most color names only have their first word capitalized, such as “Really red”, however colors like “Pastel Blue” are exceptions to the rule.

This page on the Roblox documentation has a list of every BrickColor and their appropriate capitalizations.

1 Like

I never thought this simple of a thing would be the error. I need to check my capitalizations more.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.