of     1   

surviverbunny
#44939660Friday, April 01, 2011 10:15 PM GMT

well im trying to make it so when you click the button it changes tha flag color too but heres what i got so far for my domination style game and i need it so it changes the falgs color function onClicked() script.Parent.Parent.Owner.Value = 1 script.Parent.Parent.BrickColor = Bright Blue game.Workspace.Message.Text = "base 1 was captured by blue" wait(2) game.Workspace.Message.Text = "" end script.Parent.ClickDetector.MouseClick:connect(onClicked)
SilverRaptor
#44939800Friday, April 01, 2011 10:17 PM GMT

function onClicked() script.Parent.Parent.Owner.Value = 1 script.Parent.Parent.BrickColor = BrickColor.new("Bright Blue") game.Workspace.Message.Text = "base 1 was captured by blue" wait(2) game.Workspace.Message.Text = "" end script.Parent.ClickDetector.MouseClick:connect(onClicked)
crazypotato4
#44939847Friday, April 01, 2011 10:18 PM GMT

The BrickColor property is (gasp) a BrickColor value, so you have to set it to a BrickColor value when you change it. To create a new BrickColor to set the value to, you use the BrickColor.new function. script.Parent.Parent.BrickColor = BrickColor.new("Bright blue")
surviverbunny
#44939874Friday, April 01, 2011 10:18 PM GMT

oops my mistake meant to post this: function onClicked() script.Parent.Parent.Owner.Value = 1 script.Parent.Parent.Flag.BrickColor = "Bright Blue" game.Workspace.Message.Text = "base 1 was captured by blue" wait(2) game.Workspace.Message.Text = "" end script.Parent.ClickDetector.MouseClick:connect(onClicked)

    of     1