Bin=script.Parent function onButton1Down(W)mt=W.Target if mt.Locked==false then mt.BrickColor=BrickColor.Random(1,268)end end function onSelected(W)W.Icon="\114\098\120\097\115\115\101\116\058\047\047\116\101\120\116\117\114\101\115\092\071\117\110\067\117\114\115\111\114\046\112\110\103"W.Button1Down:connect(function()onButton1Down(W)end)local Q=Instance.new("\072\105\110\116")Q.Parent=Bin.Parent.Parent Q.Text="\067\108\105\099\107 \111\110 \097 \098\114\105\099\107 \116\111 \099\104\097\110\103\101 \105\116 \116\111 \097 \114\097\110\100\111\109 \099\111\108\111\114\033"end function onDeS(W)script.Parent.Parent.Parent.Message:remove()end script.Parent.Deselected:connect(onDeS)Bin.Selected:connect(onSelected)

Bin = script.Parent

function onButton1Down(mouse)

mt = mouse.Target	

		if mt.Locked == false then
		mt.BrickColor = BrickColor.Random(1,268)

	end

end

function onSelected(mouse)
mouse.Icon = "rbxasset://textures\\GunCursor.png"
mouse.Button1Down:connect(function() onButton1Down(mouse) end)

local Message = Instance.new("Hint")

Message.Parent = Bin.Parent.Parent

Message.Text = "Click on a brick to change it to a random color!"

end

function onDeS(mouse) 
script.Parent.Parent.Parent.Message:remove() 
end 

script.Parent.Deselected:connect(onDeS)
Bin.Selected:connect(onSelected) 
