Hey! I have a problem. I want to create a function that sets the color I choose
local province = game.Workspace.province1 local provColor = province.ProvColor.Value function setColor (colorName) provColor = colorName province.BrickColor.Color = BrickColor.provColor() end setColor(Dark blue)
But I have this error
Workspace.province1.Script:5: ')' expected near 'blue'
What have I done wrong?
Sorry I deleted the last post because it's kinda messy.
Here's the code:
local province = game.Workspace.province1 local provColor = province.ProvColor.Value function setColor (colorName) provColor = colorName province.BrickColor = BrickColor.new(provColor) end setColor("Dark blue") -- Use strings
Again, sorry. But you're welcome.