Currently I have this but I feel like this is terribly inefficient, and makes it very hard on me when adding, in this case, colors.
BLKGui.Blue.MouseButton1Click:connect(function()
newblock.BrickColor = BrickColor.new("Really blue")
colorselect()
color = "Really blue"
wait()
BLKGui.Blue.Image = "rbxgameasset://Images/blueS"
end)
BLKGui.Black.MouseButton1Click:connect(function()
newblock.BrickColor = BrickColor.new("Black")
colorselect()
color = "Black"
wait()
BLKGui.Black.Image = "rbxgameasset://Images/blackS"
end)
BLKGui.Green.MouseButton1Click:connect(function()
newblock.BrickColor = BrickColor.new("Lime green")
colorselect()
color = "Lime green"
wait()
BLKGui.Green.Image = "rbxgameasset://Images/greenS"
end)
BLKGui.Red.MouseButton1Click:connect(function()
newblock.BrickColor = BrickColor.new("Really red")
colorselect()
color = "Really red"
wait()
BLKGui.Red.Image = "rbxgameasset://Images/redS"
end)
BLKGui.White.MouseButton1Click:connect(function()
newblock.BrickColor = BrickColor.new("Lily white")
colorselect()
color = "Lily white"
wait()
BLKGui.White.Image = "rbxgameasset://Images/whiteS"
end)
BLKGui.Yellow.MouseButton1Click:connect(function()
newblock.BrickColor = BrickColor.new("Bright yellow")
colorselect()
color = "Bright yellow"
wait()
BLKGui.Yellow.Image = "rbxgameasset://Images/yellowS"
end)
basically if I could do this:
GuiName.MouseButton1Click:connect(function(objclicked)
-- code with objclicked
end)
It would make my life a lot easier. Is this a thing, or do I HAVE to do it like it is in the top script.

2 comments
exactly what I was looking for tyvm!
Haha you for outdid my answer!