brushSettings.BrushButton.MouseButton1Click:Connect(function()erasing=false brushSettings.BrushButton.BackgroundColor3=Color3.fromRGB(200,200,200)brushSettings.EraserButton.BackgroundColor3=Color3.fromRGB(255,255,255)end)brushSettings.EraserButton.MouseButton1Click:Connect(function()erasing=true brushSettings.EraserButton.BackgroundColor3=Color3.fromRGB(200,200,200)brushSettings.BrushButton.BackgroundColor3=Color3.fromRGB(255,255,255)end)
--Switch between eraser and brush when their respective buttons are pressed
brushSettings.BrushButton.MouseButton1Click:Connect(function()
	erasing = false
	brushSettings.BrushButton.BackgroundColor3 = Color3.fromRGB(200, 200, 200)
	brushSettings.EraserButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
end)
brushSettings.EraserButton.MouseButton1Click:Connect(function()
	erasing = true
	brushSettings.EraserButton.BackgroundColor3 = Color3.fromRGB(200, 200, 200)
	brushSettings.BrushButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
end)
